Skip to content

Commit 4a0baea

Browse files
committed
Merge remote-tracking branch 'upstream/main' into smithy-rpc-v2
2 parents fc635cf + 50c825b commit 4a0baea

File tree

126 files changed

+3569
-523
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+3569
-523
lines changed

.github/workflows/backport-pull-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
git config --local user.name "AWS SDK Rust Bot"
3333
git config --local user.email "[email protected]"
3434
35-
git fetch
35+
git fetch --unshallow
3636
git checkout origin/main
3737
backport_branch="merge-${{ env.release_branch }}-to-main-$(date +%s)"
3838
git checkout -b "${backport_branch}"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ on:
3838
required: false
3939

4040
env:
41-
rust_version: 1.75.0
41+
rust_version: 1.76.0
4242
rust_toolchain_components: clippy,rustfmt
4343
ENCRYPTED_DOCKER_PASSWORD: ${{ secrets.ENCRYPTED_DOCKER_PASSWORD }}
4444
DOCKER_LOGIN_TOKEN_PASSPHRASE: ${{ secrets.DOCKER_LOGIN_TOKEN_PASSPHRASE }}

.github/workflows/claim-crate-names.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
env:
13-
rust_version: 1.75.0
13+
rust_version: 1.76.0
1414

1515
name: Claim unpublished crate names on crates.io
1616
run-name: ${{ github.workflow }}

.github/workflows/dry-run-release-scheduled.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414
jobs:
1515
smithy-rs-scheduled-dry-run-release:
1616
name: Scheduled dry-run release
17+
if: github.repository == 'smithy-lang/smithy-rs'
1718
uses: ./.github/workflows/release.yml
1819
with:
1920
commit_sha: main

.github/workflows/github-pages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
name: Update GitHub Pages
99

1010
env:
11-
rust_version: 1.75.0
11+
rust_version: 1.76.0
1212

1313
# Allow only one doc pages build to run at a time for the entire smithy-rs repo
1414
concurrency:
@@ -17,6 +17,7 @@ concurrency:
1717

1818
jobs:
1919
build-and-deploy-docs:
20+
if: github.repository == 'smithy-lang/smithy-rs'
2021
runs-on: ubuntu-latest
2122
steps:
2223
- name: Checkout

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
env:
13-
rust_version: 1.75.0
13+
rust_version: 1.76.0
1414

1515
name: Release smithy-rs
1616
on:

