-
Notifications
You must be signed in to change notification settings - Fork 105
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
Dealing with unsoundness in chrono #65
Comments
Thanks for bringing this to my attention. And omg is the chrono thread spammed with links to bug reports. The time crate has less dependencies than chrono, so maybe switching to time is a good idea. It also seems to be more popular at least according to the recent download counts. |
Another proof that adding dependencies doesn't absolve you from maintainer duties, in fact they get expanded. You suddenly are responsible for bugs that are in a part of a library that you don't even use (you only use the library). |
chrono depends on time 0.1 IIRC, so I'm not sure the difference in recent download counts is meaningful. |
@djc I use download counts as proxy for ecosystem compatibility. The main reason I'm using a date library is because I don't want to burden users with converting back and forth but be able to just put in dates that their library supports. |
There is also the issue of asn.rs using chrono, so it has to switch as well I guess? |
The time crate does not support leap seconds, see time-rs/time#193 . This can be an issue for certificate generation libraries as single seconds can become important in the security domain. So I'm a bit reluctant, because rcgen does not use the offending function that makes chrono unsafe in the database, but it does rely on leap second support. The PR #66 has to change some of the unit tests that check for leap seconds. Ultimately, if there is no movement on the time crate, I think I'll just merge it as is and accept the regression. |
Alright, when the new ring version will be released, I'll switch to time: briansmith/ring#1416 (comment) |
No worries and no pushing, just was wondering if there were additional dependencies you were waiting for, it makes sense to implement proper leap seconds handling. I saw the leap second discussion in the other repos, but it doesn't seem like a straightforward problem to solve. |
Hmmm no changes for ring. There seems to be progress on the chrono front though: chronotope/chrono#632 (comment) |
Also: chronotope/chrono#639 |
Thanks for the merge and release. |
Hey, have you decided what you want to do with the chrono issues?
https://rustsec.org/advisories/RUSTSEC-2020-0159
Maybe it makes sense for rcgen to just adopt time 0.3 instead?
The text was updated successfully, but these errors were encountered: