r/rust • u/noop_noob • 8h ago
r/rust • u/ValenciaTangerine • 15h ago
🗞️ news Anthropic: Migrating our Messages API to Rust
anthropic.comr/rust • u/jakob_harmonic • 17h ago
You can now use Aristotle to formally verify Rust, including unsafe and concurrent code
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 • u/mrzikoss • 1d ago
🧠 educational I wrote a step-by-step tutorial to learn Rust by building a small Paint app from scratch
buildyourownpaint.comHi 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 • u/Historical_File3786 • 16h ago
🎙️ discussion async fn, await and pinned futures
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 • u/AdmirableStructure16 • 8h ago
🎙️ discussion Serious question...
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 • u/HighDesertCode • 1d ago
I love the complier and its hints
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 • u/Matti_Qt • 1d ago
📸 media Qt Bindings compared: CXX-Qt vs Qt Bridge
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 • u/GlitchDainty • 1d ago
🎙️ discussion How a newtype wrapper caught three different bugs during a refactor
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 • u/aetheros_ • 16h ago
🙋 seeking help & advice How do I get input in Rust that can be of any type?
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 • u/EuroRust • 1d ago
Building a Query System - Arya Dradjica | EuroRust 2026
youtube.comEver 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 • u/Georgeev • 2d ago
List of ~200 companies hiring (or that have hired) Rust engineers
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…)
| Industry | Companies | Share |
|---|---|---|
| Cloud / infra / developer tools | 52 | 27% |
| AI / ML / data / quantum | 33 | 17% |
| Crypto / web3 / trading | 30 | 16% |
| Defense / aerospace / robotics | 26 | 13% |
| Consumer / media / e-commerce / other | 20 | 10% |
| Security / identity / privacy | 17 | 9% |
| Finance / banking / payments | 9 | 5% |
| Automotive / industrial / hardware | 6 | 3% |
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 • u/Limp-Sherbet • 1d ago
🙋 seeking help & advice Started a Rust blog
asaft.devHi 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 • u/PetiteVanille • 1d ago
How the compiler caught a logic bug I would have missed in any other language
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 • u/janameow • 2d ago
Optimizing rustc's next trail solver
donsz.nlThe 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 • u/Ok_Ant_9299 • 2d ago
Advanced Projects in Networking with Tokio
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 • u/bootstrapper-919 • 2d ago
🛠️ project Moving a terminal app from Tauri + React to GPUI - the numbers and the ugly parts
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:
- Much better performance
- A codebase that is 100% Rust (beyond mobile)
- 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 • u/ElyzraPearl • 2d ago
🙋 seeking help & advice Considering Rust for backend services handling 10k+ req/s - real experiences with dev velocity?
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 • u/Big-Astronaut-9510 • 2d ago
Why does tokio mirror certain parts of the futures crate?
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 • u/Leadwerks • 2d ago
🙋 seeking help & advice Should I add support for Rust?
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.
r/rust • u/kakipipi23 • 2d ago
🧠 educational Miscompilation in Rust 1.97
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.
Edit: link to the Zulip chat #t-compiler > Miscompilation in 1.97.0 with new Option::None discrimi... @ 💬
r/rust • u/laserdataInc • 1d ago
Where does tail latency actually come from in a thread-per-core Rust service?
We're building a streaming server in Rust that runs one shard per core with io_uring, and in benchmarks our p99.9 stays close to p99. But those runs were on local NVMe with hugepages, a single node, below saturation, so we honestly can't tell how much comes from the design and how much from the setup.
For those running thread-per-core services in production: what actually brought your tail latency down, and what made it creep back once real traffic, more nodes or noisy neighbours showed up?