rust gnu version, cargo run --example request-log output:
Compiling monie v0.1.0 (C:\msys64\tmp\rust\monie)
error[E0599]: no method named `connection_for` found for type `CLIENT` in the current scope
--> src\lib.rs:166:25
|
101 | / lazy_static! {
102 | | static ref CLIENT: Client<HttpsConnector<HttpConnector>, Body> =
103 | | Client::builder().build(HttpsConnector::new(4));
104 | | static ref HTTP: Http = Http::new();
105 | | }
| |_- method `connection_for` not found for this
...
166 | let result = CLIENT.connection_for(uri, key1).map_err(move |e| {
| ^^^^^^^^^^^^^^
|
= note: the method `connection_for` exists but the following trait bounds were not satisfied:
`hyper_rustls::connector::HttpsConnector<hyper::client::connect::http::HttpConnector> : hyper::client::connect::Connect`
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
error[E0308]: mismatched types
--> src\lib.rs:103:33
|
103 | Client::builder().build(HttpsConnector::new(4));
| ^^^^^^^^^^^^^^^^^^^^^^ expected struct `hyper::client::connect::http::HttpConnector`, found a different struct `hyper::client::connect::http::HttpConnector`
|
= note: expected type `hyper_rustls::connector::HttpsConnector<hyper::client::connect::http::HttpConnector>` (struct `hyper::client::connect::http::HttpConnector`)
found type `hyper_rustls::connector::HttpsConnector<hyper::client::connect::http::HttpConnector>` (struct `hyper::client::connect::http::HttpConnector`)
note: Perhaps two different versions of crate `hyper` are being used?
--> src\lib.rs:103:33
|
103 | Client::builder().build(HttpsConnector::new(4));
| ^^^^^^^^^^^^^^^^^^^^^^
error[E0277]: the trait bound `hyper_rustls::connector::HttpsConnector<hyper::client::connect::http::HttpConnector>: hyper::client::connect::Connect` is not satisfied
--> src\lib.rs:103:27
|
103 | Client::builder().build(HttpsConnector::new(4));
| ^^^^^ the trait `hyper::client::connect::Connect` is not implemented for `hyper_rustls::connector::HttpsConnector<hyper::client::connect::http::HttpConnector>`
error: aborting due to 3 previous errors
Some errors have detailed explanations: E0277, E0308, E0599.
For more information about an error, try `rustc --explain E0277`.
error: Could not compile `monie`.
To learn more, run the command again with --verbose.
rust gnu version,
cargo run --example request-log
output: