Today I Learned

2023/03/04

cargo rust semver

The string “0.1.12” is a version requirement. Although it looks like a specific version of the time crate, it actually specifies a range of versions and allows SemVer compatible updates.

https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html

Instead, in order to lock to a specific version of a crate, you need to write = 0.1.2.