I’m not sure who is this generic pep talk directed at, or if anyone didn’t know, and needed to know, that AI likes Rust.
Maybe it would have been more useful if the author shared why xilem development appears to be half dead.
Collecting downvotes since before forums even had thank you’s.
I’m not sure who is this generic pep talk directed at, or if anyone didn’t know, and needed to know, that AI likes Rust.
Maybe it would have been more useful if the author shared why xilem development appears to be half dead.


However, by not pinning to an exact version, your reexport may vary between installs despite the user using the same v1.0.1 version of your package, which may be unexpected and arguably violates the purpose of having immutable versions in crates.io.
Re-exports exist outside of trick usage. num re-exports from num-* crates without exact version dependency restrictions, just to provide one major example.
If v1.0.1 depends only on a subset of v2’s versions, then you still get a split between, say, [1.0.1, 2.1.0) and [2.1.0,).
You can still release 1.1.x tracking 2.1.x, 1.2.x tracking 2.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.
under the assumption the struct previously had nonpublic members of course
Just for the sake of… exhaustiveness 😉, you can use #[non_exhaustive] on structs too.


Edit: if this is about MINOR leaking into PATCH, that’s not a problem since you can select a dependency version range (e.g. “2.0.0-rc, <2.1.0”)
Can you explain this part?
Unless you depend on exactly 0.2.0 and not 0.2.x, it’s still not semver compatible.


Other than releasing both concurrently, you can release 0.2.0-rc, then 0.1.1 depending on the former, then release 0.2.0 (matching 0.2.0-rc API) at your leisure.


adds a ton to MainStruct
What did you mean by this?
(I expect people to know this. But for those who don’t, cargo differs from semver.org for 0.y.z, where MINOR is effectively treated like MAJOR).


If 2.1.0 comes around and adds a ton to MainStruct
then you broke semver even if tricks aren’t involved. You could nuke the whole crate in v2.0.1 too. But that’s effectively an “If my grandmother had wheels, she would’ve been a bike” type of argument.
I see the author is still pretending
lspmuxdoesn’t exist, which is ironically making his implementation look worse*, except for the restart benchmark itself 🙂The author should try
vmtouchfor a realistic** memory vs. disk-in-memory comparison, which shouldn’t be a problem at all considering the specs of the devices the author is benchmarking on 😉* If I’m understanding the “server ready” numbers correctly.
** Using tmpfs or zram with any fs would work too obviously, but wouldn’t match a realistic use-case. And we don’t want to lose the excellent restart time 😉 on device reboot.