From 64ce6c5515b92e2387d594b62fafa7d7c61d31d6 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 15 Jan 2024 12:04:43 +0000 Subject: [PATCH] Update Rust crate octocrab to 0.33.0 (#941) * Update Rust crate octocrab to 0.33.0 * fixed the timeout feature not being enabled => thus causing a compilation error This is an interim fix until https://github.com/XAMPPRocky/octocrab/pull/519 is merged --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Frank Elsinga --- server/Cargo.lock | 27 +++++++++++++++++++++++++-- server/feedback/Cargo.toml | 2 +- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/server/Cargo.lock b/server/Cargo.lock index c09a827fc..58c484eaa 100644 --- a/server/Cargo.lock +++ b/server/Cargo.lock @@ -1366,6 +1366,18 @@ dependencies = [ "webpki-roots", ] +[[package]] +name = "hyper-timeout" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbb958482e8c7be4bc3cf272a766a2b0bf1a6755e7a6ae777f017a31d11b13b1" +dependencies = [ + "hyper", + "pin-project-lite", + "tokio", + "tokio-io-timeout", +] + [[package]] name = "hyper-tls" version = "0.5.0" @@ -2131,9 +2143,9 @@ dependencies = [ [[package]] name = "octocrab" -version = "0.32.0" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abfeeafb5fa0da7046229ec3c7b3bd2981aae05c549871192c408d59fc0fffd5" +checksum = "c92d104fec560b8dfc48a4422274f52e9cf4e474be0dc21f6af86c34795599a9" dependencies = [ "arc-swap", "async-trait", @@ -2148,6 +2160,7 @@ dependencies = [ "http-body", "hyper", "hyper-rustls", + "hyper-timeout", "jsonwebtoken 9.2.0", "once_cell", "percent-encoding", @@ -3642,6 +3655,16 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "tokio-io-timeout" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "30b74022ada614a1b4834de765f9bb43877f910cc8ce4be40e89042c9223a8bf" +dependencies = [ + "pin-project-lite", + "tokio", +] + [[package]] name = "tokio-macros" version = "2.2.0" diff --git a/server/feedback/Cargo.toml b/server/feedback/Cargo.toml index 4f45bd064..5a4c1012f 100644 --- a/server/feedback/Cargo.toml +++ b/server/feedback/Cargo.toml @@ -26,7 +26,7 @@ serde_json.workspace = true rand = "0.8.5" regex = "1.10.2" -octocrab = { version = "0.32.0", default-features = false, features=["rustls","rustls-webpki-tokio","retry","tokio"] } +octocrab = { version = "0.33.0", default-features = false, features=["rustls","rustls-webpki-tokio","retry","tokio","timeout"] } # web jsonwebtoken = "9.2.0"