Closed cdunster closed 10 months ago
Looks fine! I guess this is backwards-compatible too.
Looks fine! I guess this is backwards-compatible too.
I think so because:
std
builds the once_cell/std
feature is enabled as before,no_std
builds without any features then it previously didn't compile [for me] which is still the same,no_std
builds with the new critical-section
feature then it now builds for meReleased 0.5.6. And thank you for your interest and contribution :)
Right now, in a no_std project I am working on I cannot use unimock as the once_cell crate uses std by default and needs to be disabled by using
default-features = false
. Thecritical-section
feature in once_cell can be used in a no_std project to enable sync features so I added that as a feature to this crate too.I tried the current version of unimock in a no_std project and it doesn't work but with this change it does work.
Thanks for your effort on this library :+1: