embassy-rs / atomic-polyfill

⚠️ DEPRECATED ⚠️ -- use `portable-atomic` instead.
Apache License 2.0
30 stars 14 forks source link

Only import `cortex-m` when needed #4

Closed korken89 closed 3 years ago

korken89 commented 3 years ago

This allows this crate to be used as a true shim crate if not on thumbv6 and else it will start pulling in dependencies when on thumbv6. It makes it easier in crates above to include this and not get the cortex-m dependency unless when needed, eg heapless which targets more than only ARM targets.

Dirbaio commented 3 years ago

Nice idea, thanks!