Sloughi
Sloughi: A dependency-free Rust crate for sharing commit hooks through Git configuration. Ranked #23 of 26 in Git Hooks Management Tools by our editors (6.0/10); pricing: Open source; best for rust projects needing minimal shared hook setup.
At a glance
- Editor score6.0 / 10
- PricingOpen source
- Best forRust projects needing minimal shared hook setup
- Paid fromFree
- Hook stagesCommit
- Facts checked20 Oct 2026
Where it wins
- Installs shared hooks through Rust build.rs and Git core.hooksPath
- Idempotent setup preserves existing configuration
- Zero runtime dependencies with customizable hooks directory
Where it doesn't
- Documents only commit-stage hooks
- Integrations are limited to Cargo and Git
- Cargo workspace compatibility remains a documented TODO
Our verdict on Sloughi
Sloughi is a small, dependency-free Rust crate for projects that need to share and install Git hooks. Added as a Cargo build dependency, it uses a build.rs script to create a hooks directory and configure Git's core.hooksPath. On build, it creates a sample pre-commit hook. The intended audience is developers maintaining solo or small Rust repositories that want hook setup kept in the project workflow rather than managed through separate runtime tooling.
Setup centers on the build process. Sloughi supports a custom hooks directory path, environment-variable exclusions that can skip setup in selected environments, and idempotent installation that preserves existing setup. Projects can choose explicit installation errors or have those errors handled silently. This approach keeps the implementation dependency-free and uses Git's existing hook configuration, while requiring maintainers to understand Cargo build dependencies, build.rs behavior, and the repository's selected hooks path.
Sloughi's focus is narrow: the documented hook stage is commit, and its sample hook is pre-commit. Its ecosystem fit is correspondingly centered on Cargo and Git, with configuration sharing and package-manager integration rather than a broad integration catalog. Cargo workspace compatibility is listed as a TODO, which matters for repositories organized around workspaces. Choose Sloughi when a Rust project needs a small, shared commit-hook installation mechanism with customizable paths and no runtime dependencies. Consider another tool when the workflow depends on multiple hook stages, wider platform integrations, or workspace support that is already established.
Your product? Our editors can test Sloughi in depth and publish a review, labelled as paid · from $99/mo →
Sloughi pricing
Sloughi fact sheet
| Free plan | Not verified |
|---|---|
| Paid from | Free |
| Hook stages | Commit |
| Shared configuration | Yes |
| Monorepo support | Not verified |
| CI execution | Not verified |
| Package manager integration | Yes |
| Platform support | Not verified |
| Support | Docs |
| Built for | Solo, Small business (editorial estimate) |
| Integrations | 2 integrations: Cargo, Git |
| Pricing | Open source |
| Website | github.com |
| Facts checked | 20 Oct 2026 |
Sloughi integrations
Sloughi lists 2 integrations on its own site.
- Cargo
- Git
Alternatives to Sloughi
- 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 Sloughi alternatives →
Used Sloughi? 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 Sloughi 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
Sloughi 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/sloughi/"><img src="https://www.itechguides.com/best/badge/sloughi.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