Skip to content

misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux

Debug builds: dependencies keep only file and line info (#46)

Ahmed Nefzaoui06428db15d96
diff --git a/Cargo.toml b/Cargo.toml
index 981cb7ca..84d07347 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -228,6 +228,12 @@ opt-level = 3
[profile.dev.package.brotli-decompressor]
opt-level = 3
+# Dependencies' debug info: file:line only, so backtraces still name them, in debug symbols a
+# fraction of the size (every test program links them all). MDM's own crates keep full debug
+# info, for stepping through them in a debugger.
+[profile.dev.package."*"]
+debug = "line-tables-only"
+
# storytold's egui fork (as storytold/craft-libs, D-003) plus two MDM commits on anefzaoui/egui
# (branch mdm-accesskit-windows): every window created hidden gets an AccessKit adapter, so
# screen readers read the dialogs and menus; and a dialog opened while the main window is