Skip to content

DesignCraft: An open-source page and layout design editor written by scratch in pure Rust

CI: dev profile keeps line tables only

aiongg079b5bea8202
diff --git a/Cargo.toml b/Cargo.toml
index bc5982898..8a83e0463 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -103,11 +103,16 @@ todo = "warn"
too_many_arguments = "allow"
type_complexity = "allow"
+# Line tables keep file and line in panics and backtraces; full debug info
+# for every test binary and dependency would multiply the target dir size.
+# The test profile inherits both settings.
[profile.dev.package."*"]
opt-level = 2
+debug = false
[profile.dev]
opt-level = 1
+debug = "line-tables-only"
[profile.release]
opt-level = 3