]> git.lizzy.rs Git - rust.git/blob - src/Cargo.toml
Fix test
[rust.git] / src / Cargo.toml
1 [workspace]
2 members = [
3   "bootstrap",
4   "rustc",
5   "libstd",
6   "libtest",
7   "librustc_trans",
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, compiletest will segfault if compiled with opt-level=3 on 64-bit
44 # MSVC when running the compile-fail test suite when a should-fail test panics.
45 # But hey if this is removed and it gets past the bots, sounds good to me.
46 [profile.release]
47 opt-level = 2
48 [profile.bench]
49 opt-level = 2
50
51 # These options are controlled from our rustc wrapper script, so turn them off
52 # here and have them controlled elsewhere.
53 [profile.dev]
54 debug = false
55 debug-assertions = false
56 [profile.test]
57 debug = false
58 debug-assertions = false
59
60 # We want the RLS to use the version of Cargo that we've got vendored in this
61 # repository to ensure that the same exact version of Cargo is used by both the
62 # RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
63 # so we use a `[patch]` here to override the github repository with our local
64 # vendored copy.
65 [patch."https://github.com/rust-lang/cargo"]
66 cargo = { path = "tools/cargo" }
67
68 [patch.crates-io]
69 # Similar to Cargo above we want the RLS to use a vendored version of `rustfmt`
70 # that we're shipping as well (to ensure that the rustfmt in RLS and the
71 # `rustfmt` executable are the same exact vesion). Unlike Cargo, however, the
72 # RLS depends on `rustfmt` from crates.io, so we put this in a `[patch]` section
73 # for crates.io
74 rustfmt-nightly = { path = "tools/rustfmt" }
75 clippy_lints = { path = "tools/clippy/clippy_lints" }