DWLDUTIL
Utility for downloading files in parallel.
DWLDUtil is a library for downloading multiple files in parallel using the asynchronous SMOL engine, it allows to verify the sha1 and sha512 of the files and displays a progress bar of the files.
Usage
use ;
// Create a new downloader
let dl = new
// add new file to downloader
.add_file;
// Start download
dl.start;
examples/image.rs
Downloading 10 Files at a time
to configure the downloading of multiple files at once you can use the DLStartConfig configuration, as follows
use DLStartConfig;
let config = new
.with_max_concurrent_downloads;
dl.start_with_config;
Changing the progress bar style
the way to change the progress bar is like setting the maximum limit of simultaneous downloads, you use DLStartConifg, but for this setting you have to have knowledge in indicatif.
use ProgressStyle;
let progress_style = new
.template
.progress_chars;
let config = new
.with_style;
dl.start_with_config;