You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 19, 2024. It is now read-only.
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
*mutself 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 :)