fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
2.3 KiB74 linesraw
1[workspace]
2members = [
3  "src/bootstrap",
4  "src/rustc",
5  "src/libstd",
6  "src/libtest",
7  "src/librustc_codegen_llvm",
8  "src/tools/cargotest",
9  "src/tools/clippy",
10  "src/tools/compiletest",
11  "src/tools/error_index_generator",
12  "src/tools/linkchecker",
13  "src/tools/rustbook",
14  "src/tools/unstable-book-gen",
15  "src/tools/tidy",
16  "src/tools/build-manifest",
17  "src/tools/remote-test-client",
18  "src/tools/remote-test-server",
19  "src/tools/rust-installer",
20  "src/tools/cargo",
21  "src/tools/rustdoc",
22  "src/tools/rls",
23  "src/tools/rustfmt",
24  "src/tools/miri",
25  "src/tools/rustdoc-themes",
26]
27exclude = [
28  "build",
29  # HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
30  "obj",
31]
32
33# Curiously, LLVM 7.0 will segfault if compiled with opt-level=3
34# See issue https://github.com/rust-lang/rust/issues/52378
35[profile.release]
36opt-level = 2
37[profile.bench]
38opt-level = 2
39
40# These options are controlled from our rustc wrapper script, so turn them off
41# here and have them controlled elsewhere.
42[profile.dev]
43debug = false
44debug-assertions = false
45[profile.test]
46debug = false
47debug-assertions = false
48
49# We want the RLS to use the version of Cargo that we've got vendored in this
50# repository to ensure that the same exact version of Cargo is used by both the
51# RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
52# so we use a `[patch]` here to override the github repository with our local
53# vendored copy.
54[patch."https://github.com/rust-lang/cargo"]
55cargo = { path = "src/tools/cargo" }
56
57[patch.crates-io]
58# Similar to Cargo above we want the RLS to use a vendored version of `rustfmt`
59# that we're shipping as well (to ensure that the rustfmt in RLS and the
60# `rustfmt` executable are the same exact version).
61rustfmt-nightly = { path = "src/tools/rustfmt" }
62
63# See comments in `src/tools/rustc-workspace-hack/README.md` for what's going on
64# here
65rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' }
66
67# See comments in `tools/rustc-std-workspace-core/README.md` for what's going on
68# here
69rustc-std-workspace-core = { path = 'src/tools/rustc-std-workspace-core' }
70rustc-std-workspace-alloc = { path = 'src/tools/rustc-std-workspace-alloc' }
71rustc-std-workspace-std = { path = 'src/tools/rustc-std-workspace-std' }
72
73[patch."https://github.com/rust-lang/rust-clippy"]
74clippy_lints = { path = "src/tools/clippy/clippy_lints" }