| Crates.io | scan_crate |
| lib.rs | scan_crate |
| version | 0.1.0-alpha.2 |
| created_at | 2025-10-24 15:22:00.792207+00 |
| updated_at | 2025-10-24 15:52:05.508039+00 |
| description | Fast regex search through Rust crate source code - supports crates.io, GitHub repos, and local paths |
| homepage | https://github.com/verse-pbc/scan_crate |
| repository | https://github.com/verse-pbc/scan_crate |
| max_upload_size | |
| id | 1898593 |
| size | 401,958 |
Fast regex search through Rust crate source code. Supports crates.io, GitHub repos, and local paths.
cargo metadata)ripgrep for fast pattern matchingcargo install scan_crate
# Requires ripgrep
# macOS: brew install ripgrep
# Linux: apt-get install ripgrep
git clone https://github.com/verse-pbc/scan_crate.git
cd scan_crate
cargo build --release
scan_crate includes a Claude Code plugin that enables automatic crate exploration when you ask questions about Rust libraries.
Important: You must install the binary first, then the plugin.
Step 1: Install the binary
Since this is a pre-release version, you need to specify the version:
cargo install scan_crate --version 0.1.0-alpha.2
Or install from source:
cargo install --git https://github.com/verse-pbc/scan_crate.git
Step 2: Install the plugin in Claude Code
/plugin install https://github.com/verse-pbc/scan_crate.git
Step 3: Restart Claude Code
The plugin will automatically check if scan_crate is installed and show a helpful message if it's missing.
Once installed, Claude will automatically use scan_crate when you:
The plugin includes the rust-crate-explorer skill that teaches Claude when to proactively scan crates, so you don't need to manually request searches.
If not using the plugin, you can configure the MCP server directly in ~/.claude.json:
{
"mcpServers": {
"scan-crate": {
"command": "scan_crate",
"args": ["--mcp"]
}
}
}
# Search crates.io package
scan_crate --crate-spec "serde@1.0.130" --query "Serialize"
# Search GitHub repository
scan_crate --crate-spec "https://github.com/rust-lang/cargo.git@0.70.0" --query "cargo_metadata"
# Search local directory
scan_crate --crate-spec "./" --query "TODO"
# Case-sensitive search
scan_crate --crate-spec "tokio" --query "Runtime" --case-sensitive
For MCP clients other than Claude Code (e.g., Cursor), configure in your editor's MCP settings:
{
"mcpServers": {
"scan-crate": {
"command": "scan_crate",
"args": ["--mcp"]
}
}
}
This project is licensed under the MIT License. See the LICENSE file for details.