logoalt Hacker News

rcxdudeyesterday at 9:32 PM2 repliesview on HN

well, not quite. It'll go into the lockfile and you won't get a new version if you just build again, but if you add or remove a dependency that version may shift around a bit as a part of dependency resolution.


Replies

nateb2022yesterday at 9:39 PM

> but if you add or remove a dependency that version may shift around a bit as a part of dependency resolution

  cargo add crate@version
is completely deterministic
andrepdyesterday at 9:39 PM

Only if that different version is a dependency of a dependency. Your own will never change.

show 1 reply