Skip to content
Guilherme Kunigami edited this page Nov 4, 2019 · 5 revisions

cargo build

cargo build

Compiles the project.

cargo run

cargo run

Runs the compiled binary

cargo init

cargo init <project name>

Initializes a new project. It creates:

  • New directory named <project name>
  • <project name>/src/main.rs directory
  • Cargo.toml file

Clone this wiki locally