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