cargo-matrix-plus 0.1.0

Run a curated matrix of cargo commands (targets/features) from a YAML config
Documentation

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:

cargo install cargo-matrix-plus

From this repository:

cargo install --path crates/cargo-matrix

Or run directly:

cargo run -p cargo-matrix-plus -- --command check

If installed:

cargo matrix --command check

When using this repo’s workspace alias:

cargo matrix check

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:

cargo matrix check

Template variables

Command templates can use:

  • {workspace}: workspace root path
  • {package}: package name
  • {target}: target triple (or host)
  • {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.