Expand description
parallel_downloader — download library
parallel_downloader provides a small, composable API for performing
robust concurrent downloads with support for resuming, retries,
optional rate limiting and SHA-256 verification.
The library is written so the CLI can reuse the same primitives; you can also embed the downloader in your own programs by calling the helpers exposed below.
§Example
use parallel_downloader::downloader::prepare_download;
use parallel_downloader::worker::download_chunk;
// Build a `reqwest::Client`, call `prepare_download` to get a `DownloadState`,
// then spawn `download_chunk` tasks for each chunk.Re-exports§
pub use downloader::perform_parallel_download;pub use downloader::prepare_download;pub use state::DownloadState;pub use worker::ArcRateLimiter;pub use worker::download_chunk;
Modules§
- config
- Configuration loader and typed settings for the application.
- daemon
- Daemon mode implementation.
- downloader
- Helpers for preparing and initializing download operations.
- ipc
- IPC types used by the daemon and CLI for local control.
- observer
- Progress observers used by workers to report progress.
- state
- Persistent download state and helpers.
- utils
- Utility helpers used across the crate.
- worker
- Worker utilities that perform chunk downloads.