]> git.lizzy.rs Git - rust.git/blob - src/Cargo.toml
Auto merge of #52375 - oli-obk:the_early_lint_pass_gets_the_worm, r=Manishearth
[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   # FIXME(https://github.com/rust-lang/cargo/issues/4089): move these to exclude
27   "tools/rls/test_data/bin_lib",
28   "tools/rls/test_data/borrow_error",
29   "tools/rls/test_data/common",
30   "tools/rls/test_data/deglob",
31   "tools/rls/test_data/features",
32   "tools/rls/test_data/find_all_refs_no_cfg_test",
33   "tools/rls/test_data/find_impls",
34   "tools/rls/test_data/infer_bin",
35   "tools/rls/test_data/infer_custom_bin",
36   "tools/rls/test_data/infer_lib",
37   "tools/rls/test_data/multiple_bins",
38   "tools/rls/test_data/reformat",
39   "tools/rls/test_data/reformat_with_range",
40   "tools/rls/test_data/workspace_symbol",
41 ]
42
43 # Curiously, LLVM 7.0 will segfault if compiled with opt-level=3
44 # See issue https://github.com/rust-lang/rust/issues/52378
45 [profile.release]
46 opt-level = 2
47 [profile.bench]
48 opt-level = 2
49
50 # These options are controlled from our rustc wrapper script, so turn them off
51 # here and have them controlled elsewhere.
52 [profile.dev]
53 debug = false
54 debug-assertions = false
55 [profile.test]
56 debug = false
57 debug-assertions = false
58
59 # We want the RLS to use the version of Cargo that we've got vendored in this
60 # repository to ensure that the same exact version of Cargo is used by both the
61 # RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
62 # so we use a `[patch]` here to override the github repository with our local
63 # vendored copy.
64 [patch."https://github.com/rust-lang/cargo"]
65 cargo = { path = "tools/cargo" }
66
67 [patch."https://github.com/rust-lang-nursery/rustfmt"]
68 # Similar to Cargo above we want the RLS to use a vendored version of `rustfmt`
69 # that we're shipping as well (to ensure that the rustfmt in RLS and the
70 # `rustfmt` executable are the same exact version).
71 rustfmt-nightly = { path = "tools/rustfmt" }
72
73 [patch."https://github.com/rust-lang-nursery/rust-clippy"]
74 clippy_lints = { path = "tools/clippy/clippy_lints" }