Skip to main content

uls_download/
lib.rs

1//! FCC ULS file download and synchronization.
2//!
3//! This crate provides functionality to download FCC ULS data files:
4//! - Weekly (complete) databases from `https://data.fcc.gov/download/pub/uls/complete/`
5//! - Daily transaction files from `https://data.fcc.gov/download/pub/uls/daily/`
6//!
7//! # Example
8//!
9//! ```no_run
10//! use uls_download::{FccClient, DownloadConfig};
11//!
12//! #[tokio::main]
13//! async fn main() -> Result<(), Box<dyn std::error::Error>> {
14//!     let client = FccClient::new(DownloadConfig::default())?;
15//!     
16//!     // Download the amateur radio license database
17//!     let path = client.download_complete("amat").await?;
18//!     println!("Downloaded to: {}", path.display());
19//!     
20//!     Ok(())
21//! }
22//! ```
23
24pub mod catalog;
25pub mod client;
26pub mod config;
27pub mod error;
28pub mod progress;
29
30pub use catalog::{DataFile, ServiceCatalog};
31pub use client::{DownloadResult, FccClient};
32pub use config::DownloadConfig;
33pub use error::{DownloadError, Result};
34pub use progress::{DownloadProgress, ProgressCallback};