r/rust • • 4d ago

๐Ÿ™‹ questions megathread Hey Rustaceans! Got a question? Ask here (48/2026)!

13 Upvotes

Mystified about strings? Borrow checker has you in a headlock? Seek help here! There are no stupid questions, only docs that haven't been written yet. Please note that if you include code examples to e.g. show a compiler error or surprising result, linking a playground with the code will improve your chances of getting help quickly.

If you have a StackOverflow account, consider asking it there instead! StackOverflow shows up much higher in search results, so ahaving your question there also helps future Rust users (be sure to give it the "Rust" tag for maximum visibility). Note that this site is very interested in question quality. I've been asked to read a RFC I authored once. If you want your code reviewed or review other's code, there's a codereview stackexchange, too. If you need to test your code, maybe the Rust playground is for you.

Here are some other venues where help may be found:

/r/learnrust is a subreddit to share your questions and epiphanies learning Rust programming.

The official Rust user forums: https://users.rust-lang.org/.

The unofficial Rust community Discord: https://bit.ly/rust-community

Also check out last week's thread with many good questions and answers. And if you believe your question to be either very complex or worthy of larger dissemination, feel free to create a text post.

Also if you want to be mentored by experienced Rustaceans, tell us the area of expertise that you seek. Finally, if you are looking for Rust jobs, the most recent thread is here.


r/rust • • 1d ago

๐Ÿ“… this week in rust This Week in Rust #679

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

r/rust • • 8h ago

๐Ÿ“ก official blog Rust 1.100.1

Thumbnail blog.rust-lang.org
168 Upvotes

r/rust • • 14h ago

๐Ÿ—ž๏ธ news Anthropic: Migrating our Messages API to Rust

Thumbnail anthropic.com
266 Upvotes

r/rust • • 35m ago Heartwarming

๐Ÿ—ž๏ธ news LexiSuite d484004: my all-Rust local AI stack (own kernel, OS, engine, panel) - 206 changes in two days, Inkling-2-Mini at 131 tok/s on one 7900 XTX

Thumbnail github.com
0 Upvotes

AIO USB/VM/Drive image with Inkling 2 Mini baked here: https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA

I'm building a local AI platform from scratch in Rust: an inference engine (LexiEngine), a browser control panel (LexiPanel), an appliance OS (LexiOS) and a kernel designed around inference (LexiKernel). It boots from one USB image. It is not a wrapper around llama.cpp, and there is no third-party code in the product.

A new development image went out today. Here is what changed since the last one two days ago, and what the work actually was.

The Panel was rebuilt, page by page (66 changes)

The old Panel worked but read like an engineering console: raw JSON on screen, fields with no labels, boxes inside boxes, internal jargon everywhere. I went through it by hand.

- One header and one navigation instead of five stacked bars

- 12 themes

- A file and folder picker on every path field, so nothing has to be typed

- Right-click menus on instances, files and table cells

- Parameters grouped in the order you set them, with a device chooser for the instance's cards

- Switch an instance between LexiEngine and llama.cpp from one page

- Hardware, Diagnostics, Power, GPU tuning and Models rewritten in plain words (temperatures in degrees, problems listed first)

- An abliteration lab where you pick models with toggles and pick the drive to write to; the original is never touched

- A layout choice: top tabs, or a side tree like a hypervisor console

LexiKernel went from one core to all of them (99 changes)

Until now my kernel ran all threads of a program on a single CPU. That was the biggest gap between it and Linux. Three rounds of work went into closing it: per-CPU timers and scheduling, threads that move between cores with their full vector state, memory handled per NUMA node, huge pages, and TLB shootdowns that a core answers even in the middle of a long system call. It now boots with every core in use and served the Panel to 8 clients at 2, 4 and 8 CPUs in a VM with no failed requests.

The kernel's own GPU drivers for AMD, NVIDIA and Intel are compiled into this build too. They have not run on a real card in this version yet. That is the next milestone, and until then GPU work under LexiKernel goes through a Linux guest. The image also boots LexiOS on Linux 7.4, which is what you want for daily use today.

LexiEngine (27 changes)

- Groundwork for splitting one model across several cards (serving across cards is not in this build)

- New draft options for Inkling 2, off by default until they are measured

- A quantizer that trains with the rounding in the loop instead of rounding afterwards

