14
you are viewing a single comment's thread
view the rest of the comments
[-] TehPers@beehaw.org 1 points 2 weeks ago

If you exactly copy 0.1.0 MainStruct to 0.2.0, there are no breaking changes in the struct when you reexport it from 0.1.1.

Even if you make minor changes, it still follows semver from 0.1.0 -> 0.1.1.

If 0.2.1 introduces changes to MainStruct, then 0.1.1 can reexport those changes unless you pin 0.1.1 to exactly version 0.2.0 (which should never change).

It was harder to visualize with 0.y.z versions, so I switched to x.y.z versions to make it easier to explain further down my post.

this post was submitted on 19 Nov 2026
14 points (88.9% liked)

Rust

8392 readers
10 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 3 years ago
MODERATORS