Skip to content

Confusing documentation for wasm32-wasip1-threads #126857

Open
@veluca93

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsO-wasiOperating system: Wasi, Webassembly System InterfaceT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions