Enable tokio1 compatibility

Fixes the following issue:

    thread 'main' panicked at 'there is no reactor running, must be called from the context of a Tokio 1.x runtime', /build/cargo-vendor-dir/hyper-0.14.23/src/client/connect/dns.rs:121:24
This commit is contained in:
Cole Helbling 2022-12-03 13:50:13 -08:00
parent 14015d0d0d
commit 6daa9f8f94
2 changed files with 3 additions and 1 deletions

2
Cargo.lock generated
View file

@ -106,6 +106,7 @@ dependencies = [
"blocking", "blocking",
"futures-lite", "futures-lite",
"once_cell", "once_cell",
"tokio",
] ]
[[package]] [[package]]
@ -1998,6 +1999,7 @@ dependencies = [
"libc", "libc",
"memchr", "memchr",
"mio", "mio",
"num_cpus",
"pin-project-lite", "pin-project-lite",
"socket2", "socket2",
"winapi", "winapi",

View file

@ -6,7 +6,7 @@ build = "build.rs"
edition = "2018" edition = "2018"
[dependencies] [dependencies]
async-std = { version = "=1.12.0", features = ["unstable"] } async-std = { version = "=1.12.0", features = ["unstable", "tokio1"] }
chrono = "0.4.22" chrono = "0.4.22"
either = "1.8.0" either = "1.8.0"
fs2 = "0.4.3" fs2 = "0.4.3"