Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
formerly_proven
· 4y ago · 0 comments
How does cortex-m v0.6.7 manage to depend on cortex-m v0.7.3?
Comments
[–]
eldruin
4y ago
That's a way to avoid complicated coordinated upgrades across the ecosystem if certain conditions are met. It's called the "semver-trick" [1].
[1]:
https://github.com/dtolnay/semver-trick
[–]
pornel
4y ago
Cargo has its own interpretation of semver: first
non-zero
number is the major version, so v0.6 is like v6.0.0 and v0.7 is like v7.0.0. Then each major version is treated as a separate crate, as if it was cortex-m-v6 and cortex-m-v7.