meta: optimize builds with experimental compiler flags

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: Iec66d57dbad508080af9b00011d4b4276a6a6964
This commit is contained in:
raf 2026-02-10 12:55:46 +03:00
commit 764aafa88d
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

27
.cargo/config.toml Normal file
View file

@ -0,0 +1,27 @@
[unstable]
build-std = ["std", "panic_abort", "core", "alloc"]
[build]
rustflags = [
"-Clto",
"-Zvirtual-function-elimination",
"-Zlocation-detail=none",
]
[profile.dev]
opt-level = 0
debug = 1
split-debuginfo = "unpacked"
incremental = true
[profile.release]
opt-level = "z"
debug = false
lto = true
codegen-units = 1
panic = "abort"
strip = true
incremental = false