PSA: Please specify precise dependency versions in Cargo.toml

First off: you'd need to test at least every semver incompatible version in the range to be sure the constraint is accurate. It's not good enough to test 0.1.1 and 0.12 if 0.8 doesn't work.

But on the other side of the coin: you'll actually only ever get 0.1.1 or 0.12.latest, due to how cargo's resolver works.

Minimal versions will get you the bottom of your range, but there's no way to get something in the middle of the range without crafting an artisanal lockfile.

3 Likes