Confusing documentation for wasm32-wasip1-threads
Open
Nobody has claimed this yet.
A-docs
O-wasi
T-compiler
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Location
https://doc.rust-lang.org/rustc/platform-support/wasm32-wasip1-threads.html#building-the-target
Summary
The section seems to suggest to add
[target.wasm32-wasip1-threads]
wasi-root = ".../wasi-libc/sysroot"
to use with cargo build -Zbuild-std in a crate, but doing so results in the following error:
error: expected a table, but found a string for `target.wasm32-wasip1-threads.wasi-root` .../.cargo/config.toml
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the linked wasm32-wasip1-threads platform-support page and inspect the “Building the target” section. Reproduce the documented configuration with cargo build -Zbuild-std to confirm the parsing error, then compare it with the accepted Cargo configuration format. Done means the documentation no longer suggests an invalid wasi-root value and clearly describes the working setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust, wasm
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100