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

fix AVR support by using atomic-polyfill #124

merged 3 commits into from Oct 23, 2022


Copy link

Attempting to compile a project for AVR that depends on ahash fails:

error[E0432]: unresolved import `atomic::AtomicUsize`
  --> /home/thoth/.cargo/registry/src/
27 | use atomic::{AtomicUsize, Ordering};
   |              ^^^^^^^^^^^ no `AtomicUsize` in `sync::atomic`

error[E0432]: unresolved import `super::atomic::AtomicPtr`

The once_cell crate has an atomic-polyfill feature that can be enabled to solve this problem, and we adapt its technique to solve ahash's dependencies on core::sync::atomic .

@tkaitchuck tkaitchuck merged commit e9c6735 into tkaitchuck:master Oct 23, 2022
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants