9 releases

0.1.8 Sep 20, 2023
0.1.7 Jun 28, 2023

#186 in Cargo plugins

Download history 3421/week @ 2024-01-04 1129/week @ 2024-01-11 2150/week @ 2024-01-18 4485/week @ 2024-01-25 3647/week @ 2024-02-01 3658/week @ 2024-02-08 3031/week @ 2024-02-15 2317/week @ 2024-02-22 3577/week @ 2024-02-29 3064/week @ 2024-03-07 2092/week @ 2024-03-14 1793/week @ 2024-03-21 1819/week @ 2024-03-28 1268/week @ 2024-04-04 3187/week @ 2024-04-11 2125/week @ 2024-04-18

8,541 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–25MB
~348K SLoC