semver-trick VS lang-team

Compare semver-trick vs lang-team and see what are their differences.

semver-trick

How to avoid complicated coordinated upgrades (by dtolnay)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
semver-trick lang-team
15 25
414 190
- 2.6%
2.8 7.8
17 days ago about 1 month ago
Rust JavaScript
Apache License 2.0 Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

semver-trick

Posts with mentions or reviews of semver-trick. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-13.
  • Making Rust supply chain attacks harder with Cackle
    3 projects | news.ycombinator.com | 13 Oct 2023
    Let's say crate B depends on crate A with a pinned dependency, and uses one of its types in a public interface.

    Crate C depends on them both. It now can't bring in updates to A until B does, and when B updates that's a breaking change, so it better bump its major version.

    Take a look at this teick, for example, for foundational crates updating their major version: https://github.com/dtolnay/semver-trick

    Now imagine that being an issue every single patxh update.

  • The module system is too confusing
    1 project | /r/rust | 23 Feb 2023
    Rust modules require a tiny bit more definition up-front, but they neatly decouple the module hierarchy from file layout so you can reorganize code however you like in future, and they support very fine grained control of privacy (such as being able to say pub(super) and pub(crate)). In extreme cases, you can even re-export symbols from one module in another without it counting as a breaking change, so you have even more options for evolving your project without breaking existing consumers. Look at the the semver trick as an example of how powerful this can be and how much freedom it gives library implementors. (And even if you're only a library consumer, wouldn't you rather be consuming libraries by implementors that had more freedom and power?)
  • My first year with Rust: The good, the bad, the ugly
    4 projects | /r/rust | 15 Dec 2022
    A library author concerned about this can use the semver trick. TL;DR: if your current version is 0.42, you can do a 1.0 release, then do a 0.43 release that depends upon your 1.0 release and re-exports all the symbols.
  • Does Rust have any design mistakes?
    12 projects | /r/rust | 23 Aug 2022
    I mean for all the parts of the standard library that do not change, one could presumably use the semver-trick.
  • Rust is hard, or: The misery of mainstream programming
    9 projects | /r/rust | 2 Jun 2022
    The semver trick can help with libraries at least when they go to unify the ecosystem. Release new versions that replicate previous APIs in a compatible way while moving to the standard library implementation.
  • Roadmap
    1 project | /r/rust | 18 Feb 2022
    Because you still run into the problem that's been seen when various important crates upgraded and either didn't use the semver trick or had downstream crates specifying Cargo.toml version requirements too narrowly for it to be effective.
  • The Rust SemVer Trick (2019)
    1 project | news.ycombinator.com | 29 Dec 2021
  • This Year in Embedded Rust: 2021 edition
    8 projects | news.ycombinator.com | 29 Dec 2021
    It's called the "semver-trick" [1].

    [1]: https://github.com/dtolnay/semver-trick

  • The Semver Trick
    1 project | news.ycombinator.com | 24 Dec 2021
  • The chip shortage keeps getting worse. Why can't we just make more?
    2 projects | news.ycombinator.com | 4 Sep 2021
    The JVM is 114MiB on my machine. A near-minimal ggez program in debug mode is about 100MiB,¹ and ggez is small for a Rust application library. When you start getting into the 300s of dependencies (i.e. every time I've ever got beyond a trivial desktop application), you're lucky if your release build is less than 100MiB.

    Sure, I could probably halve that by forking every dependency so they aren't duplicating versions, but that's a lot of work. (It's a shame Rust doesn't let you do conditional compilation based on dependency 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.)

    ¹: I can get it down to around 8MiB with release mode, lto etc., but that significantly increases the build time and only about halves the weight of the intermediate build files.

lang-team

Posts with mentions or reviews of lang-team. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-08.
  • Totally_safe_transmute, Line-by-Line
    2 projects | news.ycombinator.com | 8 Jan 2024
    The Rust team did a deep dive on the bug in 2020, which has some more details that might be helpful to understanding what's going on: https://github.com/rust-lang/lang-team/blob/master/design-me....
  • Using enums to represent state in Rust
    6 projects | news.ycombinator.com | 22 Sep 2023
    I haven't been following this closely, so I looked it up and it looks like that's not going to happen for the foreseeable future unfortunately:

    https://github.com/rust-lang/lang-team/issues/122

    Kind of a shame, but wrapper types work well enough that I understand. It does look like if there was someone with enough resources to make it happen that they'd be receptive to it.

  • Should Error enums be `non_exhaustive`?
    4 projects | /r/rust | 23 May 2023
  • What features would you like to see in rust?
    13 projects | /r/rust | 2 Apr 2023
    Did you read the link the original comment posted? I think that explains the idea rather well https://github.com/rust-lang/lang-team/issues/122
  • Pattern matching tuple variant of enum without deconstructing tuple
    2 projects | /r/rust | 29 Mar 2023
    A quick search pulled up this as a likely candidate for most recent discussion of it but it goes back at least to 2016 with this RFC.
  • State Machines III: Type States
    2 projects | /r/rust | 3 Jan 2023
    There have been at least one proposal and RFC in the past that seem to be deferred or closed due to bandwidth issues.
  • The type system is a programmer's best friend
    9 projects | /r/programming | 1 Nov 2022
    That's what Rust does, and it's considered a problem (that the devs are regrettably unable to reasonably solve) rather than a good thing.
  • In-line crates
    1 project | /r/rust | 25 Oct 2022
    Lang had some conversations about this: https://github.com/rust-lang/lang-team/issues/139
  • LKML: Linus Torvalds: Re: [PATCH v9 12/27] rust: add `kernel` crate
    4 projects | /r/rust | 2 Oct 2022
    The design of Rust panics unconditionally aborts the program if you panic while unwinding, and some people even want to abort if you panic in Drop.
  • Isolates, MicroVMs, and WebAssembly (In 2022)
    10 projects | news.ycombinator.com | 26 Sep 2022
    > Better interoperability

    AFAIK, the examples you give all target a basic C ABI [0] or can be made to target the same ABI. In Rust, it means targeting wasm32-unknown-emscripten

    The Rust team is also working on a "WASM ABI"[1] which would be useful in taking advantage of stuff like multi-value returns, and other compilers could just choose to target that. More likely, the C ABI on WASM will be updated to account for missing features, and that'll be the standard for interoperability in the WASM ecosystem.

    [0]: https://github.com/WebAssembly/tool-conventions/blob/main/Ba...

    [1]: https://github.com/rust-lang/lang-team/blob/master/design-me...

What are some alternatives?

When comparing semver-trick and lang-team you can also consider the following projects:

cargo-llvm-lines - Count lines of LLVM IR per generic function

Idris2 - A purely functional programming language with first class types

rust-base64 - base64, in rust

rfcs - RFCs for changes to Rust

Thruster - A fast, middleware based, web framework written in Rust

diamond-types - The world's fastest CRDT. WIP.

rust-quiz - Medium to hard Rust questions with explanations

rustc-dev-guide - A guide to how rustc works and how to contribute to it.

serde - Serialization framework for Rust

isahc - The practical HTTP client that is fun to use.

driver-examples - Rust example programs for many of my hardware device drivers running on STM32F3 Discovery, STM32F103 "Blue Pill", RaspberryPi and micro:bit boards

708 - Parameter passing and initialization