Forrest logo
back to context overview

rustc

List of commands for rustc:

  • rustc:tldr:67de9 rustc: Compile for a specific target.
    $ rustc --target ${target_triple} ${filename-rs}
    try on your machine
    explain this command
  • rustc:tldr:92a7a rustc: Display architecture-specific optimizations for the current CPU.
    $ rustc -C target-cpu=native --print cfg
    try on your machine
    explain this command
  • rustc:tldr:b53fa rustc: Compile a single file.
    $ rustc ${filename-rs}
    try on your machine
    explain this command
  • rustc:tldr:b802f rustc: Compile with debugging information.
    $ rustc -g ${filename-rs}
    try on your machine
    explain this command
  • rustc:tldr:be4b9 rustc: Compile with high optimization.
    $ rustc -O ${filename-rs}
    try on your machine
    explain this command
  • rustc:tldr:dec00 rustc: Display target list.
    $ rustc --print target-list
    try on your machine
    explain this command
  • rustc:tldr:f7f9b rustc: Compile with architecture-specific optimizations for the current CPU.
    $ rustc -C target-cpu=native ${filename-rs}
    try on your machine
    explain this command
back to context overview