I am trying to publish my first crate to crates.io.
When I build my project locally, I can pass the --release flag to get an optimized binary but when I do cargo publish --dry-run it seems to be building an unoptimized binary as this was the second-to-last line of the output:
Finished dev [unoptimized + debuginfo] target(s) in 24.79s
If possible, I would like to build and publish an optimized binary to crates.io.