]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
Skip LTO in stage0 (again)
[rust.git] / Cargo.toml
1 [workspace]
2 members = [
3   "compiler/rustc",
4   "library/std",
5   "library/test",
6   "src/rustdoc-json-types",
7   "src/tools/cargotest",
8   "src/tools/clippy",
9   "src/tools/clippy/clippy_dev",
10   "src/tools/compiletest",
11   "src/tools/error_index_generator",
12   "src/tools/linkchecker",
13   "src/tools/lint-docs",
14   "src/tools/miropt-test-tools",
15   "src/tools/rustbook",
16   "src/tools/unstable-book-gen",
17   "src/tools/tidy",
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",
24   "src/tools/cargo",
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",
28   "src/tools/cargo/crates/mdman",
29   # "src/tools/cargo/crates/resolver-tests",
30   "src/tools/rustdoc",
31   "src/tools/rls",
32   "src/tools/rustfmt",
33   "src/tools/miri",
34   "src/tools/miri/cargo-miri",
35   "src/tools/rustdoc-themes",
36   "src/tools/unicode-table-generator",
37   "src/tools/expand-yaml-anchors",
38   "src/tools/jsondocck",
39   "src/tools/jsondoclint",
40   "src/tools/html-checker",
41   "src/tools/bump-stage0",
42   "src/tools/replace-version-placeholder",
43   "src/tools/lld-wrapper",
44   "src/tools/collect-license-metadata",
45   "src/tools/generate-copyright",
46 ]
47
48 exclude = [
49   "build",
50   "compiler/rustc_codegen_cranelift",
51   "compiler/rustc_codegen_gcc",
52   "src/bootstrap",
53   "src/test/rustdoc-gui",
54   # HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
55   "obj",
56   # The `x` binary is a thin wrapper that calls `x.py`, which initializes
57   # submodules, before which workspace members cannot be invoked because
58   # not all `Cargo.toml` files are available, so we exclude the `x` binary,
59   # so it can be invoked before the current checkout is set up.
60   "src/tools/x",
61   # stdarch has its own Cargo workspace
62   "library/stdarch",
63 ]
64
65 [profile.release.package.compiler_builtins]
66 # The compiler-builtins crate cannot reference libcore, and it's own CI will
67 # verify that this is the case. This requires, however, that the crate is built
68 # without overflow checks and debug assertions. Forcefully disable debug
69 # assertions and overflow checks here which should ensure that even if these
70 # assertions are enabled for libstd we won't enable them for compiler_builtins
71 # which should ensure we still link everything correctly.
72 debug-assertions = false
73 overflow-checks = false
74
75 # For compiler-builtins we always use a high number of codegen units.
76 # The goal here is to place every single intrinsic into its own object
77 # file to avoid symbol clashes with the system libgcc if possible. Note
78 # that this number doesn't actually produce this many object files, we
79 # just don't create more than this number of object files.
80 #
81 # It's a bit of a bummer that we have to pass this here, unfortunately.
82 # Ideally this would be specified through an env var to Cargo so Cargo
83 # knows how many CGUs are for this specific crate, but for now
84 # per-crate configuration isn't specifiable in the environment.
85 codegen-units = 10000
86
87 [profile.release.package.rustc-rayon-core]
88 # The rustc fork of Rayon has deadlock detection code which intermittently
89 # causes overflows in the CI (see https://github.com/rust-lang/rust/issues/90227)
90 # so we turn overflow checks off for now.
91 # FIXME: This workaround should be removed once #90227 is fixed.
92 overflow-checks = false
93
94 # These dependencies of the standard library implement symbolication for
95 # backtraces on most platforms. Their debuginfo causes both linking to be slower
96 # (more data to chew through) and binaries to be larger without really all that
97 # much benefit. This section turns them all to down to have no debuginfo which
98 # helps to improve link times a little bit.
99 [profile.release.package]
100 addr2line.debug = 0
101 adler.debug = 0
102 gimli.debug = 0
103 miniz_oxide.debug = 0
104 object.debug = 0
105
106 [patch.crates-io]
107 # See comments in `src/tools/rustc-workspace-hack/README.md` for what's going on
108 # here
109 rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' }
110
111 # See comments in `library/rustc-std-workspace-core/README.md` for what's going on
112 # here
113 rustc-std-workspace-core = { path = 'library/rustc-std-workspace-core' }
114 rustc-std-workspace-alloc = { path = 'library/rustc-std-workspace-alloc' }
115 rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
116
117 [patch."https://github.com/rust-lang/rust-clippy"]
118 clippy_lints = { path = "src/tools/clippy/clippy_lints" }