.github/workflows/update-sdk-next.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Set up Rust
4646
uses: dtolnay/rust-toolchain@master
4747
with:
48-
toolchain: 1.75.0
48+
toolchain: 1.76.0
4949
- name: Delete old SDK
5050
run: |
5151
- name: Generate a fresh SDK

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,40 @@
11
<!-- Do not manually edit this file. Use the `changelogger` tool. -->
2+
May 28th, 2024
3+
==============
4+
5+
May 22nd, 2024
6+
==============
7+
**New this release:**
8+
- :bug: (client, [smithy-rs#3656](https://github.com/smithy-lang/smithy-rs/issues/3656), [smithy-rs#3657](https://github.com/smithy-lang/smithy-rs/issues/3657)) Fix the Content-Length enforcement so it is only applied to GET requests.
9+
10+
11+
May 21st, 2024
12+
==============
13+
**Breaking Changes:**
14+
- :warning::tada: (all, [smithy-rs#3653](https://github.com/smithy-lang/smithy-rs/issues/3653)) Update MSRV to `1.76.0`
15+
16+
**New this release:**
17+
- :tada: (client, [smithy-rs#2891](https://github.com/smithy-lang/smithy-rs/issues/2891)) Compression is now supported for operations modeled with the `@requestCompression` trait.
18+
19+
[**For more details, see the long-form changelog discussion**](https://github.com/smithy-lang/smithy-rs/discussions/3646).
20+
- :bug: (client, [aws-sdk-rust#1133](https://github.com/awslabs/aws-sdk-rust/issues/1133)) Fix panics that occurred when `Duration` for exponential backoff could not be created from too big a float.
21+
- :bug: (all, [smithy-rs#3491](https://github.com/smithy-lang/smithy-rs/issues/3491), [aws-sdk-rust#1079](https://github.com/awslabs/aws-sdk-rust/issues/1079)) Clients now enforce that the Content-Length sent by the server matches the length of the returned response body. In most cases, Hyper will enforce this behavior, however, in extremely rare circumstances where the Tokio runtime is dropped in between subsequent requests, this scenario can occur.
22+
- :bug: (all, [aws-sdk-rust#1141](https://github.com/awslabs/aws-sdk-rust/issues/1141), [aws-sdk-rust#1146](https://github.com/awslabs/aws-sdk-rust/issues/1146), [aws-sdk-rust#1148](https://github.com/awslabs/aws-sdk-rust/issues/1148)) Fixes stalled upload stream protection to not apply to empty request bodies and to stop checking for violations once the request body has been read.
23+
24+
25+
May 8th, 2024
26+
=============
27+
**Breaking Changes:**
28+
- :warning::tada: (all, [smithy-rs#3527](https://github.com/smithy-lang/smithy-rs/issues/3527)) Stalled stream protection on uploads is now enabled by default behind `BehaviorVersion::v2024_03_28()`. If you're using `BehaviorVersion::latest()`, you will get this change automatically by running `cargo update`.
29+
30+
**New this release:**
31+
- (all, [smithy-rs#3161](https://github.com/smithy-lang/smithy-rs/issues/3161), @mnissenb) Implement Debug for DateTime
32+
33+
**Contributors**
34+
Thank you for your contributions! ❤
35+
- @mnissenb ([smithy-rs#3161](https://github.com/smithy-lang/smithy-rs/issues/3161))
36+
37+
238
April 30th, 2024
339
================
440
**New this release:**

CHANGELOG.next.toml

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,9 @@
1010
# references = ["smithy-rs#920"]
1111
# meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client | server | all"}
1212
# author = "rcoh"
13-
[[aws-sdk-rust]]
14-
message = """
15-
`aws-config::loader::ConfigLoader` now creates an `IdentityCache` by default when using `BehaviorVersion::v2024_03_28()`
16-
or newer. If you're using `BehaviorVersion::latest()`, you will get this change automatically when updating. This
17-
allows clients created from `SdkConfig` to use the same cache instance by default resulting in fewer cache misses
18-
when using multiple clients.
19-
"""
20-
references = ["smithy-rs#3427"]
21-
meta = { "breaking" = false, "tada" = true, "bug" = false }
22-
author = "aajtodd"
2313

2414
[[smithy-rs]]
25-
message = "Stalled stream protection on uploads is now enabled by default behind `BehaviorVersion::v2024_03_28()`. If you're using `BehaviorVersion::latest()`, you will get this change automatically by running `cargo update`."
26-
references = ["smithy-rs#3527"]
27-
meta = { "breaking" = true, "tada" = true, "bug" = false }
28-
authors = ["jdisanti"]
29-
30-
[[aws-sdk-rust]]
31-
message = "Stalled stream protection on uploads is now enabled by default behind `BehaviorVersion::v2024_03_28()`. If you're using `BehaviorVersion::latest()`, you will get this change automatically by running `cargo update`. Updating your SDK is not necessary, this change will happen when a new version of the client libraries are consumed."
32-
references = ["smithy-rs#3527"]
33-
meta = { "breaking" = true, "tada" = true, "bug" = false }
34-
author = "jdisanti"
35-
36-
[[smithy-rs]]
37-
message = "Implement Debug for DateTime"
38-
references = ["smithy-rs#3161"]
39-
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "all" }
40-
author = "mnissenb"
15+
message = "Reduce verbosity of various debug logs"
16+
references = ["smithy-rs#3664"]
17+
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client"}
18+
author = "landonxjames"

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ Project Layout
3030
* `aws`: AWS specific codegen & Rust code (signing, endpoints, customizations, etc.)
3131
Common commands:
3232
* `./gradlew :aws:sdk:assemble`: Generate (but do not test / compile etc.) a fresh SDK into `sdk/build/aws-sdk`
33-
* `./gradlew :aws:sdk:test`: Generate & run all tests for a fresh SDK
33+
* `./gradlew :aws:sdk:sdkTest`: Generate & run all tests for a fresh SDK. (Note that these tests require Go to be
34+
installed for FIP support to compile properly)
3435
* `./gradlew :aws:sdk:{cargoCheck, cargoTest, cargoDocs, cargoClippy}`: Generate & run specified cargo command.
3536
* `codegen-core`: Common code generation logic useful for clients and servers
3637
* `codegen-client`: Whitelabel Smithy client code generation
@@ -123,7 +124,7 @@ to generate more or less AWS service clients.
123124
# Generate an SDK, but do not attempt to compile / run tests. Useful for inspecting generated code
124125
./gradlew :aws:sdk:assemble
125126
# Run all the tests
126-
./gradlew :aws:sdk:test
127+
./gradlew :aws:sdk:sdkTest
127128
# Validate that the generated code compiles
128129
./gradlew :aws:sdk:cargoCheck
129130
# Validate that the generated code passes Clippy

0 commit comments

Comments
 (0)