-
Notifications
You must be signed in to change notification settings - Fork 34
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
alloc
feature ?
#73
Comments
I have updated the readme to reflect this. Unfortunately, |
I will leave this open in case anyone has ideas of how to accomplish this. |
Some ideas:
|
From discussions today on Rust’s Matrix channel, sebk suggest it could be possible to use relative addressing into the struct to make stack-based self-referential structs work. Actual references would need to be re-computed somehow when user needs access to the values. Not sure how implementable this is, though |
Related :
It looks like it’s actually quite implementable ! |
Shameless self-plug, could also try |
Seeing the crate is
no_std
, I was tricked into thinking it wouldn’t depend onalloc
and would work in my embedded system. A large chunk of embedded systems cannot use a heap for various reasons, soOuroboros
is not compatible with those systems right now.In the short-term, I suggest adding a warning on the
readme
saying that, even though the crate isno_std
, it still requiresalloc
to work.In the longer term, is it viable to expose an
alloc
feature flag (could be default) that would makeOuroboros
compatible with heap-less systems ?The text was updated successfully, but these errors were encountered: