rustc Compile a Rust package, and pass extra options to…
Compile a Rust package, and pass extra options to the compiler. More information: https://doc.rust-lang.org/cargo/commands/cargo-rustc.html.
Cargo.toml
manifest file in the current working directory:cargo rustc
cargo rustc --release
cargo rustc --release -- -C target-cpu=native
cargo rustc -- -C opt-level {{1|2|3}}
z
also turns off loop vectorization):cargo rustc -- -C opt-level {{s|z}}
cargo rustc --lib -- -D unsafe-code
cargo rustc --package {{package}}
cargo --bin {{name}}