Skip to content

Integrate WASM with Scala CLI #3316

Open
@Gedochao

Description

@Gedochao

Is your feature request related to a problem? Please describe.
We currently support emitting Wasm via Scala.js, but we do not yet integrate it with Scala CLI features.

Describe the solution you'd like
I'd like to be able to run Scala code with Wasm directly from Scala CLI.
Additionally, I'd like to be able to choose a runtime and let Scala CLI download it for me.
Unsure which runtimes should be supported, + we should likely have a default.

  • support running Wasm from Scala CLI
    • a CLI flag --wasm
    • a corresponding directive, likely a wasm param for the platform directive
  • allow to pick a Wasm runtime + have a default
    • command line option
    • directive
  • consider Wasm for other Scala CLI features (likely out of scope) and create follow-up issues

Additional context

cc @sjrd @tanishiking

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions