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
20082026
-
…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 -
…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 -
▲ 109
The semver trick (2019)story by jcbhmr · 2024-12-26 · 47 comments
-
…valve of sorts.) This problem is definitely not because of missing interfaces or whatever. [1]: https://github.com/dtolnay/semver-trick
comment by burntsushi · 2024-04-16 · in Should you use upper bound version constraints? -
…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.
comment by paholg · 2023-10-13 · in Making Rust supply chain attacks harder with Cackle -
…the types at crate boundaries, or the package author can use the so-called "semver trick" [1] [1]: https://github.com/dtolnay/semver-trick
comment by howdydoo · 2022-01-10 · in What NPM should do to stop a new colors attack -
▲ 2
The Rust SemVer Trick (2019)story by n3t · 2021-12-29 · 0 comments
-
…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 -
▲ 3
The Semver Trickstory by obi1kenobi · 2021-12-24 · 0 comments
-
…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…
comment by wizzwizz4 · 2021-09-04 · in The chip shortage keeps getting worse – why can't we just make more? -
…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 -
▲ 85
The semver trick (2019)story by aazaa · 2020-08-01 · 43 comments
-
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