cargo-setup-0.2.2 is not a library.
cargo-setup
A Cargo subcommand that scaffolds new crates with extra polish.
Think of it as cargo new but with README.md, LICENSE, CHANGELOG.md, tests/, benches/, and metadata auto-filled from your cargo-me profile. It even sets up CI with GitHub Actions.
✨ Features
- Wraps
cargo newinternally — no need to run it separately. - Auto-fills
authors,license, andrepositoryinCargo.tomlfrom yourcargo-meprofile. - Adds
README.mdwith CI badge, author info, installation, and usage example. - Adds
LICENSEfile with year + organization from profile. - Creates
tests/basic.rsandbenches/bench.rsfolders. - Adds a
CHANGELOG.mdfollowing Keep a Changelog. - Sets up GitHub Actions CI (
.github/workflows/ci.yml) for build, test, fmt, clippy on Linux/macOS/Windows.
📦 Installation
Make sure you also have cargo-me installed and initialized, since cargo-setup uses the profile stored in ~/.cargo-me.toml.
🚀 Usage
Create a new binary crate
Create a new library crate
Override license
📊 Example workflow
-
Configure your profile once with
cargo-me: -
Scaffold new crates with extras in one command:
-
Resulting project structure:
shortid-rs/ ├── Cargo.toml # with authors/license/repo already filled ├── src/main.rs ├── README.md # with CI badge, install, usage ├── LICENSE ├── CHANGELOG.md ├── tests/basic.rs ├── benches/bench.rs └── .github/workflows/ci.yml
⚖️ License
MIT License. See LICENSE for details.