Byron / google-apis-rs

A binding and CLI generator for all Google APIs
http://byron.github.io/google-apis-rs
Other
1.02k stars 135 forks source link

HttpsConnector::with_native_roots() - function or associated item not found in `HttpsConnector<_ #354

Closed sangnnc closed 2 years ago

sangnnc commented 2 years ago

I follow the complete example at https://crates.io/crates/google-secretmanager1. But I got this err

let mut hub = GCPSecretManager::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots().https_or_http().enable_http1().enable_http2().build()), auth);

with_native_roots(): function or associated item not found in HttpsConnector<_>

Any ideas?