The following command
$ cargo build
produces a non-optimized build with debugging information. On the con
Another option that I found that does not require changing Cargo.toml is to use the RUSTFLAGS environment variable:
Cargo.toml
$ RUSTFLAGS=-g cargo build --release