10 releases

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

#245 in Cargo plugins

Download history 2500/week @ 2024-07-22 3061/week @ 2024-07-29 1912/week @ 2024-08-05 406/week @ 2024-08-12 889/week @ 2024-08-19 624/week @ 2024-08-26 608/week @ 2024-09-02 488/week @ 2024-09-09 624/week @ 2024-09-16 687/week @ 2024-09-23 418/week @ 2024-09-30 1003/week @ 2024-10-07 1251/week @ 2024-10-14 1487/week @ 2024-10-21 1135/week @ 2024-10-28 1125/week @ 2024-11-04

4,999 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

~10–22MB
~335K SLoC