r/rust • • 1d ago

🙋 questions megathread Hey Rustaceans! Got a question? Ask here (48/2026)!

12 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

🐝 activity megathread What's everyone working on this week (48/2026)?

15 Upvotes

New week, new Rust! What are you folks up to? Answer here or over at rust-users! And for your project showcases, there's also /r/madeinrust – pay them a visit, too!


r/rust • • 3h ago

🧠 educational Miscompilation in Rust 1.97

29 Upvotes

I reported a miscompilation in Rust 1.97 back in July. In this presentation, I went through the details of the bug and the investigation as it unfolded in the Zulip chat with the Rust team, and shared my takeaways and conclusions.

https://youtu.be/-dNsUB7QRk4?si=n-jBhJQ5N-XZOyNI


r/rust • • 51m ago

Optimizing rustc's next trail solver

Thumbnail donsz.nl
12 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 • • 3h ago

🗞️ news CVE-2026-124851 in the Zstandard decoder, and why mzstd is not affected

Thumbnail
m-compressors.github.io
12 Upvotes

r/rust • • 3h ago

🛠️ project A new name for ntpd-rs: Statime - Trifecta Tech Foundation

Thumbnail
trifectatech.org
12 Upvotes

Interestingly this has nothing to do with https://fr.wikipedia.org/wiki/Jason_Statham


r/rust • • 1d ago

🛠️ project Rust Glancer 0.5.0: Matching rust-analyzer performance

Thumbnail rust-glancer.github.io
155 Upvotes

r/rust • • 11m ago

🛠️ project Phai Studio: a drag-and-drop designer and IDE for Windows desktop apps in Rust

Post image
0 Upvotes

I've been building Phai Studio, an IDE for making Windows programs in Rust. You lay out a form by dragging controls onto it, double-click one to get its event handler, write Rust, and press F5.

Full disclosure: most of the code was written with an AI assistant. I designed it, tested it and decided what goes in. That's partly why I'm posting: I'm still learning Rust myself, and I'd love people who know it better to look at what came out.

What's in it

  • A form designer with 40+ controls: buttons, text boxes, a data grid, tree and list views, charts, a calendar, menus, toolbars and a web view. Forms are a plain TOML file (.phf), and the generated _ui.rs is ordinary Rust you can read.

  • An editor built on rust-analyzer: completion, hover docs, go to definition, rename, plus a debugger, a test runner and Git.

  • Data: MySQL/MariaDB (its own wire-protocol client), PostgreSQL and SQLite, with tables bound to the grid and saves in one transaction.

  • Publish: makes a setup.exe and a portable folder. Release builds remap local paths (project, ~/.cargo, rustup, the home folder), so the exe you hand out doesn't carry C:\Users\<you>\... in panic locations.

  • Web: the same forms can run as a web app/PWA on a phone.

  • The UI is native Win32 + GDI+, not a web view. It runs in English or Thai.

Licence: the runtime libraries that go into your programs (phai-ui, phai-data, phai-web) are MIT, and what you build is yours. The IDE itself is source-available under PolyForm Perimeter, free to use, including for programs you sell.

Windows 10/11 only for now. Feedback very welcome, especially on the generated code and the phai-ui API.


r/rust • • 16h ago

How we got GPUI into the browser

Thumbnail
youtu.be
10 Upvotes

Anyone watched this yet?


r/rust • • 1d ago

The State of Allocators in 2026 - Finally Stabilised!

Thumbnail cetra3.github.io
194 Upvotes

r/rust • • 1d ago

🗞️ news GPUI is getting its own repo!

Thumbnail
github.com
419 Upvotes

r/rust • • 1d ago

Where have you found the Rust type-state pattern actually pays off versus turning into annoying boilerplate?

33 Upvotes

We recently built an internal order-processing pipeline in Rust, and early on I got excited about encoding every step of a job's lifecycle as separate structs using the type-state pattern so invalid transitions would fail at compile time.

In practice it caught two genuine bugs during the first week, then turned into a lot of friction whenever business requirements shifted slightly. Adding one optional verification step meant updating generic trait bounds across half the module, and writing wrapper boiler plate just to store mixed states inside a single queue felt clunky compared to a straightforward enum with an explicit transition function.

For folks maintaining medium or large production codebases, where do you draw the line between encoding state transitions in the type system versus keeping them as regular runtime enums?


r/rust • • 1d ago

🧠 educational Axum with David Pedersen (Netstack.FM S02E2)

27 Upvotes

Hi all, we just released a new episode of our podcast Netstack.FM with David Pedersen (u/davidpdrsn), creator of Axum.

Some of the topics:

  • How Axum started at Embark Studios, and why it was built Tower-first

  • How Bevy's system parameters inspired Axum's extractors

  • Why Axum avoids macros so other frameworks can build on top of it

  • How #[debug_handler] produces clearer type errors at zero runtime cost

  • Tower 1.0, poll_ready, and why boxed futures make single-threaded Axum hard today

  • Keeping Axum's API small, and splitting crates like axum-core

Listen here: https://netstack.fm/episodes/axum-with-david-pedersen

It's also on the usual podcast platforms, and the website has a manually edited transcript. Feedback is welcome.


For those who do not know Netstack.FM yet: it's a podcast about networking, Rust, and everything in between. With the main objective to teach and demystify Network Programming and Protocols, usually within the Rust ecosystem but not always.


r/rust • • 1d ago

Optimizing rustc's Next Trait Solver - Jana Dönszelmann | EuroRust 2026

Thumbnail
youtube.com
46 Upvotes

