customize Cargo a bit, for now

This commit is contained in:
Qyriad 2026-03-22 15:57:38 +01:00
parent 373e300b59
commit e016c37634
2 changed files with 26 additions and 0 deletions

10
.cargo/config.toml Normal file
View file

@ -0,0 +1,10 @@
# SPDX-FileCopyrightText: 2026 Qyriad <qyriad@qyriad.me>
#
# SPDX-License-Identifier: EUPL-1.1
# vim: tabstop=2 shiftwidth=0 noexpandtab
[build]
rustflags = [
"-C", "force-frame-pointers=yes",
"-C", "force-unwind-tables=yes",
]

View file

@ -47,3 +47,19 @@ tap = "1.0.1"
tracing = { version = "0.1.44", features = ["attributes"] }
tracing-human-layer = "0.2.1"
tracing-subscriber = { version = "0.3.22", default-features = false, features = ["std", "env-filter", "fmt", "ansi", "registry", "parking_lot"] }
[profile.dev]
opt-level = 1
lto = "thin"
[profile.release]
debug = true
debug-assertions = true
lto = true
[profile.dev.package."*"]
opt-level = 1
[profile.release.package."*"]
debug = true
debug-assertions = true