Crates.io | cargo-setup |
lib.rs | cargo-setup |
version | 0.2.1 |
created_at | 2025-09-18 05:39:05.697329+00 |
updated_at | 2025-09-18 06:12:42.980462+00 |
description | Cargo subcommand to scaffold projects with README, LICENSE, tests/, benches/, using your cargo-me profile |
homepage | |
repository | https://github.com/JDPlumbing/cargo-setup |
max_upload_size | |
id | 1844269 |
size | 33,133 |
A Cargo subcommand that scaffolds new crates with extra polish.
Think of it as cargo new
but with README.md, LICENSE, tests/, benches/, and metadata auto-filled from your cargo-me profile.
cargo new
internally — no need to run it separately.authors
, license
, and repository
in Cargo.toml
from your cargo-me
profile.README.md
with repo/author info.LICENSE
file with year + organization from profile.tests/basic.rs
and benches/bench.rs
folders.--bin
or --lib
(just like cargo new
).cargo install cargo-setup
Make sure you also have cargo-me
installed and initialized, since cargo-setup
uses the profile stored in ~/.cargo-me.toml
.
cargo install cargo-me
cargo me init
cargo setup myapp --bin
cargo setup mylib
cargo setup mycrate --license Apache-2.0
Configure your profile once with cargo-me
:
cargo me init
cargo me set name "JD Plumbing"
cargo me set email "jdplumbingsoflo@gmail.com"
cargo me set github "JDPlumbing"
cargo me set license "MIT"
Scaffold new crates with extras in one command:
cargo setup shortid-rs --bin
Resulting project structure:
shortid-rs/
├── Cargo.toml # with authors/license/repo already filled
├── src/main.rs
├── README.md
├── LICENSE
├── tests/basic.rs
└── benches/bench.rs
MIT License. See LICENSE for details.