-
Notifications
You must be signed in to change notification settings - Fork 16
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
Should we have this crate as no_std? #61
Comments
Sounds great, I would support this as I might have a use for this in Rust Hypervisor Firmware. |
@danielverkamp what do you think? If this is needed sooner (before the error is stabilized), we can have it as an optional feature. I see that libc and serde also have a no_std option. The way that is implemented is by having Examples: |
I agree making it The proposed change looks reasonable; the only minor concern I have is that each |
We can extend it once we have it as no_std to also have it as no_alloc I guess. I think we can have static allocation for the data blob, but this require some significant re-working of how it currently works, so I would leave it for the next iteration.
Yes, in my branch I did a quick and dirty fix to get it to compile, I would improve that for the actual PR. |
I think having |
It would be great to have How can we help to move this forward? Can we open a PR, or would you rather do that yourself, @andreeaflorescu? :) |
Oh, I didn't get much time to work on that, so feel free to open a PR and I'll make time to review it. Here is my branch in case it helps with anything: https://github.com/andreeaflorescu/vm-fdt/commits/no_std |
I opened #68. |
I was thinking about making this crate no_std either by default or behind a feature for now (at least until the error is stabilized in core). I gave it a try and it was pretty easy to convert it to no_std: https://github.com/andreeaflorescu/vm-fdt/tree/no_std. This should make the crate available to be used in embeded as well.
The text was updated successfully, but these errors were encountered: