Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use AtomicUsize from portable-atomic #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

giacomocaironi
Copy link

Use AtomicUsize from portable-atomic instead of core::sync::atomic, in order to support platforms where AtomicUsize is not natively supported (like for example my raspberry pi pico)

A link to https://github.com/taiki-e/portable-atomic?tab=readme-ov-file#optional-features should also be added to the README to instruct end users how to properly configure portable-atomic

P.S. Maybe the inclusion of portable-atomic should be behind a feature flag, but as I am learning Rust I am not sure what is the way to do it

@giacomocaironi
Copy link
Author

I didn't see #12 before writing this PR, still I think we should move forward with portable-atomic since atomic-polyfill is now deprecated

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