5 个版本
新增 0.1.4 | 2024 年 8 月 23 日 |
---|---|
0.1.3 | 2024 年 7 月 26 日 |
0.1.2 | 2024 年 1 月 6 日 |
0.1.1 | 2024 年 1 月 6 日 |
0.1.0 | 2024 年 1 月 6 日 |
1086 在 网络编程
135 每月下载
5KB
73 行
关于
Rust 简单下载库
用法
// 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.md
,位于仓库。
依赖项
~3–14MB
~186K SLoC