Open
Description
Much of the once_cell
crate's API has now been added to std, so ideally we could remove this dependency. This is blocked on std::sync::OnceLock::get_or_try_init
being stabilized:
As the once_cell
author commented:
@jimblandy FWIW, if you are not using portable atomic, then probably you don't actually need
once_cell
crate. Most of the API is now available instd
(but not incore
), so I am thinking that the primary role of once_cell for the ecosystem right now is exactly to serve as a poly-fill for no-std use-cases.
At the moment, wgpu_core::pool::ResourcePool
uses once_cell::sync::OnceCell::get_or_try_init
, whose std
analog, std::sync::OnceLock::get_or_try_init
, is not yet stable.
PRs:
Metadata
Metadata
Assignees
Type
Projects
Status
Todo