audunhalland / unimock

A versatile and developer-friendly trait mocking library
MIT License
71 stars 3 forks source link

feat: Add no_std support #35

Closed cdunster closed 10 months ago

cdunster commented 10 months ago

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. The critical-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:

audunhalland commented 10 months ago

Looks fine! I guess this is backwards-compatible too.

cdunster commented 10 months ago

Looks fine! I guess this is backwards-compatible too.

I think so because:

audunhalland commented 10 months ago

Released 0.5.6. And thank you for your interest and contribution :)