Create profiles in Cargo.toml
Basic profiles for dev and release may differ for your preference but I like to use these Also I recommend you add authors of the project
This commit is contained in:
+18
@@ -27,3 +27,21 @@ paste = "1.0.15"
|
|||||||
dyn-clone = "1.0.17"
|
dyn-clone = "1.0.17"
|
||||||
flume = "=0.10.12"
|
flume = "=0.10.12"
|
||||||
osui-element = "0.1.23"
|
osui-element = "0.1.23"
|
||||||
|
|
||||||
|
# Basic profiles for dev and release
|
||||||
|
[profile.dev]
|
||||||
|
opt-level = 1
|
||||||
|
debug = true
|
||||||
|
debug-assertions = true
|
||||||
|
overflow-checks = true
|
||||||
|
lto = false
|
||||||
|
panic = 'unwind'
|
||||||
|
|
||||||
|
[profile.release]
|
||||||
|
opt-level = "z"
|
||||||
|
debug = false
|
||||||
|
debug-assertions = false
|
||||||
|
overflow-checks = false
|
||||||
|
lto = true
|
||||||
|
panic = 'abort'
|
||||||
|
codegen-units = 1
|
||||||
|
|||||||
Reference in New Issue
Block a user