@ -6,11 +6,11 @@ edition = "2018"
build = "src/build.rs"
[dependencies]
users = "0.10.0"
users = "0.11.0"
regex = "1.0.1"
futures = "0.3"
async-trait = "0.1"
tokio = { version = "0.2", features = ["process", "io-util", "rt-core", "macros", "sync"] }
tokio = { version = "0.3", features = ["rt", "process", "io-util", "macros", "sync"] }
once_cell = "1.4"
[dev-dependencies]
@ -6,11 +6,15 @@ use std::{
thread,
time::Duration,
};
use tokio::runtime::Builder;
pub use async_trait::async_trait;
pub fn run<F: Future>(future: F) -> F::Output {
tokio::runtime::Runtime::new().unwrap().block_on(future)
Builder::new_current_thread()
.build()
.unwrap()
.block_on(future)
}
pub use tokio::try_join;