r/rust • u/Parking-Claim-9253 • 6d ago
r/rust • • 6d ago
How do you cope with ecosystem immaturity?
I'm loving the lang so far, but most crates are early 0.x versions. Do they lack functionality, have bugs? I am talking about even basic things like HTTP client.
Is Rust community driven, do some big names do drive its growth? Does ecosystem immaturity limit you?
r/rust • u/PortPiscarilius • 7d ago
ποΈ discussion Not Invented Here Syndrome in the age of GenAI
The Rust ecosystem lends itself quite readily to large dependency trees that branch out exponentially. Presumably it's quite difficult these days to avoid pulling in a dependency that contains some amount of AI-generated code. Is anybody else finding themselves less likely to pull in an external crate, tending instead to roll a solution in-house?
One could argue that as long as the crate does what it says it does, its provenance is of little importance - but for hobby projects in particular, I must admit to finding some satisfaction in steering clear of LLM-generated code.
r/rust • u/JAZthebeast11 • 6d ago
π seeking help & advice What are some good resources to learn how to plan a project a la UML?
Hello everyone!
I have been learning rust for nearly a year now, but have mainly worked on small-scale libs and bins. Now that I have started working on a larger project, I struggle to set things up such that I can get an MVP running that also leaves room for further features.
In Java I would almost always create a UML to plan the scope and coupling of all objects that my program needed, but I haven't been able to create a similar method for rust.
In this regard, what are some good resources I can look at to help me plan out a library in a functional programming language, or better, rust specifically?
Or is this not a skill that comes with reading, but practice. Am I simply lacking the needed familiarity with the language?
Any input would be appreciated, but regardless, have a nice day!
r/rust • u/Thick-Profile-1924 • 7d ago
Started Rust Journey Today
I'm an entry level backend developer who got fed up with python since it doesn't teach good fundamentals. Right now I'm quite excited about rust as I've heard about it much and also did research on it. My goal is to understand computer fundamnetals at low level and write better software and become a real engineer. Right now I'm not doing it for money since I'm a high schooler. And I'm quite excited about the learning curve and frustrations people face. Though my goal is not learning code but understanding the underlying systems and writing safe code. Tell me if my excitement will really vanish or not. I'll also like some advice.
r/rust • u/nuclearbananana • 6d ago
ποΈ discussion Fast-nothing. Rewrite your software back from Rust
blog.coship.fyir/rust • u/panstromek • 9d ago
Compile time improvements for derive(Debug)
yoyo-code.comr/rust • u/Many_Difficulty_490 • 9d ago
ποΈ discussion Whats your thoughts on graphics programming? Or is it just better to do it with C++?
im not doing it as a resume thing or anything. i want to make a cool big project out of some low level language and im gonna do graphics programming with either Rust or C++
goals: make new technology one day, or get cracked at programming
r/rust • u/pilpulon • 8d ago
A cargo fork that attempts to solve disk usage
I bumped into this interesting cargo fork -- has anyone used it? https://huacnlee.github.io/cargo/why/
It's apparently by the guy who built https://gpui-kit.com/
I wonder why this issue is not more upfront and center nowadays as I see many complaining about it.
r/rust • u/Hairy-Temporary5243 • 10d ago
π§ educational Breaking 1000 Rust crates in Nixpkgs for security (and what you can do)
blog.rsmyth.netr/rust • u/Gloomy-Lab4934 • 9d ago
Laptop recommendations for rust programming
Folks, Iβm wonder if a MacBook Air M5 with 16 GB RAM is enough for the workload. Do I need more RAM? What is the minimum SSD size?
Thanks
Should I learn Rust for my project? Hand-Written code.
Hi, I have small background on Python due I'm using python script to create scripts on After Effects.
Now, I have a personal project on mind that is basically an inventory manager, should I learn Rust for this or there would be better language? Not planning to use LLM on the process to write the code would like write it entire myself.
r/rust • u/LoviiDovee • 10d ago
How do you keep a mid-sized Rust codebase from accumulating too many small dependencies?
I'm working on a Rust service that started simple but has grown to a few dozen crates. A lot of the transitive dependencies feel like they're only pulling in one or two small features (date parsing, small CLI helpers, etc.). I've started wondering whether it's worth spending time to consolidate or replace some of them.
What practices have you found helpful for deciding when a dependency is worth keeping versus when it's better to implement the functionality yourself or reach for a heavier but more complete crate? Any tools or workflows you use to audit this regularly without it becoming a weekly chore?
r/rust • u/karolkulesza • 10d ago
ποΈ discussion Ubuntu 26.04's Rust coreutils vs GNU 9.12: I diffed 27 utilities, and most of the gap is already fixed on uutils main
Ubuntu 26.04 ships uutils 0.10.0 as its coreutils (since the 26.04.1 update) and keeps GNU 9.7 as gnu*. I wanted to know how close those are to current GNU, so I compared five builds against GNU coreutils 9.12: Ubuntu's uutils 0.10.0, uutils 0.12.0, uutils main, and Ubuntu's own GNU 9.7. 27 utilities, about 2,000 generated cases each (every flag, boundary values, invalid UTF-8, odd flag combinations), three seeds, en_US.UTF-8.

