Hacker GitHub

← All repos

dtolnay/semver-trick

View on GitHub ↗ ★ 573 Rust

How to avoid complicated coordinated upgrades

13 mentions on Hacker News by 12 people: 4 stories, 9 comments · first 2018-02-23 · latest 2026-04-13

Mentions per year 13 mentions · busiest year 2021 (5)
20082026
  1. …1.0 would be as disruptive as a major version change Nope, this is what the semver trick is for: https://github.com/dtolnay/semver-trick TL;DR: You take the 0.7 library, release it as 1.0, then make a 0.7.1 release that does nothing other…
    comment by kibwen · 2026-04-13 · in Servo is now available on crates.io
  2. …follow that semver compatible packages will not permit passing different versions of each around: https://github.com/dtolnay/semver-trick (the trick is to ensure that different versions have nominally the same type by forward dependency).…
    comment by BlackFly · 2025-08-08 · in We shouldn't have needed lockfiles
  3. ▲ 109
    The semver trick (2019)
    story by jcbhmr · 2024-12-26 · 47 comments
  4. …valve of sorts.) This problem is definitely not because of missing interfaces or whatever. [1]: https://github.com/dtolnay/semver-trick
  5. …Take a look at this trick, for example, for foundational crates updating their major version: https://github.com/dtolnay/semver-trick Now imagine that being an issue every single patch update.
  6. …the types at crate boundaries, or the package author can use the so-called "semver trick" [1] [1]: https://github.com/dtolnay/semver-trick
  7. ▲ 2
    The Rust SemVer Trick (2019)
    story by n3t · 2021-12-29 · 0 comments
  8. …across the ecosystem if certain conditions are met. It's called the "semver-trick" [1]. [1]: https://github.com/dtolnay/semver-trick
    comment by eldruin · 2021-12-29 · in This Year in Embedded Rust
  9. ▲ 3
    The Semver Trick
    story by obi1kenobi · 2021-12-24 · 0 comments
  10. …versions, or this would be a lot easier. As it is, we have to resort to the Semver trick: https://github.com/dtolnay/semver-trick/ — not that many people do that, so it's functionally useless.) Take GanttProject as an example. It's 20.6MiB…
  11. …This revolves around the compiler working with multiple major versions of a single library: https://github.com/dtolnay/semver-trick
    comment by swsieber · 2021-03-02 · in Semantic Versioning Will Not Save You
  12. ▲ 85
    The semver trick (2019)
    story by aazaa · 2020-08-01 · 43 comments
  13. You can sort of do this in rust too, from a programming language point of view: https://github.com/dtolnay/semver-trick
    comment by swsieber · 2018-02-23 · in Semantic Import Versioning in the wild