cargo-generate
« Back to VersTracker
Description:
Use pre-existing git repositories as templates
Type: Formula  |  Latest Version: 0.23.7@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust scaffolding cli developer-tools templates
Install: brew install cargo-generate
About:
cargo-generate is a Rust CLI tool that scaffolds new projects using pre-existing Git repositories as templates. It allows developers to quickly bootstrap applications, libraries, or modules by cloning remote or local templates and optionally replacing template variables. This significantly speeds up project setup and ensures consistency across projects.
Key Features:
  • Template-based scaffolding from Git repositories
  • Variable replacement using the Tera templating engine
  • Support for local and remote templates
  • Fast and extensible with Rust
Use Cases:
  • Bootstrapping new Rust crates with a predefined structure
  • Standardizing project layouts across a development team
  • Creating microservice templates with pre-configured CI/CD
Alternatives:
  • hygen – hygen is JavaScript-based and focuses on code generation within existing projects, whereas cargo-generate is Rust-native and excels at creating entire new project structures from Git templates.
  • Yeoman – Yeoman is a general-purpose generator system that requires writing generators in JavaScript, while cargo-generate uses simple Git repos and is tailored for the Rust ecosystem.
License: Apache-2.0 OR MIT
Dependencies: libgit2, libssh2, openssl@3
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, sonoma, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Dec 28, 2024 2:13am 0 VERSION_BUMP 3c4cf114
Nov 17, 2024 8:34pm 0 VERSION_BUMP 1ea9c982