Skip to content

Commit b1cbce6

Browse files
authored
Upgrade MSRV to 1.75 (#3553)
_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 979c0ca commit b1cbce6

File tree

15 files changed

+33
-26
lines changed

15 files changed

+33
-26
lines changed

.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.74.1
41+
rust_version: 1.75.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.74.1
13+
rust_version: 1.75.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.74.1
11+
rust_version: 1.75.0
1212

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

.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.74.1
13+
rust_version: 1.75.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.74.1
48+
toolchain: 1.75.0
4949
- name: Delete old SDK
5050
run: |
5151
- name: Generate a fresh SDK

CHANGELOG.next.toml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,16 @@
99
# message = "Fix typos in module documentation for generated crates"
1010
# references = ["smithy-rs#920"]
1111
# meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "client | server | all"}
12-
# author = "rcoh"
12+
# author = "rcoh"
13+
14+
[[aws-sdk-rust]]
15+
message = "Upgraded MSRV to Rust 1.75"
16+
references = ["smithy-rs#3553"]
17+
meta = { "breaking" = false, "tada" = false, "bug" = false }
18+
author = "jdisanti"
19+
20+
[[smithy-rs]]
21+
message = "Upgraded MSRV to Rust 1.75"
22+
references = ["smithy-rs#3553"]
23+
meta = { "breaking" = false, "tada" = false, "bug" = false, "target" = "all"}
24+
author = "jdisanti"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aws-config"
3-
version = "1.2.0"
3+
version = "1.2.1"
44
authors = [
55
"AWS Rust SDK Team <aws-sdk-rust@amazon.com>",
66
"Russell Cohen <rcoh@amazon.com>",

aws/rust-runtime/aws-config/src/credential_process.rs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -207,19 +207,12 @@ pub(crate) fn parse_credential_process_json_credentials(
207207
}
208208

209209
fn parse_expiration(expiration: impl AsRef<str>) -> Result<SystemTime, InvalidJsonCredentials> {
210-
SystemTime::try_from(
211-
OffsetDateTime::parse(expiration.as_ref(), &Rfc3339).map_err(|err| {
212-
InvalidJsonCredentials::InvalidField {
213-
field: "Expiration",
214-
err: err.into(),
215-
}
216-
})?,
217-
)
218-
.map_err(|_| {
219-
InvalidJsonCredentials::Other(
220-
"credential expiration time cannot be represented by a DateTime".into(),
221-
)
222-
})
210+
OffsetDateTime::parse(expiration.as_ref(), &Rfc3339)
211+
.map(SystemTime::from)
212+
.map_err(|err| InvalidJsonCredentials::InvalidField {
213+
field: "Expiration",
214+
err: err.into(),
215+
})
223216
}
224217

225218
#[cfg(test)]

aws/sdk-codegen/src/main/kotlin/software/amazon/smithy/rustsdk/customize/timestream/TimestreamDecorator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class TimestreamDecorator : ClientCodegenDecorator {
6363
async fn resolve_endpoint(client: &crate::Client) -> Result<(#{Endpoint}, #{SystemTime}), #{BoxError}> {
6464
let describe_endpoints =
6565
client.describe_endpoints().send().await?;
66-
let endpoint = describe_endpoints.endpoints().get(0).unwrap();
66+
let endpoint = describe_endpoints.endpoints().first().unwrap();
6767
let expiry = client.config().time_source().expect("checked when ep discovery was enabled").now()
6868
+ #{Duration}::from_secs(endpoint.cache_period_in_minutes() as u64 * 60);
6969
Ok((

codegen-core/src/main/kotlin/software/amazon/smithy/rust/codegen/core/testutil/Rust.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ object TestWorkspace {
118118
// help rust select the right version when we run cargo test
119119
// TODO(https://github.com/smithy-lang/smithy-rs/issues/2048): load this from the msrv property using a
120120
// method as we do for runtime crate versions
121-
"[toolchain]\nchannel = \"1.74.1\"\n",
121+
"[toolchain]\nchannel = \"1.75.0\"\n",
122122
)
123123
// ensure there at least an empty lib.rs file to avoid broken crates
124124
newProject.resolve("src").mkdirs()

0 commit comments

Comments
 (0)