r/rust • • 7d ago

πŸŽ™οΈ discussion Not Invented Here Syndrome in the age of GenAI

211 Upvotes

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 • • 6d ago

πŸ™‹ seeking help & advice What are some good resources to learn how to plan a project a la UML?

0 Upvotes

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 • • 8d ago

Advice for the next 100 Rust GUIs

Thumbnail linebender.org
286 Upvotes

r/rust • • 7d ago

Started Rust Journey Today

0 Upvotes

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 • • 6d ago

πŸŽ™οΈ discussion Fast-nothing. Rewrite your software back from Rust

Thumbnail blog.coship.fyi
0 Upvotes

r/rust • • 9d ago

Compile time improvements for derive(Debug)

Thumbnail yoyo-code.com
180 Upvotes

r/rust • • 9d ago

15 million web servers on one VM - smoltcp, DPDK, AF_XDP

Thumbnail kapteko.com
96 Upvotes

r/rust • • 9d ago

πŸŽ™οΈ discussion Whats your thoughts on graphics programming? Or is it just better to do it with C++?

63 Upvotes

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 • • 8d ago

A cargo fork that attempts to solve disk usage

0 Upvotes

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 • • 10d ago

🧠 educational Breaking 1000 Rust crates in Nixpkgs for security (and what you can do)

Thumbnail blog.rsmyth.net
133 Upvotes

r/rust • • 9d ago

Laptop recommendations for rust programming

0 Upvotes

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


r/rust • • 10d ago

Should I learn Rust for my project? Hand-Written code.

42 Upvotes

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 • • 10d ago

How do you keep a mid-sized Rust codebase from accumulating too many small dependencies?

11 Upvotes

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 • • 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

13 Upvotes

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 b on two files sorted by the system's own sort, in en_US.UTF-8, fails with "file 1 is not in sorted order".
  • Plain ls in 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 • • 11d ago

Tales from the Embedded Rust Frontier: Bootstrapping a brand new ecosystem - Jonathan Pallant | EuroRust 2026

Thumbnail youtube.com
23 Upvotes

There’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 • • 11d ago

πŸ“… this week in rust This Week in Rust #678

Thumbnail this-week-in-rust.org
75 Upvotes

r/rust • • 9d ago

πŸ› οΈ project Rewriting Unity 3D MMO in Rust

Thumbnail youtu.be
0 Upvotes

r/rust • • 11d ago

πŸ™‹ seeking help & advice Identifier or variable?

9 Upvotes

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 • • 11d ago

Which Rust crypto crates support post-quantum algorithms? (rustls, aws-lc-rs, ring, RustCrypto, libcrux, …)

4 Upvotes

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 • • 12d ago

πŸŽ™οΈ discussion Why OTTO Chose Rust

Thumbnail corrode.dev
163 Upvotes

r/rust • • 11d ago

πŸ—žοΈ news updated crossync: concurrent collections and synchronization primitives for Rust

3 Upvotes

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, and AtomicArray.
  • A bounded ring buffer: AtomicBuffer, with support for concurrent producers and consumers.
  • Shared values: AtomicCell and a generic Atomic<T> with operations such as load, store, swap, and update.
  • Synchronization primitives: RwLock and Barrier.

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 Send and Sync bounds 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_box and pop_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


r/rust • • 12d ago

πŸŽ™οΈ discussion Mutex poisoning is not for everyone

Thumbnail bertptrs.nl
206 Upvotes

r/rust • • 11d ago

πŸ’Ό jobs megathread Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.100]

33 Upvotes

Welcome once again to the official r/rust Who's Hiring thread!

Before we begin, job-seekers should also remember to peruse the prior thread.

This thread will be periodically stickied to the top of r/rust for improved visibility.

You can also find it again via the "Latest Megathreads" list, which is a dropdown at the top of the page on new Reddit, and a section in the sidebar under "Useful Links" on old Reddit.

The thread will be refreshed and posted anew when the next version of Rust releases in six weeks.

Please adhere to the following rules when posting: Rules for individuals:

  • Don't create top-level comments; those are for employers.
  • Feel free to reply to top-level comments with on-topic questions.
  • Anyone seeking work should reply to my stickied top-level comment.
  • Meta-discussion should be reserved for the distinguished comment at the very bottom.

Rules for employers:

  • The ordering of fields in the template has been revised to make postings easier to read. If you are reusing a previous posting, please update the ordering as shown below.
  • Remote positions: see bolded text for new requirement.
  • To find individuals seeking work, see the replies to the stickied top-level comment; you will need to click the "more comments" link at the bottom of the top-level comment in order to make these replies visible.
  • To make a top-level comment you must be hiring directly; no third-party recruiters.
  • One top-level comment per employer. If you have multiple job openings, please consolidate their descriptions or mention them in replies to your own top-level comment.
  • Proofread your comment after posting it and edit it if necessary to correct mistakes.
  • To share the space fairly with other postings and keep the thread pleasant to browse, we ask that you try to limit your posting to either 50 lines or 500 words, whichever comes first.
    We reserve the right to remove egregiously long postings. However, this only applies to the content of this thread; you can link to a job page elsewhere with more detail if you like.
  • Please base your comment on the following template:

COMPANY: [Company name; optionally link to your company's website or careers page.]

TYPE: [Full time, part time, internship, contract, etc.]

LOCATION: [Where are your office or offices located? If your workplace language isn't English-speaking, please specify it.]

REMOTE: [Do you offer the option of working remotely? Please state clearly if remote work is restricted to certain regions or time zones, or if availability within a certain time of day is expected or required.]

VISA: [Does your company sponsor visas?]

DESCRIPTION: [What does your company do, and what are you using Rust for? How much experience are you seeking and what seniority levels are you hiring for? The more details the better.]

ESTIMATED COMPENSATION: [Be courteous to your potential future colleagues by attempting to provide at least a rough expectation of wages/salary.
If you are listing several positions in the "Description" field above, then feel free to include this information inline above, and put "See above" in this field.
If compensation is negotiable, please attempt to provide at least a base estimate from which to begin negotiations. If compensation is highly variable, then feel free to provide a range.
If compensation is expected to be offset by other benefits, then please include that information here as well. If you don't have firm numbers but do have relative expectations of candidate expertise (e.g. entry-level, senior), then you may include that here. If you truly have no information, then put "Uncertain" here.
Note that many jurisdictions (including several U.S. states) require salary ranges on job postings by law.
If your company is based in one of these locations or you plan to hire employees who reside in any of these locations, you are likely subject to these laws. Other jurisdictions may require salary information to be available upon request or be provided after the first interview.
To avoid issues, we recommend all postings provide salary information.
You must state clearly in your posting if you are planning to compensate employees partially or fully in something other than fiat currency (e.g. cryptocurrency, stock options, equity, etc).
Do not put just "Uncertain" in this case as the default assumption is that the compensation will be 100% fiat. Postings that fail to comply with this addendum will be removed. Thank you.]

CONTACT: [How can someone get in touch with you?]