Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

When I run

rustup target install wasm32-unknown-unknown

it states

info: downloading component 'rust-std' for 'wasm32-unknown-unknown'

This means that prebuilt binary components are being downloaded. Where is the source code of these components?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
154 views
Welcome To Ask or Share your Answers For Others

1 Answer

You can install the rust-src rustup component for a toolchain, which will be located in $RUSTUP_INSTALLATION_DIRECTORY/toolchains/$TOOLCHAIN/lib/rustlib/src/rust.

The official source code for the Rust project is on GitHub at https://github.com/rust-lang/rust/. The standard library is currently located in the library/std subdirectory, although this has changed over time.

See also:


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...