diff options
-rw-r--r-- | Cargo.toml | 47 |
1 files changed, 22 insertions, 25 deletions
diff --git a/Cargo.toml b/Cargo.toml index 612e6809f..218581d9d 100644 --- a/Cargo.toml +++ b/Cargo.toml | |||
@@ -2,37 +2,34 @@ | |||
2 | members = [ "crates/*", "xtask/" ] | 2 | members = [ "crates/*", "xtask/" ] |
3 | 3 | ||
4 | [profile.dev] | 4 | [profile.dev] |
5 | # disabling debug info speeds up builds a bunch, | 5 | # Disabling debug info speeds up builds a bunch, |
6 | # and we don't rely on it for debugging that much. | 6 | # and we don't rely on it for debugging that much. |
7 | debug = 0 | 7 | debug = 0 |
8 | 8 | ||
9 | [profile.dev.package] | ||
10 | # These speed up local tests. | ||
11 | rowan.opt-level = 3 | ||
12 | rustc-hash.opt-level = 3 | ||
13 | smol_str.opt-level = 3 | ||
14 | text-size.opt-level = 3 | ||
15 | # This speeds up `cargo xtask dist`. | ||
16 | miniz_oxide.opt-level = 3 | ||
17 | |||
9 | [profile.release] | 18 | [profile.release] |
10 | incremental = true | 19 | incremental = true |
11 | debug = 0 # set this to 1 or 2 to get more useful backtraces in debugger | 20 | debug = 0 # Set this to 1 or 2 to get more useful backtraces in debugger. |
12 | |||
13 | # ideally, we would use `build-override` here, but some crates are also | ||
14 | # needed at run-time and we end up compiling them twice | ||
15 | [profile.release.package.proc-macro2] | ||
16 | opt-level = 0 | ||
17 | [profile.release.package.quote] | ||
18 | opt-level = 0 | ||
19 | [profile.release.package.syn] | ||
20 | opt-level = 0 | ||
21 | [profile.release.package.serde_derive] | ||
22 | opt-level = 0 | ||
23 | [profile.release.package.chalk-derive] | ||
24 | opt-level = 0 | ||
25 | [profile.release.package.salsa-macros] | ||
26 | opt-level = 0 | ||
27 | [profile.release.package.tracing-attributes] | ||
28 | opt-level = 0 | ||
29 | [profile.release.package.xtask] | ||
30 | opt-level = 0 | ||
31 | 21 | ||
32 | # Gzipping the artifacts is up to 10 times faster with optimizations (`cargo xtask dist`). | 22 | # Ideally, we would use `build-override` here, but some crates are also |
33 | # `miniz_oxide` is the direct dependency of `flate2` which does all the heavy lifting | 23 | # needed at run-time and we end up compiling them twice. |
34 | [profile.dev.package.miniz_oxide] | 24 | [profile.release.package] |
35 | opt-level = 3 | 25 | chalk-derive.opt-level = 0 |
26 | proc-macro2.opt-level = 0 | ||
27 | quote.opt-level = 0 | ||
28 | salsa-macros.opt-level = 0 | ||
29 | serde_derive.opt-level = 0 | ||
30 | syn.opt-level = 0 | ||
31 | tracing-attributes.opt-level = 0 | ||
32 | xtask.opt-level = 0 | ||
36 | 33 | ||
37 | [patch.'crates-io'] | 34 | [patch.'crates-io'] |
38 | # rowan = { path = "../rowan" } | 35 | # rowan = { path = "../rowan" } |