Public Alpha RC1 4-7-2021
Pre-release
Pre-release
New this week:
- Support for 2 new services (& the restJson protocol!): This release adds support for ApiGateway and Amazon Polly. As these are the first two services with the new protocol, bugs are more likely than usual. Please let us know if you hit any issues. New examples have been added.
- New error shapes: Each generated service now generates a
<service_name>::Errorstruct. This is a superset of all errors that the service emits & can be used to write unified error handling that works across all operations on the same service:#[tokio::main] async fn main() -> Result<(), dynamodb::Error> { let client = dynamodb::Client::from_env(); client.list_tables().send().await?; // All operation errors impl `Into<dynamodb::Error>` }
- Breaking Change: Generated builders are
VecandHashMapaware: Builder objects now generate special case builders when the argument is aSetorHashMap(#267). These builders accept an element of theVecorHashMapand append to the builder, creating a collection if it did not previously exist. If you need to pass aVecorHashMapdirectly to the builder, usebuilder.set_xyz(Some(v))instead ofbuilder.xyz(v). - Breaking Change: High level clients are now exported in
<servicename>::Clientinstead of<servicename>::fluent::Client - Bugfix: The futures produced by clients were not
Sendwhich made them unusable fortokio::spawn. This has been resolved.
The generated code has been pushed to https://github.com/awslabs/smithy-rs/releases/tag/v0.6-rc1.cargo