5801: Speedup tests in dev mode
 r=matklad a=matklad

bors r+
🤖

Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
bors[bot] 2020-08-18 15:45:37 +00:00 committed by GitHub
commit f7a8ce3525
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,37 +2,34 @@
members = [ "crates/*", "xtask/" ] members = [ "crates/*", "xtask/" ]
[profile.dev] [profile.dev]
# disabling debug info speeds up builds a bunch, # Disabling debug info speeds up builds a bunch,
# and we don't rely on it for debugging that much. # and we don't rely on it for debugging that much.
debug = 0 debug = 0
[profile.dev.package]
# These speed up local tests.
rowan.opt-level = 3
rustc-hash.opt-level = 3
smol_str.opt-level = 3
text-size.opt-level = 3
# This speeds up `cargo xtask dist`.
miniz_oxide.opt-level = 3
[profile.release] [profile.release]
incremental = true incremental = true
debug = 0 # set this to 1 or 2 to get more useful backtraces in debugger debug = 0 # Set this to 1 or 2 to get more useful backtraces in debugger.
# ideally, we would use `build-override` here, but some crates are also # Ideally, we would use `build-override` here, but some crates are also
# needed at run-time and we end up compiling them twice # needed at run-time and we end up compiling them twice.
[profile.release.package.proc-macro2] [profile.release.package]
opt-level = 0 chalk-derive.opt-level = 0
[profile.release.package.quote] proc-macro2.opt-level = 0
opt-level = 0 quote.opt-level = 0
[profile.release.package.syn] salsa-macros.opt-level = 0
opt-level = 0 serde_derive.opt-level = 0
[profile.release.package.serde_derive] syn.opt-level = 0
opt-level = 0 tracing-attributes.opt-level = 0
[profile.release.package.chalk-derive] xtask.opt-level = 0
opt-level = 0
[profile.release.package.salsa-macros]
opt-level = 0
[profile.release.package.tracing-attributes]
opt-level = 0
[profile.release.package.xtask]
opt-level = 0
# Gzipping the artifacts is up to 10 times faster with optimizations (`cargo xtask dist`).
# `miniz_oxide` is the direct dependency of `flate2` which does all the heavy lifting
[profile.dev.package.miniz_oxide]
opt-level = 3
[patch.'crates-io'] [patch.'crates-io']
# rowan = { path = "../rowan" } # rowan = { path = "../rowan" }