Open veluca93 opened 1 month ago
The documentation here is incorrect. wasi-root
only exists for the config.toml
used for building rustc itself. Not for .cargo/config.toml
. And I don't think -Zbuild-std
works either. Unless you are working on rustc itself I would suggest following the instructions at https://doc.rust-lang.org/rustc/platform-support/wasm32-wasip1-threads.html#building-rust-programs instead.
Location
https://doc.rust-lang.org/rustc/platform-support/wasm32-wasip1-threads.html#building-the-target
Summary
The section seems to suggest to add
to use with
cargo build -Zbuild-std
in a crate, but doing so results in the following error: