压缩最终产物的大小
This commit is contained in:
@@ -4,16 +4,6 @@ use reqwest::Client;
|
||||
use std::fs::File;
|
||||
use std::io::Write;
|
||||
|
||||
#[tokio::test]
|
||||
async fn test() {
|
||||
download_file(
|
||||
"http://114.66.26.35:999/Driver/Key=2Nn77I0E3B9Q4Dy09I5St67Iw1/",
|
||||
"read.bin",
|
||||
)
|
||||
.await
|
||||
.unwrap();
|
||||
}
|
||||
|
||||
/// 从url下载文件
|
||||
pub async fn download_file(url: &str, path: &str) -> Result<(), Box<dyn std::error::Error>> {
|
||||
let client = Client::new();
|
||||
|
||||
Reference in New Issue
Block a user