A cargo-generate template for a library crate including:
- github actions and pre-commit lints
- crate badges
- MIT license
- Clippy warnings
- Tests
- Nightly
rustfmt
with wrapped comments and grouped imports - Unused Cargo dependencies with cargo-machete
- Typos
Cargo.toml
sorting with cargo-sort
cargo install cargo-generate
read -p "Enter the crate name: " crate
cargo generate --git https://github.com/imbolc/crate-template.git --name $crate
cd ./$crate && ./.pre-commit.sh