-
Notifications
You must be signed in to change notification settings - Fork 533
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
Inline a handful of functions from num-integer #1004
Conversation
Failure is pre-existing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing dependencies is good.
The motivation for this is that we use a very small portion of what num-integer provides, but it's a relatively heavy dependency -- it brings in several crates with build scripts. The goal here is to reduce compilation time for projects using chrono.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the update. I prefer ///
so those comments also appear in online docs. But code comments are adequate.
The module isn't public, so I don't think it'd show up in docs either way? |
Good point! |
Oh, good idea. It would be nice to have this on 0.4.x as well, would you mind rebasing? |
@djc hmm, So 0.4.x has |
#794 is the PR that removed the num-traits usage in the API, FWIW. |
Ah yeah, that would be the reason we haven't done this on 0.4. Okay, let's just do this on 0.5? |
Sounds good. I think this is ready for review then (modulo the CI issues that are also present on main.) |
Thanks! |
The motivation for this is that we use a very small portion of what num-integer provides, but it's a relatively heavy dependency -- it brings in several crates with build scripts. The goal here is to reduce compilation time for projects using chrono.
Let me know if you'd prefer I rebase this onto the 0.4.x branch.