ndarray-stats icon indicating copy to clipboard operation
ndarray-stats copied to clipboard

`no-std` support?

Open hiltay opened this issue 2 years ago • 2 comments

Hello! I want to put it in an embedded environment. Any no-std support?

hiltay avatar Dec 06 '23 11:12 hiltay

So there's some limited no-std support in ndarray itself. The dependencies of ndarray-stats would have to be vetted and then there might be a possibility to restrict any that use std features to their no-std versions. Looking briefly at it indexmap has a no-std but it requires the alloc feature. I believe ndarray itself might require libm.

As it stands this would need a PR to add the necessary feature and make std required features optional and then from doing that initially you can work out if there's any further work that needs doing in the ecosystem (generally once you do it and see things don't build properly because of some std dep being pulled in).

I don't have time to do this myself - and have minimal involvement in the project - but if you submit a PR I can do some review and pointers. I was involved in the no-std work for ndarray way back whenever it was!

xd009642 avatar Dec 06 '23 11:12 xd009642

Thanks! I'll give it a shot.

hiltay avatar Dec 07 '23 01:12 hiltay