cargo rustc

编译一个 Rust 包。类似于 cargo build,但您可以向编译器传递额外的选项。 查看 rustc --help 获取所有可用选项。 更多信息:https://doc.rust-lang.org/cargo/commands/cargo-rustc.html.

cargo rustc -- {{rustc_options}}

cargo rustc --release

cargo rustc --release -- -C target-cpu=native

cargo rustc -- -C opt-level {{1|2|3}}

cargo rustc -- -C opt-level {{s|z}}

cargo rustc --lib -- -D unsafe-code

cargo rustc --package {{package}}

cargo --bin {{名称}}