7 "src/rustdoc-json-types",
10 "src/tools/clippy/clippy_dev",
11 "src/tools/compiletest",
12 "src/tools/error_index_generator",
13 "src/tools/linkchecker",
14 "src/tools/lint-docs",
16 "src/tools/unstable-book-gen",
18 "src/tools/tier-check",
19 "src/tools/build-manifest",
20 "src/tools/remote-test-client",
21 "src/tools/remote-test-server",
22 "src/tools/rust-installer",
23 "src/tools/rust-demangler",
25 "src/tools/cargo/crates/credential/cargo-credential-1password",
26 "src/tools/cargo/crates/credential/cargo-credential-macos-keychain",
27 "src/tools/cargo/crates/credential/cargo-credential-wincred",
32 "src/tools/miri/cargo-miri",
33 "src/tools/rustdoc-themes",
34 "src/tools/unicode-table-generator",
35 "src/tools/expand-yaml-anchors",
36 "src/tools/jsondocck",
37 "src/tools/html-checker",
42 "compiler/rustc_codegen_cranelift",
43 # HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
45 # The `x` binary is a thin wrapper that calls `x.py`, which initializes
46 # submodules, before which workspace members cannot be invoked because
47 # not all `Cargo.toml` files are available, so we exclude the `x` binary,
48 # so it can be invoked before the current checkout is set up.
50 # stdarch has its own Cargo workspace
54 [profile.release.package.compiler_builtins]
55 # The compiler-builtins crate cannot reference libcore, and it's own CI will
56 # verify that this is the case. This requires, however, that the crate is built
57 # without overflow checks and debug assertions. Forcefully disable debug
58 # assertions and overflow checks here which should ensure that even if these
59 # assertions are enabled for libstd we won't enable then for compiler_builtins
60 # which should ensure we still link everything correctly.
61 debug-assertions = false
62 overflow-checks = false
64 # For compiler-builtins we always use a high number of codegen units.
65 # The goal here is to place every single intrinsic into its own object
66 # file to avoid symbol clashes with the system libgcc if possible. Note
67 # that this number doesn't actually produce this many object files, we
68 # just don't create more than this number of object files.
70 # It's a bit of a bummer that we have to pass this here, unfortunately.
71 # Ideally this would be specified through an env var to Cargo so Cargo
72 # knows how many CGUs are for this specific crate, but for now
73 # per-crate configuration isn't specifiable in the environment.
76 # These dependencies of the standard library implement symbolication for
77 # backtraces on most platforms. Their debuginfo causes both linking to be slower
78 # (more data to chew through) and binaries to be larger without really all that
79 # much benefit. This section turns them all to down to have no debuginfo which
80 # helps to improve link times a little bit.
81 [profile.release.package]
88 # We want the RLS to use the version of Cargo that we've got vendored in this
89 # repository to ensure that the same exact version of Cargo is used by both the
90 # RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
91 # so we use a `[patch]` here to override the github repository with our local
93 [patch."https://github.com/rust-lang/cargo"]
94 cargo = { path = "src/tools/cargo" }
95 cargo-util = { path = "src/tools/cargo/crates/cargo-util" }
97 [patch."https://github.com/rust-lang/rustfmt"]
98 # Similar to Cargo above we want the RLS to use a vendored version of `rustfmt`
99 # that we're shipping as well (to ensure that the rustfmt in RLS and the
100 # `rustfmt` executable are the same exact version).
101 rustfmt-nightly = { path = "src/tools/rustfmt" }
104 # See comments in `src/tools/rustc-workspace-hack/README.md` for what's going on
106 rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' }
108 # See comments in `library/rustc-std-workspace-core/README.md` for what's going on
110 rustc-std-workspace-core = { path = 'library/rustc-std-workspace-core' }
111 rustc-std-workspace-alloc = { path = 'library/rustc-std-workspace-alloc' }
112 rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
114 [patch."https://github.com/rust-lang/rust-clippy"]
115 clippy_lints = { path = "src/tools/clippy/clippy_lints" }