Skip to main content

Module crates_io

Module crates_io 

Source
Expand description

Crates.io API Client

Provides functionality to query crates.io for version information and verify published crate status.

Features:

  • In-memory caching with TTL
  • Persistent file-based cache for offline mode
  • Configurable cache TTL

Structsยง

CacheEntry
Cache entry with TTL
CrateData
Core crate data from crates.io
CrateResponse
Response from crates.io API for a single crate
CratesIoClient
Client for interacting with crates.io API
DependencyData
Individual dependency data from crates.io
DependencyResponse
Response from crates.io dependencies endpoint
MockCratesIoClient
Mock client for testing without network calls
PersistentCache
Persistent cache stored on disk
PersistentCacheEntry
Persistent cache entry (stored on disk)
VersionData
Version data from crates.io