- The whole tree moved to Rust 1.100.1

Speed, measured on this version

Inkling-2-Mini (the looped mixture-of-experts model released Nov 20), one Radeon RX 7900 XTX, 4-bit KV cache, greedy, one run each, measured Nov 27-28.

After a 16,384-token prompt:

- LexiEngine: prompt 2,244 tok/s, generation 64.6 tok/s, 131.1 tok/s with the model's own draft head

- llama.cpp b12722: prompt 1,060 tok/s, generation 42.9 tok/s

- Strata 0.2.23 (8-bit cache, it refuses 4-bit on this card): prompt 2,075 tok/s, generation 53.9 tok/s

Long context on LexiEngine:

- 261,632-token prompt: 1,157 tok/s reading, then 48.7 tok/s (63.2 with the draft head)

- 523,264-token prompt: 766 tok/s reading, then 39.5 tok/s (46.8 with the draft head)

- 10 of 10 planted facts recalled at both depths

Drafted output was identical to plain output in every run.

Two notes so nobody says I hid them. The llama.cpp number is from the Nov 25 build: the build I fetched today ran this model at 7.6 tok/s on this card, which looks like a bug on their side, so I did not use it. And llama.cpp needs a 26-line loader change to open my file, because the file also carries the draft head and image tower.

What it is not, yet

- A development build, not a production release

- Developed and measured on one card (7900 XTX, Vulkan). Other cards are less tested

- The kernel's own GPU drivers have not run on a card in this version

- The Windows installer is on the stick but has not been run on a Windows PC; no macOS installer yet

- Installing to an internal disk is not in this image

- Only Inkling has been benchmarked on this exact version; my 27B numbers are from a build nine days older and are being re-run

Tested

Every test in the tree ran on this version: 17,932 tests, none failed. Both images passed their Secure Boot checks in a VM.

Links

Download (381 MB USB image, boots to the Panel):

https://lexipanel.com/download/

All-in-one image with Inkling-2-Mini inside (18.1 GB, needs a 32 GB stick):

https://huggingface.co/Wa1k3r/Inkling-2-Mini-NVFP4exp-Q8-draft-LexiSuite-AIO-for-AMD-RDNA

Every one of the 206 changes, one line each:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Changes-d484004

Benchmarks and method:

https://github.com/W61k3r/LexiSuite-Releases/wiki/Benchmarks

Happy to answer questions about the kernel work or the engine.


r/rust • • 17h ago

You can now use Aristotle to formally verify Rust, including unsafe and concurrent code

13 Upvotes

Hi r/rust,

I work at Harmonic on Aristotle, our formal verification tool. After launching with C and Verilog in October, Rust verification is now available for anyone to use, through the web app or CLI.

Aristotle supports safe and unsafe Rust, including concurrent code. You submit your project and describe the properties you want checked in plain English. Aristotle attempts to prove or refute them and reports the results and assumptions. You donโ€™t need to write proofs yourselves or know Lean.

One example case study that shows what Aristotle can do is Manifestโ€™s custom red-black-tree implementation, which uses substantial unsafe Rust. Manifest is an open-source order book on Solana; its trees store nodes directly in account memory, using unsafe accesses. Aristotle can verify properties of the existing Rust implementation, including that inserting and removing orders preserves tree validity and leaves unrelated data untouched. The invariants hold across arbitrary finite sequences of operations, under the stated preconditions. We are not aware of another tool that is able to prove such properties without any annotations or source code modifications. Across the order book, Aristotle proved 28 properties identified by Manifest as relevant. It also found a rounding bug that Manifest fixed, then verified the corrected behavior. You can explore the Aristotle run or read the full case study.

Another example is Signalโ€™s curve25519-dalek Rust elliptic-curve library. Aristotle proved 283 specified contracts for version 4.1.3 using its serial 64-bit backend, covering field and scalar arithmetic, curve operations, and multiscalar multiplication. The Dalek run includes the results and assumptions. It verifies functional correctness of the library itself assuming correctness of external dependencies, and does not verify cryptographic security properties.

You can try Aristotle on your own project, and our Rust docs include a smaller ring-buffer example to get started. Happy to discuss the supported Rust features, the verification approach, or particular use cases.


r/rust • • 37m ago

Rust in exploit dev n VR

