Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

cargo-generate

> 包管理
Open source

cargo, make me a project

2.5K stars0 likes2 views
WebsiteGitHub

About

cargo, make me a project

cargo, make me a project

cargo-generate is a developer tool to help you get up and running quickly with a new Rust project by leveraging a pre-existing git repository as a template.

Here's an example of using cargo-generate with this template:

Documentation

See the cargo-generate guide for complete documentation.

Templates

One place to find templates is to look for the cargo-generate topic on GitHub.

Quickstart

Installation

bash
cargo install cargo-generate --locked

or if you have no time, use cargo-binstall:

bash
cargo binstall cargo-generate

Usage

…

Cargo features

git is on by default and pulls in gix and reqwest. Library consumers who only generate from local templates can turn it off — see Library Usage in the guide.

License

Licensed under either of

  • Apache License, Version 2.0, (LICENSE-APACHE or apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or opensource.org/licenses/MIT)

at your option.

Contributions

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. If you want to contribute to cargo-generate, please read our CONTRIBUTING notes.

cargo-generate would not be what it is today without the wonderful contributions from the community. Thank you!

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustcargocargo-generateliquidplaceholders

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category包管理
PricingOpen source

> Related tools

N
npm
Node.js 默认包管理器
P
pnpm
高效节省磁盘的 Node 包管理器
I
is-gif
Check if a Buffer/Uint8Array is a GIF image