r_rust🦀
63 subscribers
743 photos
65 videos
37.8K links
Posts top submissions from the rust subreddit every hour.

Powered by: @reddit2telegram
Chat: @r_channels
Download Telegram
Is rust a complete web dev language?

Recently found out that rust can be used to write frontend as well as the backend. How is the state of the frontend in rust compared to JavaScript frameworks like react or vue? Is it practical to use for production apps? Is there big community supporting rust frontend?

https://redd.it/1uottji
@r_rust
Hey Rustaceans! Got a question? Ask here (28/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.

https://redd.it/1uox0x9
@r_rust
Compiling Rust to JVM is now ~36x faster after a rewrite of stack map generation and more refactors to rustc_codegen_jvm! (context, repo links and script to reproduce in comments!)
https://redd.it/1uowc3f
@r_rust
Typescript to rust

Hey everyone!

I’d like to learn Rust properly and become comfortable writing it, rather than just vibe coding my way through projects. I’m looking for resources that help you actually understand the language and build things with it.
Since I come from a TypeScript background, I was wondering if there are any courses, books, or learning resources that explain Rust concepts in a way that’s easier for TypeScript developers to relate to, or point out the key differences and similarities.

Any recommendations would be greatly appreciated. Thanks in advance!

https://redd.it/1up21ob
@r_rust
Nevi v0.2.0 is out: a terminal editor in Rust built around Vim muscle memory

A few weeks ago, I shared Nevi here for the first time. It’s a terminal editor I’m building in Rust for people who want Vim/Neovim muscle memory, but with modern editor features like LSP, tree-sitter highlighting, fuzzy finding, themes, and project search built in by default.

I just released v0.2.0, which is the first version I feel more comfortable pointing people to.

What’s new since the first post:

\- Rendering is noticeably snappier. Nevi now repaints only the parts of the screen that changed in many common editing paths, with better handling for long lines and large files.

\- Go and Ruby language support.
\- More Vim/Neovim keybind parity, including ZZ, visual block insert/append, window movement/resizing, and normal-mode Enter behavior.
\- Labeled jump navigation with :Jump / <Space>j, similar in spirit to leap/flash-style movement.
\- Project-wide find and replace with a preview before applying changes.
\- nevi view, nevi diff, and nevi pick CLI modes.
\- Better :checkhealth reporting for config, keymaps, LSP/tool setup, and performance diagnostics.
\- A Vim oracle test harness and render regression tests to catch regressions earlier.
\- macOS/Linux CI and Homebrew install/update docs.

Install on macOS with Homebrew:

`brew install anthonyamaro15/nevi/nevi`

Repo: https://github.com/anthonyamaro15/nevi

Old post for more context: https://www.reddit.com/r/rust/comments/1u7qwbm/im\_building\_nevi\_a\_terminal\_editor\_in\_rust\_for/

It’s still early, but it’s getting closer to the editor I wanted: Vim-like editing without spending a bunch of time maintaining editor config.

If you try it, I’d especially love feedback on which Vim/Neovim keybinds or editing behaviors your hands expect that still don’t work yet.

https://redd.it/1uph0l2
@r_rust
Need help with AI anxiety

I know here ai posts are disliked but i really need help and just thoughts from more experienced people. I'm still a student with 2 years before graduation with great passion for systems programming especially operating systems and been learning them for a while now and of course, rust has been a joy to learn and use, but recently I just found myself unmotivated, I feel like, what if AI get much better than what it is now, with fable and that shit. and what if they focus more on optimizing that it start costing way cheaper, i feel lost, unmotivated, asking myself what's the point if all my skills and study time became worthless.. especially that i have adhd and i really love and hyperfocus on things that i love, and thinking about switching career feels like torture to me, not that i financially can but even if i could it would be miserable.. I just wish llms never existed.

https://redd.it/1upkllr
@r_rust
maudio - all you need audio in one (miniaudio)

For a while now I've been working on maudio and it's very close to a complete interface to miniaudio.

maudio

Miniaudio is a very large audio C library, mainly aimed at game engines, but has pretty much everything you would need for audio. I think discord also uses(used?) it.

Initially, I wanted wanted to only grow it enough so I can make my own audio app with it, but lost interest in that as this was pretty fun. Even found a null ptr dereference bug in miniaudio along the way.

Maudio is technically just ffi library, but it's offers a completely safe interface to the audio tools that miniaudio has, including custom nodes, custom data sources and data source chaining. I want to eventually also offer a safe(ish?) interface for custom backends as well. It's rather large now, but I did my best to document it and write examples, more to be added.

There is both a low and high level API. The high level API mostly centers around an Engine, which contains a node graph with nodes of various function, a low level device and a resource manager that can reference count loaded audio. This is the 'just play this sound' route.

The low level API uses the low level device directly which supports playback, capture, duplex and loopback.

There's also an encoder, decoder, mixing, many dsp primitives, pcm audio buffer / thread safe ring-buffer, noise, pulse and wave generators, device enumeration, backend selection, raw audio callbacks and some things that I forgot about.

Next on my todo list is to allow using a pre-compiled miniaudio binary, and maybe ship some optional pre-compiled binaries myself.

I also started drafting a version built on top where all types are Send + Sync and Clone (control thread + queue model), but that will likely be a separate crate as things got a bit out of control (see rustjerk)

I'd love to hear some thoughts if anyone has interest in audio.

https://redd.it/1uppdmg
@r_rust
OUROBOROS-UI: The shadcn/ui design language rebuilt natively for egui! With governance tests that fail the build if a raw value bypasses the tokens

Hi r/rust! I've been building an MMO authoring IDE in egui and needed a real design system for it — so I built one, and today I'm open-sourcing it.



What it is: the shadcn/ui design language (semantic tokens, zinc aesthetic, 4px scale) reimplemented natively for egui.

Not a web port 60+ components (atoms → cells → molecules → organisms, plus a node-editor graph layer), all token-first.



The part I care most about: two governance tests run with cargo test and in CI:

- no_raw_values — a literal color, font size or spacing anywhere above the token layer fails the build

- no_painter_in_molecules — atoms are the only layer allowed to touch the painter



My take after years doing design systems at Dell/IBM: a design system only holds if the build enforces it. Conventions drift; compilers don't.

\- Live storybook (wasm): https://ouroboros-ui.typezerolabs.com/storybook/

\- Docs: https://ouroboros-ui.typezerolabs.com

\- Repo (MIT): https://github.com/Type-zero-labs/ouroboros-ui



API is pre-1.0 and evolving with the IDE. Feedback very welcome, especially from anyone who's fought egui theming at scale.

https://redd.it/1uptp3q
@r_rust
I Ported My Browser Game from TypeScript to Rust and Bevy - My Thoughts and Performance Comparison
https://redd.it/1upwqf1
@r_rust
DKIM2 is now supported by the mail-auth and mail-send crates

For those not familiar with email internals, DKIM2 is the next iteration of DKIM, the email signing scheme that lets a domain cryptographically vouch for a message. The problem with DKIM1 is that a signature only covers content, so the moment a mailing list or forwarder touches a message the signature breaks, and a signed message can be replayed to any number of other recipients. DKIM2 turns a signature into a link in a verifiable chain of custody: each hop that modifies a message records a reversible "recipe" for its change and adds its own signature, the envelope (MAIL FROM/RCPT TO) is signed so replays no longer validate, and bounces can prove they're genuine. It's a fairly big rethink of how email authentication works.

DKIM2 support has been added to `mail-auth`, the Rust message authentication crate (it already does DKIM1, SPF, DMARC and ARC). The same release also implements DMARCbis (RFC 9989/9990/9991), the new DMARC standard that replaces the Public Suffix List with a live DNS tree walk.

If you want to see how DKIM2 actually behaves, there's a playground at mail-auth.stalw.art. It's the crate itself compiled to WebAssembly, running entirely in your browser and using DNS-over-HTTPS to resolve keys and validate signatures, so you can sign and verify DKIM2 messages and run DMARCbis checks with nothing to install.

If you don't care about the low-level details and just want to send DKIM2-signed email, `mail-send` integrates mail-auth behind a much simpler API.

For a more technical write-up of what DKIM2 and DMARCbis change and why, take a look at the blog post.

Feedback and bug reports welcome!

https://redd.it/1upxbcw
@r_rust
A standalone MVCC engine for transactional storage systems in Rust

We're open-sourcing **nexir-mvcc-core**, the transactional MVCC engine that powers the Nexir database.

The project focuses exclusively on concurrency control and version management, keeping storage, networking, consensus, and query execution outside the MVCC layer. It provides:

* Timestamp-ordered MVCC reads and writes
* Intent-based transactions (`prewrite` / `commit` / `abort`)
* Atomic multi-key batch transactions
* Guarded (CAS-style) writes
* Incremental MVCC garbage collection
* A backend abstraction that allows integration with different storage engines
* Backend conformance testing utilities

The goal is to provide a deterministic, reusable MVCC core that can serve as the foundation for transactional storage systems without requiring an entire database stack. 

We're interested in feedback from Rust developers working on databases, storage engines, distributed systems, or transactional KV stores.

GitHub: [https://github.com/nexirdb/nexir-mvcc-core](https://github.com/nexirdb/nexir-mvcc-core)

Happy to answer questions about the architecture and design decisions.

https://redd.it/1uq204t
@r_rust