could not find `blocking` in `reqwest` [duplicate]

It is an optional feature of the crate. You have to explicitly enable it in dependencies:

[dependencies]
reqwest = { version = "0.10.0-alpha.2", features = ["blocking"] }

The reqwest::blocking documentation does mention it:

This requires the optional blocking feature to be enabled.

Leave a Comment