Releases: smithy-lang/smithy-rs
Releases · smithy-lang/smithy-rs
Retries, new client connection managment
New this week:
- Retry support. Note: If you are using client from the main branch be sure to upgrade. A major bug in the retry code landed although it was never in a release (#238). These support:
- Modeled retries
- The Retry-After header
- Error Code based retries
- Http Status based retries
- Improved client connection management (#237). Previously, if you had an
aws_hyper::Client
it was generic inC
, the underlying Http connection. This made storing a client in a struct a little cumbersome. We have introduced aStandard
connection that can still be swapped internally for use in tests but avoids the need for client code to manage a generic parameter. - New usage examples. The "Movies" DynamoDB example has been ported to Rust and is now included in the examples folder. This also includes an example of a hand-written waiter. (#205)
- Docs are now generated for union variants (previously missing)
Compatibility:
- A number of pseudo internal APIs have been renamed. Consult the diff if you encounter issues.
Diff to last week: v0.0.3-cargo...v0.4-alpha.cargo
For Git based cargo users, use tag: v0.4-alpha.cargo
Tracing, User agent & Bugfixes
Hello! Welcome to our first regular installment of Tuesday releases.
New in this release:
- Tracing integration: Thanks to @alistaim for his feedback during development. Tracing events are now emitted when operations are dispatched at the info level. At the DEBUG level, a separate span is created to track time spent parsing.
Feb 22 17:21:33.390 INFO send_operation
{ operation="GenerateRandom"
service="kms"
status="construction_failure"
Failed to load credentials from the credentials provider}:
smithy_http_tower::parse_response: close time.busy=36.0µs time.idle=158µs
-
User Agent Support: Two headers are now set on every request
User-Agent
andx-amz-user-agent
. These identify the requester as the AWS Rust SDK & enable metrics on how many people are using the new SDK. -
Bug fixes: Two issue were fixed:
- Missing
HOST
setter caused signing to fail. - Endpoints were being resolved incorrectly
- Missing
SDK for DynamoDB, KMS, Secrets Manager & Kinesis
Very excited for our first real release!
- Environment variable & static credentials and region support
- Support for DynamoDB, KMS, Secrets Manager & Kinesis
- Request dispatch with Tokio/Hyper/Tower