3 ms·
I think part of what makes these discussions difficult is that each system uses similar-but-different approaches. For example, in Rust, even if your library has
by steveklabnik 6y ago
I think part of what makes these discussions difficult is that each system uses similar-but-different approaches. For example, in Rust, even if your library has checked in Cargo.lock, it won't be used for resolution of that library. This suggestion of yours is literally coded into Cargo directly. But someone coming from Node may not instantly get that, even if both ecosystems "use semver."
- chrismorgan 6y agoNotwithstanding this (that Cargo.lock doesn’t apply to libraries), you can pin in Cargo.toml by specifying exact dependencies: `foo = "= 1.2.3"` will accept only version 1.2.3.
- steveklabnik 6y agoYeah, this is a good point. I don't know that I've ever noticed it in the wild, but it is possible.