This is my personalized template for Rust library crates.
It uses porteurbars, so a cargo install --git https://github.com/softprops/porteurbars
is needed (the current
version on crates.io is incompatible with this template). Then run this to
instantiate the template:
porteurbars jonas-schievink/crate-template my-crate
It will then ask for the crate name and also allows changing a few default values.
There are still a few TODOs in README.md
, Cargo.toml
and lib.rs
that need
to be filled out before releasing the crate.
The crates created from this template will start out with the following features:
- CC-0 license
- Release automation for maximum laziness with
cargo-release
- Changelog will be bumped to the next version
- Version in
Cargo.toml
will be bumped - Usage example in readme will be updated to refer to the new crate version
html_root_url
attribute inlib.rs
will also be updated
- Test that makes sure crate version numbers in examples,
html_root_url
andCargo.toml
are in sync - Changelog
- Readme featuring a crates.io, docs.rs, and Travis CI badge, as well as a basic usage example
- Travis CI configuration
Feel free to fork this and adapt to your needs.