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:
Sebastian Thiel
2024-03-21 19:25:21 +01:00
committed by GitHub
4 changed files with 4 additions and 3 deletions

View File

@@ -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"

View File

@@ -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"] }

View File

@@ -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 !

View File

@@ -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();