rust/src
Alex Crichton 8bb9d30a02 Update how WASI toolchains are used in CI and bootstrap
This commit updates how the WASI targets are configured with their
toolchain. Long ago a `config.toml` option of `wasi-root` was added to
enable building with the WASI files produced by wasi-libc. Additionally
for CI testing and release building the Rust toolchain has been using a
hard-coded commit of wasi-libc which is bundled with the release of the
`wasm32-wasip1` target, for example.

Nowadays though the wasi-sdk project, the C/C++ toolchain for WASI, is
the go-to solution for compiling/linking WASI code and contains the
more-or-less official releases of wasi-libc. This commit migrates CI to
using wasi-sdk releases and additionally updates `bootstrap` to
recognize when this is configured. This means that with `$WASI_SDK_PATH`
configured there's no further configuration necessary to get a working
build. Notably this also works better for the new targets of WASI as
well, such as `wasm32-wasip2` and `wasm32-wasip1-threads` where the
wasi-sdk release now has libraries for all targets bundled within it.
2024-04-15 14:27:41 -07:00
..
bootstrap Update how WASI toolchains are used in CI and bootstrap 2024-04-15 14:27:41 -07:00
ci Update how WASI toolchains are used in CI and bootstrap 2024-04-15 14:27:41 -07:00
doc Update how WASI toolchains are used in CI and bootstrap 2024-04-15 14:27:41 -07:00
etc Auto merge of #123317 - RalfJung:test-in-miri, r=m-ou-se,saethlin,onur-ozkan 2024-04-05 13:17:09 +00:00
librustdoc rustdoc: check redundant explicit links with correct itemid 2024-04-13 19:32:39 -07:00
llvm-project@af8f9eb61a Update to LLVM 18.1.3 2024-04-06 21:07:35 +08:00
rustdoc-json-types Normalize layout test to protect against android alignment differences 2024-04-08 12:06:28 +00:00
tools Auto merge of #123937 - RalfJung:miri-link-section, r=oli-obk 2024-04-15 14:36:12 +00:00
README.md Remove stale reference to the test suite location 2023-01-13 11:49:06 +00:00
stage0.json Bump stage0 2024-03-19 19:27:24 -04:00
version Bump to 1.79.0 2024-03-16 09:56:09 -04:00

This directory contains some source code for the Rust project, including:

  • The bootstrapping build system
  • Various submodules for tools, like cargo, tidy, etc.

For more information on how various parts of the compiler work, see the rustc dev guide.