Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update MSRV to 1.69.0 #2893

Merged
merged 3 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ on:
required: false

env:
rust_version: 1.68.2
rust_version: 1.69.0
rust_toolchain_components: clippy,rustfmt
ENCRYPTED_DOCKER_PASSWORD: ${{ secrets.ENCRYPTED_DOCKER_PASSWORD }}
DOCKER_LOGIN_TOKEN_PASSPHRASE: ${{ secrets.DOCKER_LOGIN_TOKEN_PASSPHRASE }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/claim-crate-names.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
cancel-in-progress: true

env:
rust_version: 1.68.2
rust_version: 1.69.0

name: Claim unpublished crate names on crates.io
run-name: ${{ github.workflow }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/github-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
name: Update GitHub Pages

env:
rust_version: 1.68.2
rust_version: 1.69.0

# Allow only one doc pages build to run at a time for the entire smithy-rs repo
concurrency:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ concurrency:

env:
java_version: 11
rust_version: 1.68.2
rust_version: 1.69.0
rust_toolchain_components: clippy,rustfmt
apt_dependencies: libssl-dev gnuplot jq

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ concurrency:
cancel-in-progress: true

env:
rust_version: 1.68.2
rust_version: 1.69.0

name: Release smithy-rs
run-name: ${{ github.workflow }} ${{ inputs.semantic_version }} (${{ inputs.commit_sha }}) - ${{ inputs.dry_run && 'Dry run' || 'Production run' }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-sdk-next.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Set up Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.68.2
toolchain: 1.69.0
- name: Delete old SDK
run: |
- name: Generate a fresh SDK
Expand Down
12 changes: 6 additions & 6 deletions CHANGELOG.next.toml
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,16 @@ meta = { "breaking" = true, "tada" = false, "bug" = false }
author = "ysaito1001"

[[aws-sdk-rust]]
message = "Update MSRV to Rust 1.68.2"
references = ["smithy-rs#2745"]
message = "Update MSRV to Rust 1.69.0"
references = ["smithy-rs#2893"]
meta = { "breaking" = true, "tada" = false, "bug" = false }
author = "jdisanti"
author = "Velfi"
Comment on lines +162 to +165
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the sake of keeping records, do we want to leave John's change log entries and then add new change log entries for updating to 1.69.0 (i.e. keep both A->B and B->C, instead of A->C)?


[[smithy-rs]]
message = "Update MSRV to Rust 1.68.2"
references = ["smithy-rs#2745"]
message = "Update MSRV to Rust 1.69.0"
references = ["smithy-rs#2893"]
meta = { "breaking" = true, "tada" = false, "bug" = false, "target" = "all" }
author = "jdisanti"
author = "Velfi"

[[smithy-rs]]
message = """`ShapeId` is the new structure used to represent a shape, with its absolute name, namespace and name.
Expand Down
6 changes: 3 additions & 3 deletions aws/rust-runtime/aws-inlineable/src/endpoint_discovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ mod test {
use crate::endpoint_discovery::create_cache;
use aws_smithy_async::rt::sleep::{SharedAsyncSleep, TokioSleep};
use aws_smithy_async::test_util::controlled_time_and_sleep;
use aws_smithy_async::time::{SharedTimeSource, SystemTimeSource};
use aws_smithy_async::time::{SharedTimeSource, SystemTimeSource, TimeSource};
use aws_smithy_types::endpoint::Endpoint;
use std::sync::atomic::{AtomicUsize, Ordering};
use std::sync::Arc;
use std::time::{Duration, SystemTime, UNIX_EPOCH};
use std::time::{Duration, UNIX_EPOCH};
use tokio::time::timeout;

fn check_send_v<T: Send>(t: T) -> T {
Expand All @@ -178,7 +178,7 @@ mod test {
|| async {
Ok((
Endpoint::builder().url("http://foo.com").build(),
SystemTime::now(),
SystemTimeSource::new().now(),
))
},
SharedAsyncSleep::new(TokioSleep::new()),
Expand Down
14 changes: 4 additions & 10 deletions aws/rust-runtime/aws-inlineable/src/http_request_checksum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,11 +239,8 @@ mod tests {
let mut body = request.body().try_clone().expect("body is retryable");

let mut body_data = BytesMut::new();
loop {
match body.data().await {
Some(data) => body_data.extend_from_slice(&data.unwrap()),
None => break,
}
while let Some(data) = body.data().await {
body_data.extend_from_slice(&data.unwrap())
}
let body = std::str::from_utf8(&body_data).unwrap();
assert_eq!(
Expand Down Expand Up @@ -290,11 +287,8 @@ mod tests {
let mut body = request.body().try_clone().expect("body is retryable");

let mut body_data = BytesMut::new();
loop {
match body.data().await {
Some(data) => body_data.extend_from_slice(&data.unwrap()),
None => break,
}
while let Some(data) = body.data().await {
body_data.extend_from_slice(&data.unwrap())
}
let body = std::str::from_utf8(&body_data).unwrap();
let expected_checksum = base64::encode(&crc32c_checksum);
Expand Down
4 changes: 2 additions & 2 deletions aws/rust-runtime/aws-sigv4/src/http_request/sign.rs
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ mod tests {
security_token: None,
region: "us-east-1",
service_name: "foo",
time: std::time::SystemTime::now(),
time: std::time::SystemTime::UNIX_EPOCH,
settings,
};

Expand Down Expand Up @@ -640,7 +640,7 @@ mod tests {
security_token: None,
region: "us-east-1",
service_name: "foo",
time: std::time::SystemTime::now(),
time: std::time::SystemTime::UNIX_EPOCH,
settings,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ object TestWorkspace {
// help rust select the right version when we run cargo test
// TODO(https://github.com/awslabs/smithy-rs/issues/2048): load this from the msrv property using a
// method as we do for runtime crate versions
"[toolchain]\nchannel = \"1.68.2\"\n",
"[toolchain]\nchannel = \"1.69.0\"\n",
)
// ensure there at least an empty lib.rs file to avoid broken crates
newProject.resolve("src").mkdirs()
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#

# Rust MSRV (entered into the generated README)
rust.msrv=1.68.2
rust.msrv=1.69.0

# To enable debug, swap out the two lines below.
# When changing this value, be sure to run `./gradlew --stop` to kill the Gradle daemon.
Expand Down
2 changes: 1 addition & 1 deletion rust-runtime/aws-smithy-http/src/middleware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ where
O: ParseHttpResponse<Output = Result<T, E>>,
{
if let Some(parsed_response) =
debug_span!("parse_unloaded").in_scope(&mut || handler.parse_unloaded(&mut response))
debug_span!("parse_unloaded").in_scope(|| handler.parse_unloaded(&mut response))
{
trace!(response = ?response, "read HTTP headers for streaming response");
return sdk_result(parsed_response, response);
Expand Down
6 changes: 4 additions & 2 deletions rust-runtime/aws-smithy-runtime-api/src/client/identity.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl Identity {
}
}

impl fmt::Debug for Identity {
impl Debug for Identity {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Identity")
.field("data", (self.data_debug)(&self.data))
Expand All @@ -133,6 +133,7 @@ impl fmt::Debug for Identity {
#[cfg(test)]
mod tests {
use super::*;
use aws_smithy_async::time::{SystemTimeSource, TimeSource};

#[test]
fn check_send_sync() {
Expand All @@ -148,7 +149,8 @@ mod tests {
last: String,
}

let expiration = SystemTime::now();
let ts = SystemTimeSource::new();
let expiration = ts.now();
let identity = Identity::new(
MyIdentityData {
first: "foo".into(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ mod tests {
.status(StatusCode::OK)
.body(SdkBody::empty())
.map_err(|err| OrchestratorError::other(Box::new(err)))
.map(|res| Output::erase(res)),
.map(Output::erase),
)
}

Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.68.2"
channel = "1.69.0"
2 changes: 1 addition & 1 deletion tools/ci-build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# This is the base Docker build image used by CI

ARG base_image=public.ecr.aws/amazonlinux/amazonlinux:2
ARG rust_stable_version=1.68.2
ARG rust_stable_version=1.69.0
ARG rust_nightly_version=nightly-2023-05-31

FROM ${base_image} AS bare_base_image
Expand Down