cargo-rustc
Verified for current stable LTS
Cargo Rustc Commands
Cargo Rustc command syntax with verified terminal examples.
Commands
8 commands for Cargo Rustc
cargo-rustc Operations
Cargo Rustc Command: Build Package In Release Mode
cargo rustc -r cargo-rustc Operations
Cargo Rustc Command: Build Package With Compiler Options
cargo rustc -- <rustc_options> cargo-rustc Operations
Cargo Rustc Command: Build Specific Binary
cargo rustc --bin <name> cargo-rustc Operations
Cargo Rustc Command: Build Specific Package
cargo rustc -p <package> cargo-rustc Operations
Cargo Rustc Command: Check For Unsafe Code
cargo rustc --lib -- -D unsafe-code cargo-rustc HTTP
Cargo Rustc Command: Compile With Architecture Specific Optimizations
cargo rustc -r -- -C target-cpu=native cargo-rustc Operations
Cargo Rustc Command: Compile With Size Optimizations
cargo rustc -- -C opt-level <s|z> cargo-rustc Operations
Cargo Rustc Command: Compile With Speed Optimizations
cargo rustc -- -C opt-level <1|2|3> Suggest a Cargo Rustc Command
Submit missing workflows, corrections, or verified alternatives for this tool.
FAQ
Coverage: Focused examples for common Cargo Rustc workflows.
Verified version: current stable LTS.
Verification: Test commands in a disposable workspace and submit notes for edge cases.