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 rustls to version 0.23 #59

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

j4r0u53k
Copy link

Updates the code to compile with newer versions of rustls and rustls_pemfile.

Replaces lazy_static with std::sync::LazyLock, because lazy_static could not handle async move construct for unknown reason, and it's recommended to replace it anyways.

Fixes some warnings generated by cargo clippy, mostly lifetime elisions. I didn't fix the warnings regarding the large size difference between variants of enums, because I wasn't sure about the correct fix. The Poll:Ok would probably still return the large data instead of the Box anyways.

@j4r0u53k j4r0u53k force-pushed the update-rustls-0-23 branch 2 times, most recently from f409cc1 to f3652b3 Compare January 24, 2025 09:53
Updates the code to compile with newer versions of `rustls`
and `rustls_pemfile`.

Replaces `lazy_static` with `std::sync::LazyLock`, because `lazy_static` could not
handle `async move` construct for unknown reason, and it's recommended to replace it anyways.

Fixes some warnings generated by `cargo clippy`, mostly lifetime elisions.
I didn't fix the warnings regarding the large size difference between variants of
enums, because I wasn't sure about the correct fix. The `Poll:Ok` would probably
still return the large data instead of the Box anyways.
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.

1 participant