Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Installation

From crates.io

cargo install cargo-generate --locked

No system libraries are required. New in version 0.24.0 is the pure-Rust git stack via gix and TLS via rustls, so a plain Rust toolchain is all you need — no pkg-config, libgit2, libssl-dev, perl, or C compiler.

Using pacman (Arch Linux)

cargo-generate can be installed from the extra repository for Arch Linux:

pacman -S cargo-generate

Manual Installation

  1. Download the binary tarball for your platform from our releases page.
  2. Unpack the tarball and place the binary cargo-generate in ~/.cargo/bin/.