#download #internet #file #url #networking #progress-bar

netget

Download files with Rust code easily, and also be stylish!

1 unstable release

0.1.2 Nov 24, 2023
0.1.1 Nov 24, 2023
0.1.0 Nov 23, 2023

#61 in #internet


Used in 2 crates

MIT license

6KB
67 lines

NetGet

NetGet is a library for downloading files from the internet, it also supports styling the progress bar!

Examples:

fn main() {
    let url = "https://releases.ubuntu.com/22.04.3/ubuntu-22.04.3-desktop-amd64.iso";
    let destination = std::env::current_dir().unwrap().display().to_string(); // The destination path for the file.

    netget::download_file(url, &destination, &netget::ProgressBarConfig::default()).unwrap();
}

Dependencies

~9–20MB
~287K SLoC