this post was submitted on 14 Jun 2023
2 points (100.0% liked)
Rust: Support
4 readers
1 users here now
Rules
-
Ask any question relevant to the Rust language and its ecosystem. No such questions shall ever be considered dumb!
-
Ask for contributions for your crate
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Yeah, it doesn't help that in the
once_cell
crate, the thread-safe version was also calledOnceCell
; you had to choose betweenonce_cell::sync::OnceCell
andonce_cell::unsync::OnceCell
. But when it was added to the standard library,once_cell::sync::OnceCell
was renamed toOnceLock
to make them easier distinguishable. So