랭킹으로 돌아가기

cargo-generate/cargo-generate

Rustcargo-generate.github.io/cargo-generate

cargo, make me a project

cargoliquidplaceholderstemplate-projecttemplate-generatorcargo-generaterust
스타 성장
스타
2.5k
포크
202
주간 성장
이슈
41
1k2k
2018년 5월2021년 1월2023년 10월2026년 7월
아티팩트crates.iocargo add cargo-generate
README

cargo-generate

Build status crates.io dependency status Chat on Matrix

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: demo.gif

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

cargo install cargo-generate --locked

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

cargo binstall cargo-generate

Usage

# templates on github
cargo generate --git https://github.com/username-on-github/mytemplate.git

# or just
cargo generate username-on-github/mytemplate

# templates on other git platforms
cargo generate gl:username-on-gitlab/mytemplate # translates to https://gitlab.com/username-on-gitlab/mytemplate.git
cargo generate bb:username-on-bitbucket/mytemplate # translates to https://bitbucket.org/username-on-bitbucket/mytemplate.git
cargo generate sr:username-on-sourcehut/mytemplate # translates to https://git.sr.ht/~username-on-sourcehut/mytemplate (note the tilde)

# this scheme is also available for github
cargo generate gh:username-on-github/mytemplate # translates to https://github.com/username-on-github/mytemplate.git

# for a complete list of arguments and options
cargo help generate

License

Licensed under either of

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!

관련 저장소
rust-lang/cargo

The Rust package manager

Rustcrates.ioApache License 2.0rustpackage-manager
doc.rust-lang.org/cargo
15.3k3k
johnthagen/min-sized-rust

🦀 How to minimize Rust binary size 📦 https://github.com/johnthagen/min-sized-rust

Rustcrates.ioMIT Licenserustbinary-size
9.8k247
cross-rs/cross

“Zero setup” cross compilation and “cross testing” of Rust crates

Rustcrates.ioApache License 2.0rustcross-compilation
8.3k460
RubyMetric/chsrc

chsrc 全平台通用换源工具与框架. Change Source everywhere for every software

CGNU General Public License v3.0gemlinux
chsrc.run
6.8k277
graphql-rust/juniper

GraphQL server library for Rust

Rustcrates.ioOthergraphqlrust
6k443
killercup/cargo-edit

A utility for managing cargo dependencies from the command line.

Rustcrates.ioMIT Licenserustcargo
killercup.github.io/cargo-edit/
3.4k165
Canop/bacon

background code checker

Rustcrates.ioGNU Affero General Public License v3.0rustterminal
dystroy.org/bacon
3.3k121
dtolnay/cargo-expand

Subcommand to show result of macro expansion

Rustcrates.ioApache License 2.0cargo
3.1k75
xd009642/tarpaulin

A code coverage tool for Rust projects

Rustcrates.ioApache License 2.0cargocoverage-report
crates.io/crates/cargo-tarpaulin
3k197
sagiegurari/cargo-make

Rust task runner and build tool.

Rustcrates.ioApache License 2.0buildbuild-tool
sagiegurari.github.io/cargo-make/
2.9k147
watchexec/cargo-watch

Watches over your Cargo project's source.

Rustcrates.ioCreative Commons Zero v1.0 Universalrustcargo
2.9k85
LukeMathWalker/cargo-chef

A cargo-subcommand to speed up Rust Docker builds using Docker layer caching.

Rustcrates.ioApache License 2.0rustdocker
2.7k143