isolate build profiles; optimize dev

This commit is contained in:
raf 2024-08-05 02:02:58 +03:00
parent 7bed1f583b
commit 5c335d179e
Signed by: NotAShelf
GPG key ID: AF26552424E53993

View file

@ -7,9 +7,19 @@ edition = "2021"
nix = {version = "0.29", features = ["fs", "hostname"]} nix = {version = "0.29", features = ["fs", "hostname"]}
color-eyre = { version = "0.6", default-features = false } color-eyre = { version = "0.6", default-features = false }
[profile.dev]
opt-level = 3
[profile.release] [profile.release]
strip = true strip = true
opt-level = "z" opt-level = "z"
lto = true lto = true
codegen-units = 1 codegen-units = 1
panic = "abort" panic = "abort"
[profile.profiler]
inherits = "release"
debug = true
split-debuginfo = "unpacked"
strip = "none"