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

Upgrade to Rust 1.62.0 #1825

Merged
merged 50 commits into from
Oct 17, 2022
Merged

Upgrade to Rust 1.62.0 #1825

merged 50 commits into from
Oct 17, 2022

Conversation

LukeMathWalker
Copy link
Contributor

@LukeMathWalker LukeMathWalker commented Oct 7, 2022

Motivation and Context

Upgrade MSRV to Rust 1.62.0.

Description

We are upgrading the Rust version in our various configs and fixing all relevant Clippy lints.

In the process of upgrading Rust, we had to upgrade pyo3 and pyo3-asyncio from 0.16 to 0.17.

Checklist

  • I have updated CHANGELOG.next.toml if I made changes to the smithy-rs codegen or runtime crates
  • 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.

Comment on lines -28 to +29
pyo3 = "0.16.5"
pyo3-asyncio = { version = "0.16.0", features = ["tokio-runtime"] }
pyo3 = "0.17.0"
pyo3-asyncio = { version = "0.17.0", features = ["tokio-runtime"] }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was necessary to fix a bunch of noisy reborrow lints - is upgrading an issue? Everything compiles and all tests are passing.
@crisidev @unexge
https://pyo3.rs/v0.17.0/migration.html#from-016-to-017

@github-actions

This comment was marked as outdated.

@github-actions

This comment was marked as outdated.

@jjant jjant marked this pull request as ready for review October 12, 2022 08:49
@jjant jjant requested review from a team as code owners October 12, 2022 08:49
@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@@ -41,7 +41,7 @@ pub enum OsFamily {
/// is set to a specific value. This macro simplifies checking the current OS family.
///
/// Usage:
/// ```rust
/// ```ignore
Copy link
Contributor

Choose a reason for hiding this comment

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

See e68dfb7 for the reason on the ignore here.

rust is redundant and can be removed.

Copy link
Contributor

@weihanglo weihanglo left a comment

Choose a reason for hiding this comment

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

We may already discuss this in some place. Do we want to set rust-version in Cargo.toml?

@jjant
Copy link
Contributor

jjant commented Oct 14, 2022

@weihanglo Good idea, but I'll do it in a different PR. I'd rather not add a diff of ~50 Cargo.tomls here.

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@github-actions
Copy link

A new generated diff is ready to view.

A new doc preview is ready to view.

@jjant jjant merged commit 18d969e into main Oct 17, 2022
@jjant jjant deleted the upgrade-rust-1-62 branch October 17, 2022 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants