Unverified Commit 1b0f2a64 authored by AWS SDK Rust Bot's avatar AWS SDK Rust Bot Committed by GitHub
Browse files

Merge smithy-rs-release-1.x.y into main (#4134)

parents f3aebe7b 4fa77c04
Loading
Loading
Loading
Loading

.changelog/1747202677.md

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
---
applies_to: ["client", "server", "aws-sdk-rust"]
authors:
- FalkWoldmann
references: [smithy-rs#4105]
breaking: false
new_feature: false
bug_fix: false
---
Replace once_cell with std equivalents

.changelog/unknown-variants.md

deleted100644 → 0
+0 −10
Original line number Diff line number Diff line
---
applies_to: ["client", "server"]
authors: ["rcoh"]
references: ["smithy-rs#4132"]
breaking: false
new_feature: false
bug_fix: true
---

Smithy unions that contain members named "unknown" will now codegen correctly
+11 −0
Original line number Diff line number Diff line
<!-- Do not manually edit this file. Use the `changelogger` tool. -->
May 15th, 2025
==============
**New this release:**
- :bug: (all, [smithy-rs#4132](https://github.com/smithy-lang/smithy-rs/issues/4132)) Smithy unions that contain members named "unknown" will now codegen correctly
- (all, [smithy-rs#4105](https://github.com/smithy-lang/smithy-rs/issues/4105), @FalkWoldmann) Replace once_cell with std equivalents

**Contributors**
Thank you for your contributions! ❤
- @FalkWoldmann ([smithy-rs#4105](https://github.com/smithy-lang/smithy-rs/issues/4105))


May 9th, 2025
=============
**Breaking Changes:**
+20 −20
Original line number Diff line number Diff line
@@ -5,20 +5,6 @@
{
  "smithy-rs": [],
  "aws-sdk-rust": [
    {
      "message": "Update spans to better align with spec.\n",
      "meta": {
        "bug": false,
        "breaking": false,
        "tada": false
      },
      "author": "landonxjames",
      "references": [
        "smithy-rs#4052"
      ],
      "since-commit": "7558d31f17b69bce8785ffa833c575d0b172209c",
      "age": 5
    },
    {
      "message": "Replace the `once_cell` crate with the `std` counterpart in AWS runtime crates.\n",
      "meta": {
@@ -31,7 +17,7 @@
        "smithy-rs#4050"
      ],
      "since-commit": "f0c92d92b680771787af8ab60995d0e1fae02611",
      "age": 3
      "age": 4
    },
    {
      "message": "Fix an issue where a custom `Content-Encoding` header was incorrectly overwritten by the `aws-chunked` header value.\n",
@@ -45,7 +31,7 @@
        "aws-sdk-rust#1281"
      ],
      "since-commit": "f0c92d92b680771787af8ab60995d0e1fae02611",
      "age": 3
      "age": 4
    },
    {
      "message": "Add support for the account-based endpoints in AWS SDKs. For more details, please refer to the [AWS SDKs and Tools Reference Guide on Account-Based Endpoints](https://docs.aws.amazon.com/sdkref/latest/guide/feature-account-endpoints.html).\n",
@@ -59,7 +45,7 @@
        "smithy-rs#3776"
      ],
      "since-commit": "f0c92d92b680771787af8ab60995d0e1fae02611",
      "age": 3
      "age": 4
    },
    {
      "message": "Fix service specific endpoint url keys\n",
@@ -73,7 +59,7 @@
        "aws-sdk-rust#1252"
      ],
      "since-commit": "f0c92d92b680771787af8ab60995d0e1fae02611",
      "age": 3
      "age": 4
    },
    {
      "message": "Fix a bug where fields that were initially annotated with the `required` trait and later updated to use the `addedDefault` trait were not serialized when their values matched the default, even when the values were explicitly set. With this fix, fields with `addedDefault` are now always serialized.\n",
@@ -87,7 +73,7 @@
        "smithy-rs#4117"
      ],
      "since-commit": "84f5464aacf3544f706d75af0aaddfea42c20e9f",
      "age": 1
      "age": 2
    },
    {
      "message": "Promote `aws-smithy-mocks-experimental` to `aws-smithy-mocks`. This crate is now a recommended tool for testing\ngenerated SDK clients. This release includes several fixes as well as a new sequence builder API that can be\nused to test more complex scenarios such as retries.\n\n```rust\nuse aws_sdk_s3::operation::get_object::GetObjectOutput;\nuse aws_sdk_s3::config::retry::RetryConfig;\nuse aws_smithy_types::byte_stream::ByteStream;\nuse aws_smithy_mocks::{mock, mock_client, RuleMode};\n\n#[tokio::test]\nasync fn test_retry_behavior() {\n    // Create a rule that returns 503 twice, then succeeds\n    let retry_rule = mock!(aws_sdk_s3::Client::get_object)\n        .sequence()\n        .http_status(503, None)\n        .times(2)                                            // Return 503 HTTP status twice\n        .output(|| GetObjectOutput::builder()                // Finally return a successful output\n            .body(ByteStream::from_static(b\"success\"))\n            .build())\n        .build();\n\n    // Create a mocked client with the rule\n    let s3 = mock_client!(\n        aws_sdk_s3,\n        RuleMode::Sequential,\n        [&retry_rule],\n        |client_builder| {\n            client_builder.retry_config(RetryConfig::standard().with_max_attempts(3))\n        }\n    );\n\n    // This should succeed after two retries\n    let result = s3\n        .get_object()\n        .bucket(\"test-bucket\")\n        .key(\"test-key\")\n        .send()\n        .await\n        .expect(\"success after retries\");\n\n    // Verify the response\n    let data = result.body.collect().await.expect(\"successful read\").to_vec();\n    assert_eq!(data, b\"success\");\n\n    // Verify all responses were used\n    assert_eq!(retry_rule.num_calls(), 3);\n}\n```\n",
@@ -102,7 +88,7 @@
        "smithy-rs#3926"
      ],
      "since-commit": "84f5464aacf3544f706d75af0aaddfea42c20e9f",
      "age": 1
      "age": 2
    },
    {
      "message": "Update MSRV to 1.82.0\n",
@@ -116,6 +102,20 @@
        "smithy-rs#4120"
      ],
      "since-commit": "84f5464aacf3544f706d75af0aaddfea42c20e9f",
      "age": 2
    },
    {
      "message": "Replace once_cell with std equivalents\n",
      "meta": {
        "bug": false,
        "breaking": false,
        "tada": false
      },
      "author": "FalkWoldmann",
      "references": [
        "smithy-rs#4105"
      ],
      "since-commit": "f3aebe7b53d7e1be4bd922e13d459f8ef72104fa",
      "age": 1
    }
  ],
+2 −24
Original line number Diff line number Diff line
@@ -338,7 +338,7 @@ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"

[[package]]
name = "aws-config"
version = "1.6.2"
version = "1.6.3"
dependencies = [
 "aws-credential-types",
 "aws-runtime",
@@ -495,7 +495,6 @@ dependencies = [
 "bytes",
 "fastrand 2.3.0",
 "http 0.2.12",
 "once_cell",
 "regex-lite",
 "tokio",
 "tracing",
@@ -523,7 +522,6 @@ dependencies = [
 "futures-util",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -552,7 +550,6 @@ dependencies = [
 "futures-util",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -577,7 +574,6 @@ dependencies = [
 "bytes",
 "fastrand 2.3.0",
 "http 0.2.12",
 "once_cell",
 "regex-lite",
 "tokio",
 "tracing",
@@ -606,7 +602,6 @@ dependencies = [
 "futures-util",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "proptest",
 "regex-lite",
 "serde_json",
@@ -637,7 +632,6 @@ dependencies = [
 "futures-util",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -662,7 +656,6 @@ dependencies = [
 "bytes",
 "fastrand 2.3.0",
 "http 0.2.12",
 "once_cell",
 "regex-lite",
 "tokio",
 "tracing",
@@ -691,7 +684,6 @@ dependencies = [
 "hex",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "pretty_assertions",
 "regex-lite",
 "ring",
@@ -724,7 +716,6 @@ dependencies = [
 "futures-util",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -753,7 +744,6 @@ dependencies = [
 "futures-util",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -783,7 +773,6 @@ dependencies = [
 "futures-util",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -814,7 +803,6 @@ dependencies = [
 "http 0.2.12",
 "http 1.3.1",
 "http-body 1.0.1",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -843,7 +831,6 @@ dependencies = [
 "futures-util",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -869,7 +856,6 @@ dependencies = [
 "aws-types",
 "fastrand 2.3.0",
 "http 0.2.12",
 "once_cell",
 "pretty_assertions",
 "regex-lite",
 "tokio",
@@ -911,7 +897,6 @@ dependencies = [
 "http-body 0.4.6",
 "http-body 1.0.1",
 "lru",
 "once_cell",
 "percent-encoding",
 "pretty_assertions",
 "proptest",
@@ -950,7 +935,6 @@ dependencies = [
 "http 0.2.12",
 "http 1.3.1",
 "md-5",
 "once_cell",
 "proptest",
 "regex-lite",
 "serde_json",
@@ -976,7 +960,6 @@ dependencies = [
 "bytes",
 "fastrand 2.3.0",
 "http 0.2.12",
 "once_cell",
 "regex-lite",
 "tokio",
 "tracing",
@@ -998,7 +981,6 @@ dependencies = [
 "bytes",
 "fastrand 2.3.0",
 "http 0.2.12",
 "once_cell",
 "regex-lite",
 "tokio",
 "tracing",
@@ -1025,7 +1007,6 @@ dependencies = [
 "futures-util",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -1054,7 +1035,6 @@ dependencies = [
 "futures-util",
 "http 0.2.12",
 "http 1.3.1",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -1079,7 +1059,6 @@ dependencies = [
 "bytes",
 "fastrand 2.3.0",
 "http 0.2.12",
 "once_cell",
 "regex-lite",
 "tokio",
 "tracing",
@@ -1112,7 +1091,6 @@ dependencies = [
 "http 0.2.12",
 "http 1.3.1",
 "hyper 0.14.32",
 "once_cell",
 "regex-lite",
 "serde_json",
 "tokio",
@@ -1126,7 +1104,7 @@ version = "0.60.3"

[[package]]
name = "aws-sigv4"
version = "1.3.1"
version = "1.3.2"
dependencies = [
 "aws-credential-types",
 "aws-smithy-eventstream",