Skip to content

Conversation

@ericschaal
Copy link

@ericschaal ericschaal commented Oct 31, 2025

Introduce a new Cargo feature, extra-platforms, to add support for hardware targets that lack native atomic CAS operations.

The library relies on AtomicU8, which is not available on all platforms (e.g., certain embedded targets like riscv32i or thumbv6m). This prevents the crate from being used in those environments.

This change "poly-fills" the required atomic types by adding an optional dependency on the portable-atomic crate.

I'm using a similar approach to the bytes crate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant