#template #tera-templates #generation #cargo #branch #repository #github

bin+lib cargo-create

A CLI for fast project generation based on Tera templates

13 unstable releases (3 breaking)

0.3.1 Aug 24, 2020
0.3.0 Aug 7, 2020
0.2.2 Aug 5, 2020
0.1.6 Aug 5, 2020
0.0.0 Jul 21, 2020

#511 in Cargo plugins

MIT/Apache

45KB
951 lines

jen (cargo-create)

Maintenance crates.io crates.io Documentation

Continuous Integration

A CLI for fast project generation based on Tera templates. Also a cargo subcommand :)

Installation

cargo install cargo-create --locked

The crate does install the CLI under two names: jen and cargo-create, allowing for a nicer Rust-related workflow.

Writing templates

The repository contains a book about writing custom templates. It is hosted here.

Examples

An example template repository can be found over at https://github.com/SirWindfield/template-test. For a more complex example take a look at the template branch of https://github.com/SirWindfield/zerotask-rust-bin-template/tree/template.

Note

The public API of the library crate is NOT meant for consumption. It is not stable in any way, may change any time and is not related to the semantic versioning of this repository. The crate type is a library to allow for multiple binaries to exist in one single place.

The semantic versioning does only apply to the overall CLI tool, aka the binaries itself and their public API.

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~23–35MB
~585K SLoC