rust-lang / rust-lang/rust

Confusing documentation for wasm32-wasip1-threads

Open
#126,857 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.