# Install cargo-spellcheck with Homebrew, Nix, pacman

Checks rust documentation for spelling and grammar mistakes. Version 0.15.7 via Homebrew; verified 2026-06-22. Also installable with nix: nix profile install nixpkgs#cargo-spellcheck.

## Install

```sh
sudo av install brew:cargo-spellcheck
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cargo-spellcheck
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#cargo-spellcheck
```

  Evidence: nixpkgs package indexes: pkgs/by-name/ca/cargo-spellcheck/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cargo-spellcheck
```

  Evidence: Arch Linux sync databases: cargo-spellcheck from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## Package facts

- **Package key:** brew:cargo-spellcheck
- **Package manager:** Homebrew
- **Version:** 0.15.7
- **Source summary:** Checks rust documentation for spelling and grammar mistakes
- **Homepage:** <https://github.com/drahnr/cargo-spellcheck>
- **Repository:** <https://github.com/drahnr/cargo-spellcheck>
- **Last updated:** 2026-06-22T14:02:58-07:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cargo-spellcheck (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.15.7
## Project history and usage

cargo-spellcheck is a Cargo subcommand for spell-checking and grammar-checking Rust documentation and comments.

### Project history

The official README describes cargo-spellcheck as a tool that checks spelling with hunspell and grammar with nlprule, with interactive fixing and automation-oriented commands.

### Adoption history

GitHub records the repository as created in May 2020, and crates.io records the crate as first published the same month. The input package facts list Homebrew, Nix, and Arch packages.

### How it is used

The README documents `cargo spellcheck check`, `cargo spellcheck fix`, shell completions, and CI/CD or commit-hook usage. The configuration page documents explicit config via CLI flags or Cargo.toml metadata, plus implicit project and per-user config files.

### Why package nerds care

cargo-spellcheck sits in the Rust tooling niche where documentation quality becomes a build or review concern, so package maintainers can catch spelling and grammar regressions before release.

### Timeline

- 2020: GitHub repository created and first crates.io release recorded.
- 2026: crates.io records max_version 0.15.7.

### Related projects

- The README and repository topics identify hunspell, nlprule, and LanguageTool-style grammar checking as related components.

### Sources

- <https://api.github.com/repos/drahnr/cargo-spellcheck>
- <https://github.com/drahnr/cargo-spellcheck>
- <https://docs.rs/crate/cargo-spellcheck/latest>
- <https://github.com/drahnr/cargo-spellcheck/blob/master/docs/configuration.md>
- <https://github.com/drahnr/cargo-spellcheck#readme>
- <https://crates.io/api/v1/crates/cargo-spellcheck>
- <https://formulae.brew.sh/api/formula/cargo-spellcheck.json>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Linux: /home/alice/.config/cargo_spellcheck/config.toml
- macOS: /Users/Alice/Library/Preferences/cargo_spellcheck/config.toml
- Unix: Cargo.toml, ${CARGO_MANIFEST_DIR}/.config/spellcheck.toml, .config/spellcheck.toml
- Windows: C:\Users\Alice\AppData\Roaming\cargo_spellcheck\config.toml
## Other Package-Manager Records

- Nix - cargo-spellcheck: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-spellcheck/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - cargo-spellcheck - 0.15.7-1: normalized package name match | Arch Linux sync databases: cargo-spellcheck from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Checks all your documentation for spelling and grammar mistakes | https://github.com/drahnr/cargo-spellcheck


## Combined YAML source

View the package source record on GitHub. [combined/cargo-spellcheck.yml](https://github.com/mxcl/pkgdb/blob/main/combined/cargo-spellcheck.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
