24 lines
762 B
Rust
24 lines
762 B
Rust
//! Metalink document parsing and download-candidate selection helpers.
|
|
#![forbid(unsafe_code)]
|
|
|
|
/// Shared Metalink document and resource data models.
|
|
mod model;
|
|
/// URL and metadata normalization helpers for parsed Metalink files.
|
|
mod normalization;
|
|
/// XML parsing entry points for Metalink documents.
|
|
mod parser;
|
|
/// Download-candidate planning and ranking helpers.
|
|
mod planner;
|
|
|
|
#[cfg(test)]
|
|
mod tests;
|
|
|
|
pub use self::model::{
|
|
MetalinkChecksumModel, MetalinkDocumentModel, MetalinkDownloadPlanEntry, MetalinkFileModel,
|
|
MetalinkParseResult, MetalinkParserModel, MetalinkResourceModel,
|
|
};
|
|
pub use self::parser::parse_metalink_document;
|
|
pub use self::planner::{
|
|
metalink_download_plan, preferred_download_candidate, preferred_resource_for_file,
|
|
};
|