-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make no_std compatible #7
Comments
Thanks @t-moe - I don't have any experience with |
Looking at serde I don't think we should need That said, I put together a minimal repro that builds a no_std binary for windows (which is easiest for me to test, at the moment) and do indeed see that partially isn't compatible (causes build error when used): https://github.com/bengreenier/test_partially_no_std/blob/main/src/main.rs I'll have to play with this a bit more tomorrow though, as the phrasing at https://docs.rust-embedded.org/embedonomicon/smallest-no-std.html#what-does-no_std-mean coupled with the serde example suggests to me that we probably shouldn't just be dropping in |
created a built-in test application to mirror serde's setup, so we now have a (failing to compile) test case for |
Serde has more to say about no_std: Look here: https://github.com/search?q=repo%3Aserde-rs%2Fserde+no_std&type=code Here's some implementation suggestion: https://github.com/KodrAus/rust-no-std/blob/main/src/lib.rs |
Just linking in some other resources I've come across while investigating this one: Starting to sound like maybe it is normal to just add |
Thanks for this awesome crate.
In order to use it on no_std targets I had to modify the header of lib.rs
The text was updated successfully, but these errors were encountered: