google / moveit

Apache License 2.0
166 stars 18 forks source link

[no_alloc]: Extend support for embedded systems by removing the need for alloc #41

Open dbongartz opened 10 months ago

dbongartz commented 10 months ago

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 :)

silvanshade commented 6 months ago

There is a fork at https://github.com/silvanshade/moveref that has #[no_std] support.