Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no-std support? #95

Open
hiltay opened this issue Dec 6, 2023 · 2 comments
Open

no-std support? #95

hiltay opened this issue Dec 6, 2023 · 2 comments

Comments

@hiltay
Copy link

hiltay commented Dec 6, 2023

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

@xd009642
Copy link
Collaborator

xd009642 commented Dec 6, 2023

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!

@hiltay
Copy link
Author

hiltay commented Dec 7, 2023

Thanks! I'll give it a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants