Faster debug builds by excluding debug symbols

This also cleans up the release profile in Cargo.toml, which was having its default settings overridden with identical default settings.
This commit is contained in:
Benjamin Sago 2021-04-01 10:30:21 +01:00
parent 622904d07c
commit 83f245237b
1 changed files with 6 additions and 3 deletions

View File

@ -52,11 +52,14 @@ default = [ "git" ]
git = [ "git2" ]
vendored-openssl = ["git2/vendored-openssl"]
[profile.release]
opt-level = 3
# make dev builds faster by excluding debug symbols
[profile.dev]
debug = false
# use LTO for smaller binaries (that take longer to build)
[profile.release]
lto = true
panic = "abort"
[package.metadata.deb]