kornelski / cargo-deb

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

Enable building with cargo profiles #16

Closed svenrademakers closed 2 years ago

svenrademakers commented 2 years ago

Hello, thank you for processing my recent PR's!

so my previous PR only supports --profile with --no-build. this PR enables to actually build the profile passed on to the CLI options.

e.g. you can do for instance 'cargo deb -p my_package --manifest-path applications/my_app/Cargo.toml --profile RelWithDebInfo --no-strip'

The other guy from the issue list will probably be happy to get it as well.

PS; you probably already know, but there is quite some technical debt in the build flags support.. i shouldnt really need to explicitly pass --no-strip if my cargo profile states that i want debug symbols

kornelski commented 2 years ago

Thanks