|
| 1 | +[workspace] |
| 2 | +resolver = "1" |
| 3 | +members = [ |
| 4 | + "std", |
| 5 | + "sysroot", |
| 6 | +] |
| 7 | + |
| 8 | +exclude = [ |
| 9 | + # stdarch has its own Cargo workspace |
| 10 | + "stdarch", |
| 11 | +] |
| 12 | + |
| 13 | +[profile.release.package.compiler_builtins] |
| 14 | +# For compiler-builtins we always use a high number of codegen units. |
| 15 | +# The goal here is to place every single intrinsic into its own object |
| 16 | +# file to avoid symbol clashes with the system libgcc if possible. Note |
| 17 | +# that this number doesn't actually produce this many object files, we |
| 18 | +# just don't create more than this number of object files. |
| 19 | +# |
| 20 | +# It's a bit of a bummer that we have to pass this here, unfortunately. |
| 21 | +# Ideally this would be specified through an env var to Cargo so Cargo |
| 22 | +# knows how many CGUs are for this specific crate, but for now |
| 23 | +# per-crate configuration isn't specifiable in the environment. |
| 24 | +codegen-units = 10000 |
| 25 | + |
| 26 | +# These dependencies of the standard library implement symbolication for |
| 27 | +# backtraces on most platforms. Their debuginfo causes both linking to be slower |
| 28 | +# (more data to chew through) and binaries to be larger without really all that |
| 29 | +# much benefit. This section turns them all to down to have no debuginfo which |
| 30 | +# helps to improve link times a little bit. |
| 31 | +[profile.release.package] |
| 32 | +addr2line.debug = 0 |
| 33 | +adler.debug = 0 |
| 34 | +gimli.debug = 0 |
| 35 | +miniz_oxide.debug = 0 |
| 36 | +object.debug = 0 |
| 37 | +rustc-demangle.debug = 0 |
| 38 | + |
| 39 | +[patch.crates-io] |
| 40 | +# See comments in `library/rustc-std-workspace-core/README.md` for what's going on |
| 41 | +# here |
| 42 | +rustc-std-workspace-core = { path = 'rustc-std-workspace-core' } |
| 43 | +rustc-std-workspace-alloc = { path = 'rustc-std-workspace-alloc' } |
| 44 | +rustc-std-workspace-std = { path = 'rustc-std-workspace-std' } |
0 commit comments