14
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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
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
Re-exports exist outside of trick usage.
numre-exports fromnum-*crates without exact version dependency restrictions, just to provide one major example.You can still release
1.1.xtracking2.1.x,1.2.xtracking2.2.x, ..etc to satisfy your restrictions ๐But as the sibling comment pointed out. People don't care about MINOR vs PATCH that much anyway. And the point of the trick is to smooth over a transition period, not keep the split forever.
Just for the sake of... exhaustiveness ๐, you can use
#[non_exhaustive]on structs too.I was under the impression that this worked on structs by creating hidden fields, though that might not/no longer be true. Anyway, this is why I felt no need to specify it.
Edit: Also, with regards to reexports,
numcrates are versioned separately and do different things. A better comparison isserde(which pins an exactserde_coreversion) ortokio(which uses a~specifier for its macros).randrelies onrand_core@^0.10.0, but these are0.xso it's still technically[0.10.0, 0.11.0)which isn't as bad and hence why I changed the versions in my example.