blob: 4e78399606445837adb68b0d7b0789c77a218a03 [file] [log] [blame]
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +03001[workspace]
Joshua Nelson687e53e2022-03-09 22:37:44 -06002default-members = ["src/bootstrap"]
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +03003members = [
4 "src/bootstrap",
mark9e5f7d52020-08-27 22:58:48 -05005 "compiler/rustc",
mark2c31b452020-06-11 21:31:49 -05006 "library/std",
7 "library/test",
Rune Tynan3076e252021-01-24 15:42:33 -05008 "src/rustdoc-json-types",
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +03009 "src/tools/cargotest",
10 "src/tools/clippy",
Joshua Nelson8c25e272021-04-14 09:20:49 -040011 "src/tools/clippy/clippy_dev",
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +030012 "src/tools/compiletest",
13 "src/tools/error_index_generator",
14 "src/tools/linkchecker",
Eric Huss45c1e0a2020-09-08 15:09:57 -070015 "src/tools/lint-docs",
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +030016 "src/tools/rustbook",
17 "src/tools/unstable-book-gen",
18 "src/tools/tidy",
Eric Hussce717472020-08-11 16:49:39 -070019 "src/tools/tier-check",
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +030020 "src/tools/build-manifest",
21 "src/tools/remote-test-client",
22 "src/tools/remote-test-server",
23 "src/tools/rust-installer",
Rich Kadela6f8b8a2020-07-02 11:27:15 -070024 "src/tools/rust-demangler",
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +030025 "src/tools/cargo",
Eric Huss74498c12020-12-16 09:03:33 -080026 "src/tools/cargo/crates/credential/cargo-credential-1password",
27 "src/tools/cargo/crates/credential/cargo-credential-macos-keychain",
28 "src/tools/cargo/crates/credential/cargo-credential-wincred",
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +030029 "src/tools/rustdoc",
30 "src/tools/rls",
31 "src/tools/rustfmt",
32 "src/tools/miri",
Ralf Jung759e4952020-06-01 20:17:20 +020033 "src/tools/miri/cargo-miri",
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +030034 "src/tools/rustdoc-themes",
Mark Rousskov064f8882020-01-13 16:40:19 -050035 "src/tools/unicode-table-generator",
Pietro Albini9beb8f52019-11-26 12:06:30 +010036 "src/tools/expand-yaml-anchors",
Rune Tynan77156562021-01-15 20:34:15 -050037 "src/tools/jsondocck",
Guillaume Gomez83a2bc32021-04-23 16:43:18 +020038 "src/tools/html-checker",
Pietro Albini80b81ad2021-08-26 11:26:03 +020039 "src/tools/bump-stage0",
Hans Kratz6162fc02021-09-25 15:25:08 +020040 "src/tools/lld-wrapper",
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +030041]
Casey Rodarmor5fc22f12020-11-01 19:43:51 -080042
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +030043exclude = [
Eduard-Mihai Burtescud9ca24e2018-11-25 14:59:52 +020044 "build",
bjorn3cf798c12020-10-15 14:23:43 +020045 "compiler/rustc_codegen_cranelift",
Antoni Boucher7132ce62021-07-19 19:13:02 -040046 "compiler/rustc_codegen_gcc",
Guillaume Gomez3bafcf82021-07-21 17:55:44 +020047 "src/test/rustdoc-gui",
Eduard-Mihai Burtescu6aa4eb92018-11-25 23:15:20 +020048 # HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
49 "obj",
Casey Rodarmor5fc22f12020-11-01 19:43:51 -080050 # The `x` binary is a thin wrapper that calls `x.py`, which initializes
51 # submodules, before which workspace members cannot be invoked because
52 # not all `Cargo.toml` files are available, so we exclude the `x` binary,
53 # so it can be invoked before the current checkout is set up.
54 "src/tools/x",
Joshua Nelson1b0b7e92021-04-02 04:11:46 -040055 # stdarch has its own Cargo workspace
56 "library/stdarch",
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +030057]
58
Alex Crichtond6156e82020-06-08 09:02:57 -070059[profile.release.package.compiler_builtins]
Alex Crichton3dfbf0b2020-06-15 07:54:20 -070060# The compiler-builtins crate cannot reference libcore, and it's own CI will
61# verify that this is the case. This requires, however, that the crate is built
62# without overflow checks and debug assertions. Forcefully disable debug
63# assertions and overflow checks here which should ensure that even if these
64# assertions are enabled for libstd we won't enable then for compiler_builtins
65# which should ensure we still link everything correctly.
66debug-assertions = false
67overflow-checks = false
68
Alex Crichtond6156e82020-06-08 09:02:57 -070069# For compiler-builtins we always use a high number of codegen units.
70# The goal here is to place every single intrinsic into its own object
71# file to avoid symbol clashes with the system libgcc if possible. Note
72# that this number doesn't actually produce this many object files, we
73# just don't create more than this number of object files.
74#
75# It's a bit of a bummer that we have to pass this here, unfortunately.
76# Ideally this would be specified through an env var to Cargo so Cargo
77# knows how many CGUs are for this specific crate, but for now
78# per-crate configuration isn't specifiable in the environment.
79codegen-units = 10000
80
Hans Kratzaacb4972021-10-24 15:36:45 +020081[profile.release.package.rustc-rayon-core]
82# The rustc fork of Rayon has deadlock detection code which intermittently
83# causes overflows in the CI (see https://github.com/rust-lang/rust/issues/90227)
84# so we turn overflow checks off for now.
85# FIXME: This workaround should be removed once #90227 is fixed.
86overflow-checks = false
87
Alex Crichton06d565c2020-05-13 14:22:37 -070088# These dependencies of the standard library implement symbolication for
89# backtraces on most platforms. Their debuginfo causes both linking to be slower
90# (more data to chew through) and binaries to be larger without really all that
91# much benefit. This section turns them all to down to have no debuginfo which
92# helps to improve link times a little bit.
93[profile.release.package]
94addr2line.debug = 0
95adler.debug = 0
96gimli.debug = 0
97miniz_oxide.debug = 0
98object.debug = 0
99
Joshua Nelson7f974d02021-10-10 21:16:01 -0500100# The only package that ever uses debug builds is bootstrap.
101# We care a lot about bootstrap's compile times, so don't include debug info for
102# dependencies, only bootstrap itself.
103[profile.dev]
104debug = 0
105[profile.dev.package]
106# Only use debuginfo=1 to further reduce compile times.
107bootstrap.debug = 1
108
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +0300109# We want the RLS to use the version of Cargo that we've got vendored in this
110# repository to ensure that the same exact version of Cargo is used by both the
111# RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
112# so we use a `[patch]` here to override the github repository with our local
113# vendored copy.
114[patch."https://github.com/rust-lang/cargo"]
115cargo = { path = "src/tools/cargo" }
Caleb Cartwrighte2fe4f22021-04-11 11:42:01 -0500116cargo-util = { path = "src/tools/cargo/crates/cargo-util" }
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +0300117
Igor Matuszewskie23f68a2020-08-18 12:45:20 +0200118[patch."https://github.com/rust-lang/rustfmt"]
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +0300119# Similar to Cargo above we want the RLS to use a vendored version of `rustfmt`
120# that we're shipping as well (to ensure that the rustfmt in RLS and the
121# `rustfmt` executable are the same exact version).
122rustfmt-nightly = { path = "src/tools/rustfmt" }
123
Igor Matuszewskie23f68a2020-08-18 12:45:20 +0200124[patch.crates-io]
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +0300125# See comments in `src/tools/rustc-workspace-hack/README.md` for what's going on
126# here
127rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' }
128
mark2c31b452020-06-11 21:31:49 -0500129# See comments in `library/rustc-std-workspace-core/README.md` for what's going on
Alex Crichton4c21a3b2018-11-19 21:52:50 -0800130# here
mark2c31b452020-06-11 21:31:49 -0500131rustc-std-workspace-core = { path = 'library/rustc-std-workspace-core' }
132rustc-std-workspace-alloc = { path = 'library/rustc-std-workspace-alloc' }
133rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
Alex Crichton4c21a3b2018-11-19 21:52:50 -0800134
Nick Cameron7a7445b2018-12-01 23:36:32 +1300135[patch."https://github.com/rust-lang/rust-clippy"]
Eduard-Mihai Burtescu7c166f52018-08-22 05:50:46 +0300136clippy_lints = { path = "src/tools/clippy/clippy_lints" }