#download #client #string #dnld

dnld

Rust library for simple downloading

10 releases

new 0.2.0 May 10, 2025
0.1.8 Apr 16, 2025
0.1.7 Feb 20, 2025
0.1.6 Dec 5, 2024
0.1.2 Jan 6, 2024

#231 in HTTP client

Download history 126/week @ 2025-02-19 13/week @ 2025-02-26 141/week @ 2025-04-16 5/week @ 2025-04-30 128/week @ 2025-05-07

274 downloads per month

MIT license

14KB
70 lines

About

Rust library for simple downloading

Usage

// Create a client
let download = dnld::Client::new("dnld").unwrap();

// Download a URL to a string
let url = "https://server.tld/path/to/file";
//let contents = download.to_string(url).unwrap();

// Download a URL to a file
let dir = std::path::Path::new(".");
//let path = download.to_file(url, Some(&dir)).unwrap();

Changelog

Please find the CHANGELOG.md in the repository.

Dependencies

~4–16MB
~195K SLoC