AI tools, scored for your job
Get paid to train AI
🤝 You're in the Free & Open Source library — community-built tools you can use without paying. A different concept from our scored AI directory.
Home › Free & Open Source › Writing › cargo-spellcheck
✦ Free & open sourceWriting

cargo-spellcheck

Check and fix spelling and grammar in your code documentation using hunspell and nlprule.

cargo-spellcheck

Catch spelling and grammar mistakes in your Rust documentation comments.

Free forever · open source · Apache-2.0
✓ Light setup✓ Browser-based✓ Real-time collaboration
6.5
ZEKAI
Essential for Rust docs
Free & open source · Writing
Ease of setup6
Usefulness8
Maintenance7
Community5
★ 364
GITHUB
May 2026
UPDATED
Apache-2.0
LICENSE
🛠 Don't want to self-host? We can set it up →
⚡ Quick answer

cargo-spellcheck is a cargo plugin that scans your codebase for spelling and grammar errors. It is built for Rust developers who want to maintain clean documentation without manual proofreading.

Runs on
Cross-platform
Hosting
Desktop
Languages
Rust
License
Apache-2.0

What it is

The tool parses your source tree and runs checks using hunspell and an nlprule-based grammar checker. You can run checks in your CI/CD pipeline or interactively apply suggestions to your documentation comments.

Who it's for

It suits Rust developers and technical writers maintaining crate documentation. It does not suit projects written in languages other than Rust or teams not using Cargo.

Key features

Interactive Fixing

Apply spelling and grammar suggestions interactively using the fix command.

Dual Engine Checking

Combines hunspell and nlprule for both lexical and grammatical error detection.

CI/CD Integration

Run checks automatically from git commit hooks or continuous integration pipelines.

Shell Autocompletion

Generate shell completion scripts to make command-line usage more efficient.

How to start

Up and running in 3 steps

1
Install libclang-dev on Linux or ensure libclang.dylib is found by the linker on OS X
2
Install the tool using cargo install --locked cargo-spellcheck
3
Run cargo spellcheck check or cargo spellcheck fix in your project directory
Real talk

Our honest verdict

What's great

  • Integrates directly into your cargo workflow
  • Supports interactive replacement of misspelled terms
  • Works well within automated CI/CD systems
  • Detects both spelling and grammar issues via hunspell and nlprule

Where it falls short

  • Requires manual setup of native dependencies like libclang on your system
  • OS X and Linux environments need specific environment variables configured
  • Requires a learning phase to adapt to custom or topic-specific lingo
Cost

Pricing & license

Free under its Apache-2.0 license. The only cost is your own time spent installing native dependencies and configuring environment variables.

Paid work

Open remote AI-training roles

767 open remote AI-training roles, updated November 14, 2026; most pay $20–$175 an hour. Zekai lists them free; the application goes to the employer’s platform.

See all open roles →
Compare

Alternatives

🎁 Free & open-source alternatives
Get more

Use it, or have us set it up

📄 Free PDF: cargo-spellcheck for Writing
A plain-language guide to getting your first result. Sent to your inbox.
🔔 64 people want a full video tutorial — add your vote
🛠 Don't want to set it up yourself?
We'll install, host & configure cargo-spellcheck for you — and train your team.
Get it done for you ↗
Questions

FAQ

How do I fix spelling mistakes interactively?

Run cargo spellcheck fix to review errors and select custom replacement literals.

What backend checkers does it use?

It utilizes hunspell for spell checking and an nlprule-based checker for grammar.

Radar

Latest AI news

✉️ The weekly free toolkit
The best new free & open-source tools for Writing — one short email a week, in your language.
Free · 1 email/week · unsubscribe anytime
Get paid to train AI →

See Zekai first in Google