A new video is out on YouTube! At this year's EuroRust, Jana from the Rust Compiler Team gave a talk on optimizing rustc’s next trait solver, which is being stabilized this year. Spoiler alert: the real gains weren’t in micro-optimizations, but at the algorithmic level! 🦀

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


r/rust • • 2h ago

🛠️ project Run Hermes’s terminal and file tools on your own sandbox cloud with Flame

Post image
0 Upvotes

We’ve updated hermes-flamepy so Hermes can use remote Flame sandboxes through its standard terminal and file tools. Set terminal.backend: flamepy—there’s no separate toolset for the model to learn.

Hermes stays on your laptop or controller, while commands execute in gVisor sandboxes on Linux workers you operate. While a sandbox stays open, files, installed packages, working directories, and exported shell variables remain available across tool calls.

flame-cluster handles deployment, worker enrollment, and a console for inspecting workers, sessions, executors, and task progress.

A few reasons we built this on Flame:

  • Shared worker capacity: Run independent agent environments across a pool of machines.

  • Low execution latency: Earlier in-cluster SDK tests measured 8.56 ms median for trivial shell commands in a warm sandbox.

  • Small worker footprint: FEM, the worker manager, used about 17.3 MiB RSS on each of two idle workers.

  • Support for other agents: Flame’s APIs and language support also make it possible to build integrations beyond Hermes.

One limitation to know: suspend/resume currently preserves the session ID but starts with fresh files and shell state. Local project files also need to be transferred explicitly.

We’ve written a walkthrough with setup instructions, architecture, live console screenshots, and measurement details:

https://xflops.io/blog/build-your-own-sandbox-cloud-with-flame/

Would this fit your Hermes workflow? We’d be interested in which capabilities matter most—project sync, durable workspaces, or something else.


r/rust • • 6h ago

🙋 seeking help & advice Anything I should know before I start learning Rust?

0 Upvotes

I've know moderate amount of javascript for a while and have been thinking about learning another language. I have decided upon rust for a variety of reasons (mainly so I can say I rewrote it in rust.)

What things should I know before I start? And, are there any features of this language I might want to know about?


r/rust • • 1d ago

🛠️ project GlueSQL v0.21 - Now supports SlateDB and SQLite as storage backends

Thumbnail
github.com
7 Upvotes

r/rust • • 1d ago

Project Skymetal: Incrementally porting Bazel from Java to Rust

Thumbnail
reddit.com
10 Upvotes

While Cargo is the traditional build system in Rust, we've had a good time switching to Bazel at my work. It does caching better: it can limit the cache size in terms of age and total size and it can even use a remote cache across all developers in the company.

I also enjoy knowing that my Rust crates that use a C compiler use the same version across all machines.

Now there is a project called Skymetal to port the Bazel build system itself from Java to Rust. I don't know anything about the state, but I wish them luck!


r/rust • • 1d ago

RUST ABI

23 Upvotes

What is current state of stable Rust ABI? Or progress? As I want to load generate library crate (rlib) in offline library and I do not need load crateio library.


r/rust • • 6h ago

🛠️ project Shipping a ~30k-line Rust/wgpu drawing engine inside an Expo (React Native) app: write-up

0 Upvotes

I wrote up how we run a Rust/wgpu engine (about 30k lines) inside an Expo / React Native app. The app is Doodraw, a drawing app where every stroke wiggles live as you draw it (the hand-drawn "boiling line" look, no timeline or keyframes):

https://expo.dev/blog/doodraw-rust-gpu-engine-expo-config-plugin-100k-installs

Some Rust-side context, since the post is written for an Expo audience:

  • The engine owns the canvas as a native view. React Native only drives tools, layers and UI, and talks to the engine through thin Swift and Kotlin native modules (including MP4 export). The crate builds to an XCFramework for iOS and native libs for Android.

  • The wiggle happens inside the brush at render time, so strokes stay alive while you keep drawing instead of being baked into frames.

  • The same core compiles to WebAssembly and draws through WebGPU for the Windows build (a Tauri 2 shell), so wgpu gives us one renderer across iOS, Android and desktop.

  • The ios/ and android/ folders aren't in git. An Expo config plugin copies the prebuilt engine and bridge files at prebuild and fails fast if a binary is missing, instead of letting Xcode fail half an hour later.

What was hard: keeping rendering consistent across Android GPU drivers (still the part that bites us most), and keeping the native boundary small enough that upgrading Expo / React Native stays a version bump plus a prebuild.

Happy to answer questions about the FFI boundary or the wgpu setup.


r/rust • • 1d ago

🧠 educational Memory-bounded systems and backpressure in Rust - Théodore's blog

Thumbnail
totodore.github.io
57 Upvotes

I struggled quite a bit during last year on these problems so I decided to write a little blog post with what I learned regarding memory bounding and memory back pressure in rust.


r/rust • • 2d ago

📸 media The NEW DropGuard in Rust is Powerful

Thumbnail
youtu.be
68 Upvotes

r/rust • • 15h ago

Rust game site | WASM | Game engine

0 Upvotes

Hi everyone,

I've spent a while building a web based Rust game engine. Here is the link https://rust-game-app-b5nt8.ondigitalocean.app/

I use a ECS-like implementation for the engine and I use github actions to compile each of the games to WASM.

Let me know if you guys have feedback and if I get some love I'll make a tutorial / breakdown.


r/rust • • 2d ago

🗞️ news rust-analyzer changelog #355

Thumbnail rust-analyzer.github.io
42 Upvotes