#cargo #workspace #groups #crates

app cargo-groups

Run cargo commands on a groups of crates in a workspace

9 releases

0.1.8 Sep 20, 2023
0.1.7 Jun 28, 2023

#232 in Development tools

Download history 2624/week @ 2023-08-02 1944/week @ 2023-08-09 2115/week @ 2023-08-16 3426/week @ 2023-08-23 2171/week @ 2023-08-30 2063/week @ 2023-09-06 1776/week @ 2023-09-13 2373/week @ 2023-09-20 2372/week @ 2023-09-27 2623/week @ 2023-10-04 4211/week @ 2023-10-11 3147/week @ 2023-10-18 2070/week @ 2023-10-25 3349/week @ 2023-11-01 2659/week @ 2023-11-08 4748/week @ 2023-11-15

13,247 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–21MB
~289K SLoC