As shown by rustc --target=thumbv6m-none-eabi --print=cfg, the thumbv6m-none-eabi target does not have target_has_atomic = "ptr", so portable-atomics (which once_cell switched to in 0.19) does not provide AtomicPtr::compare_exchange, which is necessary for the build.
As shown by
rustc --target=thumbv6m-none-eabi --print=cfg
, thethumbv6m-none-eabi
target does not havetarget_has_atomic = "ptr"
, soportable-atomics
(whichonce_cell
switched to in0.19
) does not provideAtomicPtr::compare_exchange
, which is necessary for the build.Switch to
thumbv7m-none-eabi
instead, which is still ano_std
target: https://doc.rust-lang.org/nightly/rustc/platform-support.htmlFixes the CI error: