matklad / once_cell

Rust library for single assignment cells and lazy statics without macros
Apache License 2.0
1.84k stars 110 forks source link

The `atomic-polyfill` crate is deprecated. #250

Closed taks closed 9 months ago

taks commented 9 months ago

The atomic-polyfill crates is deprecated and it is recommended that the portable-atomic crate be used instead. (https://github.com/embassy-rs/atomic-polyfill) Is it possible to change to use the portable-atomic crate?

※ Currently, on the xtensa-esp32-espidf target, the atomic-polyfill causes a compile error. (https://github.com/taks/esp32-nimble/issues/46) I have confirmed that compilation was successful for the atomic-polyfill crate.

matklad commented 9 months ago

Yup, PR is welcome! (I don’t work in the embedded space, so I am not the best person to do the work here, but I can review)