Thumbnail reddit.com
0 Upvotes

r/rust • • 1d ago

๐Ÿง  educational I wrote a step-by-step tutorial to learn Rust by building a small Paint app from scratch

Thumbnail buildyourownpaint.com
392 Upvotes

Hi guys ! I have been a Rust enthusiast for a few years now, in my learning journey I wanted to learn by doing so I tried to make a Paint like app since I was interested in graphics and rasterization concepts, and it helped me understand a lot of Rust concepts and their purpose.

These last few weeks I thought I'd clean up my old project and make an educational tutorial for beginners or people who read the first Rust Book chapters and want to get some hands on experience to get the concepts down.

The tutorial is on Build Your Own Paint in Rust, it's organized into 12 easy to follow chapters that cover many concepts (2D vectors, mouse and keyboard input, shapes, colors, images, etc.) with additional exercises in every chapter for more learning, and some ideas at the end of the project to go further and explore different paths with some help on where to start.

I really hope this helps new learners to get an easy start in their Rust journey and see the beauty of the language ! :)


r/rust • • 15h ago

๐ŸŽ™๏ธ discussion async fn, await and pinned futures

3 Upvotes

People which works with async rust often falls into a scenario where a trait method needs to be async.

For these situations, a crate like async_trait (or dynosaur) helps a lot, but that comes to my question, if async is a rust keyword, meaning part of it is built in language itself, why Box::pin(async move {}) can't be simplified in a dyn trait as some sort of language keyword or something like AwaitableResult?

I'm not sure if there's any issue opened related to it, will check.

What you think about futures in dyn dispatch context? Something which has room for ergonomics improvement or it is good as it is by using macros?


r/rust • • 8h ago

๐ŸŽ™๏ธ discussion Serious question...

0 Upvotes

Is it just me or has Rust become the default programming language of AI's? I know its lightweight and extremely fast in terms of run/consume, but whatever project i see, be it for a game server or anything else, always Rust. It wasnt like this before. Been in the run for a long time (10+ years) and i can confidently say that people DID NOT like Rust at that time because it was so hard to understand and it felt like a joke language to them (They were also saying that about PHP, lol)

Give me your opinion. Am i hallucinating?


r/rust • • 1d ago

I love the complier and its hints

25 Upvotes

I just started learning Rust and running cargo check every now and then has helped me find typos, small syntax errors, or other general information I can't seem to find until it's pointed out.

Something like this is simple, but I didn't see the syntax issue until running it:

error[E0308]: mismatched types
  --> src/commands/holdings.rs:86:19
   |
86 |         .find(|p| p.kind = "DEFAULT" && !p.deleted)
   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
   |
help: you might have meant to compare for equality
   |
86 |         .find(|p| p.kind == "DEFAULT" && !p.deleted)
   |                           +

I've really been enjoying my time with Rust and taking it slow!

Another example:

error: format argument must be a string literal
  --> src/commands/holdings.rs:66:14
   |
66 |     println!(breakdown_body.len());
   |              ^^^^^^^^^^^^^^^^^^^^
   |
help: you might be missing a string literal to format with
   |
66 |     println!("{}", breakdown_body.len());

r/rust • • 1d ago

๐Ÿ“ธ media Qt Bindings compared: CXX-Qt vs Qt Bridge

Post image
112 Upvotes

Hey there!

I'm one of the developers of Qt Bridge (https://crates.io/crates/qtbridge). One of the questions we receive most often (aside from licensing) is what makes Qt Bridge different from CXX-Qt.

This takes more than a couple of lines to explain and is best illustrated with an example, so I wrote a blog post about it: https://www.qt.io/blog/rust-bindings-cxx-qt-vs-qt-bridge

We hope it demonstrates the strengths and value of both crates. As always, let us know what you think!


r/rust • • 1d ago

๐ŸŽ™๏ธ discussion How a newtype wrapper caught three different bugs during a refactor

3 Upvotes

I was cleaning up some argument parsing in a small CLI that processes batches of files. Previously everything was just String and usize fields in a struct. After a while it became easy to mix up "input path" vs "output path" or pass a byte count where an index was expected.

Wrapping the important values in newtypes (struct InputPath(String), struct RecordCount(usize), etc.) forced the compiler to complain on every mismatch. It also made the FromStr implementations and error messages much clearer.

