10 releases

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

#257 in Cargo plugins

Download history 1758/week @ 2024-07-05 2580/week @ 2024-07-12 2511/week @ 2024-07-19 3192/week @ 2024-07-26 1645/week @ 2024-08-02 991/week @ 2024-08-09 845/week @ 2024-08-16 498/week @ 2024-08-23 672/week @ 2024-08-30 534/week @ 2024-09-06 682/week @ 2024-09-13 537/week @ 2024-09-20 565/week @ 2024-09-27 814/week @ 2024-10-04 1175/week @ 2024-10-11 1569/week @ 2024-10-18

4,296 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
~330K SLoC