]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
Rename `Alloc` to `AllocRef`
[rust.git] / Cargo.toml
1 [workspace]
2 members = [
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   "src/tools/unicode-table-generator",
27 ]
28 exclude = [
29   "build",
30   # HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
31   "obj",
32 ]
33
34 # Curiously, LLVM 7.0 will segfault if compiled with opt-level=3
35 # See issue https://github.com/rust-lang/rust/issues/52378
36 [profile.release]
37 opt-level = 2
38 [profile.bench]
39 opt-level = 2
40
41 # These options are controlled from our rustc wrapper script, so turn them off
42 # here and have them controlled elsewhere.
43 [profile.dev]
44 debug = false
45 debug-assertions = false
46 [profile.test]
47 debug = false
48 debug-assertions = false
49
50 # We want the RLS to use the version of Cargo that we've got vendored in this
51 # repository to ensure that the same exact version of Cargo is used by both the
52 # RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
53 # so we use a `[patch]` here to override the github repository with our local
54 # vendored copy.
55 [patch."https://github.com/rust-lang/cargo"]
56 cargo = { path = "src/tools/cargo" }
57
58 [patch.crates-io]
59 # Similar to Cargo above we want the RLS to use a vendored version of `rustfmt`
60 # that we're shipping as well (to ensure that the rustfmt in RLS and the
61 # `rustfmt` executable are the same exact version).
62 rustfmt-nightly = { path = "src/tools/rustfmt" }
63
64 # See comments in `src/tools/rustc-workspace-hack/README.md` for what's going on
65 # here
66 rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' }
67
68 # See comments in `tools/rustc-std-workspace-core/README.md` for what's going on
69 # here
70 rustc-std-workspace-core = { path = 'src/tools/rustc-std-workspace-core' }
71 rustc-std-workspace-alloc = { path = 'src/tools/rustc-std-workspace-alloc' }
72 rustc-std-workspace-std = { path = 'src/tools/rustc-std-workspace-std' }
73
74 [patch."https://github.com/rust-lang/rust-clippy"]
75 clippy_lints = { path = "src/tools/clippy/clippy_lints" }