Skip to main content

normalize_package_index/
lib.rs

1//! Package index ingestion from distro and language registries.
2//!
3//! Provides the [`PackageIndex`] trait for fetching package metadata from
4//! package manager indices (apt, brew, crates.io, npm, etc.).
5//!
6//! # Example
7//!
8//! ```ignore
9//! use normalize_package_index::{get_index, PackageMeta};
10//!
11//! if let Some(brew) = get_index("brew") {
12//!     if let Ok(pkg) = brew.fetch("ripgrep") {
13//!         println!("{}: {} - {:?}", pkg.name, pkg.version, pkg.repository);
14//!     }
15//! }
16//! ```
17
18pub mod cache;
19pub mod index;
20
21pub use index::{
22    IndexError, PackageIndex, PackageIter, PackageMeta, VersionMeta, all_indices, get_index,
23    list_indices,
24};