Open vadixidav opened 3 years ago
I'm facing similar problem. Did you ever make progress with some no alloc feature gate?
No, I was hoping to get a response here first from a maintainer before proceeding with work on this.
I'm doing some research on the topic, and fwiw, nalgebra seems to have support for statically sized arrays (based on documentation at least).
Yes, nalgebra is fine for this. The cam-geom
crate, for example uses nalgebra and compiles e.g. on the target thumbv7em-none-eabihf
which has no alloc available. This is run git the github CI actions if you want to have a look or of course you can download it yourself.
Any news on this? :)
This may seem like a strange ask, but in the computer vision community we are currently working on trying to develop an abstraction over various color models for images. A very effective way to work with images is to create
ArrayView2
for each layer/channel of the image, especially for images which have interpolated components (like YUV420). At least one person (@astraw) in the Rust CV org is working with microcontrollers wherealloc
is not currently available. Since we are only interested inArrayView2
specifically, we theoretically should be able to use that withoutalloc
, but currentlyndarray
unconditionally brings in thealloc
crate.So, the ask is this: if I put in the work and set up a PR, can we add a new
alloc
feature, where without that featureextern crate alloc;
is gated out, and all of the types which requirealloc
(likeArray2
) are no longer included? Thanks!