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

Use std::sync::OnceLock instead of once_cell::sync::Lazy #959

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

rmg-x
Copy link
Contributor

@rmg-x rmg-x commented Jan 28, 2025

This is a revival of #725 but for ureq 3.0 adhering to the "lightweight" spirit of this library.
MSRV is 1.71.1 and OnceLock was added in 1.70.0 therefore no bump is required.

I'm not exactly sure if the changes to public structs in tls/ are OK.

@algesten
Copy link
Owner

Thanks!

I'm not exactly sure if the changes to public structs in tls/ are OK.

Those structures do not follow semver yet, so that's ok: https://github.com/algesten/ureq?tab=readme-ov-file#versioning

@algesten algesten merged commit c366151 into algesten:main Jan 28, 2025
34 checks passed
@rmg-x rmg-x deleted the oncelock-std branch January 29, 2025 03:06
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.

2 participants