🍺 BREW Explorer

← all formulae

cargo-generate

brew install cargo-generate v0.23.12 Apache-2.0 OR MIT

Use pre-existing git repositories as templates

136
30-day installs · #3062
257
90-day · #3777
634
365-day · #4612
2.4k
★ GitHub stars · updated 2mo ago

Runtime dependencies

Build dependencies

GitHub topics

cargo cargo-generate liquid placeholders rust template-generator template-project

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [
    "pkgconf",
    "rust"
  ],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "libgit2",
    "libssh2",
    "openssl@3"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Use pre-existing git repositories as templates",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:36:08+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "cargo-generate",
  "github_default_branch": "main",
  "github_last_commit_at": "2026-06-15T21:29:21Z",
  "github_readme_excerpt": "\u003cdiv align=\"center\"\u003e\n\n# cargo-generate\n\n\u003cimg src=\"https://github.com/cargo-generate/cargo-generate/raw/52be603bab5329b0ba90a19cafd58973f8781fa7/resources/logo.png\" width=\"256\"\u003e\n\n\n[![Build status](https://github.com/cargo-generate/cargo-generate/workflows/Build/badge.svg)](https://github.com/cargo-generate/cargo-generate/actions?query=workflow%3ABuild+branch%3Amain+)\n[![crates.io](https://img.shields.io/crates/v/cargo-generate.svg)](https://crates.io/crates/cargo-generate)\n[![dependency status](https://deps.rs/repo/github/cargo-generate/cargo-generate/status.svg)](https://deps.rs/repo/github/cargo-generate/cargo-generate)\n[![Chat on Matrix](https://img.shields.io/matrix/cargo-generate:matrix.org?server_fqdn=matrix.org)](https://matrix.to/#/#cargo-generate:matrix.org)\n\n\u003c/div\u003e\n\n\u003e cargo, make me a project\n\n`cargo-generate` is a developer tool to help you get up and running quickly with a new Rust\nproject by leveraging a pre-existing git repository as a template.\n\nHere\u0027s an example of using `cargo-generate` with [this template]:\n![demo.gif](./demo.gif)\n\n[this template]: https://github.com/rustwasm/wasm-pack-template\n\n## Documentation\n\nSee the `cargo-generate` [guide](https://cargo-generate.github.io/cargo-generate/index.html) for complete documentation.\n\n## Templates\n\nOne place to find templates is to look for the [cargo-generate topic](https://github.com/topics/cargo-generate) on\nGitHub.\n\n## Quickstart\n\n### Installation\n\n```sh\ncargo install cargo-generate --locked\n```\n\nor if you have [no time, use cargo-binstall](https://github.com/cargo-bins/cargo-binstall):\n\n```sh\ncargo binstall cargo-generate\n```\n\n### Usage\n\n```sh\n# templates on github\ncargo generate --git https://github.com/username-on-github/mytemplate.git\n\n# or just\ncargo generate username-on-github/mytemplate\n\n# templates on other git platforms\ncargo generate gl:username-on-gitlab/mytemplate # translates to https://gitlab.com/username-on-gitlab/mytemplate.git\ncargo generate bb:username-on-bitbucket/mytemplate # t",
  "github_repo": "cargo-generate/cargo-generate",
  "github_stars": 2425,
  "github_topics": [
    "cargo",
    "cargo-generate",
    "liquid",
    "placeholders",
    "rust",
    "template-generator",
    "template-project"
  ],
  "homepage": "https://github.com/cargo-generate/cargo-generate",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 136,
  "installs_365d": 634,
  "installs_90d": 257,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "Apache-2.0 OR MIT",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "cargo-generate",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 3062,
  "rank_365d": 4612,
  "rank_90d": 3777,
  "raw_hash": "7c087ee0916175eb",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/c/cargo-generate.rb",
  "tap": "homebrew/core",
  "test_dependencies": [],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.23.12",
  "versioned_formulae": [],
  "why_use_this": null
}