Skip to content

Hmikihiro/cargo-generate

This branch is 1 commit ahead of, 144 commits behind cargo-generate/cargo-generate:main.

Folders and files

NameName
Last commit message
Last commit date
Nov 7, 2021
Dec 22, 2023
Feb 21, 2023
Dec 11, 2023
Dec 11, 2023
Feb 8, 2022
Feb 10, 2024
Feb 10, 2024
May 29, 2018
Feb 7, 2022
Dec 15, 2023
Jun 19, 2018
Oct 11, 2022
Feb 10, 2024
Feb 10, 2024
May 29, 2018
May 29, 2018
Sep 4, 2023
Jul 26, 2022
Dec 13, 2023
Jul 26, 2018
Dec 11, 2023
Nov 7, 2022

Repository files navigation

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

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!

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%