Expand description
FCC ULS file download and synchronization.
This crate provides functionality to download FCC ULS data files:
- Weekly (complete) databases from
https://data.fcc.gov/download/pub/uls/complete/ - Daily transaction files from
https://data.fcc.gov/download/pub/uls/daily/
§Example
use uls_download::{FccClient, DownloadConfig};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = FccClient::new(DownloadConfig::default())?;
// Download the amateur radio license database
let path = client.download_complete("amat").await?;
println!("Downloaded to: {}", path.display());
Ok(())
}Re-exports§
pub use catalog::DataFile;pub use catalog::ServiceCatalog;pub use client::DownloadResult;pub use client::FccClient;pub use config::DownloadConfig;pub use error::DownloadError;pub use error::Result;pub use progress::DownloadProgress;pub use progress::ProgressCallback;