News for hackers. Stuff that matters.
Re:"Rust does not have a stable ABI" by phh on Thursday August 13, 2020 @04:45AM (#24141224)
The article is pretty interesting and I learned quite a few things, but it looks like the author is knowingly not answering the issue they raise by themselves.

In my opinion, the most important thing distros does that is incompatible with how rust currently works, is handling security/bug updates.

The one libjpeg.so for everyone is meant to fix libjpeg flaws for everyone. And it has many security flaws. And it has many users. There is no denying the way this is done by distros is good.

Now, to pick author's code, one of its dependency is a CSS parsing, which is prone to flaws. (Maybe not /security/ flaws, but still) The question is, how is the distro supposed to handle that?

I know rust has tooling for that, but it seems to me that with the perfect version match crate build system, every dependency will happily break API. So let's say author no longer has time to develop rust librsvg, and cssparser crate has a major flaw, which is fixed only in a new API rewrite branch, then what? Distro are supposed to fix that themselves? Sounds like much more work for them.

Re:"Rust does not have a stable ABI" by posix_me_less on Thursday August 13, 2020 @01:34PM (#24145896)
> There is no denying the way this is done by distros is good.

Let me tell you, the way it is done by distros (Centos, Debian) is far from being good. You will get the fix a long time after the bug is published. And you only get it if your system is recent enough.

Re:"Rust does not have a stable ABI" by ezekiel68 on Thursday August 13, 2020 @09:05PM (#24152000)
I appreciated the author's approach. They did address many of the ancillary concerns while "staying with the question" about whether the dominant Linux distro way of handling libraries is indeed still the best way. Sometimes teaching or blogging on a topic helps a person clarify their own ideas over time.
Re:"Rust does not have a stable ABI" by Cogitri on Thursday August 13, 2020 @04:53AM (#24141264)
Yes, every crate using a different versions of their dependencies involves a lot more work for distros, especially when a crate uses a -sys crate (e.g. libgit2-sys) and libgit2-sys does an API break. Now every crate that uses libgit2-sys in the repo manually needs its dependencies updated, which is a rather time consuming process (especially if the bindings in libgit2-sys are only built against some random git version).
Re:"Rust does not have a stable ABI" by nicoburns on Thursday August 13, 2020 @04:51AM (#24141252)
From a security point of view, you shouldn't be using unmaintained libraries anyway, no? And if librsvg is maintained, then all the distro has to do is package the latest version.