diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..fdec85a --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,10 @@ +# SPDX-FileCopyrightText: 2026 Qyriad +# +# SPDX-License-Identifier: EUPL-1.1 +# vim: tabstop=2 shiftwidth=0 noexpandtab + +[build] +rustflags = [ + "-C", "force-frame-pointers=yes", + "-C", "force-unwind-tables=yes", +] diff --git a/Cargo.toml b/Cargo.toml index 495e9e4..7408fb0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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