diff --git a/Cargo.toml b/Cargo.toml index eaca1a9..860601d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,9 +17,15 @@ categories = ["multimedia::images", "science"] [profile.test] inherits = "release" +# Full debug info goes in the TEST profile only (readable cargo-test +# backtraces). It must NOT be in the release profile: on ELF targets +# (Linux/musl wheels) the DWARF gets embedded in the .so (~160 MB, over +# PyPI's 100 MB limit) - MSVC puts it in a sidecar .pdb and the +# apple/zig link path drops it, which is why only the Linux wheels were +# bloated. +debug = true [profile.release] -debug = true [profile.dev.package.backtrace] opt-level = 3