10 releases

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

#170 in Cargo plugins

Download history 1190/week @ 2024-11-29 1821/week @ 2024-12-06 1109/week @ 2024-12-13 409/week @ 2024-12-20 523/week @ 2024-12-27 796/week @ 2025-01-03 1309/week @ 2025-01-10 3714/week @ 2025-01-17 2201/week @ 2025-01-24 2008/week @ 2025-01-31 1353/week @ 2025-02-07 1269/week @ 2025-02-14 1806/week @ 2025-02-21 2795/week @ 2025-02-28 1532/week @ 2025-03-07 1495/week @ 2025-03-14

7,724 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

~11–22MB
~352K SLoC