Expand description
§Cache Module
This module provides caching functionality for Rust crates and their documentation.
§Key Components
service- Main caching service that coordinates all cache operationsstorage- Low-level storage operations for cached cratesdownloader- Downloads crates from various sources (crates.io, GitHub, local)docgen- Generates JSON documentation using cargo rustdocsource- Source type detection and parsing (crates.io, GitHub, local paths)tools- MCP tool implementations for cache operationstransaction- Transactional updates with automatic rollbacktypes- Type definitions for improved type safetyutils- Common utilities including response formattingworkspace- Workspace crate handlingoutputs- Output types for cache operations
Re-exports§
pub use service::CrateCache;
Modules§
- constants
- Constants for cache file and directory names
- docgen
- Documentation generation for Rust crates
- downloader
- Crate downloading and source management
- member_
utils - Utilities for member path conversion
- outputs
- Output types for cache operations
- service
- source
- Source type detection and parsing for crates
- storage
- tools
- transaction
- Transaction-like operations for crate caching with automatic rollback
- types
- Type definitions for improved type safety in the cache module
- utils
- Utility functions for the cache module
- workspace
- Workspace handling utilities for Rust crates