Skip to content

Support for wasm32-wasi target #219

Description

@bkolobara

I ran into an issue while trying to compile plotters to WebAssembly.

Currently any wasm32-*-* target (e.g. wasm32-unknown-unknown, wasm32-wasi, wasm32-...) is considered to be running inside the browsers and uses wasm-bindgen` as a dependency.

But this is not always the case. In my case I'm trying to run it on the backend inside an application compiled to wasm32-wasi on Wasmtime and Wasmer. The issue is that wasm-bindgen doesn't work on this platforms because they are not browsers and the required wasm-bindgen imports are not satisfied.

Would plotters still work if we just treated wasm32-wasi as a non-wasm backend?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions