v0.37.0 (February 18th, 2022)
Pre-release0.37.0 (February 18th, 2022)
Breaking Changes:
-
⚠ (smithy-rs#1144) Some APIs required that timeout configuration be specified with an
aws_smithy_client::timeout::Settingsstruct while
others required anaws_smithy_types::timeout::TimeoutConfigstruct. Both were equivalent. Nowaws_smithy_types::timeout::TimeoutConfig
is used everywhere andaws_smithy_client::timeout::Settingshas been removed. Here's how to migrate code your code that
depended ontimeout::Settings:The old way:
let timeout = timeout::Settings::new() .with_connect_timeout(Duration::from_secs(1)) .with_read_timeout(Duration::from_secs(2));
The new way:
// This example is passing values, so they're wrapped in `Option::Some`. You can disable a timeout by passing `None`. let timeout = TimeoutConfig::new() .with_connect_timeout(Some(Duration::from_secs(1))) .with_read_timeout(Some(Duration::from_secs(2)));
-
⚠ (smithy-rs#1085) Moved the following re-exports into a
typesmodule for all services:<service>::AggregatedBytes-><service>::types::AggregatedBytes<service>::Blob-><service>::types::Blob<service>::ByteStream-><service>::types::ByteStream<service>::DateTime-><service>::types::DateTime<service>::SdkError-><service>::types::SdkError
-
⚠ (smithy-rs#1085)
AggregatedBytesandByteStreamare now only re-exported if the service has streaming operations,
andBlob/DateTimeare only re-exported if the service uses them. -
⚠ (smithy-rs#1130) MSRV increased from
1.54to1.56.1per our 2-behind MSRV policy.
New this release:
- (smithy-rs#1144)
MakeConnectorFn,HttpConnector, andHttpSettingshave been moved fromaws_config::provider_configto
aws_smithy_client::http_connector. This is in preparation for a later update that will change how connectors are
created and configured. - (smithy-rs#1123) Refactor
Documentshape parser generation - (smithy-rs#1085) The
ClientandConfigre-exports now have their documentation inlined in the service docs