agbrs / agb

Library for writing Game Boy Advance games in Rust
https://agbrs.dev/
Mozilla Public License 2.0
320 stars 27 forks source link

Fix build issue due to atomic u128s #774

Closed gwilymk closed 1 month ago

gwilymk commented 1 month ago

Add fallback feature for portable-atomic.

This is needed since without it, we don't get anything that the platform doesn't natively support, which is only up to 32 bits.

We newly need to change this because once_cell no longer imports with default features.

Fixes:

error[E0432]: unresolved import `portable_atomic::AtomicU128`
 --> src/rng.rs:1:23
  |
1 | use portable_atomic::{AtomicU128, Ordering};
  |                       ^^^^^^^^^^
  |                       |
  |                       no `AtomicU128` in the root
  |                       help: a similar name exists in the module: `AtomicU8`