2016-09-02 03:55:29 -05:00
|
|
|
[workspace]
|
|
|
|
members = [
|
2018-08-21 21:50:46 -05:00
|
|
|
"src/bootstrap",
|
|
|
|
"src/rustc",
|
|
|
|
"src/libstd",
|
|
|
|
"src/libtest",
|
|
|
|
"src/librustc_codegen_llvm",
|
|
|
|
"src/tools/cargotest",
|
|
|
|
"src/tools/clippy",
|
|
|
|
"src/tools/compiletest",
|
|
|
|
"src/tools/error_index_generator",
|
|
|
|
"src/tools/linkchecker",
|
|
|
|
"src/tools/rustbook",
|
|
|
|
"src/tools/unstable-book-gen",
|
|
|
|
"src/tools/tidy",
|
|
|
|
"src/tools/build-manifest",
|
|
|
|
"src/tools/remote-test-client",
|
|
|
|
"src/tools/remote-test-server",
|
|
|
|
"src/tools/rust-installer",
|
|
|
|
"src/tools/cargo",
|
|
|
|
"src/tools/rustdoc",
|
|
|
|
"src/tools/rls",
|
|
|
|
"src/tools/rustfmt",
|
|
|
|
"src/tools/miri",
|
|
|
|
"src/tools/rustdoc-themes",
|
2018-07-26 16:58:55 -05:00
|
|
|
]
|
|
|
|
exclude = [
|
2018-08-21 21:50:46 -05:00
|
|
|
"src/tools/rls/test_data",
|
2017-04-20 16:32:54 -05:00
|
|
|
]
|
|
|
|
|
2018-07-14 10:04:33 -05:00
|
|
|
# Curiously, LLVM 7.0 will segfault if compiled with opt-level=3
|
|
|
|
# See issue https://github.com/rust-lang/rust/issues/52378
|
|
|
|
[profile.release]
|
|
|
|
opt-level = 2
|
|
|
|
[profile.bench]
|
|
|
|
opt-level = 2
|
|
|
|
|
2016-11-16 11:19:02 -06:00
|
|
|
# These options are controlled from our rustc wrapper script, so turn them off
|
|
|
|
# here and have them controlled elsewhere.
|
|
|
|
[profile.dev]
|
|
|
|
debug = false
|
|
|
|
debug-assertions = false
|
|
|
|
[profile.test]
|
|
|
|
debug = false
|
|
|
|
debug-assertions = false
|
2017-04-29 18:11:58 -05:00
|
|
|
|
2018-01-08 15:56:22 -06:00
|
|
|
# We want the RLS to use the version of Cargo that we've got vendored in this
|
|
|
|
# repository to ensure that the same exact version of Cargo is used by both the
|
|
|
|
# RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
|
|
|
|
# so we use a `[patch]` here to override the github repository with our local
|
|
|
|
# vendored copy.
|
2017-09-11 19:17:31 -05:00
|
|
|
[patch."https://github.com/rust-lang/cargo"]
|
2018-08-21 21:50:46 -05:00
|
|
|
cargo = { path = "src/tools/cargo" }
|
2017-09-01 00:13:15 -05:00
|
|
|
|
2018-07-31 16:16:55 -05:00
|
|
|
[patch.crates-io]
|
2018-01-08 15:56:22 -06:00
|
|
|
# Similar to Cargo above we want the RLS to use a vendored version of `rustfmt`
|
|
|
|
# that we're shipping as well (to ensure that the rustfmt in RLS and the
|
2018-07-09 03:04:28 -05:00
|
|
|
# `rustfmt` executable are the same exact version).
|
2018-08-21 21:50:46 -05:00
|
|
|
rustfmt-nightly = { path = "src/tools/rustfmt" }
|
2018-07-09 03:04:28 -05:00
|
|
|
|
2018-08-21 21:50:46 -05:00
|
|
|
# See comments in `src/tools/rustc-workspace-hack/README.md` for what's going on
|
2018-07-31 16:16:55 -05:00
|
|
|
# here
|
2018-08-21 21:50:46 -05:00
|
|
|
rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' }
|
2018-07-31 16:16:55 -05:00
|
|
|
|
2018-07-09 03:04:28 -05:00
|
|
|
[patch."https://github.com/rust-lang-nursery/rust-clippy"]
|
2018-08-21 21:50:46 -05:00
|
|
|
clippy_lints = { path = "src/tools/clippy/clippy_lints" }
|
|
|
|
rustc_tools_util = { path = "src/tools/clippy/rustc_tools_util" }
|