| Crates.io | ferretin |
| lib.rs | ferretin |
| version | 0.1.0 |
| created_at | 2026-01-21 19:44:56.675914+00 |
| updated_at | 2026-01-21 19:44:56.675914+00 |
| description | Human-friendly CLI for browsing Rust documentation |
| homepage | |
| repository | https://github.com/jbr/ferretin |
| max_upload_size | |
| id | 2059983 |
| size | 515,566 |
A terminal-based Rust documentation viewer
Ferretin reads rustdoc JSON output to display Rust documentation directly in your terminal. It supports local workspace crates, standard library documentation, and crates from crates.io, with search functionality and modern terminal features including mouse support, syntax highlighting, and clickable links.
rust-docs-json rustup component)cargo install ferretin
To view documentation for std, core, and alloc:
rustup component add rust-docs-json
Local crate documentation requires a nightly toolchain:
rustup toolchain install nightly
Note: There is a relationship between ferretin's version and the nightly toolchain version. Ferretin currently supports rustdoc JSON format versions 55, 56, and 57. If your nightly generates a newer format, ferretin won't be able to build local documentation until support is added.
Launch the interactive browser:
ferretin -i
Once running, use h or ? to see available keybindings. Basic navigation:
g - go to an item by path (e.g., std::vec::Vec)s - search (Tab to toggle between current crate and all crates)l - list available cratesView documentation for a specific item:
ferretin get std::vec::Vec
ferretin get serde::Serialize
Search for items:
ferretin search "hash map"
ferretin search --crate tokio "spawn"
List available crates in your workspace:
ferretin list
Ferretin caches documentation JSON files to avoid repeated downloads and builds:
$CARGO_HOME/rustdoc-json/{format-version}/{crate_name}/{crate_version}.json.index files are generated lazily on first search and stored alongside JSON files{rustc sysroot}/share/doc/rust/json/ if availableThe cache uses cargo's home directory (typically ~/.cargo on Unix systems).
Ferretin is at version 0.1 and actively used by the author as a primary documentation interface. It's ready for general use, though the output format should be considered unstable and may change between versions.
If you're scripting against ferretin's output, be aware that the text format may change. Pin to a specific version or be prepared to update your scripts.
Ferretin is developed and tested on Unix-like systems. Windows compatibility is untested. If you encounter issues on Windows or other platforms, please open an issue or pull request.
Ferretin was originally developed to support the rustdoc-mcp MCP server, which provides Rust documentation access for Claude Code and other MCP clients.