mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Simplify profile
overrides in Cargo.toml
using inherits
(#1051)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
9a7445a88f
commit
9103a661f1
1 changed files with 9 additions and 7 deletions
16
Cargo.toml
16
Cargo.toml
|
@ -20,18 +20,20 @@ codegen-units = 1
|
|||
panic = "abort"
|
||||
strip = "symbols"
|
||||
|
||||
[profile.dev.build-override]
|
||||
[profile.dev]
|
||||
opt-level = 0
|
||||
debug = true
|
||||
lto = false
|
||||
debug-assertions = true
|
||||
overflow-checks = true
|
||||
codegen-units = 1024
|
||||
|
||||
[profile.dev.build-override]
|
||||
inherits = "dev"
|
||||
debug = false
|
||||
debug-assertions = false
|
||||
overflow-checks = false
|
||||
incremental = false
|
||||
|
||||
[profile.release.build-override]
|
||||
opt-level = 0
|
||||
codegen-units = 1024
|
||||
debug = false
|
||||
debug-assertions = false
|
||||
overflow-checks = false
|
||||
incremental = false
|
||||
inherits = "dev.build-override"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue