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

Support for wasm32-wasip2 target #958

Closed
StuartHarris opened this issue Aug 11, 2024 · 0 comments · Fixed by #960
Closed

Support for wasm32-wasip2 target #958

StuartHarris opened this issue Aug 11, 2024 · 0 comments · Fixed by #960

Comments

@StuartHarris
Copy link

Compilation failure when targeting wasm32-wasip2 on nightly.

cargo +nightly build --target wasm32-wasip2

output:

...
   Compiling url v2.5.2
error[E0658]: use of unstable library feature 'wasip2'
    --> /Users/stuartharris/.cargo/registry/src/index.crates.io-6f17d22bba15001f/url-2.5.2/src/lib.rs:2835:9
     |
2835 |     use std::os::wasi::prelude::OsStrExt;
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: add `#![feature(wasip2)]` to the crate attributes to enable
     = note: this compiler was built on 2024-08-10; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'wasip2'
    --> /Users/stuartharris/.cargo/registry/src/index.crates.io-6f17d22bba15001f/url-2.5.2/src/lib.rs:2938:9
     |
2938 |     use std::os::wasi::prelude::OsStrExt;
     |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     |
     = help: add `#![feature(wasip2)]` to the crate attributes to enable
     = note: this compiler was built on 2024-08-10; consider upgrading it if it is out of date

For more information about this error, try `rustc --explain E0658`.
error: could not compile `url` (lib) due to 2 previous errors
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

Successfully merging a pull request may close this issue.

1 participant