Cargo.toml Generator

Fill in your Rust project details and get a ready-to-paste Cargo.toml in seconds.

Package


Dependencies


Dev-Dependencies


Features (optional)


Cargo.toml

Fill in the form and click Generate Cargo.toml

Summary

Fill in your Rust project details and get a ready-to-paste Cargo.toml in seconds.

How it works

  1. Enter your package name, version, and Rust edition (2015, 2018, or 2021).
  2. Optionally add author names and a short description.
  3. Add dependencies one by one — specify the crate name and semver version.
  4. Add dev-dependencies (e.g. test helpers) separately if needed.
  5. Define optional features as comma-separated crate lists.
  6. Click "Generate" to produce the Cargo.toml, then copy it with one click.

Use cases

  • Bootstrap a new Rust library or binary crate quickly.
  • Double-check the correct Cargo.toml syntax before starting a project.
  • Teach Rust beginners the structure of a package manifest.
  • Generate a clean manifest template before pasting into an IDE.
  • Prototype dependency lists without opening a terminal.
  • Produce a minimal reproducible example manifest for bug reports.

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu