News for hackers. Stuff that matters.
Re:Comfy, the 2D rust game engine, is now archived by desdenova on Monday September 09, 2024 @07:33AM (#41487508)
The rust ecosystem is young, most of those libraries haven't even reached 1.0.

Basing any serious project on 0.x libraries is always subject to this issue.

Re:Comfy, the 2D rust game engine, is now archived by aeurielesn on Monday September 09, 2024 @08:04AM (#41487743)
I believe a post from one or two weeks ago showed it seems more of a systematic Rust ecosystem problem.
Re:Comfy, the 2D rust game engine, is now archived by CaptainOfCoit on Monday September 09, 2024 @09:16AM (#41488232)
What, exactly, is the problem? That libraries/projects remain below 1.0 for too long? Because lots of breaking changes before a 1.0.0 release is to be expected for anything following semver (which as far as I know, most if not all of the Rust ecosystem uses).
Re:Comfy, the 2D rust game engine, is now archived by littlestymaar on Monday September 09, 2024 @07:49AM (#41487615)
I'm always puzzled with people saying that things move too quickly and that they fail to keep up, in any language. Why do you guys even try to keep up in the first place? Unless there's a bug in a dependency you're using, if version 0.4 works, you don't have to use 0.5 or 0.6. Or maybe there's a new feature that you need in the newer version, then you can afford to spend time doing the migration but in this case you should also be happy the the pace of development is fast because that's how the feature ended up landing in the first place.

For most use-cases, it's fine to stay on out of date libraries for years, and that's what the Linux distros do all the time (mostly patching crippling bugs and security vulnerabilities).

Re:Comfy, the 2D rust game engine, is now archived by mysterydip on Monday September 09, 2024 @07:54AM (#41487660)
90% agree. The scenario that I've seen that messes with this is when you include lib x which has dependency on version 0.5 of y, but your code depends on version 0.4 of y.
Re:Comfy, the 2D rust game engine, is now archived by tstenner on Monday September 09, 2024 @09:31AM (#41488360)
cargo handles this just fine, unless you get lib y objects through the lib x api
Re:Comfy, the 2D rust game engine, is now archived by q3k on Monday September 09, 2024 @08:24AM (#41487852)
> Basing any serious project on 0.x libraries is always subject to this issue.

So I guess I'll hold off on having random numbers in Rust then [1].

[1] - https://docs.rs/rand/latest/rand/

Re:Comfy, the 2D rust game engine, is now archived by swfsql on Monday September 09, 2024 @10:54AM (#41489094)
It's already at 0.8, just another 20% and..!
Re:Comfy, the 2D rust game engine, is now archived by mcpar-land on Monday September 09, 2024 @09:21AM (#41488267)
On the flip side of this, when libraries in rust do reach 1.0, they often are just done. The serialization/deserialization library serde which has become the de-facto standard has been on 1.0.xxx for the past seven years. https://crates.io/crates/serde/versions

I think this speaks to rust's strengths in that if you know your spec, you can write a rock-solid version of it - and its weakness, where if you don't know your spec you'll be making breaking changes a lot.