Skip to main content

batuta/stack/crates_io/
mod.rs

1//! Crates.io API Client
2//!
3//! Provides functionality to query crates.io for version information
4//! and verify published crate status.
5//!
6//! Features:
7//! - In-memory caching with TTL
8//! - Persistent file-based cache for offline mode
9//! - Configurable cache TTL
10
11mod cache;
12mod client;
13mod mock;
14#[cfg(test)]
15mod tests;
16mod types;
17
18// Re-export all public types from types module
19pub use types::{
20    CacheEntry, CrateData, CrateResponse, DependencyData, DependencyResponse, PersistentCacheEntry,
21    VersionData,
22};
23
24// Re-export cache module
25pub use cache::PersistentCache;
26
27// Re-export client
28pub use client::CratesIoClient;
29
30// Re-export mock client
31pub use mock::MockCratesIoClient;