# matklad/cargo-xtask

Repository: https://github.com/matklad/cargo-xtask
Canonical: https://ross.abutalabs.com/products/cargo-xtask
License Family: other
Last push: 2025-10-28T14:42:08+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 49, release rhythm 35, longevity 100
- inputs: {"age_days": 2514, "days_push": 309, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1311, forks 34 (observed 2026-08-28T04:04:20.010798+00:00)

## What it is
cargo-xtask is a specification and documentation of a pattern for adding free-form automation to Rust projects using only cargo and rustc, without external binaries like make. It defines a workspace configuration with an xtask package and a cargo alias so custom tasks written in Rust can be run as `cargo xtask`.

## Use cases
- run custom automation tasks in a Rust project without installing make or other tools
- replace bespoke bash scripts with cross-platform Rust task runners
- extend stable cargo with custom commands
- bootstrap project tooling from just cargo and rustc
- define project-specific build and release tasks in Rust

## When to choose
- your Rust project needs custom automation and you want zero external binary dependencies
- you want cross-platform task automation without shell scripts
- you prefer writing task logic in Rust with access to crates.io crates

## When to avoid
- you need an officially recommended or first-class cargo workflow feature
- your automation needs are fully covered by existing cargo subcommands or a mature task runner
- you want a general-purpose task runner for non-Rust projects

## Facets
- artifact type: learning-resource
- maturity: stable
- function: developer-tools, cli, build-tool, workflow-automation
- domain: developer-tools
- platform: rust, cli, cross-platform
- tags: cargo, xtask, rust-workflow, task-runner, make-alternative, specification, command-line, automation

## Member repositories
- matklad/cargo-xtask (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:20.010798+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:49:50.522987+00:00, confidence not recorded.
  - readme: https://github.com/matklad/cargo-xtask (fetched 2026-08-28T04:04:20.010798+00:00, sha b84bf4563cba)
- Data as of 2026-08-30T08:39:29.467469+00:00.
