cargo-matrix-plus
Run a curated matrix of Cargo commands (targets/features) from a YAML config.
This package provides the cargo matrix subcommand (binary name: cargo-matrix).
Install
From crates.io:
From this repository:
Or run directly:
If installed:
When using this repo’s workspace alias:
Quick start
Create a matrix.yaml at the repo root:
commands:
check: cargo check -p {package} --target {target} {features_flag}
clippy: cargo clippy -p {package} --target {target} {features_flag} -- -D warnings
entries:
- package: cargo-matrix-plus
target: host
Run the matrix:
Template variables
Command templates can use:
{workspace}: workspace root path{package}: package name{target}: target triple (orhost){features}: comma-separated feature list{features_flag}:--features "<features>"or empty
Cargo aliases (included)
This repo includes .cargo/config.toml aliases:
cargo matrix ...→ (in this repo)cargo run -p cargo-matrix-plus -- --command ...cargo massage→ run fix, fmt, check, and test in order
Contributing
See CONTRIBUTING.md.
Security
See SECURITY.md.
License
Licensed under MIT OR Apache-2.0. See LICENSE-MIT and LICENSE-APACHE.