rustc

rustc

TLDR

Compile a single file

$ rustc [file.rs]
copy

Compile with high optimization

$ rustc -O [file.rs]
copy

Compile with debugging information

$ rustc -g [file.rs]
copy

Compile with architecture-specific optimizations for the current CPU

$ rustc -C target-cpu=native [path/to/file.rs]
copy

Display architecture-specific optimizations for the current CPU

$ rustc -C target-cpu=native --print cfg
copy

Display target list

$ rustc --print target-list
copy

Compile for a specific target

$ rustc --target [target_triple] [path/to/file.rs]
copy

Copied to clipboard
free 100$ digital ocean credit