kornelski / cargo-deb

Make Debian packages directly from Rust/Cargo projects
https://lib.rs/cargo-deb
MIT License
432 stars 52 forks source link

Use separate-debug-symbols value from Cargo.toml #130

Closed taladar closed 6 months ago

taladar commented 6 months ago

Previously this was documented to be configurable from the [[package.metadata.deb]] table but was in fact ignored and only the command line parameter was used.

This honors the value from Cargo.toml if no command line option is specified. The existing --separate-debug-symbols option can still be used to enable the inclusion of a separate debug symbol file. A new --no-separate-debug-symbols option can be used to suppress it, overriding a possible Cargo.toml value that would have led to its inclusion.

This should fix #129

I tested all combinations in a Debian bookworm container but there is no reason to believe that the behavior should differ on other Debian versions since this change is completely limited to the internal combination of the boolean values and does not touch the actual implementation of including a debug symbol file.

kornelski commented 6 months ago

Thank you!