2016-09-02 10:55:29 +02:00
|
|
|
[workspace]
|
2024-08-07 09:02:57 +02:00
|
|
|
resolver = "2"
|
2016-09-02 10:55:29 +02:00
|
|
|
members = [
|
2020-08-28 05:58:48 +02:00
|
|
|
"compiler/rustc",
|
2024-11-10 21:52:56 +01:00
|
|
|
"src/build_helper",
|
2024-07-20 18:13:27 +02:00
|
|
|
"src/etc/test-float-parse",
|
2024-11-03 22:30:16 +01:00
|
|
|
"src/rustc-std-workspace/rustc-std-workspace-core",
|
|
|
|
"src/rustc-std-workspace/rustc-std-workspace-alloc",
|
|
|
|
"src/rustc-std-workspace/rustc-std-workspace-std",
|
2021-01-24 21:42:33 +01:00
|
|
|
"src/rustdoc-json-types",
|
2018-08-22 04:50:46 +02:00
|
|
|
"src/tools/cargotest",
|
|
|
|
"src/tools/clippy",
|
2021-04-14 15:20:49 +02:00
|
|
|
"src/tools/clippy/clippy_dev",
|
2018-08-22 04:50:46 +02:00
|
|
|
"src/tools/compiletest",
|
2024-01-20 17:51:59 +01:00
|
|
|
"src/tools/run-make-support",
|
2018-08-22 04:50:46 +02:00
|
|
|
"src/tools/error_index_generator",
|
|
|
|
"src/tools/linkchecker",
|
2020-09-09 00:09:57 +02:00
|
|
|
"src/tools/lint-docs",
|
2022-10-31 01:17:25 +01:00
|
|
|
"src/tools/miropt-test-tools",
|
2018-08-22 04:50:46 +02:00
|
|
|
"src/tools/unstable-book-gen",
|
|
|
|
"src/tools/tidy",
|
2020-08-12 01:49:39 +02:00
|
|
|
"src/tools/tier-check",
|
2018-08-22 04:50:46 +02: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-01 20:17:20 +02:00
|
|
|
"src/tools/miri/cargo-miri",
|
2018-08-22 04:50:46 +02:00
|
|
|
"src/tools/rustdoc-themes",
|
2020-01-13 22:40:19 +01:00
|
|
|
"src/tools/unicode-table-generator",
|
2021-01-16 02:34:15 +01:00
|
|
|
"src/tools/jsondocck",
|
2022-08-23 15:49:37 +02:00
|
|
|
"src/tools/jsondoclint",
|
2024-02-06 19:15:38 +01:00
|
|
|
"src/tools/llvm-bitcode-linker",
|
2021-04-23 16:43:18 +02:00
|
|
|
"src/tools/html-checker",
|
2021-08-26 11:26:03 +02:00
|
|
|
"src/tools/bump-stage0",
|
2022-08-23 22:14:12 +02:00
|
|
|
"src/tools/replace-version-placeholder",
|
2021-09-25 15:25:08 +02:00
|
|
|
"src/tools/lld-wrapper",
|
2022-11-15 10:19:17 +01:00
|
|
|
"src/tools/collect-license-metadata",
|
2022-11-15 11:27:19 +01:00
|
|
|
"src/tools/generate-copyright",
|
2023-03-01 10:17:08 +01:00
|
|
|
"src/tools/suggest-tests",
|
2023-04-15 12:57:07 +02:00
|
|
|
"src/tools/generate-windows-sys",
|
2023-05-20 13:40:11 +02:00
|
|
|
"src/tools/rustdoc-gui-test",
|
2023-06-03 09:41:44 +02:00
|
|
|
"src/tools/opt-dist",
|
2023-08-11 03:52:37 +02:00
|
|
|
"src/tools/coverage-dump",
|
2024-06-27 10:22:03 +02:00
|
|
|
"src/tools/rustc-perf-wrapper",
|
2024-06-24 21:30:44 +02:00
|
|
|
"src/tools/wasm-component-ld",
|
2018-07-26 23:58:55 +02:00
|
|
|
]
|
2020-11-02 04:43:51 +01:00
|
|
|
|
2018-07-26 23:58:55 +02:00
|
|
|
exclude = [
|
2018-11-25 13:59:52 +01:00
|
|
|
"build",
|
2020-10-15 14:23:43 +02:00
|
|
|
"compiler/rustc_codegen_cranelift",
|
2021-07-20 01:13:02 +02:00
|
|
|
"compiler/rustc_codegen_gcc",
|
2022-05-29 09:26:19 +02:00
|
|
|
"src/bootstrap",
|
2023-01-05 09:45:44 +01:00
|
|
|
"tests/rustdoc-gui",
|
2018-11-25 22:15:20 +01:00
|
|
|
# HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
|
|
|
|
"obj",
|
2020-11-02 04:43:51 +01: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-20 23:32:54 +02:00
|
|
|
]
|
|
|
|
|
2021-10-24 15:36:45 +02: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 15:33:51 +01: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-24 21:30:44 +02:00
|
|
|
[profile.release.package.wasm-component-ld-wrapper]
|
|
|
|
debug = 0
|
|
|
|
strip = true
|
2024-01-06 15:33:51 +01:00
|
|
|
|
2024-07-20 18:13:27 +02: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
|