May 19th, 2025
New this release:
-
🎉 (client, smithy-rs#4135) Introduce a new
repeatedly()function toaws-smithy-mockssequence builder to build mock rules that behave as an
infinite sequence.let rule = mock!(aws_sdk_s3::Client::get_object) .sequence() .http_status(503, None) .times(2) // repeat the last output twice before moving onto the next response in the sequence .output(|| GetObjectOutput::builder() .body(ByteStream::from_static(b"success")) .build() ) .repeatedly() // repeat the last output forever .build();
-
🐛 (client, aws-sdk-rust#1291) Removing the
optimize_crc32_autofeature flag from thecrc-fastdependency of theaws-smithy-checksumscrate since it was causing build issues for some customers. -
🐛 (client, smithy-rs#4137) Fix bug with enum codegen
When the first enum generated has the
@sensitivetrait the opaque type
underlying theUnknownVariantinherits that sensitivity. This means that
it does not deriveDebug. Since the module is only generated once this
causes a problem for non-sensitive enums that rely on the type deriving
Debugso that they can also deriveDebug. We manually addDebugto
the module so it will always be there since theUnknownVariantis not
modeled and cannot be@sensitive. -
🐛 (client, smithy-rs#4135) fix simple rules behavior with
RuleMode::MatchAny