#下载 #URL #客户端

dnld

Rust 简单下载库

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网络编程

Download history 127/week @ 2024-07-26 8/week @ 2024-08-02

135 每月下载

MIT 许可证

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