4 ms·
> Yes. Rust encourages version pinning. Rust makes version pinning feasible, e.g. by allowing multiple versions of the same package in a build (not all module
by zozbot234 6y ago
> Yes. Rust encourages version pinning.
Rust makes version pinning feasible, e.g. by allowing multiple versions of the same package in a build (not all module systems have this feature!) but doesn't encourage it. You've identified a problem with using 0.x.y-versioned packages as dependencies (which means de-facto opting out of semver), but that's not a problem with Rust specifically; it could occur in any language.
- steveklabnik 6y agoTo be clear, the default semantics are ^, not =. So even if you put 1.2.3 in your Cargo.toml, you may get 1.3.0, you just won’t get 2.0.0.
- pjmlp 6y agoWhich might lead to the same outcome anyway as there is nothing that prevents those version numbers to actually mean anything. It is up to the library authors to uphold its semantics.