Releases: smithy-lang/smithy-rs
June 12th, 2024
Internal changes only with this release
June 10th, 2024
New this release:
- (all, smithy-rs#1925, smithy-rs#3673) Add support for v1
http_body::Body
toaws_smithy_types::byte_stream::bytestream_util::PathBody
. - (all, smithy-rs#3637, @khuey) Add conversions from smithy StatusCode to http StatusCode.
- 🐛 (client, smithy-rs#3675, @DaStrom) Enable aws-smithy-runtime to compile in rustc 1.72.1
Contributors
Thank you for your contributions! ❤
June 3rd, 2024
New this release:
- (client, smithy-rs#3664) Reduce verbosity of various debug logs
May 28th, 2024
Internal changes only with this release
May 22nd, 2024
New this release:
- 🐛 (client, smithy-rs#3656, smithy-rs#3657) Fix the Content-Length enforcement so it is only applied to GET requests.
May 21st, 2024
Breaking Changes:
⚠️ 🎉 (all, smithy-rs#3653) Update MSRV to1.76.0
New this release:
-
🎉 (client, smithy-rs#2891) Compression is now supported for operations modeled with the
@requestCompression
trait. -
🐛 (client, aws-sdk-rust#1133) Fix panics that occurred when
Duration
for exponential backoff could not be created from too big a float. -
🐛 (all, smithy-rs#3491, aws-sdk-rust#1079) Clients now enforce that the Content-Length sent by the server matches the length of the returned response body. In most cases, Hyper will enforce this behavior, however, in extremely rare circumstances where the Tokio runtime is dropped in between subsequent requests, this scenario can occur.
-
🐛 (all, aws-sdk-rust#1141, aws-sdk-rust#1146, aws-sdk-rust#1148) Fixes stalled upload stream protection to not apply to empty request bodies and to stop checking for violations once the request body has been read.
May 8th, 2024
Breaking Changes:
⚠️ 🎉 (all, smithy-rs#3527) Stalled stream protection on uploads is now enabled by default behindBehaviorVersion::v2024_03_28()
. If you're usingBehaviorVersion::latest()
, you will get this change automatically by runningcargo update
.
New this release:
- (all, smithy-rs#3161, @mnissenb) Implement Debug for DateTime
Contributors
Thank you for your contributions! ❤
- @mnissenb (smithy-rs#3161)
April 30th, 2024
New this release:
-
🎉 (client, smithy-rs#119, smithy-rs#3595, smithy-rs#3593, smithy-rs#3585, smithy-rs#3571, smithy-rs#3569) Added support for waiters. Services that model waiters now have a
Waiters
trait that adds
some methods prefixed withwait_until
to the existing clients.For example, if there was a waiter modeled for "thing" that takes a "thing ID", using
that waiter would look as follows:use my_generated_client::client::Waiters; let result = client.wait_until_thing() .thing_id("someId") .wait(Duration::from_secs(120)) .await;
-
🐛 (all, smithy-rs#3603) Fix event stream
:content-type
message headers for struct messages. Note: this was the:content-type
header on individual event message frames that was incorrect, not the HTTPcontent-type
header for the initial request.
April 19th, 2024
New this release:
- 🎉 (server, smithy-rs#3430) Implement
std::error::Error
forConstraintViolation
- (all, smithy-rs#3553) Upgraded MSRV to Rust 1.75
April 11th, 2024
New this release:
-
🎉 (all, smithy-rs#3485) Stalled stream protection now supports request upload streams. It is currently off by default, but will be enabled by default in a future release. To enable it now, you can do the following:
let config = my_service::Config::builder() .stalled_stream_protection(StalledStreamProtectionConfig::enabled().build()) // ... .build();
-
🐛 (all, smithy-rs#3427)
SharedIdentityResolver
now respects an existing cache partition when theResolveIdentity
implementation
provides one already. -
🐛 (all, smithy-rs#3485) Stalled stream protection on downloads will now only trigger if the upstream source is too slow. Previously, stalled stream protection could be erroneously triggered if the user was slowly consuming the stream slower than the minimum speed limit.
-
🐛 (all, smithy-rs#2546) Unions with unit target member shape are now fully supported