Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is wasm32-wasi not supported? #2000

Open
JimLynchCodes opened this issue May 13, 2023 · 0 comments
Open

Is wasm32-wasi not supported? #2000

JimLynchCodes opened this issue May 13, 2023 · 0 comments

Comments

@JimLynchCodes
Copy link

Hi there! My question may be related to my issues in #1999

I just naively tried to install this library into my project that uses the "spin" cli tool to build and deploy serverless functions that run on Fermeyon.

When I try to build though I am getting lots of scary errors like this one:

error: Only features sync,macros,io-util,rt,time are supported on wasm.
   --> /Users/jim/.cargo/registry/src/github.com-1ecc6299db9ec823/tokio-1.28.1/src/lib.rs:488:1
    |
488 | compile_error!("Only features sync,macros,io-util,rt,time are supported on wasm.");
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^```
    
  It seems like my "spin build" command under the hood is running this:
  ```bash
  cargo build --target wasm32-wasi --release

So I am wondering... is this library meant to work for the wasm32-wasi build target? Is there something else I can do to easily get it compiling and working correctly?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant