I have recently discovered that there’s no simple way to map a date to git commit id from which the nightly from that day was build. That information is really helpful for people which build custom versions of Rust and want to have a version that perfectly matches the version of official nightly from a particular date.
From what I learned from asking on IRC, current solution is to download the blob for a particular date (eg. with help from
rustup.sh) and run
rustc --version. Or do a grepping on a binary. Either way requires downloading about 100MB just to obtain few bytes. And in some cases (building on not officially supported OS or architecture), running
rustc --version doesn’t even work.
So, I’d be really happy, if there were one simple file there in each of those directories, containing a git commit hash. What do you think about it?
And I’d be even happier if I’m not right and if the information I want is recorded somewhere and easily obtainable!