-
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
bump time to use winapi 0.3 #274
Conversation
Awesome, thanks! Do you know exactly what was causing compilation failures before? I'm not sure if it would be worth preferring to modify chrono to work with winapi 0.2 instead, if possible, depending on the state of the ecosystem and how much work would be required to do that. |
That is an excellent question. Gathering questions is one of the things needed before we consider stabilizing, so thank you. I think of For example when But minimal-versions tests the most diabolical lock file it can find. So when In general I would upstream a change to Does any of that make sense? |
Ah, yes, definitely. The key points seem to be:
Since CI passed on windows I guess it's clear that winapi 0.3 works with rust 1.13, which means I don't have to make any difficult decisions about whether or not bumping winapi means we need to change our supported rust version. It's sort of interesting, though, because chrono does still technically work with winapi 0.2.x. Instead of bumping our time dependency could we add an explicit dependency on |
Yes we can add a Also I just notest the |
winapi 0.3 has some breaking changes from winapi 0.2.x -- otherwise they would have just created a new winapi 0.2.x version -- so if developers are using an old version of rust with an old version of winapi that relies on the old API, bumping the required version of winapi will force them to change their usage. |
v0.2 and v0.3 can coexist in the same dependency tree. So if they depend on v0.2 then they will get v0.2, eavan if we as there dependent need/see v0.3. |
Thank you! |
And I appreciate the effort in getting minimal-versions working across the ecosystem, I really want it to be a standard testing mode! |
Is there an ETA for a release that has this merged? I want to continue to spread minimal-versions to the ecosystem. |
Yeah I'll get this out this weekend, should be tomorrow. |
This is now out in 0.4.6 |
Thanks! downstream PRs going in now. |
This bumps the minimal acceptable versions in Cargo.toml to versions that build on modern rust. this gets
chrono
working with Cargos-Z minimal-versions
. This is part of the process of seeing how hard this is for crates to use in preparation for getting it stabilized for use in CI, specifically upstreaming the changes required to get criterion working with it. It is easy to use if all of your dependencies support it, but much harder if trying to impose it on them.