#![deny(missing_docs)]
pub mod availability;
pub mod cache;
mod downloader;
pub mod manifest;
mod skip_errors;
mod source;
pub mod table;
mod types;
pub use availability::AvailabilityData;
pub use downloader::Downloader;
pub use source::{DefaultSource, SourceInfo};
use std::io;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("TOML deserialization error {0} on manifest {1}")]
TomlDe(#[source] toml::de::Error, String),
#[error("TOML serialization error {0} on manifest {1}")]
TomlSer(#[source] toml::ser::Error, String),
#[error("reqwest error {0} on url {1}")]
Reqwest(#[source] reqwest::Error, String),
#[error("HTTP error {0} on url {1}")]
BadResponse(reqwest::StatusCode, String),
#[error("I/O error {0} at {1}")]
Io(#[source] io::Error, String),
}