From 052b4dadc06354e673f6a642487871d5f50d135a Mon Sep 17 00:00:00 2001 From: ysaito1001 Date: Mon, 10 Jun 2024 13:49:53 -0500 Subject: [PATCH] Pin `httparse` to =1.8 to avoid unit test failures in runtime crates (#3687) ## Motivation and Context To fix current CI and release pipeline failures coming from `aws-smithy-runtime` and `aws-sigv4` now depending on `httparse` version 1.9.0 or greater. ## Testing Tests in CI ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ --- .cargo-deny-config.toml | 1 + aws/rust-runtime/aws-sigv4/Cargo.toml | 4 ++-- rust-runtime/aws-smithy-runtime/Cargo.toml | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.cargo-deny-config.toml b/.cargo-deny-config.toml index 6e00f867c3..3a9407f00c 100644 --- a/.cargo-deny-config.toml +++ b/.cargo-deny-config.toml @@ -18,6 +18,7 @@ allow = [ "MIT", "MPL-2.0", "Unicode-DFS-2016", + "Unicode-3.0", ] confidence-threshold = 1.0 exceptions = [ diff --git a/aws/rust-runtime/aws-sigv4/Cargo.toml b/aws/rust-runtime/aws-sigv4/Cargo.toml index 9a497c80e8..5ce95360e7 100644 --- a/aws/rust-runtime/aws-sigv4/Cargo.toml +++ b/aws/rust-runtime/aws-sigv4/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aws-sigv4" -version = "1.2.1" +version = "1.2.2" authors = ["AWS Rust SDK Team ", "David Barsky "] description = "SigV4 signer for HTTP requests and Event Stream messages." edition = "2021" @@ -44,7 +44,7 @@ aws-credential-types = { path = "../aws-credential-types", features = ["test-uti aws-smithy-runtime-api = { path = "../../../rust-runtime/aws-smithy-runtime-api", features = ["client", "test-util"] } bytes = "1" hex-literal = "0.4.1" -httparse = "1.8" +httparse = "=1.8" libfuzzer-sys = "0.4.6" pretty_assertions = "1.3" proptest = "1.2" diff --git a/rust-runtime/aws-smithy-runtime/Cargo.toml b/rust-runtime/aws-smithy-runtime/Cargo.toml index ec9c79929c..10127f08d3 100644 --- a/rust-runtime/aws-smithy-runtime/Cargo.toml +++ b/rust-runtime/aws-smithy-runtime/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aws-smithy-runtime" -version = "1.5.6" +version = "1.5.7" authors = ["AWS Rust SDK Team ", "Zelda Hessler "] description = "The new smithy runtime crate" edition = "2021" @@ -34,6 +34,8 @@ h2 = { version = "0.3", default-features = false, optional = true } http = { version = "0.2.8" } http-body-0-4 = { package = "http-body", version = "0.4.4" } http-body-1 = { package = "http-body", version = "1" } +# This avoids bringing `httparse` 1.9.0 and 1.9.1 through `hyper-0-14` that break unit tests of runtime crates +httparse = "=1.8.0" hyper-0-14 = { package = "hyper", version = "0.14.26", default-features = false, optional = true } hyper-rustls = { version = "0.24", features = ["rustls-native-certs", "http2"], optional = true } once_cell = "1.18.0"