mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-04 19:20:03 +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"
|
panic = "abort"
|
||||||
strip = "symbols"
|
strip = "symbols"
|
||||||
|
|
||||||
[profile.dev.build-override]
|
[profile.dev]
|
||||||
opt-level = 0
|
opt-level = 0
|
||||||
|
debug = true
|
||||||
|
lto = false
|
||||||
|
debug-assertions = true
|
||||||
|
overflow-checks = true
|
||||||
codegen-units = 1024
|
codegen-units = 1024
|
||||||
|
|
||||||
|
[profile.dev.build-override]
|
||||||
|
inherits = "dev"
|
||||||
debug = false
|
debug = false
|
||||||
debug-assertions = false
|
debug-assertions = false
|
||||||
overflow-checks = false
|
overflow-checks = false
|
||||||
incremental = false
|
incremental = false
|
||||||
|
|
||||||
[profile.release.build-override]
|
[profile.release.build-override]
|
||||||
opt-level = 0
|
inherits = "dev.build-override"
|
||||||
codegen-units = 1024
|
|
||||||
debug = false
|
|
||||||
debug-assertions = false
|
|
||||||
overflow-checks = false
|
|
||||||
incremental = false
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue