mmstick / cargo-deb

A cargo subcommand that generates Debian packages from information in Cargo.toml
615 stars 50 forks source link

profile.XXX.debug can be u32 or bool #68

Closed enizor closed 6 years ago

enizor commented 6 years ago

https://github.com/mmstick/cargo-deb/blob/4bd257dbd9700b1b587619c0938f2013e6e25e0d/src/manifest.rs#L405

Actually it can be an u32 (cargo code)

I did not totallly understand your fn strip_binaries(), but I think it should be fine to cast a 0 to false and any other integer to true.

I will create a PR if this behavior suits you.

kornelski commented 6 years ago

Yes, indeed, our parsing is not as flexible as Cargo's. Please make a PR.