| Crates.io | netget |
| lib.rs | netget |
| version | 0.1.2 |
| created_at | 2023-11-23 23:21:35.72103+00 |
| updated_at | 2023-11-24 19:50:41.137435+00 |
| description | Download files with Rust code easily, and also be stylish! |
| homepage | |
| repository | https://gitlab.com/oglo-crates/netget |
| max_upload_size | |
| id | 1046596 |
| size | 6,628 |
NetGet is a library for downloading files from the internet, it also supports styling the progress bar!
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();
}