Skip to content

Commit 9c1ae5a

Browse files
author
Zelda Hessler
authored
implement http-body 1.0 for PathBody (#3673)
## Motivation and Context <!--- Why is this change required? What problem does it solve? --> <!--- If it fixes an open issue, please link to the issue here --> #1925 ## Description <!--- Describe your changes in detail --> Implements the v1 `http_body::Body` trait for `PathBody`. Part of the ongoing hyper v1 upgrade. This also moves a pre-1.0 impl into its own module. ## Testing <!--- Please describe in detail how you tested your changes --> <!--- Include details of your testing environment, and the tests you ran to --> <!--- see how your change affects other areas of the code, etc. --> I ported the tests too ## Checklist <!--- If a checkbox below is not applicable, then please DELETE it rather than leaving it unchecked --> - [x] I have updated `CHANGELOG.next.toml` if I made changes to the smithy-rs codegen or runtime crates - [x] I have updated `CHANGELOG.next.toml` if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
1 parent 610a8e2 commit 9c1ae5a

File tree

8 files changed

+845
-406
lines changed

8 files changed

+845
-406
lines changed

CHANGELOG.next.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@
1111
# meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client | server | all"}
1212
# author = "rcoh"
1313

14+
[[aws-sdk-rust]]
15+
message = "Add support for v1 `http_body::Body` to `aws_smithy_types::byte_stream::bytestream_util::PathBody`."
16+
references = ["smithy-rs#1925", "smithy-rs#3673"]
17+
meta = { "breaking" = false, "tada" = false, "bug" = false }
18+
author = "Velfi"
19+
20+
[[smithy-rs]]
21+
message = "Add support for v1 `http_body::Body` to `aws_smithy_types::byte_stream::bytestream_util::PathBody`."
22+
references = ["smithy-rs#1925", "smithy-rs#3673"]
23+
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "all"}
24+
author = "Velfi"
25+
1426
[[smithy-rs]]
1527
message = "Reduce verbosity of various debug logs"
1628
references = ["smithy-rs#3664"]

rust-runtime/aws-smithy-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-smithy-types"
3-
version = "1.1.10"
3+
version = "1.2.0"
44
authors = [
55
"AWS Rust SDK Team <[email protected]>",
66
"Russell Cohen <[email protected]>",

rust-runtime/aws-smithy-types/src/byte_stream.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ pub use self::bytestream_util::FsBuilder;
149149
/// The name has a suffix `_x` to avoid name collision with a third-party `http-body-0-4`.
150150
#[cfg(feature = "http-body-0-4-x")]
151151
pub mod http_body_0_4_x;
152+
152153
#[cfg(feature = "http-body-1-x")]
153154
pub mod http_body_1_x;
154155

0 commit comments

Comments
 (0)