Skip to content

Conversation

@avtrujillo
Copy link

The rustls crate made some significant changes to its api in v0.23.0, as summarized in the release notes. This pull request bumps the versions of the rustls, rustls-pemfile, and webpki-roots crates, and makes a number of changes needed in response to the aforementioned api changes.

There is, unfortunately, an important drawback to consider. The v0.23.0 release introduced process-wide selection of crypto providers, which requires either that A) we make a breaking api change that requires users to pass in a CryptoProvider when creating a ClientConnection or that B) the user calls CryptoProvider::install_default() exactly once. This pull request does not implement option A, nor does it include the documentation necessary for users to make option B work. I'm interested in adding the documentation for B and maybe trying to figure out some way of putting A behind a feature gate if desired, but I wanted to get feedback first.

@avtrujillo avtrujillo changed the title Remove unnecessary addition of ring feature in rustls dep of sqlx-core update rustls dependency and make edits to support its api changes May 7, 2024
@avtrujillo
Copy link
Author

Realizing now that this is very similar to the changes made in this branch, which is a couple months behind main

@abonander
Copy link
Collaborator

@avtrujillo can you rebase to re-run CI please?

@abonander
Copy link
Collaborator

Superseded by #3399

@abonander abonander closed this Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants