logoalt Hacker News

andrepdyesterday at 9:29 PM1 replyview on HN

> Unless somehow these are compromised at the time of download, I will never have to worry about them again.

But this is exactly what rust does x) `cargo add some_crate` adds a line `crate_name = "1.2.3"` to your project config, downloading and pinning the dependency to that exact version. It will not change unless you specifically change it.


Replies

rcxdudeyesterday at 9:32 PM

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.

show 2 replies