News for hackers. Stuff that matters.
Re:Hard Rust requirements from May onward for all Debian ports by hulitu on Saturday November 01, 2025 @05:55AM (#45780462)
> The reason is actually incredibly clear

There is no guarantee that other bugs do not flurish in the rust echosystem. There are no publicly known quality code checks of rust programs except a big "trust us"(see firefox with all its CVEs, despite "rust"). And combined with the Cargo echosystem, where every malicious actor can inject malware is a big warning sign.

Re:Hard Rust requirements from May onward for all Debian ports by norman784 on Saturday November 01, 2025 @06:19AM (#45780573)
AFAIK Linux is using rustc directly, without cargo.

And just an anecdote, Asahi Linux devs said that Rust made it very easy (maybe relative to working with C) to write the drivers for the Apple M1 and M2 series, so it seems that the language has his merits, even without the cargo ecosystem.

Also Rust will only minimize certain kinds of bugs, others are impossible, a few years ago (I believe was Microsoft) that said that 70% of the bugs found were memory related [0], it means that Rust would have prevented most of those.

Maybe Rust is not the best answer, but as for now it the most proven answer for this particular problem, who know of Zig or other language will replace both C and Rust in the future.

[0] https://www.zdnet.com/article/i-ditched-linux-for-windows-11...

Re:Hard Rust requirements from May onward for all Debian ports by tcfhgj on Saturday November 01, 2025 @06:12AM (#45780537)
Firefox is 29% Javascript, 28% C++, 22% HTML, 10% C, 3% Python, 2,6% Kotlin and 5% other

> There is no guarantee that other bugs do not flurish in the rust echosystem.

well, less likely than in C thanks to a advanced type system, e.g. allowing authors of abstractions make their API much more fool proof.

> where every malicious actor can inject malware is a big warning sign.

Very much doubt that is the case...

Re:Hard Rust requirements from May onward for all Debian ports by kaoD on Saturday November 01, 2025 @06:05AM (#45780501)
I might be misunderstanding here but... what you're saying is that Rust programs can still have bugs? Isn't that the same as other programs except Rust prevents the most disastrous and common bugs that lead to most CVEs?

If I got that right, how is "it's still not perfect" an argument?

Agree with the Cargo objection.

Re:Hard Rust requirements from May onward for all Debian ports by kasabali on Saturday November 01, 2025 @07:54AM (#45780954)
If perfect isn't needed, we might as well stick with the 20+ years old mature codebase, there's no need to move to another language.

Use Rust for evergreen projects by all means, just leave mature tested systems alone, please.

Re:Hard Rust requirements from May onward for all Debian ports by tialaramex on Saturday November 01, 2025 @08:07AM (#45781020)
OK? So, is your position that Debian is only for software that's old enough to vote?

Or maybe Debian should never rely on any software written after 2015?

Re:Hard Rust requirements from May onward for all Debian ports by kaoD on Saturday November 01, 2025 @08:23AM (#45781096)
I don't follow how from "better but not perfect is better than worse" you conclude that.
Re:Hard Rust requirements from May onward for all Debian ports by bestouff on Saturday November 01, 2025 @06:04AM (#45780499)
There are guarantees that many types of bugs won't happen in Rust code. That alone is a great progress.
Re:Hard Rust requirements from May onward for all Debian ports by mdhb on Saturday November 01, 2025 @06:07AM (#45780510)
a bunch of major projects have conclusively shown that moving to memory safe languages without any doubt whatsoever results in more secure software.
Re:Hard Rust requirements from May onward for all Debian ports by IshKebab on Saturday November 01, 2025 @01:37PM (#45783575)
Are there guarantees that "other bugs" do not flourish in the C ecosystem?

Firefox is not even close to 100% Rust.

This is a wildly misinformed comment.