feat: rm async-std , use futures

This commit is contained in:
xkeyC 2024-05-07 20:20:08 +08:00
parent 24313ab3b8
commit 155c8a0564
2 changed files with 2 additions and 3 deletions

View File

@ -13,8 +13,8 @@ crate-type = ["cdylib", "staticlib"]
[dependencies]
flutter_rust_bridge = "=2.0.0-dev.33"
tokio = { version = "1", features = ["rt", "rt-multi-thread", "macros", "process"] }
futures = { version = "0.3", default-features = false, features = ["executor"] }
url = "2.5"
async-std = "1.12"
once_cell = "1.19"
reqwest = { version = "0.12", features = ["rustls-tls-webpki-roots", "cookies", "gzip", "json", "stream"] }
hickory-resolver = { version = "0.24" }

View File

@ -1,7 +1,6 @@
use std::collections::HashMap;
use std::sync::Arc;
use async_std::task::block_on;
use futures::executor::block_on;
use once_cell::sync::Lazy;
use scopeguard::defer;
use tokio::io::AsyncBufReadExt;