r/rust • • 2d 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 • • 2d 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 • • 39m ago

📸 media Qt Bindings compared: CXX-Qt vs Qt Bridge

Post image
19 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 • • 19h ago

Optimizing rustc's next trail solver

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

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

43 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 • • 3h ago

Advanced Projects in Networking with Tokio

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

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

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

🛠️ project Moving a terminal app from Tauri + React to GPUI - the numbers and the ugly parts

20 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 • • 15h ago

Why does tokio mirror certain parts of the futures crate?

21 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 • • 22h ago

🧠 educational Miscompilation in Rust 1.97

60 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

Edit: link to the Zulip chat #t-compiler > Miscompilation in 1.97.0 with new Option::None discrimi... @ 💬


r/rust • • 15h ago

🙋 seeking help & advice Should I add support for Rust?

13 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.


r/rust • • 21h ago

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

Thumbnail trifectatech.org
27 Upvotes

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


r/rust • • 1h ago

🛠️ project Made a Rust crate for running AoC solutions

0 Upvotes

I’ve been doing Advent of Code for a while, and last year (I forgot to make a post...) I decided to make a little Rust crate to help run my solutions more easily. It’s called [**aoc-star**](https://github.com/Yag000/aoc-star).

You just add a`#[star(day = X, part = X)]` attribute to your functions, and it lets you run them from the command line. It can also fetch inputs and submit answers if you set it up with your session cookie.

I've found that it removes a bit of the tedious part of the challenge, hope that it can be useful to some. There is more info on the README.


r/rust • • 13h ago

Suggestions for Rust Course

4 Upvotes

I am currently learning Rust programming language and want to enroll into a course for better guidance and projects . Someone help me choose the best available course on Udemy.


r/rust • • 2h ago

🧠 educational I've wanted to write an MCP server in Rust for a while. Finally found a reason to build one.

0 Upvotes

For a while, I've wanted to write an MCP server in Rust, mostly to understand how the protocol works beyond just reading the specification. I finally ran into a problem that felt like a good excuse to do it.

I wrote a short devlog about the whole thing. It's more about understanding the moving parts, the reasoning behind the architecture, and how I approached building an MCP server than a deep dive into MCP itself.

https://adii.fyi/blog/i-built-a-bridge-to-use-neon-in-antigravity/


r/rust • • 2h ago

🛠️ project My rust prototype for an esoteric byte-code virtual machine.

0 Upvotes
use std::error::Error;



type LooseResult<T> = Result<T, Box<dyn Error>>;


#[derive(Debug)]
enum ValueKind {
    Null,
    Int(i64),
    Decimal(f64),
    Bool(bool)
}


struct Value {
    value: ValueKind
}


impl Value {
    pub fn new(value: ValueKind) -> Self {
        return Value { value }
    }


    pub fn to_string(&self) -> Result<String, String> {
        match self.value {
            ValueKind::Null => Ok(String::from("null")),
            ValueKind::Int(v) => Ok(String::from(v.to_string())),
            ValueKind::Bool(v) => Ok(String::from(v.to_string())),
            ValueKind::Decimal(v) => Ok(String::from(v.to_string())),
        }
    }


    pub fn to_int(&self) -> Result<i64, String> {
        match self.value {
            ValueKind::Int(v) => Ok(v),
            ValueKind::Decimal(v) => Ok(v as i64),
            _ => Err(String::from(format!("unable to convert type of {:?} to integer.", self.value)))
        }
    }


    pub fn to_decimal(&self) -> Result<f64, String> {
        match self.value {
            ValueKind::Int(v) => Ok(v as f64),
            ValueKind::Decimal(v) => Ok(v),
            _ => Err(String::from(format!("unable to convert type of {:?} to decimal.", self.value)))
        }
    }


    pub fn add_to(&self, other: &Value) -> Result<Value, String> {
        match self.value {
            ValueKind::Int(v) => Ok(Value::new(ValueKind::Int(v + other.to_int()?))),
            ValueKind::Decimal(v) => Ok(Value::new(ValueKind::Decimal(v + other.to_decimal()?))),
            _ => Err(String::from(format!("unable to add {:?} to {:?}!", self.value, other.value)))
        }
    }
}



fn main() {
    let value1 = Value::new(ValueKind::Int(123));
    let value2 = Value::new(ValueKind::Decimal(3.14));


    let value3 = value1.add_to(&value2).expect("failed");


    println!("result: {}", value3.to_string().expect("failed"));
} use std::error::Error;



type LooseResult<T> = Result<T, Box<dyn Error>>;


#[derive(Debug)]
enum ValueKind {
    Null,
    Int(i64),
    Decimal(f64),
    Bool(bool)
}


struct Value {
    value: ValueKind
}


impl Value {
    pub fn new(value: ValueKind) -> Self {
        return Value { value }
    }


    pub fn to_string(&self) -> Result<String, String> {
        match self.value {
            ValueKind::Null => Ok(String::from("null")),
            ValueKind::Int(v) => Ok(String::from(v.to_string())),
            ValueKind::Bool(v) => Ok(String::from(v.to_string())),
            ValueKind::Decimal(v) => Ok(String::from(v.to_string())),
        }
    }


    pub fn to_int(&self) -> Result<i64, String> {
        match self.value {
            ValueKind::Int(v) => Ok(v),
            ValueKind::Decimal(v) => Ok(v as i64),
            _ => Err(String::from(format!("unable to convert type of {:?} to integer.", self.value)))
        }
    }


    pub fn to_decimal(&self) -> Result<f64, String> {
        match self.value {
            ValueKind::Int(v) => Ok(v as f64),
            ValueKind::Decimal(v) => Ok(v),
            _ => Err(String::from(format!("unable to convert type of {:?} to decimal.", self.value)))
        }
    }


    pub fn add_to(&self, other: &Value) -> Result<Value, String> {
        match self.value {
            ValueKind::Int(v) => Ok(Value::new(ValueKind::Int(v + other.to_int()?))),
            ValueKind::Decimal(v) => Ok(Value::new(ValueKind::Decimal(v + other.to_decimal()?))),
            _ => Err(String::from(format!("unable to add {:?} to {:?}!", self.value, other.value)))
        }
    }
}



fn main() {
    let value1 = Value::new(ValueKind::Int(123));
    let value2 = Value::new(ValueKind::Decimal(3.14));


    let value3 = value1.add_to(&value2).expect("failed");


    println!("result: {}", value3.to_string().expect("failed"));
}

I built lots of VMs in C# and zig (although they were personal only) so I want to do one in rust too.
This is my current prototype for heterogeneous values which I use a lot.

If you have any feedback, please enlighten me!


r/rust • • 1d ago

How we got GPUI into the browser

Thumbnail youtu.be
33 Upvotes

Anyone watched this yet?


r/rust • • 1d ago

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

Thumbnail rust-glancer.github.io
168 Upvotes

r/rust • • 9h ago

🛠️ project Mergeon: an open-source desktop Git client built with Rust and GPUI

Post image
0 Upvotes

I just open-sourced Mergeon (GPL-3.0), a desktop Git client I've been building in Rust with Zed's GPUI:

https://github.com/Spilveru/mergeon

A few architecture notes that might be interesting:

- Split into a layered Cargo workspace (git CLI runner, queries, mutations, async app model, and GPUI views).

- Instead of libgit2 or an internal DB, it shells out to git through a per-repo serialized mutation queue with timeouts so it never fights your terminal over index.lock.

- Diffs use tree-sitter for syntax highlighting; settings live in an atomic JSON file with GitHub tokens stored via the OS keyring; AppImage auto-updates verify Ed25519 manifest signatures with ring.

Linux is the main target right now (AppImage/.deb in Releases). Windows builds pass CI and are marked beta.

Curious to hear feedback on the code or anyone else's experience shipping standalone apps with GPUI.


r/rust • • 17h ago

How convert precossesor tera to askama ?

0 Upvotes

Hello , i'm dev of runique a framework web in rust , and now , i'm in a time of consolidate a source code.

For a futur , i would like gave a choice of engine template.

Now, runique use tera, i have add a few preproceror for limited a boilerplat , and after a little research, i learn it’s complicated.

So i came to you for advice , have you a recommandation ?

Sorry for my english, i'm french


r/rust • • 2d ago

The State of Allocators in 2026 - Finally Stabilised!

Thumbnail cetra3.github.io
210 Upvotes

r/rust • • 2d ago

🗞️ news GPUI is getting its own repo!

Thumbnail github.com
435 Upvotes

r/rust • • 11h ago

Curated list of Rust crates for building reliable CLIs

0 Upvotes

After shipping a couple of internal tools in Rust, I started keeping notes on which crates actually hold up for CLI work without turning into a mess of dependencies or runtime surprises. Here's the shortlist I've settled on, grouped by concern.


r/rust • • 1d ago

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

39 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?