The three bugs it caught were all ones I had introduced myself during the refactor: swapping two path fields in a config merge function, passing a parsed count into a slice index that expected something else, and accidentally cloning the wrong handle into a worker thread.

Nothing dramatic, but it felt like the kind of guardrail that would have been invisible in most other languages. Have other people found newtypes especially effective for this kind of domain-value safety in everyday tools?


r/rust • • 16h ago

๐Ÿ™‹ seeking help & advice How do I get input in Rust that can be of any type?

0 Upvotes

I am trying to build a three-way diff-merge tool for any object, not just text. For that, there needs to be a way that a user can pass in whatever value they want to diff, and my Rust struct/code would accept it, analyze it, and handle it accordingly under the hood to prepare it for diff-ing. What would be a good way to achieve this?


r/rust • • 1d ago

Building a Query System - Arya Dradjica | EuroRust 2026

Thumbnail youtube.com
14 Upvotes

Ever wondered how a compiler remembers what it already worked out? ๐Ÿค”

At this year's EuroRust, Arya walked us through how she built her own query system for a new Rust compiler and put it up against salsa. Check out the new video! ๐Ÿฆ€

In 2027 EuroRust is going to Prague! Learn more and get your ticket at eurorust.eu.


r/rust • • 2d ago

List of ~200 companies hiring (or that have hired) Rust engineers

90 Upvotes

Hey, I'm Georgios from getarustjob.com. I run a Rust job board, and after listing a few hundred Rust roles I put together a clean list of the companies behind them.

If you're job hunting, switching into Rust, or just curious who's investing in it, this should save you some digging. Recruiters / staffing agencies are removed so it's only actual companies.

At a glance

  • Cloud / infra / developer tools: 52 companies (27%)
  • AI / ML / data / quantum: 33 companies (17%)
  • Crypto / web3 / trading: 30 companies (16%)
  • Defense / aerospace / robotics: 26 companies (13%)
  • Consumer / media / e-commerce / other: 20 companies (10%)
  • Security / identity / privacy: 17 companies (9%)
  • Finance / banking / payments: 9 companies (5%)
  • Automotive / industrial / hardware: 6 companies (3%)
  • Cloud + AI + crypto = 60% of companies
  • Most listings by company: Kraken (12), Anduril (9), then Radar Labs / Zscaler (4), then several at 3 (Supabase, IonQ, ParadeDB, QuEra, Anthropic, Polars, xAI, Alignerr, Fab2, Massive, Revel, Palantir, Citi, Dassaultโ€ฆ)
IndustryCompaniesShare
Cloud / infra / developer tools5227%
AI / ML / data / quantum3317%
Crypto / web3 / trading3016%
Defense / aerospace / robotics2613%
Consumer / media / e-commerce / other2010%
Security / identity / privacy179%
Finance / banking / payments95%
Automotive / industrial / hardware63%

Industries below are ordered by company count; inside each group, companies are ordered by total Rust roles I've listed.


Cloud / infra / developer tools (52 companies ยท 27%)

  • Radar Labs (4 listings)
  • Supabase (3 listings)
  • Fab2 (3 listings)
  • Massive (3 listings)
  • Revel (3 listings)
  • Intelic (2 listings)
  • Loci (2 listings)
  • MetalBear (2 listings)
  • Microsoft (2 listings)
  • Qumulo (2 listings)
  • Siemens (2 listings)
  • Realm (2 listings)
  • Amazon Web Services (1 listing)
  • CircuitHub (1 listing)
  • Cloudflare (1 listing)
  • Deepslate (1 listing)
  • GitLab (1 listing)
  • Grid Dynamics (1 listing)
  • Huawei Research Center Germany (1 listing)
  • JUXT (1 listing)
  • Kake (1 listing)
  • Kaseya (1 listing)
  • Mainmatter (1 listing)
  • Materna (1 listing)
  • Minimal (1 listing)
  • MIRA (1 listing)
  • Mozilla (1 listing)
  • Neo (1 listing)
  • NordicWorkflow (1 listing)
  • Prima (1 listing)
  • Prospecta (1 listing)
  • Quicknode (1 listing)
  • Restate (1 listing)
  • Sentry (1 listing)
  • Serokell (1 listing)
  • STEINER-HITECH (1 listing)
  • Technology Innovation Institute (1 listing)
  • Tempo (1 listing)
  • Twin Labs (1 listing)
  • UMATR (1 listing)
  • Voluntas (1 listing)
  • Workato (1 listing)
  • Zed (1 listing)
  • Ditto (1 listing)
  • Enhance (1 listing)
  • Everforth Apex (1 listing)
  • Full Spectrum (1 listing)
  • MongoDB (1 listing)
  • N-able (1 listing)
  • Poppi Technologies (1 listing)
  • Termius (1 listing)
  • Wasmer (1 listing)

