Building reqwest 0.10.8 failed when building hyper 0.13.7

name = "heaven"
version = "0.1.0"
authors = ["...."]
edition = "2018"

# See more keys and their definitions at

reqwest = "0.10.8"
$ cargo build
   Compiling libc v0.2.66
   Compiling cfg-if v0.1.10
   Compiling autocfg v0.1.7
   Compiling log v0.4.8
   Compiling lazy_static v1.4.0
   Compiling cc v1.0.50
   Compiling pkg-config v0.3.17
   Compiling fnv v1.0.6
   Compiling memchr v2.3.0
   Compiling proc-macro2 v1.0.7
   Compiling bytes v0.5.3
   Compiling futures-core v0.3.1
   Compiling slab v0.4.2
   Compiling unicode-xid v0.2.0
   Compiling version_check v0.9.1
   Compiling bitflags v1.2.1
   Compiling syn v1.0.13
   Compiling itoa v0.4.4
   Compiling pin-project-lite v0.1.7
   Compiling pin-project-internal v0.4.23
   Compiling foreign-types-shared v0.1.1
   Compiling openssl v0.10.26
   Compiling pin-utils v0.1.0-alpha.4
   Compiling matches v0.1.8
   Compiling futures-task v0.3.1
   Compiling smallvec v1.1.0
   Compiling futures-sink v0.3.1
   Compiling httparse v1.3.4
   Compiling native-tls v0.2.3
   Compiling openssl-probe v0.1.2
   Compiling serde v1.0.104
   Compiling try-lock v0.2.2
   Compiling encoding_rs v0.8.22
   Compiling percent-encoding v2.1.0
   Compiling tower-service v0.3.0
   Compiling dtoa v0.4.4
   Compiling mime v0.3.16
   Compiling base64 v0.12.3
   Compiling ipnet v2.3.0
   Compiling indexmap v1.3.0
   Compiling tracing-core v0.1.15
   Compiling openssl-sys v0.9.53
   Compiling futures-channel v0.3.1
   Compiling unicase v2.6.0
   Compiling http v0.2.0
   Compiling foreign-types v0.3.2
   Compiling unicode-bidi v0.3.4
   Compiling futures-util v0.3.1
   Compiling unicode-normalization v0.1.11
   Compiling http-body v0.3.1
   Compiling idna v0.2.0
   Compiling net2 v0.2.33
   Compiling iovec v0.1.4
   Compiling socket2 v0.3.12
   Compiling time v0.1.42
   Compiling tracing v0.1.19
   Compiling want v0.3.0
   Compiling quote v1.0.2
   Compiling url v2.1.1
   Compiling mio v0.6.21
   Compiling mime_guess v2.0.1
   Compiling serde_urlencoded v0.6.1
   Compiling tokio v0.2.9
   Compiling tokio-util v0.3.1
   Compiling tokio-tls v0.3.0
   Compiling h2 v0.2.6
   Compiling pin-project v0.4.23
   Compiling hyper v0.13.7
error[E0599]: no method named `is_cancelled` found for struct `tokio::task::JoinError` in the current scope
   --> /home/engineer/.cargo/registry/src/
145 |                 if join_err.is_cancelled() {
    |                             ^^^^^^^^^^^^ method not found in `tokio::task::JoinError`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0599`.
error: could not compile `hyper`.
 rustup show
Default host: x86_64-unknown-linux-gnu
rustup home:  /home/engineer/.rustup

stable-x86_64-unknown-linux-gnu (default)
rustc 1.46.0 (04488afe3 2020-08-24)

please advise

This is this issue, which has been fixed but not released. Please delete your Cargo.lock file to upgrade the version of Tokio in use to the latest version.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.