Module cache

Module cache 

Source
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 operations
  • storage - Low-level storage operations for cached crates
  • downloader - Downloads crates from various sources (crates.io, GitHub, local)
  • docgen - Generates JSON documentation using cargo rustdoc
  • source - Source type detection and parsing (crates.io, GitHub, local paths)
  • tools - MCP tool implementations for cache operations
  • transaction - Transactional updates with automatic rollback
  • types - Type definitions for improved type safety
  • utils - Common utilities including response formatting
  • workspace - Workspace crate handling
  • outputs - 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