|
1 | 1 | <!-- Do not manually edit this file. Use the `changelogger` tool. --> |
| 2 | +August 31st, 2022 |
| 3 | +================= |
| 4 | +**Breaking Changes:** |
| 5 | +- ⚠ ([smithy-rs#1641](https://github.com/awslabs/smithy-rs/issues/1641)) Refactor endpoint resolution internals to use `aws_smithy_types::Endpoint` internally. The public internal |
| 6 | + functions `aws_endpoint::set_endpoint_resolver` and `aws_endpoint::get_endpoint_resolver were removed. |
| 7 | +- 🐛⚠ ([smithy-rs#1274](https://github.com/awslabs/smithy-rs/issues/1274)) Lossy converters into integer types for `aws_smithy_types::Number` have been |
| 8 | + removed. Lossy converters into floating point types for |
| 9 | + `aws_smithy_types::Number` have been suffixed with `_lossy`. If you were |
| 10 | + directly using the integer lossy converters, we recommend you use the safe |
| 11 | + converters. |
| 12 | + _Before:_ |
| 13 | + ```rust |
| 14 | + fn f1(n: aws_smithy_types::Number) { |
| 15 | + let foo: f32 = n.to_f32(); // Lossy conversion! |
| 16 | + let bar: u32 = n.to_u32(); // Lossy conversion! |
| 17 | + } |
| 18 | + ``` |
| 19 | + _After:_ |
| 20 | + ```rust |
| 21 | + fn f1(n: aws_smithy_types::Number) { |
| 22 | + use std::convert::TryInto; // Unnecessary import if you're using Rust 2021 edition. |
| 23 | + let foo: f32 = n.try_into().expect("lossy conversion detected"); // Or handle the error instead of panicking. |
| 24 | + // You can still do lossy conversions, but only into floating point types. |
| 25 | + let foo: f32 = n.to_f32_lossy(); |
| 26 | + // To lossily convert into integer types, use an `as` cast directly. |
| 27 | + let bar: u32 = n as u32; // Lossy conversion! |
| 28 | + } |
| 29 | + ``` |
| 30 | +- ⚠ ([smithy-rs#1699](https://github.com/awslabs/smithy-rs/issues/1699)) Bump [MSRV](https://github.com/awslabs/aws-sdk-rust#supported-rust-versions-msrv) from 1.58.1 to 1.61.0 per our policy. |
| 31 | + |
| 32 | +**New this release:** |
| 33 | +- 🎉 ([smithy-rs#1598](https://github.com/awslabs/smithy-rs/issues/1598)) Service configs are now generated with new accessors for: |
| 34 | + - `Config::retry_config()` - Returns a reference to the inner retry configuration. |
| 35 | + - `Config::timeout_config()` - Returns a reference to the inner timeout configuration. |
| 36 | + - `Config::sleep_impl()` - Returns a clone of the inner async sleep implementation. |
| 37 | + |
| 38 | + Previously, these were only accessible through `SdkConfig`. |
| 39 | +- 🐛🎉 ([aws-sdk-rust#609](https://github.com/awslabs/aws-sdk-rust/issues/609)) The AWS S3 `GetObjectAttributes` operation will no longer fail with an XML error. |
| 40 | + |
| 41 | + |
2 | 42 | August 8th, 2022 |
3 | 43 | ================ |
4 | 44 | **Breaking Changes:** |
|
0 commit comments