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

Fails to build on wasm32-wasip2 #1060

Open
RalfJung opened this issue May 19, 2024 · 0 comments
Open

Fails to build on wasm32-wasip2 #1060

RalfJung opened this issue May 19, 2024 · 0 comments

Comments

@RalfJung
Copy link

Trying to build this crate with --target wasm32-wasip2 leads to errors:

error[E0658]: use of unstable library feature 'wasip2'
  --> /home/r/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.34/src/maybe_polyfill/std/mod.rs:30:13
   |
30 |             AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd,
   |             ^^^^
   |
   = help: add `#![feature(wasip2)]` to the crate attributes to enable
   = note: this compiler was built on 2024-05-19; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'wasip2'
  --> /home/r/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.34/src/maybe_polyfill/std/mod.rs:30:28
   |
30 |             AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd,
   |                            ^^^^^^^^^^
   |
   = help: add `#![feature(wasip2)]` to the crate attributes to enable
   = note: this compiler was built on 2024-05-19; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'wasip2'
  --> /home/r/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.34/src/maybe_polyfill/std/mod.rs:30:62
   |
30 |             AsFd, AsRawFd, BorrowedFd, FromRawFd, IntoRawFd, OwnedFd, RawFd,
   |                                                              ^^^^^^^
   |
   = help: add `#![feature(wasip2)]` to the crate attributes to enable
   = note: this compiler was built on 2024-05-19; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'wasip2'
   --> /home/r/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.34/src/fs/mod.rs:143:29
    |
143 | pub use std::os::wasi::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt};
    |                             ^^^^^^^^^^^
    |
    = help: add `#![feature(wasip2)]` to the crate attributes to enable
    = note: this compiler was built on 2024-05-19; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'wasip2'
   --> /home/r/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.34/src/fs/mod.rs:143:42
    |
143 | pub use std::os::wasi::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt};
    |                                          ^^^^^^^
    |
    = help: add `#![feature(wasip2)]` to the crate attributes to enable
    = note: this compiler was built on 2024-05-19; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'wasip2'
   --> /home/r/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.34/src/fs/mod.rs:143:51
    |
143 | pub use std::os::wasi::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt};
    |                                                   ^^^^^^^^^^^
    |
    = help: add `#![feature(wasip2)]` to the crate attributes to enable
    = note: this compiler was built on 2024-05-19; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'wasip2'
   --> /home/r/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.34/src/fs/mod.rs:143:64
    |
143 | pub use std::os::wasi::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt};
    |                                                                ^^^^^^^^^^^
    |
    = help: add `#![feature(wasip2)]` to the crate attributes to enable
    = note: this compiler was built on 2024-05-19; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'wasip2'
   --> /home/r/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.34/src/fs/mod.rs:143:77
    |
143 | pub use std::os::wasi::fs::{DirEntryExt, FileExt, FileTypeExt, MetadataExt, OpenOptionsExt};
    |                                                                             ^^^^^^^^^^^^^^
    |
    = help: add `#![feature(wasip2)]` to the crate attributes to enable
    = note: this compiler was built on 2024-05-19; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'wasip2'
  --> /home/r/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.34/src/path/arg.rs:26:26
   |
26 | use std::os::wasi::ffi::{OsStrExt, OsStringExt};
   |                          ^^^^^^^^
   |
   = help: add `#![feature(wasip2)]` to the crate attributes to enable
   = note: this compiler was built on 2024-05-19; consider upgrading it if it is out of date

error[E0658]: use of unstable library feature 'wasip2'
  --> /home/r/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rustix-0.38.34/src/path/arg.rs:26:36
   |
26 | use std::os::wasi::ffi::{OsStrExt, OsStringExt};
   |                                    ^^^^^^^^^^^
   |
   = help: add `#![feature(wasip2)]` to the crate attributes to enable
   = note: this compiler was built on 2024-05-19; consider upgrading it if it is out of date
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