cargo-husky
cargo-husky: A free, cross-platform way to enforce Cargo checks across Rust workspaces. Ranked #16 of 26 in Git Hooks Management Tools by our editors (6.6/10); pricing: Free plan; best for cargo workspaces enforcing Rust checks.
At a glance
- Editor score6.6 / 10
- PricingFree plan
- Best forCargo workspaces enforcing Rust checks
- Free planYes
- Paid fromFree
- Hook stagesAll
- Facts checked20 Oct 2026
Where it wins
- Automatically creates Git hooks when cargo test runs
- Workspace-wide execution with run-for-all
- Supports test, check, clippy, fmt, and custom hooks
Where it doesn't
- Focused on Cargo-managed Rust projects
- Hook generation is tied to cargo test execution
- Repository metadata describes the project as passively maintained
Our verdict on cargo-husky
cargo-husky is an open-source Rust crate for Cargo-managed projects that installs Git hook scripts automatically when tests run. Its default pre-push hook runs cargo test, while optional pre-commit and post-merge hooks can add checks at other stages. The fit is strongest for solo developers and teams maintaining Rust repositories, especially Cargo workspaces that want consistent local enforcement across packages.
The project is free and open source, with no paid tiers described. Its ecosystem fit is direct: Cargo handles project commands and Git supplies the hook lifecycle. Optional commands include cargo check, clippy, and fmt, allowing teams to align hooks with common Rust validation steps. The run-for-all feature extends execution across a workspace, while custom hooks stored in .cargo-husky/hooks provide a path for repository-specific actions. An environment variable can disable installation when a workflow requires it, and the tool detects existing hooks and package-version updates.
cargo-husky suits repositories that want convention-driven hook setup without maintaining scripts manually for each package. It is less suitable for teams managing multiple languages or seeking a general-purpose Git hook manager independent of Cargo. Hook creation depends on cargo test running, so teams should account for that lifecycle when onboarding contributors or preparing automated environments. The published project description covers development on macOS and testing across Linux, macOS, and Windows, giving it cross-platform reach. Teams should also weigh the repository’s passively maintained status when evaluating long-term ownership and support expectations.
Your product? Our editors can test cargo-husky in depth and publish a review, labelled as paid · from $99/mo →
cargo-husky pricing
cargo-husky fact sheet
| Free plan | Yes |
|---|---|
| Paid from | Free |
| Hook stages | All |
| Shared configuration | Yes |
| Monorepo support | Yes |
| CI execution | Not verified |
| Package manager integration | Yes |
| Platform support | Cross-platform |
| Deployment | Desktop |
| Platforms | Windows, macOS, Linux |
| Built for | Solo, Small business, Mid-market, Enterprise (editorial estimate) |
| Integrations | 2 integrations: Cargo, Git |
| Pricing | Free plan |
| Website | github.com |
| Facts checked | 20 Oct 2026 |
cargo-husky integrations
cargo-husky lists 2 integrations on its own site.
- Cargo
- Git
Alternatives to cargo-husky
- hkAn open-source, CI-ready hook manager with broad lifecycle and monorepo coverage.8.9
- pre-commitA free, cross-platform framework for standardizing hooks across languages, repositories, and CI.8.8
- HuskyA free, cross-platform Git-hook manager with coverage for every client-side hook.7.9
See all cargo-husky alternatives →
Used cargo-husky? Be the first to review it
The editor score above is our own research. What this page doesn't have yet is a reader's view — what you used cargo-husky for, what worked and what didn't. No stars are seeded and no review is paid for; an editor reads every one before it appears.
Write a reviewTwo minutes · verified accounts only · read by an editor before it appears
Featured on iTechGuides
cargo-husky is listed in our Git Hooks Management Tools directory. Add the badge to your site — it links back to this page.
<a href="https://www.itechguides.com/products/cargo-husky/"><img src="https://www.itechguides.com/best/badge/cargo-husky.svg" alt="Featured on iTechGuides" width="230" height="46"></a>
Reviewed by iTechGuides Editors · Editorial team · Updated Oct 2026
Advertiser disclosure: iTechGuides is reader-supported. Vendors can pay for top positions in our rankings and for a place on other products' pages, and we may earn a commission when you click some links. Bought places stand at the number bought; this page and our disclosure say so. Paying vendors may get a fuller, more detailed review from our editors, and that review can change their score. How we rank.
Last updated · How we research and update