Brainstorming: how to help old code locked to old `time` build on new toolchains

In Workaround for type inference breakage in the time crate by kornelski · Pull Request #14452 · rust-lang/cargo · GitHub, the idea was proposed to have Cargo implicitly patch registry+https://github.com/rust-lang/crates.io-index#time@0.3.18 through registry+https://github.com/rust-lang/crates.io-index#time@0.3.34.

There are implementation and correctness complexities to this. There are also likely corner cases in how it affects other aspects of the ecosystem (vendoring, nix, etc).

1 Like