Skip to content
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

Add Support for heapless #15

Open
jhbruhn opened this issue Sep 20, 2021 · 2 comments
Open

Add Support for heapless #15

jhbruhn opened this issue Sep 20, 2021 · 2 comments

Comments

@jhbruhn
Copy link

jhbruhn commented Sep 20, 2021

Using alloc on embedded devices with highly constrained memory often is difficult because estimation of the required memory is hard. It would be nice if this library would allow using the structures implemented in heapless instead of collections based on alloc.

Of course, that would require additional const generics to pass the allocated memory to the heapless parameters, but I think this is doable. Are there any plans for that to be implemented yet or should I look into it?

@martindisch
Copy link
Owner

I've been lucky enough to get away with alloc in the project I originally ported this library for, so no plans as of yet. I think it could be challenging, but haven't thought deeply about it. Feel free to give it a shot!

@Finomnis
Copy link

Finomnis commented Mar 4, 2024

I think it would be possible if one replaces all the .into_bytes() and similar into iterators. I might try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants