Crates.io | cargo-groups |
lib.rs | cargo-groups |
version | 0.1.9 |
source | src |
created_at | 2023-06-10 01:56:02.401102 |
updated_at | 2024-06-18 20:20:58.659058 |
description | Run cargo commands on a groups of crates in a workspace |
homepage | https://github.com/nicholaslyang/cargo-groups |
repository | https://github.com/nicholaslyang/cargo-groups |
max_upload_size | |
id | 886667 |
size | 58,223 |
A tool for running cargo commands on groups of crates in a workspace.
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-*"]