mmstick / cargo-deb

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

Building package using debug profile #184

Open jszwedko opened 3 years ago

jszwedko commented 3 years ago

Is it possible to change the profile that cargo deb uses from release? We build packages in CI as part of some correctness tests and would like to improve their build times by just using the debug build profile.

I attempted to export PROFILE=debug, but cargo deb still seems to build using release.

kornelski commented 3 years ago

It uses release profile only. There's a flag to skip building completely, but it will look for binaries in target/release anyway.

Maybe you can change opt-level of the release profile?

jszwedko commented 3 years ago

Yeah, that's a reasonable work-around. Thanks for suggesting @kornelski