mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-13 21:19:05 +01:00
Merge pull request #482 from IvanUkhov/yup-oauth-hyper-rustls
Update yup-oauth2 to 8.3.3 and hyper-rustls to 0.25
This commit is contained in:
@@ -17,7 +17,7 @@ doctest = false
|
||||
|
||||
[dependencies]
|
||||
mime = "^ 0.3"
|
||||
yup-oauth2 = "^ 8.2"
|
||||
yup-oauth2 = "8.3.3"
|
||||
serde = "1"
|
||||
serde_json = "1"
|
||||
strsim = "0.10.0"
|
||||
|
||||
@@ -27,7 +27,7 @@ path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
anyhow = "^ 1.0"
|
||||
hyper-rustls = "0.24.0"
|
||||
hyper-rustls = "0.25.0"
|
||||
## Must match the one hyper uses, otherwise there are duplicate similarly named `Mime` structs
|
||||
mime = "^ 0.3.0"
|
||||
serde = { version = "^ 1.0", features = ["derive"] }
|
||||
|
||||
@@ -261,7 +261,7 @@ let auth = oauth2::InstalledFlowAuthenticator::builder(
|
||||
secret,
|
||||
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
|
||||
).build().await.unwrap();
|
||||
let mut hub = ${hub_type}::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);\
|
||||
let mut hub = ${hub_type}::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().unwrap().https_or_http().enable_http1().build()), auth);\
|
||||
</%def>
|
||||
|
||||
## You will still have to set the filter for your comment type - either nothing, or rust_doc_comment !
|
||||
|
||||
@@ -36,6 +36,7 @@ async fn main() {
|
||||
|
||||
let debug = matches.is_present("a${DEBUG_FLAG}");
|
||||
let connector = hyper_rustls::HttpsConnectorBuilder::new().with_native_roots()
|
||||
.unwrap()
|
||||
.https_or_http()
|
||||
.enable_http1()
|
||||
.build();
|
||||
|
||||
Reference in New Issue
Block a user