Symbolic derivatives and the Rust rewrite of the RE# regex engine
https://iev.ee/blog/symbolic-derivatives-and-the-rust-rewrite-of-resharp/
https://redd.it/1rygobk
@r_rust
https://iev.ee/blog/symbolic-derivatives-and-the-rust-rewrite-of-resharp/
https://redd.it/1rygobk
@r_rust
ian erik varatalu
symbolic derivatives and the rust rewrite of RE# | ian erik varatalu
Building an LSP Server with Rust is surprisingly easy and fun
https://codeinput.com/blog/lsp-server
https://redd.it/1rxy886
@r_rust
https://codeinput.com/blog/lsp-server
https://redd.it/1rxy886
@r_rust
Code Input
Building an LSP Server with Rust is surprisingly easy and fun | Blog | Code Input
A hands-on guide to building toy LSP servers in Rust
Hey Rustaceans! Got a question? Ask here (11/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 official Rust Programming Language Discord: https://discord.gg/rust-lang
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/1rv3l49
@r_rust
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 official Rust Programming Language Discord: https://discord.gg/rust-lang
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/1rv3l49
@r_rust
play.rust-lang.org
Rust Playground
A browser interface to the Rust compiler to experiment with the language
I built a minimal process monitor in Rust with a real-time web UI (stdout / stderr)
https://redd.it/1ryp59z
@r_rust
https://redd.it/1ryp59z
@r_rust
Static-conduit: no dependency, small, type-safe, extensible data pipeline library
https://crates.io/crates/static-conduit
Part of my rust learning journey in depth. May it find its use in the community
https://redd.it/1ryvbdn
@r_rust
https://crates.io/crates/static-conduit
Part of my rust learning journey in depth. May it find its use in the community
https://redd.it/1ryvbdn
@r_rust
crates.io
crates.io: Rust Package Registry
crates.io serves as a central registry for sharing crates, which are packages or libraries written in Rust that you can use to enhance your projects
Why is Rust so Liberal with Heap Allocations?
Ever since learning about data oriented design and the potential cost associated with system calls and trying to apply it more to my own code I've noticed that in "idiomatic Rust" it's quite common to model data as nested trees of enums with Box, Vec & String. While this is a super intuitive way to model data it's not always the most efficient.
For a language that prides itself for performance I rarely see libraries leverage alternative allocators such as arenas or other advanced data packing strategies when I peak under the hood of libraries.
Is this just a situation of focusing on readability & correctness first and avoiding premature optimization or is there something deeper going on here? Curious what your guys' perspective is.
https://redd.it/1ryxxcg
@r_rust
Ever since learning about data oriented design and the potential cost associated with system calls and trying to apply it more to my own code I've noticed that in "idiomatic Rust" it's quite common to model data as nested trees of enums with Box, Vec & String. While this is a super intuitive way to model data it's not always the most efficient.
For a language that prides itself for performance I rarely see libraries leverage alternative allocators such as arenas or other advanced data packing strategies when I peak under the hood of libraries.
Is this just a situation of focusing on readability & correctness first and avoiding premature optimization or is there something deeper going on here? Curious what your guys' perspective is.
https://redd.it/1ryxxcg
@r_rust
YouTube
Andrew Kelley: A Practical Guide to Applying Data Oriented Design (DoD)
Copyright: Belongs to Handmade Seattle (https ://vimeo.com/649009599). I'm not the owner of the video and hold no copyright. And the video is not monetized.
In this video Andrew Kelley (creator of Zig programming language) explains various strategies one…
In this video Andrew Kelley (creator of Zig programming language) explains various strategies one…
What we heard about Rust's challenges, and how we can address them | Rust Blog
https://blog.rust-lang.org/2026/03/20/rust-challenges.md
https://redd.it/1rz15t3
@r_rust
https://blog.rust-lang.org/2026/03/20/rust-challenges.md
https://redd.it/1rz15t3
@r_rust
blog.rust-lang.org
What we heard about Rust's challenges, and how we can address them | Rust Blog
Empowering everyone to build reliable and efficient software.
Rust + HTML templates + vanilla JS for SPA-like apps — anyone doing this in production?
I’ve been pretty obsessed with performance for a while, especially when it comes to web apps.
On the frontend, I’ve been using Qwik for the past 3 years instead of React and similar frameworks. I’ve even used it in production for a client project, and the performance has been great.
Lately, I started questioning the efficiency of server-side rendering with JavaScript runtimes. From some experiments I ran, rendering HTML using templates in Rust (e.g. with Askama + Axum) can be dramatically faster (I’ve seen ~30–40x improvements) compared to SSR with modern JS frameworks.
So recently I picked up Rust and started building with Axum, and now I want to push this idea further.
I’m planning a side project (a Reddit-like social media app) with this approach:
- Backend in Rust (Axum)
- Server-rendered HTML using templates (Askama or similar)
- SPA-like UX on the frontend
- Minimal JavaScript — ideally vanilla JS with no libraries unless absolutely necessary
- Very small JS bundles for faster load times
My main questions are actually about the frontend side:
- Are any of you building apps like this (Rust backend + mostly vanilla JS frontend)?
- How do you structure the frontend as it grows without a framework?
- Do you end up building your own abstractions or lightweight framework?
- How do you handle things like state, navigation, and partial updates?
Also, from the Rust side:
- Any recommendations for this kind of architecture?
- Libraries/tools that fit well with a “HTML-over-the-wire + minimal JS” approach?
I’m trying to push performance as far as reasonably possible without making the project unmaintainable, so I’m interested in real-world tradeoffs, not just theory.
https://redd.it/1rz3u23
@r_rust
I’ve been pretty obsessed with performance for a while, especially when it comes to web apps.
On the frontend, I’ve been using Qwik for the past 3 years instead of React and similar frameworks. I’ve even used it in production for a client project, and the performance has been great.
Lately, I started questioning the efficiency of server-side rendering with JavaScript runtimes. From some experiments I ran, rendering HTML using templates in Rust (e.g. with Askama + Axum) can be dramatically faster (I’ve seen ~30–40x improvements) compared to SSR with modern JS frameworks.
So recently I picked up Rust and started building with Axum, and now I want to push this idea further.
I’m planning a side project (a Reddit-like social media app) with this approach:
- Backend in Rust (Axum)
- Server-rendered HTML using templates (Askama or similar)
- SPA-like UX on the frontend
- Minimal JavaScript — ideally vanilla JS with no libraries unless absolutely necessary
- Very small JS bundles for faster load times
My main questions are actually about the frontend side:
- Are any of you building apps like this (Rust backend + mostly vanilla JS frontend)?
- How do you structure the frontend as it grows without a framework?
- Do you end up building your own abstractions or lightweight framework?
- How do you handle things like state, navigation, and partial updates?
Also, from the Rust side:
- Any recommendations for this kind of architecture?
- Libraries/tools that fit well with a “HTML-over-the-wire + minimal JS” approach?
I’m trying to push performance as far as reasonably possible without making the project unmaintainable, so I’m interested in real-world tradeoffs, not just theory.
https://redd.it/1rz3u23
@r_rust
Reddit
From the rust community on Reddit
Explore this post and more from the rust community
We replaced our Rust/WASM parser with TypeScript and it got 3x faster
https://www.openui.com/blog/rust-wasm-parser
https://redd.it/1rz64ug
@r_rust
https://www.openui.com/blog/rust-wasm-parser
https://redd.it/1rz64ug
@r_rust
Openui
Rewriting our Rust WASM Parser in TypeScript | OpenUI
We rewrote our Rust WASM Parser in TypeScript - and it got 3x Faster
einstellung - A configuration parsing and composing library
Introducing einstellung a proc-macro based, flexible, strongly-typed configuration parser for Rust.
I built einstellung because I wanted a more ergonomic way to handle configuration in Rust applications, especially when dealing with multiple layers (defaults, files, user overrides) without losing type safety or control over how things are merged.
The goal is to keep configuration definitions simple while still allowing customized advanced behavior when needed.
einstellung works by generating an associated `Partial` configuration
for your config in which every field is optional. These partial configs can then be arbitrarily loaded and merged until they are `.build()` at which point your fully initialized config struct is produced.
\- https://github.com/soruh/einstellung
\- https://crates.io/crates/einstellung
\- https://docs.rs/einstellung/latest/einstellung/
I’d be interested to hear how this compares to other config approaches people are using, or if there are gaps I should address.
https://redd.it/1rz7lur
@r_rust
Introducing einstellung a proc-macro based, flexible, strongly-typed configuration parser for Rust.
I built einstellung because I wanted a more ergonomic way to handle configuration in Rust applications, especially when dealing with multiple layers (defaults, files, user overrides) without losing type safety or control over how things are merged.
The goal is to keep configuration definitions simple while still allowing customized advanced behavior when needed.
einstellung works by generating an associated `Partial` configuration
for your config in which every field is optional. These partial configs can then be arbitrarily loaded and merged until they are `.build()` at which point your fully initialized config struct is produced.
\- https://github.com/soruh/einstellung
\- https://crates.io/crates/einstellung
\- https://docs.rs/einstellung/latest/einstellung/
I’d be interested to hear how this compares to other config approaches people are using, or if there are gaps I should address.
https://redd.it/1rz7lur
@r_rust
GitHub
GitHub - soruh/einstellung: Rust Application Configuration library
Rust Application Configuration library. Contribute to soruh/einstellung development by creating an account on GitHub.
Idiomatic Use of the
I've started working at a company where use of the
I've immediately learned a lot about
I learn none of that. I know that it must be of some type which can be inferred by its later use, and its value must be whatever that type's default is. Within some complicated logic, this can make code harder for me to read and understand sequentially.
I went looking for something I could cite to coworkers to say "this is well-established bad practice" and came up empty, which surprised me. I think of Rustaceans as having strong opinions on what code is proper. So for lack of a better source I've written my own maximalist diatribe version of this here, but I'm curious about whether if I'm truly so isolated in this belief, perhaps I could just be misguided.
Does the community in general think of
https://redd.it/1rz8pc6
@r_rust
Default Trait?I've started working at a company where use of the
Default trait is ubiquitous, as I understand to perhaps be standard in Rust. However, I somehow always wince at this when forced to read the code. If I see something as simple aslet x = false;
I've immediately learned a lot about
x: I know both its type, bool, and its value, false. In contrast, when I seelet x = Default::default();
I learn none of that. I know that it must be of some type which can be inferred by its later use, and its value must be whatever that type's default is. Within some complicated logic, this can make code harder for me to read and understand sequentially.
I went looking for something I could cite to coworkers to say "this is well-established bad practice" and came up empty, which surprised me. I think of Rustaceans as having strong opinions on what code is proper. So for lack of a better source I've written my own maximalist diatribe version of this here, but I'm curious about whether if I'm truly so isolated in this belief, perhaps I could just be misguided.
Does the community in general think of
Default as something to be encouraged or discouraged? In what scenarios is it seen as idiomatic, and how do you avoid this sort of confusion?https://redd.it/1rz8pc6
@r_rust
joel.place
The "Billion Dollar Mistake" Lives On In Rust — joel.place
Or, "why the Default trait is an anti-pattern"
Have tests running on file save
Hi rustaceans,
I am working in a little pet project, and I am running my tests manually, every time...
When I am working with Javascript, per example, I have at things like `jest - - watch` that runs the tests when the files are saved, and I can input some patterns (regex) to run only specific tests.
Is there an equivalent in our environment?
(I don't mind if is a cli, a vs code plug-in, or a set bash commands)
I appreciate any advice,
thank you
https://redd.it/1rz9u34
@r_rust
Hi rustaceans,
I am working in a little pet project, and I am running my tests manually, every time...
When I am working with Javascript, per example, I have at things like `jest - - watch` that runs the tests when the files are saved, and I can input some patterns (regex) to run only specific tests.
Is there an equivalent in our environment?
(I don't mind if is a cli, a vs code plug-in, or a set bash commands)
I appreciate any advice,
thank you
https://redd.it/1rz9u34
@r_rust
Reddit
From the rust community on Reddit
Explore this post and more from the rust community
Announcing serde_cursor: Extract nested fields from JSON without making intermediate structs or loading the entire JSON into memory, with 5X less boilerplate than serde_query !
https://github.com/nik-rev/serde-cursor
https://redd.it/1rzajfp
@r_rust
https://github.com/nik-rev/serde-cursor
https://redd.it/1rzajfp
@r_rust
GitHub
GitHub - nik-rev/serde-cursor: Easily and efficiently extract deeply nested data in Rust
Easily and efficiently extract deeply nested data in Rust - nik-rev/serde-cursor
Bevy 0.18 + SpacetimeDB = Multiplayer Game
https://rumble.com/v77edxq-bevy-0.18-spacetimedb-multiplayer-game.html
https://redd.it/1rzbcn5
@r_rust
https://rumble.com/v77edxq-bevy-0.18-spacetimedb-multiplayer-game.html
https://redd.it/1rzbcn5
@r_rust
Rumble
Bevy 0.18 + SpacetimeDB = Multiplayer Game
Here I'm showing how to setup spacetimedb with a bevy based code base. Using friginrain project to show the various code components needed. You really need no where else because SpacetimeDB is really
Finit - Set theory applied to data structures
https://github.com/lukasfri/finit
https://redd.it/1rza3uv
@r_rust
https://github.com/lukasfri/finit
https://redd.it/1rza3uv
@r_rust
GitHub
GitHub - lukasfri/finit
Contribute to lukasfri/finit development by creating an account on GitHub.
Inner Warden — autonomous security agent for servers built in Rust (tokio, axum, jemalloc, tree-sitter)
https://github.com/InnerWarden/innerwarden
https://redd.it/1rzi723
@r_rust
https://github.com/InnerWarden/innerwarden
https://redd.it/1rzi723
@r_rust
GitHub
GitHub - InnerWarden/innerwarden: Autonomous security agent for Linux. 22 eBPF kernel hooks, 36 detectors, kill chain detection…
Autonomous security agent for Linux. 22 eBPF kernel hooks, 36 detectors, kill chain detection blocks reverse shells at execve. Rust, open source. - InnerWarden/innerwarden
Mods Need Input: Dealing with AI Spam in This Sub
Hey everyone, your mod team here wanting to get some feedback on something that's been bugging us for a while now
We've all noticed the uptick in AI-generated posts flooding the sub and yeah, it's getting pretty annoying. Our team is split on how to handle this mess - some of us think AI might have its place while others want to nuke it from orbit
We've been going back and forth on this for like 6 months now and can't seem to land on a solid approach that works for everyone
Look, we want to keep this place focused on actual Rust discussion and learning, but we also don't want to accidentally ban someone's legitimate question just because it might look AI-generated. Plus we're all doing this in our spare time and don't have bandwidth to review every single post manually
Right now we're just winging it case by case. You probably don't see most of our work since we've been quietly nuking the obvious spam posts, but trust me we're dealing with way more of this stuff than you realize
Here's the thing though - we're not sitting here refreshing /new all day long. We browse this sub just like you do, we all have day jobs and other stuff going on. Nobody's paying us to babysit Reddit 24/7
So what do you think? How should we tackle this without making life harder for genuine newcomers or burning ourselves out in the process
Drop your thoughts below or hit us up in modmail if you want to chat about it privately
https://redd.it/1rzkonk
@r_rust
Hey everyone, your mod team here wanting to get some feedback on something that's been bugging us for a while now
We've all noticed the uptick in AI-generated posts flooding the sub and yeah, it's getting pretty annoying. Our team is split on how to handle this mess - some of us think AI might have its place while others want to nuke it from orbit
We've been going back and forth on this for like 6 months now and can't seem to land on a solid approach that works for everyone
Look, we want to keep this place focused on actual Rust discussion and learning, but we also don't want to accidentally ban someone's legitimate question just because it might look AI-generated. Plus we're all doing this in our spare time and don't have bandwidth to review every single post manually
Right now we're just winging it case by case. You probably don't see most of our work since we've been quietly nuking the obvious spam posts, but trust me we're dealing with way more of this stuff than you realize
Here's the thing though - we're not sitting here refreshing /new all day long. We browse this sub just like you do, we all have day jobs and other stuff going on. Nobody's paying us to babysit Reddit 24/7
So what do you think? How should we tackle this without making life harder for genuine newcomers or burning ourselves out in the process
Drop your thoughts below or hit us up in modmail if you want to chat about it privately
https://redd.it/1rzkonk
@r_rust
Reddit
From the rust community on Reddit
Explore this post and more from the rust community
I have a confusion about slicing with String
Hello! I am learning Rust from a Packt course and from what I learned, &str is a variable stored in the byte code of the program after compiling while String is a variable which is stored in the heap when the program runs. I was doing an exercise where I had to run following command:
Now cereals is an array of variables of String type and cookie_crisp is a reference to the String type value stored at index 0. So, when I slice it into cookie, why is it &str instead of String. And how is this possible since &str is stored in byte code after compiling. If this data is entered by user at runtime, how is Rust handling this? I am confused. Can someone please help me understand this concept?
https://redd.it/1rzktn9
@r_rust
Hello! I am learning Rust from a Packt course and from what I learned, &str is a variable stored in the byte code of the program after compiling while String is a variable which is stored in the heap when the program runs. I was doing an exercise where I had to run following command:
let cookie_crisp: &String = &cereals[0];let cookie: &str = &cookie_crisp[..6];Now cereals is an array of variables of String type and cookie_crisp is a reference to the String type value stored at index 0. So, when I slice it into cookie, why is it &str instead of String. And how is this possible since &str is stored in byte code after compiling. If this data is entered by user at runtime, how is Rust handling this? I am confused. Can someone please help me understand this concept?
https://redd.it/1rzktn9
@r_rust
Reddit
From the rust community on Reddit
Explore this post and more from the rust community
Strong Portfolio Project
Hii, I am a self-taught developer,and I want to break into the industry. I need project suggestions. I want to make good projects, and it's okay if the difficulty level is hard.
I use Rust for systems programming and Golang for backend. I have created CHIP-8 emulator and a NES emulator (half done, on going), and for backend, I’ve built an e-commerce app, chat app, redis clone and some small tools.
Please suggest some very good projects. Its time for me to get a job. my communication is very poor, and I am very introverted, so I want my projects to speak more for me.
thank u
https://redd.it/1rzlzmk
@r_rust
Hii, I am a self-taught developer,and I want to break into the industry. I need project suggestions. I want to make good projects, and it's okay if the difficulty level is hard.
I use Rust for systems programming and Golang for backend. I have created CHIP-8 emulator and a NES emulator (half done, on going), and for backend, I’ve built an e-commerce app, chat app, redis clone and some small tools.
Please suggest some very good projects. Its time for me to get a job. my communication is very poor, and I am very introverted, so I want my projects to speak more for me.
thank u
https://redd.it/1rzlzmk
@r_rust
Reddit
From the rust community on Reddit
Explore this post and more from the rust community