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:
parent
14015d0d0d
commit
6daa9f8f94
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -106,6 +106,7 @@ dependencies = [
|
|||
"blocking",
|
||||
"futures-lite",
|
||||
"once_cell",
|
||||
"tokio",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
@ -1998,6 +1999,7 @@ dependencies = [
|
|||
"libc",
|
||||
"memchr",
|
||||
"mio",
|
||||
"num_cpus",
|
||||
"pin-project-lite",
|
||||
"socket2",
|
||||
"winapi",
|
||||
|
|
|
@ -6,7 +6,7 @@ build = "build.rs"
|
|||
edition = "2018"
|
||||
|
||||
[dependencies]
|
||||
async-std = { version = "=1.12.0", features = ["unstable"] }
|
||||
async-std = { version = "=1.12.0", features = ["unstable", "tokio1"] }
|
||||
chrono = "0.4.22"
|
||||
either = "1.8.0"
|
||||
fs2 = "0.4.3"
|
||||
|
|
Loading…
Reference in a new issue