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

Stop using the time crate #9

Closed
briansmith opened this issue Oct 22, 2015 · 4 comments
Closed

Stop using the time crate #9

briansmith opened this issue Oct 22, 2015 · 4 comments

Comments

@briansmith
Copy link
Owner

See https://internals.rust-lang.org/t/psa-movement-of-rust-lang-crates/2671. The time crate is deprecated.

@briansmith
Copy link
Owner Author

briansmith commented Aug 18, 2016

See rust-lang/rfcs#619 (comment).

@briansmith
Copy link
Owner Author

I have created a prototype of switching to use std::time::SystemTime in the SystemTime branch: https://github.com/briansmith/webpki/tree/SystemTime.

@briansmith
Copy link
Owner Author

Now I'm leaning towards having webpki define its own Time type. It would have Time::from(&SystemTime) that would only be available if a use_std feature is enabled. It would also have a Time::from_seconds_from_unix_epoch(secs: u64) constructor that could be used by #![no_std] users.

@briansmith
Copy link
Owner Author

This was fixed in #44.

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

1 participant