]> git.proxmox.com Git - rustc.git/blob - Cargo.toml
Update upstream source from tag 'upstream/1.48.0_beta.8+dfsg1'
[rustc.git] / Cargo.toml
1 [workspace]
2 members = [
3 "src/bootstrap",
4 "compiler/rustc",
5 "library/std",
6 "library/test",
7 "src/tools/cargotest",
8 "src/tools/clippy",
9 "src/tools/compiletest",
10 "src/tools/error_index_generator",
11 "src/tools/linkchecker",
12 "src/tools/lint-docs",
13 "src/tools/rustbook",
14 "src/tools/unstable-book-gen",
15 "src/tools/tidy",
16 "src/tools/tier-check",
17 "src/tools/build-manifest",
18 "src/tools/remote-test-client",
19 "src/tools/remote-test-server",
20 "src/tools/rust-installer",
21 "src/tools/rust-demangler",
22 "src/tools/cargo",
23 "src/tools/rustdoc",
24 "src/tools/rls",
25 "src/tools/rustfmt",
26 "src/tools/miri",
27 "src/tools/miri/cargo-miri",
28 "src/tools/rustdoc-themes",
29 "src/tools/unicode-table-generator",
30 "src/tools/expand-yaml-anchors",
31 ]
32 exclude = [
33 "build",
34 # HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
35 "obj",
36 ]
37
38 [profile.release.package.compiler_builtins]
39 # The compiler-builtins crate cannot reference libcore, and it's own CI will
40 # verify that this is the case. This requires, however, that the crate is built
41 # without overflow checks and debug assertions. Forcefully disable debug
42 # assertions and overflow checks here which should ensure that even if these
43 # assertions are enabled for libstd we won't enable then for compiler_builtins
44 # which should ensure we still link everything correctly.
45 debug-assertions = false
46 overflow-checks = false
47
48 # For compiler-builtins we always use a high number of codegen units.
49 # The goal here is to place every single intrinsic into its own object
50 # file to avoid symbol clashes with the system libgcc if possible. Note
51 # that this number doesn't actually produce this many object files, we
52 # just don't create more than this number of object files.
53 #
54 # It's a bit of a bummer that we have to pass this here, unfortunately.
55 # Ideally this would be specified through an env var to Cargo so Cargo
56 # knows how many CGUs are for this specific crate, but for now
57 # per-crate configuration isn't specifiable in the environment.
58 codegen-units = 10000
59
60 # These dependencies of the standard library implement symbolication for
61 # backtraces on most platforms. Their debuginfo causes both linking to be slower
62 # (more data to chew through) and binaries to be larger without really all that
63 # much benefit. This section turns them all to down to have no debuginfo which
64 # helps to improve link times a little bit.
65 [profile.release.package]
66 addr2line.debug = 0
67 adler.debug = 0
68 gimli.debug = 0
69 miniz_oxide.debug = 0
70 object.debug = 0
71
72 # We want the RLS to use the version of Cargo that we've got vendored in this
73 # repository to ensure that the same exact version of Cargo is used by both the
74 # RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
75 # so we use a `[patch]` here to override the github repository with our local
76 # vendored copy.
77 [patch."https://github.com/rust-lang/cargo"]
78 cargo = { path = "src/tools/cargo" }
79
80 [patch."https://github.com/rust-lang/rustfmt"]
81 # Similar to Cargo above we want the RLS to use a vendored version of `rustfmt`
82 # that we're shipping as well (to ensure that the rustfmt in RLS and the
83 # `rustfmt` executable are the same exact version).
84 rustfmt-nightly = { path = "src/tools/rustfmt" }
85
86 [patch.crates-io]
87 # See comments in `src/tools/rustc-workspace-hack/README.md` for what's going on
88 # here
89 rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' }
90
91 # See comments in `library/rustc-std-workspace-core/README.md` for what's going on
92 # here
93 rustc-std-workspace-core = { path = 'library/rustc-std-workspace-core' }
94 rustc-std-workspace-alloc = { path = 'library/rustc-std-workspace-alloc' }
95 rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' }
96
97 # This crate's integration with libstd is a bit wonky, so we use a submodule
98 # instead of a crates.io dependency. Make sure everything else in the repo is
99 # also using the submodule, however, so we can avoid duplicate copies of the
100 # source code for this crate.
101 backtrace = { path = "library/backtrace" }
102
103 [patch."https://github.com/rust-lang/rust-clippy"]
104 clippy_lints = { path = "src/tools/clippy/clippy_lints" }