diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 4d10d32..17c0ee7 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -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" } diff --git a/rust/src/api/rs_process.rs b/rust/src/api/rs_process.rs index 7adf491..5b2f006 100644 --- a/rust/src/api/rs_process.rs +++ b/rust/src/api/rs_process.rs @@ -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;