10 releases

0.1.9 Jun 18, 2024
0.1.8 Sep 20, 2023
0.1.7 Jun 28, 2023

#226 in Cargo plugins

Download history 627/week @ 2024-09-26 699/week @ 2024-10-03 1131/week @ 2024-10-10 1537/week @ 2024-10-17 1135/week @ 2024-10-24 1186/week @ 2024-10-31 718/week @ 2024-11-07 668/week @ 2024-11-14 1258/week @ 2024-11-21 744/week @ 2024-11-28 1830/week @ 2024-12-05 1317/week @ 2024-12-12 659/week @ 2024-12-19 260/week @ 2024-12-26 980/week @ 2025-01-02 1004/week @ 2025-01-09

3,151 downloads per month

MIT license

18KB
338 lines

cargo-groups

A tool for running cargo commands on groups of crates in a workspace.

Get Started

Install with:

cargo install cargo-groups

Then add groups to your Cargo.toml:

[workspace.metadata.groups]
tools = ["path:crates/foo-debugger", "path:crates/foo-compiler"]
binaries = ["path:crates/foo", "path:crates/bar"]

Then run the cargo command:

cargo groups build tools

You can use globs in your group definitions:

[workspace.metadata.groups]
foo = ["path:crates/foo-*"]

You can add crates via their crate name with the pkg: prefix and via their path with the path: prefix:

[workspace.metadata.groups]
foo = ["pkg:foo*", "path:crates/foo-*"]

Dependencies

~12–23MB
~345K SLoC