August 31st, 2022
Pre-release
Pre-release
aws-sdk-rust-ci
released this
31 Aug 21:38
·
1472 commits
to main
since this release
Breaking Changes:
- ⚠ (smithy-rs#1641) Refactor endpoint resolution internals to use
aws_smithy_types::Endpoint
internally. The public internal
functionsaws_endpoint::set_endpoint_resolver
andaws_endpoint::get_endpoint_resolver
were removed. - 🐛⚠ (smithy-rs#1274) Lossy converters into integer types for
aws_smithy_types::Number
have been
removed. Lossy converters into floating point types for
aws_smithy_types::Number
have been suffixed with_lossy
. If you were
directly using the integer lossy converters, we recommend you use the safe
converters.
Before:After:fn f1(n: aws_smithy_types::Number) { let foo: f32 = n.to_f32(); // Lossy conversion! let bar: u32 = n.to_u32(); // Lossy conversion! }
fn f1(n: aws_smithy_types::Number) { use std::convert::TryInto; // Unnecessary import if you're using Rust 2021 edition. let foo: f32 = n.try_into().expect("lossy conversion detected"); // Or handle the error instead of panicking. // You can still do lossy conversions, but only into floating point types. let foo: f32 = n.to_f32_lossy(); // To lossily convert into integer types, use an `as` cast directly. let bar: u32 = n as u32; // Lossy conversion! }
- ⚠ (smithy-rs#1669) Bump MSRV from 1.58.1 to 1.61.0 per our policy.
New this release:
-
🎉 (smithy-rs#1598) Service configs are now generated with new accessors for:
Config::retry_config()
- Returns a reference to the inner retry configuration.Config::timeout_config()
- Returns a reference to the inner timeout configuration.Config::sleep_impl()
- Returns a clone of the inner async sleep implementation.
Previously, these were only accessible through
SdkConfig
. -
🐛🎉 (aws-sdk-rust#609) The AWS S3
GetObjectAttributes
operation will no longer fail with an XML error.