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

(Partial) Support for no_std #20

Open
gh0st42 opened this issue Mar 26, 2021 · 1 comment
Open

(Partial) Support for no_std #20

gh0st42 opened this issue Mar 26, 2021 · 1 comment

Comments

@gh0st42
Copy link
Contributor

gh0st42 commented Mar 26, 2021

It would be really nice to be able to use this crate or a subset of it in no_std environments.

Most parts currently imported from std:: have equivalents in core::.
After a quick look, the biggest show stopper is the missing of an Error alternative in no_std environments.

Maybe parts of the crate can be left out but it would be really cool to use humantime in IoT projects.

@tailhook
Copy link
Owner

Sure. I have no experience with no_std, so it's hard for me to do something. But I'm willing to accept PR.

How errors usually work on no_std? Should we just omit std::error::Error impl and leave everything as is? Does no_std support Display/Debug traits?

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