Skip to content

Commit 4fcd550

Browse files
authored
Bump MSRV to 1.91.0 (#4487)
## Motivation and Context Bumps MSRV to 1.91.0 ## Description Updates MSRV to 1.91.0 and fixes minor clippy lints introduced in Rust 1.91. ## Testing - CI ## Checklist - [x] For changes to the smithy-rs codegen or runtime crates, I have created a changelog entry Markdown file in the `.changelog` directory, specifying "client," "server," or both in the `applies_to` key. - [x] For changes to the AWS SDK, generated SDK code, or SDK runtime crates, I have created a changelog entry Markdown file in the `.changelog` directory, specifying "aws-sdk-rust" in the `applies_to` key. ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
1 parent b442542 commit 4fcd550

59 files changed

Lines changed: 160 additions & 144 deletions

File tree

Some content is hidden

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

.changelog/bump-msrv-1.91.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
applies_to: ["client", "server", "aws-sdk-rust"]
3+
authors: ["vcjana"]
4+
references: []
5+
breaking: true
6+
new_feature: false
7+
bug_fix: false
8+
---
9+
Upgrade MSRV to Rust 1.91.0.

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ on:
3333
required: false
3434

3535
env:
36-
rust_version: 1.88.0
36+
rust_version: 1.91.0
3737
rust_toolchain_components: clippy,rustfmt
3838
ENCRYPTED_DOCKER_PASSWORD: ${{ secrets.ENCRYPTED_DOCKER_PASSWORD }}
3939
DOCKER_LOGIN_TOKEN_PASSPHRASE: ${{ secrets.DOCKER_LOGIN_TOKEN_PASSPHRASE }}
@@ -253,20 +253,23 @@ jobs:
253253
build_aws_exclude: ''
254254
build_smithy_rs_exclude: --exclude aws-smithy-http-server-python --exclude aws-smithy-http-server-typescript --exclude aws-smithy-experimental --exclude aws-smithy-http-client
255255
test_smithy_rs_features: --all-features
256+
test_aws_features: --all-features
256257
test_aws_exclude: ''
257258
test_smithy_rs_exclude: --exclude aws-smithy-http-server-python --exclude aws-smithy-http-server-typescript --exclude aws-smithy-experimental --exclude aws-smithy-http-client
258259
- target: powerpc-unknown-linux-gnu
259260
build_smithy_rs_features: ''
260261
build_aws_exclude: --exclude aws-inlineable
261262
build_smithy_rs_exclude: --exclude aws-smithy-http-server-python --exclude aws-smithy-http-server-typescript --exclude aws-smithy-experimental --exclude aws-smithy-http-client
262263
test_smithy_rs_features: ''
264+
test_aws_features: ''
263265
test_aws_exclude: --exclude aws-inlineable
264266
test_smithy_rs_exclude: --exclude aws-smithy-http-server-python --exclude aws-smithy-http-server-typescript --exclude aws-smithy-experimental --exclude aws-smithy-http-client
265267
- target: powerpc64-unknown-linux-gnu
266268
build_smithy_rs_features: ''
267269
build_aws_exclude: --exclude aws-inlineable
268270
build_smithy_rs_exclude: --exclude aws-smithy-http-server-python --exclude aws-smithy-http-server-typescript --exclude aws-smithy-experimental --exclude aws-smithy-http-client
269271
test_smithy_rs_features: ''
272+
test_aws_features: ''
270273
test_aws_exclude: --exclude aws-inlineable
271274
test_smithy_rs_exclude: --exclude aws-smithy-http-server-python --exclude aws-smithy-http-server-typescript --exclude aws-smithy-experimental --exclude aws-smithy-http-client
272275
steps:
@@ -331,7 +334,7 @@ jobs:
331334
run: cross test --target ${{ matrix.target }} --manifest-path "rust-runtime/Cargo.toml" ${{ matrix.test_smithy_rs_exclude }} --workspace ${{ matrix.test_smithy_rs_features }}
332335
- name: Test AWS rust-runtime crates
333336
shell: bash
334-
run: cross test --target ${{ matrix.target }} --manifest-path "aws/rust-runtime/Cargo.toml" ${{ matrix.test_aws_exclude }} --workspace
337+
run: cross test --target ${{ matrix.target }} --manifest-path "aws/rust-runtime/Cargo.toml" ${{ matrix.test_aws_exclude }} --workspace ${{ matrix.test_aws_features }}
335338

336339
# Run the canary against generated SDKs
337340
#

.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.88.0
13+
rust_version: 1.91.0
1414

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

.github/workflows/github-pages.yml

Lines changed: 1 addition & 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.88.0
11+
rust_version: 1.91.0
1212

1313
# Allow only one doc pages build to run at a time for the entire smithy-rs repo
1414
concurrency:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ env:
3535
apt_dependencies: libssl-dev gnuplot jq
3636
java_version: 17
3737
rust_toolchain_components: clippy,rustfmt
38-
rust_nightly_version: nightly-2025-05-04
38+
rust_nightly_version: nightly-2025-10-18
3939
ENCRYPTED_DOCKER_PASSWORD: ${{ secrets.ENCRYPTED_DOCKER_PASSWORD }}
4040
DOCKER_LOGIN_TOKEN_PASSPHRASE: ${{ secrets.DOCKER_LOGIN_TOKEN_PASSPHRASE }}
4141

.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.88.0
13+
rust_version: 1.91.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
@@ -46,7 +46,7 @@ jobs:
4646
- name: Set up Rust
4747
uses: dtolnay/rust-toolchain@master
4848
with:
49-
toolchain: 1.88.0
49+
toolchain: 1.91.0
5050
- name: Delete old SDK
5151
run: |
5252
- name: Generate a fresh SDK

aws/codegen-aws-sdk/src/test/kotlin/software/amazon/smithy/rustsdk/EndpointOverrideMetricDecoratorTest.kt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ class EndpointOverrideMetricDecoratorTest {
8888
awsSdkIntegrationTest(
8989
model,
9090
testParams,
91-
environment = mapOf("RUSTUP_TOOLCHAIN" to "1.88.0"),
9291
) { context, rustCrate ->
9392
val rc = context.runtimeConfig
9493
val moduleName = context.moduleUseName()
@@ -104,16 +103,16 @@ class EndpointOverrideMetricDecoratorTest {
104103
use $moduleName::Client;
105104
use #{capture_request};
106105
use #{assert_ua_contains_metric_values};
107-
106+
108107
let (http_client, rcvr) = capture_request(None);
109-
108+
110109
// Create SdkConfig with endpoint URL
111110
let sdk_config = #{SdkConfig}::builder()
112111
.region(Region::new("us-east-1"))
113112
.endpoint_url("https://sdk-custom.example.com")
114113
.http_client(http_client.clone())
115114
.build();
116-
115+
117116
// Create client from SdkConfig
118117
let client = Client::new(&sdk_config);
119118
@@ -136,7 +135,7 @@ class EndpointOverrideMetricDecoratorTest {
136135
.headers()
137136
.get("x-amz-user-agent")
138137
.expect("x-amz-user-agent header missing");
139-
138+
140139
assert_ua_contains_metric_values(user_agent, &["N"]);
141140
""",
142141
*preludeScope,
@@ -156,7 +155,6 @@ class EndpointOverrideMetricDecoratorTest {
156155
awsSdkIntegrationTest(
157156
model,
158157
testParams,
159-
environment = mapOf("RUSTUP_TOOLCHAIN" to "1.88.0"),
160158
) { context, rustCrate ->
161159
val rc = context.runtimeConfig
162160
val moduleName = context.moduleUseName()
@@ -171,9 +169,9 @@ class EndpointOverrideMetricDecoratorTest {
171169
use $moduleName::config::{Credentials, Region, SharedCredentialsProvider};
172170
use $moduleName::{Config, Client};
173171
use #{capture_request};
174-
172+
175173
let (http_client, rcvr) = capture_request(None);
176-
174+
177175
// Create config WITHOUT endpoint override
178176
let config = Config::builder()
179177
.credentials_provider(SharedCredentialsProvider::new(Credentials::for_tests()))

aws/rust-runtime/Cargo.lock

Lines changed: 17 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aws/rust-runtime/aws-config/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-config"
3-
version = "1.8.13"
3+
version = "1.8.14"
44
authors = [
55
"AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
66
"Russell Cohen <rcoh@amazon.com>",
@@ -10,7 +10,7 @@ edition = "2021"
1010
exclude = ["test-data/*", "integration-tests/*"]
1111
license = "Apache-2.0"
1212
repository = "https://github.com/smithy-lang/smithy-rs"
13-
rust-version = "1.88"
13+
rust-version = "1.91"
1414

1515
[features]
1616
behavior-version-latest = []

0 commit comments

Comments
 (0)