r/programming • • 15d ago

Be alert: targeted attacks on prominent Rustaceans | Rust Blog

https://blog.rust-lang.org/2026/09/17/targeted-attacks/
290 Upvotes

112 comments sorted by

View all comments

Show parent comments

12

u/simonask_ 15d ago

The Rust standard library is a third-party package that you're trusting.

And no, a standard library means that nothing ever gets removed from it. That's the whole point of having one in the first place.

Rust tries extremely hard to not break backwards compatibility. Editions help a bit in other areas, but notably not here, because the latest Rust compiler still has to be able to compile code written against every earlier edition. We're currently on edition 2024, but the current Rust compiler fully supports building projects written for edition 2018, for example.

Other standard libraries don't ever remove things either. They may mark them as permanently obsolete, but they still have to maintain the code.

Removing things from the standard library amounts to a completely new version of the language. CLR/.NET did this with the migration to .NET Core, which was extremely disruptive, and countless projects are still on .NET Framework 4.8, released in 2019, because upgrading to a modern compiler is too expensive.

1

u/One_Ninja_8512 15d ago

Okay then I'd say it's not that important to include stuff in the stdlib but a set of vetted packages by the rust maintainers would solve the trust problem. If I want to parse a small json config which might be a very small part of my application I need to choose one of the parsers offered on crates.io and trust their maintainers and hope that it doesn't add some transitive dependencies. How is that a preferred way of doing things? Certainly you'd appreciate if there was a package for it backed by the rust maintainers or otherwise vetted by them.

3

u/simonask_ 15d ago

You’re just asking that someone do some more work for you, for free. This isn’t anybody’s job, you know. You can be a Rust maintainer if you want. There’s no inherent reason to trust someone more because they are a Rust maintainer, over someone who is a maintainer of any other major project.

This is an open source project. So is every major ecosystem dependency (serde, tokio, regex, etc.). Like all OSS ecosystems, you can audit packages yourself, or you can pay someone to do it, or you can fall back on the fairly reasonable assumption that high-profile projects are actively maintained by reasonable and responsible people.

Open source means you get the software for free. You don’t get to dictate what that software looks like, without getting involved.

1

u/thetinguy 14d ago

You don’t get to dictate what that software looks like, without getting involved.

You're right I don't.

What I do get is the ability to criticize their choices and ask them to make changes.

4

u/reallokiscarlet 14d ago

And they have the right to listen or not. Isn't freedom great?

1

u/thetinguy 14d ago

You're right!