0PricingLogin
Learn Rust Coding · Lesson

Cargo.toml

Manifest and dependencies.

The Manifest

Cargo.toml is the manifest file at the root of every Rust project. It describes the package and its dependencies using the TOML format.

The [package] Section

The [package] table holds metadata about your crate.

  • name — the crate name
  • version — semantic version
  • edition — the Rust edition (e.g. 2021)
[package]
name = "my_app"
version = "0.1.0"
edition = "2021"

All lessons in this course

  1. Cargo Basics
  2. Cargo.toml
  3. Workspaces
  4. Features and Profiles
← Back to Learn Rust Coding