vorner / arc-swap

Support atomic operations on Arc itself
Apache License 2.0
778 stars 31 forks source link

No-std support #3

Closed vorner closed 5 years ago

vorner commented 6 years ago

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“).

vorner commented 5 years ago

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).