Fix no_std support for Copy bitflag and others#70
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
|
Seems like since |
|
Thanks for finding this, let me take a look! |
|
|
|
Let me see where alloc is being used in the code, ideally we should not rely on std at all. |
|
The |
|
Got it! So how about this, we have an |
|
As for |
|
Change it to |
|
Cool, so we can go ahead and merge your change and I'll follow up:
Sound like a plan? |
|
I assume the change to |
|
Yes, I would make the |
|
Yes, that should work. Thanks for the quick responses! |
The current version of
#[bitflag]emits#[derive(std::marker::Copy, core::clone::Clone)]which will fail if building fromno_std. I've changed this and a few other instances ofstdreferences tocoreandallocso that the macros will work onno_std.The
Cargo.tomlcurrently pins a specific nightly version (1.95) which has been released now. Should that be changed?