vorner / arc-swap

Support atomic operations on Arc itself

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No-std support

vorner opened this issue · comments

I guess it should be possible to implement (or modify the implementation) to work in no-std case, just using the core or alloc levels. But opting into no-std probably requires nightly, so it might need to be behind a feature-gate (the question is if positive or negative ‒ it probably makes more sense to have a default feature of „use-std“).

Closing this ‒ thinking about it more, it makes very little sense, since Arc is dependent on std (or at least alloc ‒ so once Rust has support for the tiered std, it might make sense to check alloc is enough).