Forrest logo
back to context overview

cargo

List of commands for cargo:

  • cargo:tldr:123c7 cargo: Build the rust project in the current directory using the nightly compiler.
    $ cargo +nightly build
    try on your machine
    explain this command
  • cargo:tldr:179b4 cargo: Create a new binary or library Rust project in the specified directory.
    $ cargo new ${path-to-directory} --${select}
    try on your machine
    explain this command
  • cargo:tldr:19abd cargo: Build using a specific number of threads (default is the number of CPU cores).
    $ cargo build --jobs ${number_of_threads}
    try on your machine
    explain this command
  • cargo:tldr:282b4 cargo: Install a crate.
    $ cargo install ${crate_name}
    try on your machine
    explain this command
  • cargo:tldr:8c8c6 cargo: Search for crates.
    $ cargo search ${search_string}
    try on your machine
    explain this command
  • cargo:tldr:bb316 cargo: List installed crates.
    $ cargo install --list
    try on your machine
    explain this command
  • cargo:tldr:fcdf0 cargo: Create a new binary or library Rust project in the current directory.
    $ cargo init --${select}
    try on your machine
    explain this command
back to context overview