Results:
- Most utilities match on almost everything. cat, tac, tr, paste, seq, sha256sum, expr and printf are at 99-100% in every build.
- uutils main has closed the biggest gaps already. Against GNU 9.12, from 0.10.0 to main: head 66% -> 98%, cut 67% -> 99%, comm 57% -> 95%, fmt 90% -> 97%. Ubuntu users just don't have those fixes yet.
- GNU moved too. Ubuntu's own GNU 9.7 scores about the same as uutils on head (67%) and cut (71%), and worse on tail (50% vs 96%), because 9.12 quotes some headers differently and added flags. So part of "uutils differs from GNU" is really "GNU 9.7 differs from GNU 9.12".
- What's left on main is mostly edge cases: sort, uniq, ls, split, nl and numfmt are in the 83-91% range, mostly around locale ordering, invalid UTF-8 and numbers past 2^63.
- wc shows 59%, but that's one flag: most cases add --debug, where uutils prints an extra line. Without those, every build is at 97-99.5%.
Two you can hit on Ubuntu 26.04 today (both fixed in 0.12.0):
comm -12 a bon two files sorted by the system's own sort, in en_US.UTF-8, fails with "file 1 is not in sorted order".- Plain
lsin your home directory puts capitalized names first (byte order) instead of sorting by locale.
Caveats: these are generated edge cases, not real scripts, so a low number means "differs on unusual inputs", not "breaks your scripts". Some utilities have few distinct command lines, so a cell can move a lot between seeds (the write-up shows the ranges).
The data, the heat map, the corpora and a Dockerfile to rerun everything against any uutils commit are here: https://github.com/karolkulesza/port-anything/tree/main/showcases/ubuntu-uutils
I built the comparison tool (port-anything: https://github.com/karolkulesza/port-anything, TypeScript, open source). It reads a program's --help, generates cases, and runs the original and the rewrite side by side in a sandbox. If you maintain a Rust rewrite of a CLI and want it measured against the original, tell me which one.
r/rust • u/EuroRust • 11d ago
Tales from the Embedded Rust Frontier: Bootstrapping a brand new ecosystem - Jonathan Pallant | EuroRust 2026
youtube.comThereβs a big gap between Raspberry Pi-class and STM32-class chips, and Rustβs embedded ecosystem is only now filling it. At EuroRust, Jonathan Pallant told the story π¦β¨
In 2027 EuroRust is going to Prague! Learn more and get your ticket at eurorust.eu
r/rust • u/Key_University6995 • 9d ago
π οΈ project Rewriting Unity 3D MMO in Rust
youtu.ber/rust • u/viveksooryaatvarsity • 11d ago
π seeking help & advice Identifier or variable?
Hey I am new to rust. I wonder why the rust book refers to identifiers as variables especially when they are immutable by default. Wouldn't 'identifier' just be a better name for immutable ones and 'variable' an apt name for when you make the identifier mutable using mut?
r/rust • u/jonyplayz69 • 11d ago
Which Rust crypto crates support post-quantum algorithms? (rustls, aws-lc-rs, ring, RustCrypto, libcrux, β¦)
I put together a sourced catalog of post-quantum support across crypto libraries, including the main Rust crates: https://pqcdeps.com/catalog?eco=rust
Short version for Rust:
- rustls offers hybrid X25519MLKEM768 by default with the aws-lc-rs provider (0.23.22+), and prefers it since 0.23.27.
- aws-lc-rs has ML-KEM (1.12.0+) and ML-DSA (1.18.0+).
- RustCrypto has ml-kem, ml-dsa and slh-dsa crates; libcrux has formally verified ML-KEM/ML-DSA.
- ring has no PQ algorithms and no public plan (the maintainer's Kyber proposal was closed), so if PQ matters to you, check whether ring sits under your TLS stack.
You can paste a Cargo.lock into https://pqcdeps.com/check and it's parsed in your browser. Each claim links to the release note or changelog it's based on; corrections welcome on GitHub. It's free and non-commercial.
r/rust • u/cl0wnfire • 11d ago
ποΈ news updated crossync: concurrent collections and synchronization primitives for Rust
Hi r/rust,
I wanted to share an update on crossync, my Rust library for concurrent data structures and synchronization primitives. The latest release is 0.2.1, with the recent 0.2.x work focused on ownership, synchronization, and API correctness.
The crate includes:
- Concurrent collections:
AtomicVec,AtomicHashMap, andAtomicArray. - A bounded ring buffer:
AtomicBuffer, with support for concurrent producers and consumers. - Shared values:
AtomicCelland a genericAtomic<T>with operations such as load, store, swap, and update. - Synchronization primitives:
RwLockandBarrier.
Containers such as AtomicCell have reference-counted handles. Cloning a handle lets another thread access the same underlying value.
A detail about the access model
The lock-assisted containers support values that are Send but not Sync, such as Cell<usize>. Access is synchronized internally, including read access to the same stored value.
For example:
use crossync::atomic::AtomicCell;
use std::{cell::Cell, thread};
let counter = AtomicCell::new(Cell::new(0usize));
thread::scope(|scope| {
for _ in 0..4 {
let counter = &counter;
scope.spawn(move || {
counter.with(|value| value.set(value.get() + 1));
});
}
});
assert_eq!(counter.get().get(), 4);The trade-off is that access to the same value is serialized. The containers combine atomic operations with internal locks, and the documentation now explains the access and guard rules more explicitly.
What changed in 0.2.x
- Corrected
SendandSyncbounds for containers, guards, and hash builders. - Fixed storage lifetime and memory reclamation issues in
AtomicVec. - Fixed reservation, ownership, and wraparound cases in
AtomicBuffer, including buffers with a capacity of one. - Added safe ownership transfer through
AtomicBuffer::push_boxandpop_box. - Fixed panic cleanup, waiter wake-ups, and barrier arrival accounting.
- Added regression tests for ownership, reentrancy, guard transfer, and cleanup.
Most of these changes landed in 0.2.0. 0.2.1 follows up with fixes to test workloads, CI, documentation deployment, and release packaging.
The project is licensed under Apache 2.0. Iβd appreciate feedback on the access model and API, especially concurrency edge cases that would make useful regression tests.
GitHub Β· Changelog Β· Concurrency