#download #url #client

dnld

Rust library for simple downloading

7 releases

new 0.1.6 Dec 5, 2024
0.1.5 Oct 25, 2024
0.1.4 Aug 23, 2024
0.1.3 Jul 26, 2024
0.1.2 Jan 6, 2024

#265 in HTTP client

Download history 97/week @ 2024-08-17 45/week @ 2024-08-24 2/week @ 2024-08-31 21/week @ 2024-09-14 12/week @ 2024-09-21 6/week @ 2024-09-28 61/week @ 2024-10-19 47/week @ 2024-10-26 19/week @ 2024-11-02 1/week @ 2024-11-09 1/week @ 2024-11-16 141/week @ 2024-11-30

149 downloads per month

MIT license

5KB
73 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–15MB
~189K SLoC