Login
You're viewing the code4lib.social public feed.
  • Sep 1, 2026, 9:19 PM

    @art_codesmith @fogti @krig @torb that's kinda how rust works. It only links multiple versions of a dependency if they're deemed not compatible, using semver semantics around version numbers.

    It doesn't error on multiple versions by default because incompatible versions are almost universal, due to transitive dependencies. There's a lint that can enforce "only one version of a crate is allowed", which does the "throw an error" behaviour you describe. I used that in my projects for a long time. I never had a project that didn't have a list of crates to allow be multi-version, because there's *always* some crate that hasn't bumped dependencies yet.

    💬 1🔄 0⭐ 0

Replies

  • Sep 3, 2026, 12:01 PM

    @womble
    the problem is that semver semantics dont exist, everybody does what think is right and there's no way to stantardize what a breaking change is, rust developers love to think semver is something acually useful tho
    @art_codesmith @fogti @krig @torb

    💬 0🔄 3⭐ 3