Reblogged by rust@octodon.social ("Rust tips"):
nnethercote@mas.to ("Nicholas Nethercote") wrote:
TIL cargo supports custom profiles, in addition to the four standard built-in ones (dev, release, test, bench).
https://doc.rust-lang.org/cargo/reference/profiles.html#custom-profiles
You can use a custom profile by using `--profile` with a command such as `cargo build`.