Closed attila-lin closed 10 months ago
Have you looked at the OnceCell
type in the std library? The functionality is the same as in the once_cell
crate I think?
Have you looked at the OnceCell type in the std library? The functionality is the same as in the once_cell crate I think?
It is, but brand new. It depends which version of Rust we want to target.
The MSRV of once_cell
is 1.56.0
and OnceCell
was introduced in the std library in 1.70.0
. Either the MSRV is updated to 1.70.0
if the std library is used or to 1.56.0
if once_cell
is used.
Or maybe have everything that uses the std OnceCell
behind a feature and use once_cell
by default if that makes sense?
Since we're not planning to release straigh away, you can probably depend on 1.70 and use the one from std
Done in the next branch. Not using the one from std since LazyLock is not stable yet
Thanks! Can you do the PR on this branch: https://github.com/Keats/validator/pull/249 ?