Hey, for the https://github.com/rust-lang/measureme crate the question came up how to best depend on it in the compiler. Should publish to crates.io or should have a git dependency? What are the upsides and downsides of each approach?
Is there any existing precedent?
rustc_hash is published on crates.io
one advantage of a git dependency (probably) is that it's easier to modify for local experimentation
i.e. it's simple to switch just part of the URL instead of having to look it up first
although one probably more frequently has to change the dependency to a local one, which is just as "hard" with a git dependency
I've generally gone with crates.io dependency
But tbh I didn't think very hard about that decision
It just seemed to be good to get ourselves in the practice of doing publishing, thinking about semver, etc