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

Dont use std, when avoidable #8

Open
hellow554 opened this issue Apr 7, 2017 · 2 comments
Open

Dont use std, when avoidable #8

hellow554 opened this issue Apr 7, 2017 · 2 comments

Comments

@hellow554
Copy link

I try to use this crate for an embedded platform, where I dont have std, but only core. Would it be possible to get rid of std and rely on core instead?

@hellow554
Copy link
Author

I tried to implement it in my branch (see https://github.com/punkkeks/enum_traits/commits/master ), the problem is, that I had to remove the EnumIsVariantFns, because it uses std::ascii, which is not in core.
Because I don't need it in my current project, I just removed it and was able to compile and use it.

Maybe it could be a starting point to further development

@Lolirofle
Copy link
Owner

I made it a Cargo feature by looking at your branch, but I am not sure it works properly. Is it possible for you to test it and see if it works for you? The "no_std" feature is documented in the README.

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