r/rust • • 18h ago

Compile time improvements for derive(Debug)

Thumbnail yoyo-code.com
144 Upvotes

r/rust • • 4h ago

Advice for the next 100 Rust GUIs

Thumbnail linebender.org
83 Upvotes

r/rust • • 15h ago

๐Ÿ› ๏ธ project Biparse: write an AST parser, get the CST free!

20 Upvotes

Crates.io link: https://crates.io/crates/biparse

Have you ever handwritten a `rowan` CST parser and thought that you're writing a ton of boilerplate for a source-to-CST-to-AST parser? Well my (small and limited) audience, this may be for you!

Taking heavy inspiration from `chumsky`, Biparse uses type-driven parser combinators for dual AST-CST construction and correspondence.

Unlike existing parsing options (I'd say the combination of `treesitter` and `rust_sitter` comes closest to what Biparse does currently, and they have their own set of advantages), you don't need two separate passes, or to omit CST generation (which may be useful for eg. error diagnostics in programming languages). CST accumulation and construction happens automatically and produces total trees, with `associate` parsers providing the "readback" from an AST to a CST tree. This way, span information etc. need not be explicitly retained in the AST payload.

This project is kind of in extremely early days (I'm already planning a v0.2.0 for additions and improvements, expect that by the end of the year!), constructive criticism and feedback welcome!


r/rust • • 16h ago

Dioxus Native on FreeBSD

0 Upvotes

How difficult do you consider adapting Dioxus Native for FreeBSD to be?


r/rust • • 10h ago

๐Ÿ› ๏ธ project iPhone Backup Sync: An open-source Windows tool built with Tauri v2, Rust, and Vue 3 for incremental iPhone DCIM backups

0 Upvotes

I recently released iPhone Backup Sync, a Windows desktop utility built with Tauri v2 (Rust backend) and Vue 3 + TypeScript (frontend).

The Problem: Transferring large media libraries from an iPhone to a Windows PC over USB is notoriously unreliable. Native MTP/DCIM transfers frequently stall, fail silently, or force you to manually sort through duplicates if a transfer gets interrupted.

The Solution: This app compares the iPhone's DCIM directory against a local or external backup folder and performs a clean, incremental copy of only the missing files.

Tech Stack & Highlights:

  • Backend: Rust (Tauri v2) for fast filesystem scanning and safe file operations.
  • Frontend: Vue 3.5 + TypeScript for a minimal, responsive UI.
  • Privacy: Completely offline, zero telemetry.

If you work with Tauri on Windows or deal with iOS media backups, I'd love to hear your thoughts on the implementation or any edge cases I should handle next.


r/rust • • 7h ago

๐Ÿ—ž๏ธ news Rust parallel frontend on nightly: set or disable threads

Thumbnail importstatic.com
0 Upvotes

r/rust • • 2h ago

A cargo fork that attempts to solve disk usage

0 Upvotes

I bumped into this interesting cargo fork -- has anyone used it? https://huacnlee.github.io/cargo/why/

It's apparently by the guy who built https://gpui-kit.com/

I wonder why this issue is not more upfront and center nowadays as I see many complaining about it.


r/rust • • 8h ago

๐Ÿ› ๏ธ project bunsen-tool: 0.43.0 - speech asr, tts; language: chat, decision; 80+ pretrained models

0 Upvotes

Discord ยท Repo ยท API docs ยท The book

Do you want HPC AI on Rust? Because we're building HPC AI in Rust.

Between a paper's model and a Rust program that runs it lies the dungeon of theory and practice: missing layers, checkpoint formats, tokenizers, streaming, and the question of whether the port computes what the original does. We clear it one model family at a time. Expand: port the family. Consolidate: give it a real runtime, validated against the reference. Unify: fold what the families share into common parts. Upstream: hand the stable parts to burn.

bunsen is where that work lives: a "batteries included" standard library for the frontier of burn. It has the blocks models are built from, a kit per model family, a pinned catalog of 87 pretrained checkpoints that load by name, and the drivers that run them: streaming speech recognition, chat, text to speech, typed decisions.

bunsen-tool is the loot you can carry out today: those models on the command line, in one cargo install:

cargo install bunsen-tool --features wgpu          # or vulkan, metal, cuda; the CPU is always there
bunsen-tool asr live --diarize                     # Parakeet, Qwen3-ASR, Voxtral, Whisper; Sortformer
bunsen-tool tts run --play "Hello from Rust."      # ZONOS3-Mini, Qwen3-TTS
bunsen-tool chat repl                              # Qwen3/3.5, Gemma, nanochat
bunsen-tool decide run request.yml                 # Laya: typed questions, calibrated answers

r/rust • • 7h ago

๐Ÿ› ๏ธ project It's fascinating to see how often people love naming their Rust projects after the language itself. We can discuss some more of these cool projects.

0 Upvotes

I don't think this is as common with other languages... at least not to this extent.

I recently came across RustFS and RustDesk.
Edit: Tell me more such products to explore which are cool and useful as well.


r/rust • • 16h ago

๐Ÿ› ๏ธ project DNS Switcher: a small egui app that times DNS resolvers with a hand-built UDP query

0 Upvotes

I've been working on a Windows utility in Rust + egui (eframe 0.28) to switch DNS resolvers and pick the fastest one from your own connection.

A few bits that might interest people here:

- The probe builds the DNS query by hand (12-byte header, QNAME labels, type A, class IN) and times the reply on a std::net::UdpSocket with a read timeout. No DNS crate needed for this part.

- All system work (netsh, ipconfig, probes) runs on worker threads and reports back over an mpsc channel, so the egui frame never blocks.

- The app icon is an SVG rendered with resvg in an example binary into PNG + multi-size ICO, then embedded with winresource from build.rs.

Repo: https://github.com/Devzinh/dns-switcher

Planned next: multi-sample probing (p50/p95, jitter), DoH/DoT, and detecting which anycast PoP answers. Code review and PRs welcome, especially on the probe.


r/rust • • 9h ago

๐Ÿ› ๏ธ project I just finished building a side project using rust, because I'm tired of having to review the PR from AI, I've also reviewed one more, most of which look correct even though the contents are slop

Thumbnail github.com
0 Upvotes

hey guys i put together a small side project called yupp a deterministic cli and mcp , how it works under the hood JUST simple

  1. grab the diff

2, parses before & after with tree-sitter

3 flags slop, secrets, and blats radius

I also don't expect anyone to use this, so what's wrong with sharing it?

oh yeah, the license is MIT