# Install cargo-docset with Homebrew, Nix

Cargo subcommand to generate a Dash/Zeal docset for your Rust packages. Version 0.3.1 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

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

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

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

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

## Package facts

- **Package key:** brew:cargo-docset
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cargo-docset>
- **Version:** 0.3.1
- **Source summary:** Cargo subcommand to generate a Dash/Zeal docset for your Rust packages
- **Homepage:** <https://github.com/Robzz/cargo-docset>
- **Repository:** <https://github.com/Robzz/cargo-docset>
- **Upstream docs:** <https://github.com/Robzz/cargo-docset#readme>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/Robzz/cargo-docset/archive/refs/tags/v0.3.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- cargo-docset (cli)
- cargo-docset (alias)

## Build dependencies

- rust

## Uses from macOS

- sqlite

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.3.1
- Local data: ok
- Upstream repository: https://github.com/Robzz/cargo-docset
- Upstream latest detected: v0.3.1 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

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.

### Project history

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 history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cargo-docset
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://www.automicvault.com/pkg/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [mdbook](https://www.automicvault.com/pkg/brew/mdbook/) - Shares av.db curated category or tags: cli, developer-tools, documentation, rust.
- [action-docs](https://www.automicvault.com/pkg/brew/action-docs/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [adr-tools](https://www.automicvault.com/pkg/brew/adr-tools/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [adr-viewer](https://www.automicvault.com/pkg/brew/adr-viewer/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [cheat](https://www.automicvault.com/pkg/brew/cheat/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [context7-mcp](https://www.automicvault.com/pkg/brew/context7-mcp/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [cppman](https://www.automicvault.com/pkg/brew/cppman/) - Shares av.db curated category or tags: cli, developer-tools, documentation.
- [dashing](https://www.automicvault.com/pkg/brew/dashing/) - Shares av.db curated category or tags: cli, developer-tools, docset, documentation.
- [cargo-instruments](https://www.automicvault.com/pkg/brew/cargo-instruments/) - Both packages touch the same language runtime or ecosystem. Shared terms: cargo, cli, developer, developer-tools, generate.
- [cargo-bloat](https://www.automicvault.com/pkg/brew/cargo-bloat/) - Both packages touch the same language runtime or ecosystem. Shared terms: cargo, cli, developer, developer-tools, rust.
- [cargo-chef](https://www.automicvault.com/pkg/brew/cargo-chef/) - Both packages touch the same language runtime or ecosystem. Shared terms: cargo, cli, developer, developer-tools, rust.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
