Skip to content

Commit cfff41a

Browse files
jdisantiZelda Hessler82marbag
authored
Upgrade MSRV to 1.68.2 (#2745)
## Motivation and Context This PR upgrades the MSRV to 1.68.2. ## Checklist - [x] I have updated `CHANGELOG.next.toml` if I made changes to the smithy-rs codegen or runtime crates - [x] I have updated `CHANGELOG.next.toml` if I made changes to the AWS SDK, generated SDK code, or SDK runtime crates ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._ --------- Co-authored-by: Zelda Hessler <zhessler@amazon.com> Co-authored-by: 82marbag <69267416+82marbag@users.noreply.github.com>
1 parent 356444b commit cfff41a

File tree

24 files changed

+59
-54
lines changed

24 files changed

+59
-54
lines changed

.cargo/config.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
[build]
22
# Share one `target` directory at the project root for all Cargo projects and workspaces in smithy-rs
33
target-dir = "target"
4+
5+
# TODO(https://github.com/awslabs/smithy-rs/issues/2766): The sparse registry config can be removed when upgrading to Rust 1.70
6+
[registries.crates-io]
7+
protocol = "sparse"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ on:
2929
required: false
3030

3131
env:
32-
rust_version: 1.67.1
32+
rust_version: 1.68.2
3333
rust_toolchain_components: clippy,rustfmt
3434
ENCRYPTED_DOCKER_PASSWORD: ${{ secrets.ENCRYPTED_DOCKER_PASSWORD }}
3535
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.67.1
13+
rust_version: 1.68.2
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.67.1
11+
rust_version: 1.68.2
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
@@ -28,7 +28,7 @@ concurrency:
2828

2929
env:
3030
java_version: 11
31-
rust_version: 1.67.1
31+
rust_version: 1.68.2
3232
rust_toolchain_components: clippy,rustfmt
3333
apt_dependencies: libssl-dev gnuplot jq
3434

.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.67.1
13+
rust_version: 1.68.2
1414

1515
name: Release smithy-rs
1616
run-name: ${{ github.workflow }} ${{ inputs.semantic_version }} (${{ inputs.commit_sha }}) - ${{ inputs.dry_run && 'Dry run' || 'Production run' }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Set up Rust
3333
uses: dtolnay/rust-toolchain@master
3434
with:
35-
toolchain: 1.67.1
35+
toolchain: 1.68.2
3636
- name: Delete old SDK
3737
run: |
3838
- name: Generate a fresh SDK

CHANGELOG.next.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@ references = ["smithy-rs#2742"]
134134
meta = { "breaking" = true, "tada" = false, "bug" = false }
135135
author = "ysaito1001"
136136

137+
[[aws-sdk-rust]]
138+
message = "Update MSRV to Rust 1.68.2"
139+
references = ["smithy-rs#2745"]
140+
meta = { "breaking" = true, "tada" = false, "bug" = false }
141+
author = "jdisanti"
142+
143+
[[smithy-rs]]
144+
message = "Update MSRV to Rust 1.68.2"
145+
references = ["smithy-rs#2745"]
146+
meta = { "breaking" = true, "tada" = false, "bug" = false, "target" = "all"}
147+
author = "jdisanti"
148+
137149
[[smithy-rs]]
138150
message = """`ShapeId` is the new structure used to represent a shape, with its absolute name, namespace and name.
139151
`OperationExtension`'s members are replaced by the `ShapeId` and operations' names are now replced by a `ShapeId`.

aws/rust-runtime/aws-inlineable/src/glacier_checksums.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ fn compute_hash_tree(mut hashes: Vec<Digest>) -> Digest {
109109
"even an empty file will produce a digest. this function assumes that hashes is non-empty"
110110
);
111111
while hashes.len() > 1 {
112-
let next = hashes.chunks(2).into_iter().map(|chunk| match *chunk {
112+
let next = hashes.chunks(2).map(|chunk| match *chunk {
113113
[left, right] => {
114114
let mut ctx = Context::new(&SHA256);
115115
ctx.update(left.as_ref());

aws/rust-runtime/aws-inlineable/src/glacier_interceptors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ fn compute_hash_tree(mut hashes: Vec<Digest>) -> Digest {
215215
"even an empty file will produce a digest. this function assumes that hashes is non-empty"
216216
);
217217
while hashes.len() > 1 {
218-
let next = hashes.chunks(2).into_iter().map(|chunk| match *chunk {
218+
let next = hashes.chunks(2).map(|chunk| match *chunk {
219219
[left, right] => {
220220
let mut ctx = Context::new(&SHA256);
221221
ctx.update(left.as_ref());

0 commit comments

Comments
 (0)