cargo-bundle icon indicating copy to clipboard operation
cargo-bundle copied to clipboard

Release build as default

Open sourcebox opened this issue 3 years ago • 4 comments

When just running cargo bundle, a debug build is used, so you have to run cargo bundle --release for a release build. IMO this should be the default, because bundles is normally used for distribution and debug builds are kind of rare in this situation.

sourcebox avatar May 31 '21 10:05 sourcebox

I disagree, I think it should match cargo build as it does now, for consistency - otherwise I'll have to learn a --debug flag when I want to test my application as a bundle.

Though the documentation could spell out more explicitly that --release is needed.

madsmtm avatar May 31 '21 14:05 madsmtm

On the other hand, I use cargo-wix to create the Windows installer and this will always use a release build without any flags.

sourcebox avatar May 31 '21 14:05 sourcebox

cargo install also use --release as default

wiiznokes avatar Dec 09 '23 16:12 wiiznokes

I'll retract my earlier statement, I now agree that this should default to a release build, like cargo install.

madsmtm avatar Feb 20 '24 22:02 madsmtm