PdfCraft: An open-source PDF reader and editor written by scratch in pure Rust
Fix #454: dependencies keep only line tables in dev builds (#559)
Brandon Thomase5b37b8b9e01
diff --git a/Cargo.toml b/Cargo.tomlindex 37f8fe308..c713ac86c 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -75,8 +75,14 @@ unsafe_code = "forbid"dbg_macro = "warn"todo = "warn"+# `"*"` matches every non-workspace package: crates.io dependencies and the+# vendored crates under `vendor/` (excluded from the workspace). Our own crates+# keep full debug info. Dependencies keep only line tables, so backtraces still+# show file and line, but debug info for the whole dependency graph stays out of+# every test binary (each UI test binary had a 500-600 MB PDB on Windows, #454).[profile.dev.package."*"]opt-level = 2+debug = "line-tables-only"[profile.dev]opt-level = 1