I need to publish a crate to crates.io. When i use
cargo package, it builds an unoptimized package. I get this at the end of output
Finished dev [unoptimized + debuginfo] target(s) in 17.55s
--release flag does not work with
package. If i clean the
target/packages directory and try to publish directly using
publish, it still builds the unoptimized version as i get this at the end of output.
Finished dev [unoptimized + debuginfo] target(s) in 7.03s
Is there a way to publish an optimized build?