TL;DR: An option to compile without feature = "alloc" would be great :)
There is a feature flag for alloc already but it's not completely implemented.
A modified basic example (using a *mut self reference) compiles if I #[cfg(feature = "alloc")] out the use core::alloc::{...} and impl for Box, Rc, ... in mod.rs. But there are other parts which might need to be adjusted.
Reduced feature set would be fine IMO as the most basic is already nice enough to just wrap self-referencing types from C FFI on the stack.
I'm not well versed all these macro-magic though :)
TL;DR: An option to compile without
feature = "alloc"
would be great :)There is a feature flag for alloc already but it's not completely implemented.
A modified basic example (using a
*mut
self reference) compiles if I#[cfg(feature = "alloc")]
out theuse core::alloc::{...}
and impl for Box, Rc, ... inmod.rs
. But there are other parts which might need to be adjusted.Reduced feature set would be fine IMO as the most basic is already nice enough to just wrap self-referencing types from C FFI on the stack.
I'm not well versed all these macro-magic though :)