# cargo-docset を Homebrew, Nix でインストール

cargo-docset のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install cargo-docset
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## パッケージ情報

- **パッケージキー:** brew:cargo-docset
- **パッケージマネージャ:** Homebrew
- **バージョン:** 0.3.1
- **ソース概要:** Cargo subcommand to generate a Dash/Zeal docset for your Rust packages
- **ホームページ:** <https://github.com/Robzz/cargo-docset>
- **リポジトリ:** <https://github.com/Robzz/cargo-docset>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- cargo-docset (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 0.3.1
## プロジェクトの歴史と使われ方

cargo-docset is a Cargo subcommand that converts rustdoc output for a crate or workspace into a Dash- and Zeal-compatible docset. It serves developers who want offline, indexed Rust API documentation inside docset browsers.

### プロジェクトの歴史

The GitHub repository was created in August 2019, and the crate was published on crates.io the same month. The README defines the tool around generating Dash/Zeal docsets for Rust packages and their dependencies.

Rather than parsing Rust items directly, cargo-docset runs Cargo to generate documentation, walks the generated documentation directory, and fills a SQLite database in the docset format. That implementation choice keeps the project small and aligned with rustdoc output.

### 採用の歴史

Adoption appears specialized: the supplied package-manager facts list Homebrew and Nix packages, and crates.io shows modest lifetime downloads. It fits a narrower offline-documentation workflow than general Cargo dependency or build tooling.

### 使われ方

Users run `cargo docset` in a crate directory. By default the generated docset is placed in `target/docset`, then copied into the Dash or Zeal docset directory.

The command supports many `cargo doc`-style options, including feature flags, package selection, target selection, workspace generation, and private item documentation.

### パッケージ好きにとっての重要性

cargo-docset is interesting because it bridges Rust's native rustdoc output with the older Dash/Zeal docset ecosystem. It shows how package metadata, generated HTML, and SQLite indexes can be stitched together without inventing a new documentation browser.

For maintainers who work offline or across many local crates, it packages a workspace's documentation into a format that external developer tools already understand.

### タイムライン

- 2019: Robzz/cargo-docset GitHub repository created.
- 2019: cargo-docset crate first published on crates.io.
- 2022: crates.io metadata shows the 0.3.1 release as the current line.

### Related projects

- rustdoc and `cargo doc` generate the HTML documentation that cargo-docset packages.
- Dash and Zeal are the docset browsers targeted by the generated output.
- SQLite is used by the Dash docset format for indexing.

### ソース

- <https://api.github.com/repos/Robzz/cargo-docset>
- <https://crates.io/api/v1/crates/cargo-docset>
- <https://github.com/Robzz/cargo-docset#readme>
- <https://raw.githubusercontent.com/Robzz/cargo-docset/master/README.md>
- input.source_facts.package-manager


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## 他のパッケージマネージャ記録

- Nix - cargo-docset: normalized package name match | nixpkgs package indexes: pkgs/by-name/ca/cargo-docset/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

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