# 使用 Homebrew, Nix, pacman 安装 cargo-spellcheck

查看 cargo-spellcheck 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

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

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:cargo-spellcheck
- **软件包管理器:** Homebrew
- **版本:** 0.15.7
- **来源摘要:** Checks rust documentation for spelling and grammar mistakes
- **主页:** <https://github.com/drahnr/cargo-spellcheck>
- **仓库:** <https://github.com/drahnr/cargo-spellcheck>
- **最后更新:** 2026-06-22T14:02:58-07:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cargo-spellcheck (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.15.7
## 项目历史与用法

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

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

- <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>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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
## 其他软件包管理器记录

- 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)


## 来源

- 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
