• TehPers ( TehPers@beehaw.org ) 
    link
    fedilink
    English
    arrow-up
    1
    ·
    4 days 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.