AI / ML / data / quantum (33 companies ยท 17%)

  • IonQ (3 listings)
  • ParadeDB (3 listings)
  • QuEra Computing (3 listings)
  • webAI (3 listings)
  • Anthropic (3 listings)
  • Polars (3 listings)
  • xAI (3 listings)
  • Alignerr (3 listings)
  • Google (2 listings)
  • Oxford Ionics (2 listings)
  • Tensordyne (2 listings)
  • Aftershoot (1 listing)
  • Cognite (1 listing)
  • CommonAI (1 listing)
  • Datamint (1 listing)
  • Estuary (1 listing)
  • Fivetran (1 listing)
  • Harmattan AI (1 listing)
  • Modal (1 listing)
  • Nebius (1 listing)
  • NVIDIA (1 listing)
  • PsiQuantum (1 listing)
  • Quantum - QTR (1 listing)
  • Runpod (1 listing)
  • SolveAI (1 listing)
  • Veo Technologies (1 listing)
  • Vermillion Analytics (1 listing)
  • VuNet Systems (1 listing)
  • LiteLLM (1 listing)
  • Machinify (1 listing)
  • Neurelo (1 listing)
  • Satalia (1 listing)
  • yeet (1 listing)

Crypto / web3 / trading (30 companies ยท 16%)

  • Kraken (12 listings)
  • Keyrock (3 listings)
  • Braiins (2 listings)
  • Helius (2 listings)
  • Binance (1 listing)
  • Blockrotate (1 listing)
  • BlockTech (1 listing)
  • Chainlink Labs (1 listing)
  • DEX Labs (1 listing)
  • Dune (1 listing)
  • Easygo (1 listing)
  • Flowdesk (1 listing)
  • Mysten Labs (1 listing)
  • No Limit Nodes (1 listing)
  • OneChronos (1 listing)
  • Payward (1 listing)
  • Polygon.io (1 listing)
  • Stake Engine (1 listing)
  • Upstox (1 listing)
  • Verse (1 listing)
  • CoW DAO (1 listing)
  • MoonPay (1 listing)
  • NinjaTrader (1 listing)
  • Ondo Finance (1 listing)
  • Partisia Blockchain Applications (1 listing)
  • Phantasma Labs (1 listing)
  • Prex (1 listing)
  • Rain (1 listing)
  • Sentz (1 listing)
  • Uniswap Labs (1 listing)

Defense / aerospace / robotics (26 companies ยท 13%)

  • Anduril (9 listings)
  • Palantir (3 listings)
  • Neros Technologies (2 listings)
  • Helsing (2 listings)
  • Axon (1 listing)
  • CHAOS Industries (1 listing)
  • General Dynamics Mission Systems (1 listing)
  • Humble Robotics (1 listing)
  • Intramotev (1 listing)
  • Mind Robotics (1 listing)
  • Oceaneering (1 listing)
  • OSARO (1 listing)
  • Parry Labs (1 listing)
  • Quantum-Systems (1 listing)
  • SpaceXSI (1 listing)
  • Stoke Space (1 listing)
  • Thales (1 listing)
  • Thales Norway (1 listing)
  • Trusted Space (1 listing)
  • Umbra (1 listing)
  • Air Space Intelligence (1 listing)
  • BWI GmbH (1 listing)
  • Cambridge Aerospace (1 listing)
  • Defense Unicorns (1 listing)
  • General Dynamics UK (1 listing)
  • Watney Robotics (1 listing)

