压缩最终产物的大小

This commit is contained in:
2026-01-29 18:46:41 +08:00
parent 85d5b179e2
commit b5464925cf
3 changed files with 8 additions and 185 deletions

View File

@@ -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();