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"]}
color-eyre = { version = "0.6", default-features = false }
[profile.dev]
opt-level = 3
[profile.release]
strip = true
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
[profile.profiler]
inherits = "release"
debug = true
split-debuginfo = "unpacked"
strip = "none"