dwldutil 1.1.0

A utility for parallel downloading
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use dwldutil::{DLBuilder, DLFile, DLHashes};

fn main() {
    // Create a new downloader
    let dl = DLBuilder::new()
        // add new file to downloader
        .add_file(
            DLFile::new()
                // define file properties
                .with_path("image.png")
                .with_url("https://httpbin.org/image/png")
                .with_size(8090)
                .with_hashes(DLHashes::new().sha1("379f5137831350c900e757b39e525b9db1426d53")),
        );
    // Start download
    dl.start();
}