manic 0.6.4

Fast and simple async downloads
Documentation

Manic

Crates.io Crates.io Tests

Crates.io dependency status

Fast and simple async downloads

Provides easy to use functions to download a file using multiple async connections while taking care to preserve integrity of the file and check it against a SHA256 sum

This crate is a work in progress

Feature flags

  • progress: Enables progress reporting using indicatif
  • json: Enables use of JSON features on the reqwest Client

Crate usage

Examples

use manic::Downloader;

#[tokio::main]
async fn main() -> Result<(), manic::Error> {
    let number_of_concurrent_tasks: u8 = 5;
    let client = Downloader::new("https://crates.io", number_of_concurrent_tasks).await?;
    let result = client.download().await?;
    Ok(())
}

License: MIT OR Apache-2.0