Consumer / media / e-commerce / other (20 companies ยท 10%)

  • Matic (2 listings)
  • 1501 (1 listing)
  • ArtCraft (1 listing)
  • Cardog (1 listing)
  • Discord (1 listing)
  • DoorDash (1 listing)
  • Komodo Health (1 listing)
  • Magnite (1 listing)
  • Paradromics (1 listing)
  • Postscript (1 listing)
  • QTPILOT (1 listing)
  • Veepee (1 listing)
  • Walmart Global Tech India (1 listing)
  • Anza (1 listing)
  • Arionkoder (1 listing)
  • Carv (1 listing)
  • Cube Group (1 listing)
  • Darley Technologies (1 listing)
  • Layup (1 listing)
  • Tubi (1 listing)

Security / identity / privacy (17 companies ยท 9%)

  • Zscaler (4 listings)
  • OPSWAT (2 listings)
  • Proton (2 listings)
  • 1Password (2 listings)
  • Cyberus Technology (1 listing)
  • Cylake (1 listing)
  • Scanner (1 listing)
  • ThreatMark (1 listing)
  • Threema (1 listing)
  • Vietnam National Cyber Security Technology (1 listing)
  • Aembit (1 listing)
  • Arkion Identity Systems (1 listing)
  • Dragos (1 listing)
  • Fortanix (1 listing)
  • IDEMIA (1 listing)
  • Lastwall (1 listing)
  • National Digital Trust Company (1 listing)

Finance / banking / payments (9 companies ยท 5%)

  • Citi (3 listings)
  • Abacus Group (1 listing)
  • Avaloq (1 listing)
  • BlackRock (1 listing)
  • Fidelity Investments (1 listing)
  • Longbridge (1 listing)
  • NCR Atleos (1 listing)
  • Nasdaq (1 listing)
  • Scalable Capital (1 listing)

Automotive / industrial / hardware (6 companies ยท 3%)

  • Dassault Systรจmes (3 listings)
  • Rivian and Volkswagen Group Technologies (2 listings)
  • arculus (1 listing)
  • Flyscan Systems (1 listing)
  • Gentherm (1 listing)
  • Frequenz (1 listing)

~193 companies ยท 269 listings.

Same list with country / remote filters and who's hiring right now: getarustjob.com/companies-using-rust

If something looks wrong or a company shouldn't be here, tell me and I'll fix it.


r/rust • • 1d ago

๐Ÿ™‹ seeking help & advice Started a Rust blog

Thumbnail asaft.dev
0 Upvotes

Hi rustaceans,

I have started a blog with the purpose of writing Rust oriented content.

I have been mostly using Rust for the last 2 years and
I think I can share some insights with other members of the community.

How do you guys feel about the overall look, any suggestions or reprimands?

I was thinking of writing an allocator in the near future and documenting the implementation (seems like a fun experiment with the stabilization of the Allocator trait as well).


r/rust • • 1d ago

How the compiler caught a logic bug I would have missed in any other language

0 Upvotes

I was refactoring a small state machine for handling retries in a background worker. The enum had variants for 'Pending', 'Retrying(u32)', 'Succeeded', and 'Failed'. I added a new 'Cancelled' variant but forgot to update one of the match arms that decided whether to schedule another attempt.

Rust refused to compile until I handled it. In the process I realized my logic would have silently treated cancellation the same as a transient failure and kept retrying. It took maybe two minutes to fix once the compiler pointed it out.

I've had similar moments with Option/Result, but this one felt especially useful because it was a semantic change I introduced myself. Curious if other people have stories of the exhaustiveness check saving them from a real behavioral bug rather than just a missing arm.


r/rust • • 2d ago

Optimizing rustc's next trail solver

Thumbnail donsz.nl
203 Upvotes

The next rust trait solver, a large subsystem of the rust compiler that we've been trying to replace, will finally land in rust 1.102.0. In the last stages, before stabilizing it, its performance was a major blocker. But what is "a trait solver"? And why is its performance a problem? My goal for this blog post is to answer those questions in a way where you don't need any prior knowledge. I think discussions of the trait solver can quickly become quite involved, and daunting. So here, we'll start from the very basics!

This is a writeup of my eurorust 2026 talk of the same name, that I gave on October 15, 2026


r/rust • • 2d ago

Advanced Projects in Networking with Tokio

10 Upvotes

Hey everyone,

I've been learning Rust and recently started exploring concurrency and asynchronous programming with Tokio. Im familiar with the fundamentals of ownership, lifetimes, channels, synchronization primitives, and task spawning.

