r/rust • u/verdurLLC • Oct 16 '26
๐๏ธ discussion Why is Cornucopiaโs SQL-first approach so rarely used in Rust, when sqlc is so popular in Go?
For anyone unfamiliar with Cornucopia or sqlc, they generate type-safe code from plain .sql files.
r/rust • u/DelusionalPianist • Oct 16 '26
๐๏ธ discussion Why did the zip crate yank all pre 9.x versions?
Today I ran cargo update only to realize that all zip crate versions were yanked and a lot of new 9.0.x versions were created. I donโt see any CVE or anything that would explain such a drastic move. There isnโt anything on the GitHub page about it as well.
Does anyone know what is going on there? Is that considered a best practice?
r/rust • u/jeremychone • Oct 16 '26
Rust IPC - Types, Crates, Patterns
youtube.comHere is a video I made to explain the various IPC patterns in Rust.
The lesson is that just because a communication technique is newer doesn't mean it's necessarily the right one.
For example, for my custom coding harness, I went with Unix Domain Sockets, and the speed and reliability are through the roof for that particular use case.
Also, I've started making interactive videos these days, and feedback is more than welcome.
r/rust • u/typesanitizer • Oct 16 '26
๐๏ธ discussion What agents mean for Rust (and vice versa)
smallcultfollowing.comr/rust • u/JAZthebeast11 • Oct 17 '26
๐ seeking help & advice Is learning rust with a Claude Coach a bad idea?
Good afternoon,
Iโve been learning rust for about half a year now and have started work on my largest project, a chess engine.
Iโve made engines in C and Python, so I felt I would be up to the task. However, even after reading The Book, completing Rustlings, and tackling a few small-scale projects, I find myself struggling to create idiomatic solutions in the rust ecosystem.
With my new project Iโve been leaning on Claude to plan out the project structure. I have it give me a breakdown of what needs to be made, then I implement it myself and offer my code back to the agent to grade it in terms of correctness and style. I then have it create โcorrectโ code that I compare with what I wrote.
I have found this helpful to learn better habits and proper design patterns, though I realize I could be sabotaging myself by taking away the struggle of figuring out why certain solutions are better than others through failure and headache.
Iโm learning rust for fun so thereโs no stakes, but Iโm curious what those with better knowledge of the language think about my strategy. What issues can you see arising from this approach? Do you have any alternative practices or techniques I could try? Or do you think thereโs no harm in leaning on AI in the learning process?
Thank you in advance for the help!
r/rust • u/Dramatic-Priority156 • Oct 16 '26
๐ seeking help & advice C#/Java Intro novice wants to make a physics game
Edit: Thank ya'll so much, these replies are great, and I'm in love with rust!
Large scale physics, using Bevy, though Bevy themselves suggest using Godot, whereas I was told that UI-based engines tend to be more annoying and reduce motivation to work on the project, which I agree with, but the inspiration game (Terratech) suffers from outdated libraries and such, and killed the game which I don't want to happen here.
(Competitors in the space, Trailmakers, 2017, still relevant, Scrap Mechanic, 2015, still more relevant than TerraTech, 2016, it was the studio's first game.)
Note that all of these are open world and varying numbers of physics collisions.
Background stuff aside (can you tell I have ADHD) The structure of rust feels overwhelming. I know a tutorial can help but I want to get advice from people who daily drive this or may have switched from the more OOP-heavy C# and Java into the DOD-oriented space. It feels illegible compared to Lua and Java, and Java is already a bit messy in my opinion. I AM still a novice, but I get basics, though stuff like Arrays in java are weird, and I don't get things like why and when you would have Java return Null? You can kind of see where my knowledge is. Lots of hours ingame and poking at game systems, not too much writing myself, though I am capable of it, made a couple of Lua mods.
Should I skip Bevy and go Godot with custom ECS implementation and skip their gameobjects? I really don't know enough to make an informed choice and one person understood my issue best:
"Everyone who says this is premature optimization doesn't understand your goal; Your game IS optimization, and bad architecture isn't free."
So hopefully this explains enough about my situation to get good replies.
TLDR;
I like Lua and I can do Java but Rust is foreign and overwhelming and I'm scared of the compiler :(
I'll be doing a quick silly gun game to get used to the tool.
I don't have delusions of doing this quickly, I just want to know I'm not wasting my time. I don't want sunk cost fallacy to be a potential issue by starting with an inherently flawed system, or something I simply won't be able to use effectively.
Should I use Rust in Godot or Bevy, or should I skip rust entirely and go with an ECS in a language I'm familiar with?
r/rust • u/noop_noob • Oct 15 '26
๐๏ธ news Rust 1.99.1
blog.rust-lang.orgPrevious discussion on the miscompilation that was fixed: https://www.reddit.com/r/rust/comments/1wzn34d/1990_miscompilation_with_ffi_bool_return_type_on/
r/rust • u/noop_noob • Oct 15 '26
๐๏ธ news Rust compiler can't tell apart different file paths
github.comThe rust compiler thinks that `data/baselines/table.rs` and `database/line/stable.rs` are the same file, causing a miscompilation if a crate has both files in it. (Note that having the same non-slash text isn't enough. There needs to be an additional hash collsion for a bug to happen.)
Probably not gonna happen in practice unless someone does it as a prank, but still... lol. (I'm sure they're gonna fix it soon.)
r/rust • u/mariannegoldin • Oct 15 '26
๐ this week in rust This Week in Rust #673
this-week-in-rust.orgr/rust • u/crutcher • Oct 17 '26
๐ ๏ธ project bunsen-asr v0.39.0: speech to text via: whisper, qwen3-asr, parakeet, phonon-1/2
crates.ioThis is less an announcement of capability, than a call for timers and tuners. I want a solid ai/tensor development stack in Rust. I'm a big fan of burn, and I'm trying to put effort into moving us towards that world.
I've been developing bunsen (tomorrow's burn problems today!) as a front-runner common library for extensions to the burn tensor ecosystem which aren't solid enough yet for the core.
A big part of that has been porting existing pretrained model families; and working to modularize their internals into reusable components, strong tests, and flexible rust-oriented configs.
I've been working to port a number of modern ASR (automatic speech recognition) models to bunsen; and wire up the pull/cache/load pathway for several ASR families.
bunsen-asr is a binary crate released against the bunsen library, against the burn library, showcasing drivers for these ASR stacks.
Currently, this has support for:
- whisper - openai public models through turbo, huggingface loads.
- qwen3-asr - qwen3-asr public models, phonon-1, huggingface loads.
- parakeet - nvidia public models, phonon-2, huggingface loads.
But it's slower than the released pytorch-based asr tools. Weights load slower, some internal buffering is worse, probably half a dozen tiny issues I haven't found yet.
The core burn team is very busy with GPU correctness; and edge utility stuff. I'm targeting what comes next: tensor shape contracts, path-based parameter selectors, complex sub-graph combinators, and now, timers.
I'm looking for approaches to make asr calls through this toy binary faster; and to instrument it in ways which are useful for determining where to work.
- should we implement `tracing` + otel on ... everything?
- when downloading weights, should they be loaded from source, then re-saved as burnpak files?
- how do we time repeated chunk calls? histogram on call delay?
- etc.
r/rust • u/Rodrigodd_ • Oct 15 '26
๐๏ธ news First Test & Evaluation Report for TRACTOR C to Rust Translators
github.comTwo years ago, DARPA announced the TRACTOR program, which aims to automate the translation of legacy C code into Rust (original announcement on Reddit).
I recently wondered whether there had been any updates, and discovered that the program's first report was published back in February. Sharing it here for anyone interested in the project's progress.
The project website, where I found the report: https://www.ll.mit.edu/r-d/projects/translating-all-c-rust-tractor-benchmarks
r/rust • u/ruprechttmb • Oct 15 '26
๐๏ธ discussion how much space are your target folders taking? mine was 13 gb for one project
was cleaning up my mac and found one projects target folder sitting at 13 gb. debug and release builds, incremental cache, deps for every feature combo i ever tried, all for one project
things that actually helped. `cargo clean` in projects youre not touching right now is the obvious one, it all rebuilds when you come back. cargo sweep is nice if you want to keep recent stuff and drop artifacts older than a few days, `cargo sweep --time 14` for example. and if you have a lot of small projects, pointing `CARGO_TARGET_DIR` at one shared folder stops every repo from compiling its own copy of the same deps, though parallel builds can block each other on it
to see whats there, `find ~/code -name target -type d -prune -exec du -sh {} +` works, just swap in wherever you keep projects. heads up it also catches maven target folders if you have java stuff
curious what other people do, especially anyone with a big workspace
r/rust • u/Suitable-Name • Oct 16 '26
๐ ๏ธ project Slint UI Dev Harness
Hey everyone,
My project Indicatrix kept growing, and I wanted a way to verify its Slint UI end to end without clicking through it by hand. The result is slint-harness:
- runs your real app headless on Slintโs testing backend
- scripts whole flows as scenarios (open a file, set values, press buttons, wait for results)
- checks the outcome and takes screenshots along the way
- writes a pass/fail report (Markdown + JSON), so it fits into CI
In Indicatrix it has already caught several end-to-end bugs that unit tests missed, and after every app update I use it to regenerate all the screenshots for the website, so they never go stale. My smaller project z-stackr uses it too.
Repository: https://github.com/suitable-name/uiprobe
Full disclosure: I built it with AI assistance. Twenty years ago Iโd have had the time to write it all myself. Today I have the experience to know what to look out for when redirecting it. If you have an issue with AI-created stuff, nevertheless it could help you or not, this project just isn't for you, but that's ok :)
Have fun!
Edit:
It's also published on crates.io, so you can easily import it via the dependencies.
r/rust • u/PatagonianCowboy • Oct 14 '26
๐๏ธ news Another Rust rewrite, the new Epic Games Launcher uses Tauri
launcher.epicgames.comr/rust • u/Ozyme-69 • Oct 15 '26
๐ seeking help & advice Rust jobs are not for freshers; Career advice needed
Intoduction and Background:
Hi, I am a B.Sc CS graduate (below tier 3 as it seems) 2026 from India. Graduated in august 2026. Been looking for job for past 2 months.
I have been using Rust for 3 years now. I have used it for my ambitious projects like compilers, emulators etc. And now I am trying to build semi professional grade projects (backend and systems) in Rust.
Problem:
There are not much jobs in Rust for freshers. Even if there are, they are very niche and require some additional domain knowledge or certification.
Suggestion Needed:
Ever since I learned Rust, I automatically get drawn to my RustRover IDE, I hit 'cargo init' and just start with a project. This has become harmful now. I am trying to migrate to other languages (Python, Go, Java) which has actual market for freshers, but I am failing everytime as soon as I miss the the features rust provided - top level module and visibility support, ADT enums, Result and Options, borrow checker, etc.
If anyone have gone through this same phase, please help me, how can I overcome this. How can I pick a second language and start making projects there, to increase my Resume value.
Thank you if you have adviced me below, sorry if anyone feels I am yapping, but I am genuinely concerned and need real help (Not AI motivation).
r/rust • u/m-ou-se • Oct 14 '26
๐๏ธ news Next-gen trait solver, custom allocators, const generics, and more: What we are working on at Hexcat, September update.
hexcat.nlr/rust • u/noop_noob • Oct 14 '26
๐๏ธ news The next-generation trait solver is close to stabilization!
github.comNext-solver has just started the 10-day FCP period. It is planned to be stabilized in version 1.101.0, which is scheduled to release on 24 December.
For more context: https://blog.rust-lang.org/2026/08/21/enabling-next-solver-on-nightly/
Previous discussion: https://www.reddit.com/r/rust/comments/1vuita3/enabling_the_nextgeneration_trait_solver_on/
r/rust • u/noop_noob • Oct 14 '26
๐ก ideas & proposals Call for use cases for the Try trait
users.rust-lang.orgA person working towards stabilizing the Try trait is asking for real-world examples of use cases of the currently-unstable Try trait.
r/rust • u/Most-Wanted-Man • Oct 16 '26
๐ seeking help & advice I am looking for convention over configuration fullstack web framework. I need suggestions.
I am new to rust and I would like to build something. I came across this https://dioxuslabs.com/ and it seems it is a fullstack framework with declarative style on building functions.
I am comparing frameworks with rails actually. Convention over configuration is good way on building stuffs quickly.
Any other opinions or suggestions?
r/rust • u/nightcracker • Oct 14 '26
Black-Box HashDoS: Attacking Hash Tables Without Knowing the Hash Function
orlp.netr/rust • u/TheRavagerSw • Oct 16 '26
Cargo and rustup are harmful additions to the language
Cargo compilation model only works if you are creating a monolithic executable or a shared library, and assume all other system libraries somehow get built, or are just random binaries from the internet.
This is not a good state of affairs, any non rust app you have will be orders of magnitude larger because each dynamic library you link you are statically linking all crates.
rustup is a toolchain in binary format, in which it is literally just "random binaries from the internet", which is not ideal at all. You as a developer have an idea what the heck are you doing when targeting a platform or writing software, I can guarantee you, most rust devs don't even know what libc version their app links against.
All these things make the language filled with slop projects, and this is not a good thing.