In my application, I need to tightly control the threads spawned, so I want to use my own runtime for futures.
Disabling the default features (which appears to only be the runtime) like this:
[dependencies.hyper] version = "0.12" default-features = false
Raises the following error at compile-time:
error[E0599]: no function or associated item named `new` found for type `hyper::Client<_, _>` in the current scope --> src/main.rs:32:18 | 32 | let client = hyper::Client::new(); | ^^^^^^^^^^^^^^^^^^ function or associated item not found in `hyper::Client<_, _>`
$ cargo 1.30.0-nightly (b917e3524 2018-09-09)
Am I missing something here?