this post was submitted on 13 Jun 2025
41 points (95.6% liked)

Rust Programming

8839 readers
7 users here now

founded 6 years ago
MODERATORS
top 8 comments
sorted by: hot top controversial new old
[–] Narann@jlai.lu 2 points 4 days ago (1 children)

Happy to see more rust!

I’m geniously curious : Is there a difference in binary sizes? 5%? 10%?

[–] Ferk@lemmy.ml 2 points 2 days ago* (last edited 2 days ago)

Looks like it's split in library and binary, the binary itself is smaller, but if you add the size of the library it would be about 10% bigger. At least judging by the package sizes.

[–] nightwatch_admin@feddit.nl 8 points 1 week ago

Great, massive step forward. Rust’s memory safety will prevent potential PE vulnerabilities (and more).

[–] mina86@lemmy.wtf 6 points 1 week ago (1 children)
[–] drspod@lemmy.ml 19 points 1 week ago (1 children)

No user should notice. If it acts differently then that's a regression.

[–] caseyweederman@lemmy.ca 3 points 1 week ago (1 children)

It looks like it's explicitly not a 1:1 replacement

[–] nous@programming.dev 5 points 6 days ago (1 children)

It is not a full replacement - but they are aiming for

Our current target is to build a drop-in replacement for all common use cases of sudo.

They are dropping support for some of the older/niche features/settings and now ignore some of the config you used to be able to do.

Some parts of the original sudo are explicitly not in scope. Sudo has a large and rich history and some of the features available in the original sudo implementation are largely unused or only available for legacy platforms. In order to determine which features make it we both consider whether the feature is relevant for modern systems, and whether it will receive at very least decent usage. Finally, of course, a feature should not compromise the safety of the whole program.

But generally for all common use cases it should just be a drop in replacement.

[–] caseyweederman@lemmy.ca 2 points 5 days ago

sudo-rs supports less functionality than sudo. Some of this is by design.
i.e. not 1:1 replacement.
My use cases probably won't be affected, but this will break things for some people.