2016-09-02 16:55:29 +08:00
|
|
|
[workspace]
|
2024-08-07 15:02:57 +08:00
|
|
|
resolver = "2"
|
2016-09-02 16:55:29 +08:00
|
|
|
members = [
|
2020-08-28 11:58:48 +08:00
|
|
|
"compiler/rustc",
|
2024-07-21 00:13:27 +08:00
|
|
|
"src/etc/test-float-parse",
|
2021-01-25 04:42:33 +08:00
|
|
|
"src/rustdoc-json-types",
|
2022-12-30 18:11:33 +08:00
|
|
|
"src/tools/build_helper",
|
2018-08-22 10:50:46 +08:00
|
|
|
"src/tools/cargotest",
|
|
|
|
"src/tools/clippy",
|
2021-04-14 21:20:49 +08:00
|
|
|
"src/tools/clippy/clippy_dev",
|
2018-08-22 10:50:46 +08:00
|
|
|
"src/tools/compiletest",
|
2024-01-21 00:51:59 +08:00
|
|
|
"src/tools/run-make-support",
|
2018-08-22 10:50:46 +08:00
|
|
|
"src/tools/error_index_generator",
|
|
|
|
"src/tools/linkchecker",
|
2020-09-09 06:09:57 +08:00
|
|
|
"src/tools/lint-docs",
|
2022-10-31 08:17:25 +08:00
|
|
|
"src/tools/miropt-test-tools",
|
2018-08-22 10:50:46 +08:00
|
|
|
"src/tools/unstable-book-gen",
|
|
|
|
"src/tools/tidy",
|
2020-08-12 07:49:39 +08:00
|
|
|
"src/tools/tier-check",
|
2018-08-22 10:50:46 +08:00
|
|
|
"src/tools/build-manifest",
|
|
|
|
"src/tools/remote-test-client",
|
|
|
|
"src/tools/remote-test-server",
|
|
|
|
"src/tools/rust-installer",
|
|
|
|
"src/tools/rustdoc",
|
|
|
|
"src/tools/rls",
|
|
|
|
"src/tools/rustfmt",
|
|
|
|
"src/tools/miri",
|
2020-06-02 02:17:20 +08:00
|
|
|
"src/tools/miri/cargo-miri",
|
2018-08-22 10:50:46 +08:00
|
|
|
"src/tools/rustdoc-themes",
|
2020-01-14 05:40:19 +08:00
|
|
|
"src/tools/unicode-table-generator",
|
2021-01-16 09:34:15 +08:00
|
|
|
"src/tools/jsondocck",
|
2022-08-23 21:49:37 +08:00
|
|
|
"src/tools/jsondoclint",
|
2024-02-07 02:15:38 +08:00
|
|
|
"src/tools/llvm-bitcode-linker",
|
2021-04-23 22:43:18 +08:00
|
|
|
"src/tools/html-checker",
|
2021-08-26 17:26:03 +08:00
|
|
|
"src/tools/bump-stage0",
|
2022-08-24 04:14:12 +08:00
|
|
|
"src/tools/replace-version-placeholder",
|
2021-09-25 21:25:08 +08:00
|
|
|
"src/tools/lld-wrapper",
|
2022-11-15 17:19:17 +08:00
|
|
|
"src/tools/collect-license-metadata",
|
2022-11-15 18:27:19 +08:00
|
|
|
"src/tools/generate-copyright",
|
2023-03-01 17:17:08 +08:00
|
|
|
"src/tools/suggest-tests",
|
2023-04-15 18:57:07 +08:00
|
|
|
"src/tools/generate-windows-sys",
|
2023-05-20 19:40:11 +08:00
|
|
|
"src/tools/rustdoc-gui-test",
|
2023-06-03 15:41:44 +08:00
|
|
|
"src/tools/opt-dist",
|
2023-08-11 09:52:37 +08:00
|
|
|
"src/tools/coverage-dump",
|
2024-06-27 16:22:03 +08:00
|
|
|
"src/tools/rustc-perf-wrapper",
|
2024-06-25 03:30:44 +08:00
|
|
|
"src/tools/wasm-component-ld",
|
2018-07-27 05:58:55 +08:00
|
|
|
]
|
2020-11-02 11:43:51 +08:00
|
|
|
|
2018-07-27 05:58:55 +08:00
|
|
|
exclude = [
|
2018-11-25 20:59:52 +08:00
|
|
|
"build",
|
2020-10-15 20:23:43 +08:00
|
|
|
"compiler/rustc_codegen_cranelift",
|
2021-07-20 07:13:02 +08:00
|
|
|
"compiler/rustc_codegen_gcc",
|
2022-05-29 15:26:19 +08:00
|
|
|
"src/bootstrap",
|
2023-01-05 16:45:44 +08:00
|
|
|
"tests/rustdoc-gui",
|
2018-11-26 05:15:20 +08:00
|
|
|
# HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
|
|
|
|
"obj",
|
2020-11-02 11:43:51 +08:00
|
|
|
# The `x` binary is a thin wrapper that calls `x.py`, which initializes
|
|
|
|
# submodules, before which workspace members cannot be invoked because
|
|
|
|
# not all `Cargo.toml` files are available, so we exclude the `x` binary,
|
|
|
|
# so it can be invoked before the current checkout is set up.
|
|
|
|
"src/tools/x",
|
2017-04-21 05:32:54 +08:00
|
|
|
]
|
|
|
|
|
2021-10-24 21:36:45 +08:00
|
|
|
[profile.release.package.rustc-rayon-core]
|
|
|
|
# The rustc fork of Rayon has deadlock detection code which intermittently
|
|
|
|
# causes overflows in the CI (see https://github.com/rust-lang/rust/issues/90227)
|
|
|
|
# so we turn overflow checks off for now.
|
|
|
|
# FIXME: This workaround should be removed once #90227 is fixed.
|
|
|
|
overflow-checks = false
|
|
|
|
|
2024-01-06 22:33:51 +08:00
|
|
|
# These are very thin wrappers around executing lld with the right binary name.
|
|
|
|
# Basically nothing within them can go wrong without having been explicitly logged anyway.
|
|
|
|
# We ship these in every rustc tarball and even after compression they add up
|
|
|
|
# to around 0.6MB of data every user needs to download (and 15MB on disk).
|
|
|
|
[profile.release.package.lld-wrapper]
|
|
|
|
debug = 0
|
|
|
|
strip = true
|
2024-06-25 03:30:44 +08:00
|
|
|
[profile.release.package.wasm-component-ld-wrapper]
|
|
|
|
debug = 0
|
|
|
|
strip = true
|
2024-01-06 22:33:51 +08:00
|
|
|
|
2024-07-21 00:13:27 +08:00
|
|
|
# Bigint libraries are slow without optimization, speed up testing
|
|
|
|
[profile.dev.package.test-float-parse]
|
|
|
|
opt-level = 3
|
|
|
|
|
|
|
|
# Speed up the binary as much as possible
|
|
|
|
[profile.release.package.test-float-parse]
|
|
|
|
opt-level = 3
|
|
|
|
codegen-units = 1
|
|
|
|
# FIXME: LTO cannot be enabled for binaries in a workspace
|
|
|
|
# <https://github.com/rust-lang/cargo/issues/9330>
|
|
|
|
# lto = true
|