native-pkcs11 icon indicating copy to clipboard operation
native-pkcs11 copied to clipboard

Migrate lazy initialization from once_cell to std

Open Gifted-s opened this issue 1 year ago • 2 comments

What was changed

According to the official stable Rust 1.80.0 release. we now have LazyLock and LazyCell as part of the Standard Library(https://blog.rust-lang.org/2024/07/25/Rust-1.80.0.html). This PR upgrades all the once_cell::sync::Lazy to std::sync::LazyLock to ensure the code is current.

Why?

  • Keep code up to date

[!WARNING] This should only be merged after upgrading to Rust 1.80.0 otherwise the merge will introduce a breaking change

Checklist

  • How was this tested: Still compiles.
  • Any docs updates needed: Don't think so.

Gifted-s avatar Jul 30 '24 18:07 Gifted-s

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Jul 30 '24 18:07 google-cla[bot]

I already signed the CLA, but it's still showing missing CLA Please review.

Gifted-s avatar Jul 30 '24 18:07 Gifted-s

Thank you for the suggestion! #351 took care of this along with other small changes.

brandonweeks avatar Oct 01 '24 05:10 brandonweeks