🙋 questions megathread Hey Rustaceans! Got a question? Ask here (47/2026)!
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.
🐝 activity megathread What's everyone working on this week (47/2026)?
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 • u/radarvan07 • 11h ago
🎙️ discussion Mutex poisoning is not for everyone
bertptrs.nlr/rust • u/DroidLogician • 1h ago
💼 jobs megathread Official /r/rust "Who's Hiring" thread for job-seekers and job-offerers [Rust 1.100]
Welcome once again to the official r/rust Who's Hiring thread!
Before we begin, job-seekers should also remember to peruse the prior thread.
This thread will be periodically stickied to the top of r/rust for improved visibility.
You can also find it again via the "Latest Megathreads" list, which is a dropdown at the top of the page on new Reddit, and a section in the sidebar under "Useful Links" on old Reddit.
The thread will be refreshed and posted anew when the next version of Rust releases in six weeks.
Please adhere to the following rules when posting: Rules for individuals:
- Don't create top-level comments; those are for employers.
- Feel free to reply to top-level comments with on-topic questions.
- Anyone seeking work should reply to my stickied top-level comment.
- Meta-discussion should be reserved for the distinguished comment at the very bottom.
Rules for employers:
- The ordering of fields in the template has been revised to make postings easier to read. If you are reusing a previous posting, please update the ordering as shown below.
- Remote positions: see bolded text for new requirement.
- To find individuals seeking work, see the replies to the stickied top-level comment; you will need to click the "more comments" link at the bottom of the top-level comment in order to make these replies visible.
- To make a top-level comment you must be hiring directly; no third-party recruiters.
- One top-level comment per employer. If you have multiple job openings, please consolidate their descriptions or mention them in replies to your own top-level comment.
- Proofread your comment after posting it and edit it if necessary to correct mistakes.
- To share the space fairly with other postings and keep the thread pleasant to browse, we ask that you try to limit your posting to either 50 lines or 500 words, whichever comes first.
We reserve the right to remove egregiously long postings. However, this only applies to the content of this thread; you can link to a job page elsewhere with more detail if you like. - Please base your comment on the following template:
COMPANY: [Company name; optionally link to your company's website or careers page.]
TYPE: [Full time, part time, internship, contract, etc.]
LOCATION: [Where are your office or offices located? If your workplace language isn't English-speaking, please specify it.]
REMOTE: [Do you offer the option of working remotely? Please state clearly if remote work is restricted to certain regions or time zones, or if availability within a certain time of day is expected or required.]
VISA: [Does your company sponsor visas?]
DESCRIPTION: [What does your company do, and what are you using Rust for? How much experience are you seeking and what seniority levels are you hiring for? The more details the better.]
ESTIMATED COMPENSATION: [Be courteous to your potential future colleagues by attempting to provide at least a rough expectation of wages/salary.
If you are listing several positions in the "Description" field above, then feel free to include this information inline above, and put "See above" in this field.
If compensation is negotiable, please attempt to provide at least a base estimate from which to begin negotiations. If compensation is highly variable, then feel free to provide a range.
If compensation is expected to be offset by other benefits, then please include that information here as well. If you don't have firm numbers but do have relative expectations of candidate expertise (e.g. entry-level, senior), then you may include that here. If you truly have no information, then put "Uncertain" here.
Note that many jurisdictions (including several U.S. states) require salary ranges on job postings by law.
If your company is based in one of these locations or you plan to hire employees who reside in any of these locations, you are likely subject to these laws. Other jurisdictions may require salary information to be available upon request or be provided after the first interview.
To avoid issues, we recommend all postings provide salary information.
You must state clearly in your posting if you are planning to compensate employees partially or fully in something other than fiat currency (e.g. cryptocurrency, stock options, equity, etc).
Do not put just "Uncertain" in this case as the default assumption is that the compensation will be 100% fiat. Postings that fail to comply with this addendum will be removed. Thank you.]
CONTACT: [How can someone get in touch with you?]
r/rust • u/koopa1338 • 22h ago
Does Daniel Stenberg have a point about Rust rewrites?
daniel.haxx.ser/rust • u/Hefty-Necessary7621 • 7h ago
📸 media Rust GPU Drivers for Linux: Interview with Daniel Almeida
A GPU driver can update a page table and forget to record the new mapping. In Tyr, the Rust API makes the driver record the mapping before it can report success. The driver still has to get the hardware operation right.
We spoke with Daniel Almeida about building Tyr, a Linux GPU driver that started as a Rust port of Panthor. He walks through what Rust can check, why a few operations still need unsafe, and why finding reviewers who know both Rust and Linux graphics is now harder than filling gaps in the kernel APIs.
https://serokell.io/blog/rust-gpu-driver-linux-daniel-almeida
r/rust • u/soareschen • 4h ago
🛠️ project CGP v0.8.0 - cargo-cgp, new documentation, and namespaces | CGP
contextgeneric.devAuthor here. I am excited to announce the release of Context-Generic Programming (CGP) v0.8.0!
Context-Generic Programming (CGP) lets a Rust trait have several implementations that would normally overlap, such as one for every T: Display and another for every T: AsRef<[u8]>. Each application picks the implementation it wants, the compiler resolves that choice to direct calls, and CGP itself is an ordinary library on stable Rust.
Most of this release is about making CGP easier to learn and debug:
- cargo-cgp v0.1.0 explains wiring errors in terms of the code you wrote, rather than the code the macros generated. When a provider needs a field your type lacks, for example,
cargo cgp checknames the missing field and suggests adding it. It leads with the root cause for the classes it recognizes, though it does not yet reshape every class. - New documentation covers every construct, the core concepts, comparisons with other languages, and real projects. AI agents wrote much of it under my direction, and the post explains how that writing is checked.
- Namespaces let an application select whole groups of implementations by path, instead of listing every component in its wiring.
If you want to try it, the Quickstart is short. And if a diagnostic or an explanation still loses you, I would like to hear where.
r/rust • u/MystifiedSky • 16m ago
🛠️ project I built GitCraft - a free, open-source GitKraken alternative with local AI support
Hey everyone!
I've been working on a project called GitCraft, a Git client designed to offer a similar look and feel to GitKraken, but without the subscriptions or restrictions on using your own local AI models.
The goal is to create a modern, feature-rich Git client that gives developers more control without locking useful functionality behind a paywall.
A few highlights:
- Free and open-source
- Familiar GitKraken-inspired interface
- Local LLM support without additional subscription fees
- Cross-platform support for Windows, macOS, and Linux
- Focused on adding useful features and improvements based on developer feedback
I'm actively developing GitCraft and would love to hear what the community thinks!
GitHub: https://github.com/MystifiedSky/GitCraft
If you've used GitKraken or other Git clients, what features do you wish they had? What would make you consider switching?
Feedback, suggestions, issues, and contributions are all welcome!
And yes I used a $20 claude sub to create this over the last couple weeks instead of spending the $50+ a year for gitkraken with all its negatives. I am a software engineer with 6+ years of experience so I have a lot of knowledge behind the scenes but this was just a fun little project to save some $$$ in the future.

r/rust • u/Pretty_Upstairs9035 • 1h ago
🧠 educational Running a text embedding model on an ESP32 with no_std Rust
We have been experimenting with how small the hardware can be for running an embedding model. We got potion-base-2M running on an ESP32 with 16 MB of memory, using no_std Rust
On our setup, it embedded a dozen tokens in about 1.2 ms, roughly 830 embeddings per second for very short texts. That’s slower than the 11–15k embeddings per second I measured on our Mac, but the ESP32 uses around 3,000× less memory.
It’s a small experiment, but it got us thinking about what search could look like when it runs right on edge devices.
We wrote up the details here: https://qdrant.tech/blog/embeddings-on-bare-metal/
r/rust • u/cuterustycrab • 2h ago
🗞️ news How to Run an Embedding Model on Bare Metal with Rust🦀
Hey everyone,
I wanted to share this blog post I wrote: https://qdrant.tech/blog/embeddings-on-bare-metal/
TL;DR: you can run a 2M parameters static embedding model (potion-base-2M) at 830 embeddings/s (assuming fairly small texts as inputs) on an ESP32 with 16MB of flash memory. You can achieve that by embedding the weights of the model within the binary, using no_std rust to write a minimal WordPiece tokenizer, and, thanks to the fact that static embedding models perform inference simply with a table lookup + mean pooling, there are no neural network or heavy matrix multiplications involved.
This is just the first step that we're taking at Qdrant (https://qdrant.tech) to bring vector search to truly edge devices like microcontrollers, so stay tuned for upcoming content!
Hope you enjoy the read and, if you have any questions, let me know and I'll be happy to answer them!✨🦀
r/rust • u/phazer99 • 6h ago
[SPLASH'26] Mojo: Towards One Systems Language for All Hardware
youtu.beChris Lattner speaks about the design of the Mojo programming language. Some interesting comparisons between its comptime feature vs Rust's const generics and derive macros and origins vs Rust lifetimes.
r/rust • u/TheMadnessofMadara • 2h ago
🙋 seeking help & advice error: queries overflow the depth limit!
I am working with leptos 0.8.23 and thaw 0.5.0-dev(main branch). While trying to do first compile, I get error: queries overflow the depth limit! and says to help: consider increasing the recursion limit by adding a `#![recursion_limit = "256"]` attribute to your crate (`thaw`). I tried adding that recursion_limit to the top of both my main.rs and lib.rs. No luck. No idea on how to add that line to thaw without downloading thaw and modifying it locally. The issue seems to be the thaw button. What should I do?
{
async block@<T as tachys::view::any_view::IntoAny>::into_any::resolve<tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>,
tachys::html::attribute::custom::CustomAttr<&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> &str + core::marker::Send>>>,
tachys::html::attribute::custom::CustomAttr<&str, alloc::sync::Arc<str>>
),
(
tachys::reactive_graph::owned::OwnedView<leptos::into_view::View<leptos::into_view::View<tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div, tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>,
tachys::html::event::On<tachys::html::event::mousedown, alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>,
tachys::html::node_ref::NodeRefAttr<thaw_utils::dom::element::HtmlElement, tachys::reactive_graph::node_ref::NodeRef<thaw_utils::dom::element::HtmlElement>>,
tachys::html::style::Style<(&str, &str)>,
tachys::html::node_ref::NodeRefAttr<leptos_transition_group::utils::HtmlElement, tachys::reactive_graph::node_ref::NodeRef<leptos_transition_group::utils::HtmlElement>>
),
(
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
),
(
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
),
(
leptos::into_view::View<tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::style::Style<alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>>,
tachys::html::class::Class<thaw_utils::class_list::ClassList>,
tachys::html::event::On<tachys::html::event::mouseenter,
alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>,
tachys::html::event::On<tachys::html::event::mouseleave,
lloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>
),
(
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div, tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>,
tachys::html::event::On<tachys::html::event::scroll, alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_Event::Event)>>>
),
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::style::Style<alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>>,
tachys::html::class::Class<thaw_utils::class_list::ClassList>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>
),
(tachys::view::any_view::AnyView,)>,
)>,
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>
),
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> &str + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::event::On<tachys::html::event::mousedown, alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>
), ()>,
)>,
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div, tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>
),
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> &str + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::event::On<tachys::html::event::mousedown, alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>
), ()>,
)>
),
)>>,
)>,
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(tachys::html::class::Class<alloc::sync::Arc<str>>,),
(
leptos::into_view::View<tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::style::Style<alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>>,
tachys::html::class::Class<thaw_utils::class_list::ClassList>,
tachys::html::event::On<tachys::html::event::mouseenter,
alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>,
tachys::html::event::On<tachys::html::event::mouseleave,
alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>
),
(
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>,
tachys::html::event::On<tachys::html::event::scroll,
alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_Event::Event)>>>
),
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::style::Style<alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>>,
tachys::html::class::Class<thaw_utils::class_list::ClassList>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>
),
(tachys::view::any_view::AnyView,)>,
)>,
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>
),
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> &str + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::event::On<tachys::html::event::mousedown, alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>
), ()>,
)>,
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>
),
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> &str + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::event::On<tachys::html::event::mousedown, alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>
), ()>,
)>
),
)>>,
)>,
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(tachys::html::class::Class<alloc::sync::Arc<str>>,),
(
leptos::into_view::View<tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::style::Style<alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>>,
tachys::html::class::Class<thaw_utils::class_list::ClassList>, tachys::html::event::On<tachys::html::event::mouseenter,
alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>,
tachys::html::event::On<tachys::html::event::mouseleave,
alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>
),
(
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>,
tachys::html::event::On<tachys::html::event::scroll,
alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_Event::Event)>>>
),
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::style::Style<alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>>,
tachys::html::class::Class<thaw_utils::class_list::ClassList>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>
),
(tachys::view::any_view::AnyView,)>,
)>,
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div, tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>
),
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> &str + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::event::On<tachys::html::event::mousedown, alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>
), ()>,
)>,
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Div,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Div>>
),
(
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(
tachys::html::class::Class<alloc::sync::Arc<str>>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> &str + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::style::Style<(&str, alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> alloc::string::String + core::marker::Send>>)>,
tachys::html::event::On<tachys::html::event::mousedown, alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>
), ()>,
)>
),
)>>,
)>
),
)>,
tachys::html::element::HtmlElement<tachys::html::element::elements::Div,
(tachys::html::class::Class<alloc::sync::Arc<str>>,),
(
(
leptos::into_view::View<tachys::html::element::HtmlElement<tachys::html::element::elements::Button,
(
tachys::html::class::Class<thaw_utils::class_list::ClassList>,
tachys::html::attribute::Attr<tachys::html::attribute::key::Type,
alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> core::option::Option<&str> + core::marker::Send>>>,
tachys::html::attribute::Attr<tachys::html::attribute::key::Disabled,
alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> core::option::Option<&str> + core::marker::Send>>>,
tachys::html::attribute::Attr<tachys::html::attribute::key::AriaDisabled,
alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> core::option::Option<&str> + core::marker::Send>>>,
tachys::html::event::On<tachys::html::event::click,
alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Button, tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Button>>
),
(
(
{closure@C:\REDACTED\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\thaw-0.5.0-beta\src\button\button\mod.rs:100:14: 100:21},
either_of::Either<tachys::view::any_view::AnyView, ()>
),
)>>,
leptos::into_view::View<tachys::html::element::HtmlElement<tachys::html::element::elements::Button,
(
tachys::html::class::Class<thaw_utils::class_list::ClassList>,
tachys::html::attribute::Attr<tachys::html::attribute::key::Type,
alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> core::option::Option<&str> + core::marker::Send>>>,
tachys::html::attribute::Attr<tachys::html::attribute::key::Disabled,
alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> core::option::Option<&str> + core::marker::Send>>>,
tachys::html::attribute::Attr<tachys::html::attribute::key::AriaDisabled,
alloc::sync::Arc<std::sync::poison::mutex::Mutex<dyn core::ops::function::FnMut() -> core::option::Option<&str> + core::marker::Send>>>,
tachys::html::event::On<tachys::html::event::click,
alloc::rc::Rc<core::cell::RefCell<dyn core::ops::function::FnMut(web_sys::features::gen_MouseEvent::MouseEvent)>>>,
tachys::html::node_ref::NodeRefAttr<tachys::html::element::elements::Button,
tachys::reactive_graph::node_ref::NodeRef<tachys::html::element::elements::Button>>
),
(
(
{closure@C:\REDACTED\.cargo\registry\src\index.crates.io-1949cf8c6b5b557f\thaw-0.5.0-beta\src\button\button\mod.rs:100:14: 100:21},
either_of::Either<tachys::view::any_view::AnyView, ()>
),
)>>
),
)>
),
)>>>>,
)>>::{closure#0}
}r/rust • u/Present-Knowledge-57 • 21h ago
starting with 3D gamedev in Rust
hi
I've recently finished a multi-month long journey in game development in Java, and made primarily 3D games using libGDX and LWJGL3. libGDX and LWJGL3 were both nice and relatively easy to use (and I didn't have to fight the GC at all for performance), but I had a nagging feeling that I should experiment more anyways.
more specifically I felt like I should experiment with a systems language for game development. I already know the basics of C and C++, but opted to go for Rust instead. I've heard horror stories about C and C++, and seeing as I'm doing this for a hobby, I didn't want to put up with any of it. Rust, as I've been progressing through "the book" as been a genuine joy to use, and actually has some higher level conveniences than what Java can offer, such as more expressive pattern matching, the lack of null, and a really lovely package manager + build system (no more gradle!).
I totally get that the journey of Rust gamedev will not be painless, especially as I'm thinking about using SDL3 and wgpu to write a *3D* game in, but I'm seriously excited for it!
does anyone have any Rust gamedev tips they could offer? thanks!
r/rust • u/Anantattva • 4h ago
🛠️ project How curiosity about building my own programming language led me to build a museum of miniature virtual machines in Rust & D
Hey everyone!
It all started simply enough: I was just curious about how to build my own programming languages.
That curiosity led me to explore assembly, which naturally led to writing bytecode interpreters, and step-by-step, I ended up building a whole collection of custom virtual machines.
Since I couldn't find a clean "museum" of VM samples to study how different architectures work, I built one: Friendly-Virtual-Machines.
What's in the repo?
Every VM in the collection is built from scratch with zero external dependencies and stays under 7,000 lines of code. They all include custom assemblers (with symbol table label resolution), CPU state handlers, and native benchmark suites.
• Rust Samples: 5 register-based VMs, 1 memory-to-memory VM & 1 stack-based VM exploring different design patterns.
• D Sample: My latest addition—a register-based RISC-style VM written in D with a custom text assembler, hitting a performance gap of just 5.66x to 17.70x compared to native compiled code.
The best part? Because they are lean and self-contained, everything compiles and runs smoothly right on mobile Termux. And I am consistently adding more samples to it as I learn & build more.
Looking for Reviews & Contributions!
I'd really appreciate feedback from folks experienced in systems programming, compilers, or VM design—whether it's reviewing my dispatch loops, pointing out architectural trade-offs, or suggesting ways to optimize further.
If you'd like to contribute your own miniature VM sample (in Rust, D, JS, or any language that runs cleanly with zero dependencies), PRs are completely open! Check out the CONTRIBUTING.md in the repo for the exact guidelines.
🔗 GitHub: Friendly-Virtual-Machines
r/rust • u/BloomWishess • 15h ago
🎙️ discussion Cross compilation targets add up fast in rustup
After seeing the recent posts about rustup and registry sizes I checked what targets I had installed. A few experiments with wasm32-unknown-unknown, aarch64-unknown-linux-gnu, and thumbv7em-none-eabihf from last year were still sitting there along with their full toolchains.
rustup target removed on the unused ones dropped several gigabytes right away. I kept only x86_64-unknown-linux-gnu and the one or two I actually build for regularly.
Do people have a habit of pruning targets on a schedule, or do you just leave them until disk space becomes an issue?Any scripts or aliases you recommend for spotting the ones that haven't been used in a while?
r/rust • u/VelvetPreciouz • 19h ago
Pruning old cargo-installed tools freed more space than expected
After the recent posts about registry and rustup sizes, I looked at what `cargo install` had accumulated over time. A bunch of one-off CLIS and older versions were still pulling in their full dependency trees in the registry.
`cargo uninstalls removes the binaries but leaves the cached crates behind. Manually checking `~/.cargo/registry/src` and removing entries tied to uninstalled packages recovered a few more gigabytes without issues, since anything needed gets redownloaded on next use.
Do people have a preferred workflow or script for tracking and cleaning these installed-tool dependencies, or do you just leave them?
🛠️ project ~450k lines of Rust for an IaaS control plane: numbers and regrets
Since 2022 I've been building an IaaS platform (compute, block storage, VPC, DNS, IAM, KMS), mostly alone. Everything above libvirt is Rust. Some numbers and what I'd change.
~450k lines (35k generated from Protobuf), 96 crates in one workspace, about 20 binaries: API and workers per zone in Kubernetes, three daemons on bare metal, two CLIs.
The host daemon drives KVM/QEMU through the virt crate and writes the domain XML itself. Volumes are Ceph RBD, opened by QEMU via librbd. Networking is VXLAN/EVPN with FRR.
The same crates run in the host daemon, the API and the CLI. For local dev a single binary links all services into one process. That turned out more useful than I expected.
What hurt, mostly CI:
- Every merge ran nine cold release builds, one per image plus one for the node daemons. Now it builds once from a warm target dir per runner and the image jobs just copy binaries. Deploy runner time went from ~105 to ~52 minutes (first runs, still measuring).
- The embedded git SHA lived in our core crate. Every commit recompiled it and everything above it, so no cache was ever warm. Moved it into the binary crates.
#[macro_export]
macro_rules! build_info {
() => {
$crate::proc::build_info::BuildInfo {
package_name: env!("CARGO_PKG_NAME").to_string(),
package_version: env!("CARGO_PKG_VERSION").to_string(),
git_sha: $crate::proc::build_info::normalize_git_sha(option_env!(
"ORIGINCLOUD_GIT_SHA"
)),
}
};
}- Incremental build state hit 132 GB per runner and filled the disk. CI now runs with CARGO_INCREMENTAL=0.
- If `cargo sqlx prepare` fails, the .sqlx cache is already deleted.
What I'd do differently:
- Typed IDs serialize without prefix in JSON and with prefix in text output. Same bug, over and over. I'd use full resource names (AIP-122) from day one.
- Split modules earlier. One of them is at 21k lines.
- Keep the core crate small. Everything depends on it, so a change there rebuilds the node daemons too. Splitting it now is painful.
How did you split a core crate that everything depends on, without a big-bang refactor?
(I run Origin Cloud, a European IaaS, where this runs in production: https://www.origincloud.eu/)
r/rust • u/EuroRust • 1d ago
From Hardware to Human Interface: Building HID Devices in Rust - Frank Lyaruu | EuroRust 2026
youtube.comHave you ever dreamt of building your own keyboard or game controller? 🎮
At this year's EuroRust, Frank Lyaruu showed how surprisingly accessible it is with Rust. Check out this new talk and start building your own plug-and-play devices! 🦀✨
In 2027 EuroRust is going to Prague! Learn more and get your ticket at eurorust.eu