I want to deepen my understanding of Tokio by building a non trivial networking project rather than just following tutorials or reading documentation.

What networking projects would you recommend for someone looking to develop a deeper, practical understanding of asynchronous Rust? I would also love to hear about projects youve personally built that helped you understand these concepts better.


r/rust • • 2d ago

๐Ÿ› ๏ธ project Moving a terminal app from Tauri + React to GPUI - the numbers and the ugly parts

35 Upvotes

I moved muxflow* from Tauri + React to GPUI. The desktop app is now 100% Rust.

Results, before any optimization of the GPUI version:

- Idle memory: 417 MB โ†’ 98 MB (76.5% lower)

- Idle CPU: 3.5% โ†’ 1.4%

- Time to first terminal prompt: 832 โ†’ 230 ms cold, 785 โ†’ 157 ms warm

- Typing latency p95: 47.4 โ†’ 31.2 ms

To be fair, muxflow was thin to begin with, so the raw numbers are a few tens of megabytes/ms.

This migration would be a strong no-go without LLMs. Pre-LLM the cost would be huge! Writing the whole UI in Rust vs the familiar React? But with LLMs, the cost goes away to just some tokens. And with that I get:

  1. Much better performance
  2. A codebase that is 100% Rust (beyond mobile)
  3. No finicky Tauri rendering differences between Mac and Linux

The ugly parts:

- The GPUI third-party crate ecosystem is very niche compared to React. With Tauri I used CodeMirror. With GPUI I couldn't use the Zed crates since they're GPL and muxflow is MIT, so I wrote my own lightweight markdown WYSIWYG and code editor.

- Build times. It's hard to run many agents in parallel, as parallel builds and tests put heavy I/O pressure on the machine. I haven't tried optimizing it yet.

Write-up with more detail: https://galvered.com/blog/muxflow-gpui-migration/

Curious whether others hit the same crate gap, and what you used for text editing in GPUI.

* an app I'm building for personal use open source, MIT, runs coding agents in tmux across remote machines


r/rust • • 2d ago

๐Ÿ™‹ seeking help & advice Considering Rust for backend services handling 10k+ req/s - real experiences with dev velocity?

8 Upvotes

I'm evaluating languages for a new internal backend service that needs to sustain high throughput with strict latency requirements. Rust keeps coming up because of its performance profile and lack of GC pauses, but I'm curious how it actually plays out in practice for teams.

Specifically:
- How much slower is initial development compared to something like Go or Kotlin when you have to fight the borrow checker on complex request/response flows?
- Once the core logic is in place, do you see meaningful maintenance wins from the type system (fewer runtime surprises, easier refactors)?
- Any gotchas with common patterns like connection pooling, structured concurrency, or observability that eat into the perf advantage?

Not looking for "Rust is the best" takes

- more interested in concrete tradeoffs people have measured on similar workloads. If you've shipped something in this range, what surprised you (good or bad)?


r/rust • • 2d ago

Why does tokio mirror certain parts of the futures crate?

36 Upvotes

Take the AsyncRead trait for example. Both tokio and futures is based around the poll_read method but they take a different buffer type and return a different error type. Why? Was the futures version unsuitable?


r/rust • • 2d ago

๐Ÿ™‹ seeking help & advice Should I add support for Rust?

21 Upvotes

Hi, I am the developer of Leadwerks Game Engine. I'm looking for a mid-difficulty language, somewhere in between C++ and Lua. C# would work nicely, but the lag spikes caused by the garbage collection seem like it ruins the language for realtime 3D games, especially for VR. I'm not that familiar with Rust but I hear a lot of good things about it, and it appears to use shared pointers, which eliminates the performance problems full garbage collection would introduce.

Support for Rust can be added by piping all the commands through a C interface and writing some structure/class code on the Rust side that wraps everything up nicely for the end user.

I'm aware of the open-source Bevy 3D engine, but it's lacking a visual editor. Leadwerks 5 has a very capable level editor / visual designer that's been refined over years with lots of user feedback. To be clear, Leadwerks is closed-source commercial software (with a low price point and no royalties).

Do you think Rust would be a good match for what we are looking for in a language? Would adding support for the Rust programming language would be of interest to developers here? Please let me know your thoughts and if you have any questions.