-
Notifications
You must be signed in to change notification settings - Fork 225
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
support for no_std environments #71
Comments
I looked through the library, and I THINK |
nevermind -- I just did a first attempt and after replacing all |
Indeed, we don't actually need |
I would be interested in making capnproto-rust more embedded-friendly. I know that @cmr looked into this at some point. |
I'm looking at it again... alot of the uses of
There are some cases like this:
It's possible some of those can be removed. Here's the deal: for my use case (microcontrollers) I'm not really interested in dynamically sized payloads. I care about structs, nested structs, and arrays of a known size. Maybe I should just write a macro wrapper around bitflags and byteorder to get the ultra light serialization/deserialization I need. This lib feels too heavy handed. |
Can you reopen this so people can easier see this? |
From rust-lang/rfcs#2480 I see a possibility that |
@ProfFan That still requires an allocator which is not implemented on all platforms. Cap'n Proto should be able to handle reads without any dynamic allocation. |
@ishitatsuyuki Indeed it is the best to have pure static reads, however if this RFC passed, you can port the |
@dwrensha Is this under active development? I would like to use capnproto-rust in wasm modules and it would help binary size by at least an order of magnitude to use |
I don't know of anyone actively working on this. I agree that it would be good to have! |
Vec and Box are available in the alloc crate, and it might be a good start to make it possible to build for no_std + alloc environments. |
How goes progress on this issue? I'd love to use Cap'n Proto in WASM for an evolving but efficient API. |
I've opened a pull request: #184. |
#184 has landed. |
I came across this protocol and it looks absolutely perfect for microcontrollers! I understand some features support dynamically sized types, so cannot be supported on the stack, but was wondering if a subset of this library could support no_std?
If it is possible, but would have to be a separate crate then that would also be useful to know.
Thanks!
The text was updated successfully, but these errors were encountered: