humantime icon indicating copy to clipboard operation
humantime copied to clipboard

(Partial) Support for no_std

Open gh0st42 opened this issue 4 years ago • 1 comments

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.

gh0st42 avatar Mar 26 '21 09:03 gh0st42

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?

tailhook avatar Mar 26 '21 10:03 tailhook