fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1[workspace] 2resolver = "1" 3members = [ 4 "compiler/rustc", 5 "library/std", 6 "library/sysroot", 7 "src/rustdoc-json-types", 8 "src/tools/build_helper", 9 "src/tools/cargotest", 10 "src/tools/clippy", 11 "src/tools/clippy/clippy_dev", 12 "src/tools/compiletest", 13 "src/tools/error_index_generator", 14 "src/tools/linkchecker", 15 "src/tools/lint-docs", 16 "src/tools/miropt-test-tools", 17 "src/tools/rustbook", 18 "src/tools/unstable-book-gen", 19 "src/tools/tidy", 20 "src/tools/tier-check", 21 "src/tools/build-manifest", 22 "src/tools/remote-test-client", 23 "src/tools/remote-test-server", 24 "src/tools/rust-installer", 25 "src/tools/rust-demangler", 26 "src/tools/rustdoc", 27 "src/tools/rls", 28 "src/tools/rustfmt", 29 "src/tools/miri", 30 "src/tools/miri/cargo-miri", 31 "src/tools/rustdoc-themes", 32 "src/tools/unicode-table-generator", 33 "src/tools/expand-yaml-anchors", 34 "src/tools/jsondocck", 35 "src/tools/jsondoclint", 36 "src/tools/html-checker", 37 "src/tools/bump-stage0", 38 "src/tools/replace-version-placeholder", 39 "src/tools/lld-wrapper", 40 "src/tools/collect-license-metadata", 41 "src/tools/generate-copyright", 42 "src/tools/suggest-tests", 43 "src/tools/generate-windows-sys", 44 "src/tools/rustdoc-gui-test", 45 "src/tools/opt-dist", 46 "src/tools/coverage-dump", 47] 48 49exclude = [ 50 "build", 51 "compiler/rustc_codegen_cranelift", 52 "compiler/rustc_codegen_gcc", 53 "src/bootstrap", 54 "tests/rustdoc-gui", 55 # HACK(eddyb) This hardcodes the fact that our CI uses `/checkout/obj`. 56 "obj", 57 # The `x` binary is a thin wrapper that calls `x.py`, which initializes 58 # submodules, before which workspace members cannot be invoked because 59 # not all `Cargo.toml` files are available, so we exclude the `x` binary, 60 # so it can be invoked before the current checkout is set up. 61 "src/tools/x", 62 # stdarch has its own Cargo workspace 63 "library/stdarch", 64] 65 66[profile.release.package.compiler_builtins] 67# The compiler-builtins crate cannot reference libcore, and it's own CI will 68# verify that this is the case. This requires, however, that the crate is built 69# without overflow checks and debug assertions. Forcefully disable debug 70# assertions and overflow checks here which should ensure that even if these 71# assertions are enabled for libstd we won't enable them for compiler_builtins 72# which should ensure we still link everything correctly. 73debug-assertions = false 74overflow-checks = false 75 76# For compiler-builtins we always use a high number of codegen units. 77# The goal here is to place every single intrinsic into its own object 78# file to avoid symbol clashes with the system libgcc if possible. Note 79# that this number doesn't actually produce this many object files, we 80# just don't create more than this number of object files. 81# 82# It's a bit of a bummer that we have to pass this here, unfortunately. 83# Ideally this would be specified through an env var to Cargo so Cargo 84# knows how many CGUs are for this specific crate, but for now 85# per-crate configuration isn't specifiable in the environment. 86codegen-units = 10000 87 88[profile.release.package.rustc-rayon-core] 89# The rustc fork of Rayon has deadlock detection code which intermittently 90# causes overflows in the CI (see https://github.com/rust-lang/rust/issues/90227) 91# so we turn overflow checks off for now. 92# FIXME: This workaround should be removed once #90227 is fixed. 93overflow-checks = false 94 95# These dependencies of the standard library implement symbolication for 96# backtraces on most platforms. Their debuginfo causes both linking to be slower 97# (more data to chew through) and binaries to be larger without really all that 98# much benefit. This section turns them all to down to have no debuginfo which 99# helps to improve link times a little bit. 100[profile.release.package] 101addr2line.debug = 0 102adler.debug = 0 103gimli.debug = 0 104miniz_oxide.debug = 0 105object.debug = 0 106 107[patch.crates-io] 108# See comments in `library/rustc-std-workspace-core/README.md` for what's going on 109# here 110rustc-std-workspace-core = { path = 'library/rustc-std-workspace-core' } 111rustc-std-workspace-alloc = { path = 'library/rustc-std-workspace-alloc' } 112rustc-std-workspace-std = { path = 'library/rustc-std-workspace-std' } 113 114[patch."https://github.com/rust-lang/rust-clippy"] 115clippy_lints = { path = "src/tools/clippy/clippy_lints" }