💾 Archived View for freeshell.de › tldr › cargo-rustc.gmi captured on 2023-09-28 at 16:18:05. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-04-28)

-=-=-=-=-=-=-

cargo rustc

Compile a Rust package, and pass extra options to the compiler.

More information.

cargo rustc
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 {name}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).

CC-BY