• Introduction
  • 1. Getting Started
    • 1.1. Installation
    • 1.2. First Steps with Cargo
  • 2. Cargo Guide
    • 2.1. Why Cargo Exists
    • 2.2. Creating a New Project
    • 2.3. Working on an Existing Project
    • 2.4. Dependencies
    • 2.5. Project Layout
    • 2.6. Cargo.toml vs Cargo.lock
    • 2.7. Tests
    • 2.8. Continuous Integration
    • 2.9. Build Cache
  • 3. Cargo Reference
    • 3.1. Specifying Dependencies
    • 3.2. The Manifest Format
    • 3.3. Configuration
    • 3.4. Environment Variables
    • 3.5. Build Scripts
    • 3.6. Publishing on crates.io
    • 3.7. Package ID Specifications
    • 3.8. Source Replacement
    • 3.9. External Tools
  • 4. FAQ

The Cargo Book

Cargo Reference

The reference covers the details of various areas of Cargo.

  • Specifying Dependencies
  • The Manifest Format
  • Configuration
  • Environment Variables
  • Build Scripts
  • Publishing on crates.io
  • Package ID Specifications
  • Source Replacement
  • External Tools