Crates.io | dnld |
lib.rs | dnld |
version | |
source | src |
created_at | 2024-01-06 16:08:58.191673 |
updated_at | 2024-12-05 02:04:25.007982 |
description | Rust library for simple downloading |
homepage | |
repository | https://github.com/qtfkwk/dnld |
max_upload_size | |
id | 1091024 |
Cargo.toml error: | TOML parse error at line 17, column 1 | 17 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Rust library for simple downloading
// 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();
Please find the CHANGELOG.md
in the repository.