]> git.lizzy.rs Git - rust.git/blob - Cargo.toml
remove rustdoc warnings
[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/miri/cargo-miri",
26   "src/tools/rustdoc-themes",
27   "src/tools/unicode-table-generator",
28   "src/tools/expand-yaml-anchors",
29 ]
30 exclude = [
31   "build",
32   # HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`.
33   "obj",
34 ]
35
36 [profile.release.package.compiler_builtins]
37 # The compiler-builtins crate cannot reference libcore, and it's own CI will
38 # verify that this is the case. This requires, however, that the crate is built
39 # without overflow checks and debug assertions. Forcefully disable debug
40 # assertions and overflow checks here which should ensure that even if these
41 # assertions are enabled for libstd we won't enable then for compiler_builtins
42 # which should ensure we still link everything correctly.
43 debug-assertions = false
44 overflow-checks = false
45
46 # For compiler-builtins we always use a high number of codegen units.
47 # The goal here is to place every single intrinsic into its own object
48 # file to avoid symbol clashes with the system libgcc if possible. Note
49 # that this number doesn't actually produce this many object files, we
50 # just don't create more than this number of object files.
51 #
52 # It's a bit of a bummer that we have to pass this here, unfortunately.
53 # Ideally this would be specified through an env var to Cargo so Cargo
54 # knows how many CGUs are for this specific crate, but for now
55 # per-crate configuration isn't specifiable in the environment.
56 codegen-units = 10000
57
58 # We want the RLS to use the version of Cargo that we've got vendored in this
59 # repository to ensure that the same exact version of Cargo is used by both the
60 # RLS and the Cargo binary itself. The RLS depends on Cargo as a git repository
61 # so we use a `[patch]` here to override the github repository with our local
62 # vendored copy.
63 [patch."https://github.com/rust-lang/cargo"]
64 cargo = { path = "src/tools/cargo" }
65
66 [patch.crates-io]
67 # Similar to Cargo above we want the RLS to use a vendored version of `rustfmt`
68 # that we're shipping as well (to ensure that the rustfmt in RLS and the
69 # `rustfmt` executable are the same exact version).
70 rustfmt-nightly = { path = "src/tools/rustfmt" }
71
72 # See comments in `src/tools/rustc-workspace-hack/README.md` for what's going on
73 # here
74 rustc-workspace-hack = { path = 'src/tools/rustc-workspace-hack' }
75
76 # See comments in `tools/rustc-std-workspace-core/README.md` for what's going on
77 # here
78 rustc-std-workspace-core = { path = 'src/tools/rustc-std-workspace-core' }
79 rustc-std-workspace-alloc = { path = 'src/tools/rustc-std-workspace-alloc' }
80 rustc-std-workspace-std = { path = 'src/tools/rustc-std-workspace-std' }
81
82 [patch."https://github.com/rust-lang/rust-clippy"]
83 clippy_lints = { path = "src/tools/clippy/clippy_lints" }