Skip to content
masterclass Buddy

Rust · Command

cargo new

Creates a new Cargo package in a directory. It generates a manifest, starter source file, and VCS ignore file, with a binary target by default.

Last updated

Syntax

cargo new [options] path

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • cargo-init

Source: cargo new - The Cargo Book. Checked 2026-11-03.