kornelski / cargo-deb

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

Add support for cargo profiles. #14

Closed svenrademakers closed 2 years ago

svenrademakers commented 2 years ago

Hello! please consider the following PR :)

Currently cargo-deb only packages assets in the release profile. e.g. /target/release/...

My PR enables to create packages from debug or custom profiles. e.g. /target/my_custom_profile

You could work around this by creating an [package.metadata.deb.variants.$name] for each permutation, manually writing out the correct path to the assets. but in projects with x profiles times y projects this is not nice..

kornelski commented 2 years ago

Thank you