Instead of relying on a feature for Arc, just use #[cfg(target_has_atomic = "ptr")], which is what the alloc crate uses anyways. This can be introduced as a non-breaking change as this crate would fail to compile anyways if the arc feature was enabled while the target didn't have support for atomic operations.
Instead of relying on a feature for
Arc
, just use#[cfg(target_has_atomic = "ptr")]
, which is what the alloc crate uses anyways. This can be introduced as a non-breaking change as this crate would fail to compile anyways if thearc
feature was enabled while the target didn't have support for atomic operations.