r/madeinrust • • 1h ago

100% Human Coded My rust prototype for a section of an esoteric byte-code virtual machine.

0 Upvotes

use std::error::Error;

type LooseResult<T> = Result<T, Box<dyn Error>>;

#[derive(Debug)]

enum ValueKind {

Null,

Int(i64),

Decimal(f64),

Bool(bool)

}

struct Value {

value: ValueKind

}

impl Value {

pub fn new(value: ValueKind) -> Self {

return Value { value }

}

pub fn to_string(&self) -> Result<String, String> {

match self.value {

ValueKind::Null => Ok(String::from("null")),

ValueKind::Int(v) => Ok(String::from(v.to_string())),

ValueKind::Bool(v) => Ok(String::from(v.to_string())),

ValueKind::Decimal(v) => Ok(String::from(v.to_string())),

}

}

pub fn to_int(&self) -> Result<i64, String> {

match self.value {

ValueKind::Int(v) => Ok(v),

ValueKind::Decimal(v) => Ok(v as i64),

_ => Err(String::from(format!("unable to convert type of {:?} to integer.", self.value)))

}

}

pub fn to_decimal(&self) -> Result<f64, String> {

match self.value {

ValueKind::Int(v) => Ok(v as f64),

ValueKind::Decimal(v) => Ok(v),

_ => Err(String::from(format!("unable to convert type of {:?} to decimal.", self.value)))

}

}

pub fn add_to(&self, other: &Value) -> Result<Value, String> {

match self.value {

ValueKind::Int(v) => Ok(Value::new(ValueKind::Int(v + other.to_int()?))),

ValueKind::Decimal(v) => Ok(Value::new(ValueKind::Decimal(v + other.to_decimal()?))),

_ => Err(String::from(format!("unable to add {:?} to {:?}!", self.value, other.value)))

}

}

}

fn main() {

let value1 = Value::new(ValueKind::Int(123));

let value2 = Value::new(ValueKind::Decimal(3.14));

let value3 = value1.add_to(&value2).expect("failed");

println!("result: {}", value3.to_string().expect("failed"));

} use std::error::Error;

type LooseResult<T> = Result<T, Box<dyn Error>>;

#[derive(Debug)]

enum ValueKind {

Null,

Int(i64),

Decimal(f64),

Bool(bool)

}

struct Value {

value: ValueKind

}

impl Value {

pub fn new(value: ValueKind) -> Self {

return Value { value }

}

pub fn to_string(&self) -> Result<String, String> {

match self.value {

ValueKind::Null => Ok(String::from("null")),

ValueKind::Int(v) => Ok(String::from(v.to_string())),

ValueKind::Bool(v) => Ok(String::from(v.to_string())),

ValueKind::Decimal(v) => Ok(String::from(v.to_string())),

}

}

pub fn to_int(&self) -> Result<i64, String> {

match self.value {

ValueKind::Int(v) => Ok(v),

ValueKind::Decimal(v) => Ok(v as i64),

_ => Err(String::from(format!("unable to convert type of {:?} to integer.", self.value)))

}

}

pub fn to_decimal(&self) -> Result<f64, String> {

match self.value {

ValueKind::Int(v) => Ok(v as f64),

ValueKind::Decimal(v) => Ok(v),

_ => Err(String::from(format!("unable to convert type of {:?} to decimal.", self.value)))

}

}

pub fn add_to(&self, other: &Value) -> Result<Value, String> {

match self.value {

ValueKind::Int(v) => Ok(Value::new(ValueKind::Int(v + other.to_int()?))),

ValueKind::Decimal(v) => Ok(Value::new(ValueKind::Decimal(v + other.to_decimal()?))),

_ => Err(String::from(format!("unable to add {:?} to {:?}!", self.value, other.value)))

}

}

}

fn main() {

let value1 = Value::new(ValueKind::Int(123));

let value2 = Value::new(ValueKind::Decimal(3.14));

let value3 = value1.add_to(&value2).expect("failed");

println!("result: {}", value3.to_string().expect("failed"));

}

I built lots of VMs in C# and zig (although they were personal only) so I want to do one in rust too.

this is a prototype for the value part of VMs and for now it seems to be working.

**If you have any feedback, please enlighten me!**


r/madeinrust • • 6h ago

AI Assisted Strait – a Rust desktop app that punches a P2P tunnel to a trusted home connection, with no relay

Thumbnail
gallery
1 Upvotes

I wrote Strait in Rust to share a trusted person's home internet connection from somewhere else, without a VPS, a relay, or port forwarding.

The host clicks Start sharing and gets an invite code. The client pastes it. Both sides punch through their NATs and then talk directly. If they can't, the app says so; it will not send traffic through a third party. Rendezvous is over public services the host opts into (Nostr, the BitTorrent DHT, ntfy, MQTT), which only see a sealed record.

The Rust parts I care about: hole punching on tokio; a Noise NKpsk0 handshake with snow and RustCrypto (ChaCha20-Poly1305, X25519, Ed25519), modeled in ProVerif; and an eframe/egui desktop app with a userspace exit through netstack-smoltcp. Builds for Linux, macOS and Windows, Apache-2.0, v0.9.0.

Repo: https://github.com/daniad6/strait

I used AI as a coding assistant while building it. It's early, and I'd like feedback on the networking and on anything confusing in the app.


r/madeinrust • • 8h ago

AI Assisted I've wanted to write an MCP server in Rust for a while. Finally found a reason to build one.

2 Upvotes

For a while, I've wanted to write an MCP server in Rust, mostly to understand how the protocol works beyond just reading the specification. I finally ran into a problem that felt like a good excuse to do it.

I wrote a short devlog about the whole thing. It's more about understanding the moving parts, the reasoning behind the architecture, and how I approached building an MCP server than a deep dive into MCP itself.

https://adii.fyi/blog/i-built-a-bridge-to-use-neon-in-antigravity/


r/madeinrust • • 8h ago

100% Human Coded I built FyroDB: An ultra-fast, Redis-compatible in-memory store & Postgres cache proxy in Rust

5 Upvotes

I've been building FyroDB, a Redis-compatible in-memory database written in Rust that also acts as a transparent PostgreSQL caching proxy.

Benchmark numbers from our test suite:

  • Pipelined GET: ~97M ops/sec
  • Pipelined SET: ~77M ops/sec
  • Pub/Sub delivery: ~5.6B msgs/sec
  • Postgres cache hits: ~5M ops/sec

It works out of the box with any Redis client (RESP) and speaks the Postgres wire protocol directly

Would love any feedback or thoughts on the design.


r/madeinrust • • 9h ago

100% Human Coded Building Beacon – Exploring Docker monitoring with Rust

Post image
1 Upvotes

I've been working on Beacon, exploring Rust, async systems, Docker APIs and real-time container log streaming.

Would love feedback from the Rust community!

🔗 https://beacon-logs.vercel.app/

🐦 https://x.com/_ssshashank/status/2125724577389228457


r/madeinrust • • 15h ago

Majority AI Coded Liquid glass in rust

Thumbnail
gallery
82 Upvotes

I was playing around in claude code and it gave me a pretty good and quite nice looking liquid glass UI framework, which looks close to apple's liquid glass, not only with the refraction and chromatic aberrations but with animations and everything else, although it's not done and needs more work.

Feel free to clone the repo or download the code and use it as you like !

Let me know what you think and if you would like to see any particular features from Apple's liquid glass, shoot me a dm, i would be happy to add them.

Crate Github repo


r/madeinrust • • 17h ago

AI Assisted A new way to record and stream your gameplay!

Post image
3 Upvotes

https://github.com/NotADeveloper4665/Simulcast-Studio

OBS Studio forked and rewritten in rust to provide a modern solution for recording and streaming both horizontal and vertical output with two independent editable scenes and individual orientation recording and streaming you will be able to use one familiar interface to record content in multiple aspect ratios to allow you to reach wider audiences! Currently appimages and rpms are built and working and will be up on the github soon once i build the mac release i will spin up the github sight and have all releases easily published for testing.


r/madeinrust • • 17h ago

AI Assisted Scriptable smart card reader app - Cardpeek-ng

1 Upvotes

I've made an up-to-date reimplementation of Cardpeek in Rust: Cardpeek-ng. It features:

  • A new, more robust LUA scripting API (not backwards-compatible)
  • Good (hopefully!) documentation of the scripting API
  • Raw trace import, export, and analysis
  • Up-to-date ATR DB

Have a go and tell me what you like or don't like! There are release builds for Linux, Mac, and Windows, but I've only tested the Linux builds. If you're on either of the other two platforms, I'd love to hear from you about what's broken!


r/madeinrust • • 17h ago

AI Assisted lrpipe: An all-in-one germline pipeline for long reads, written in Rust

Post image
1 Upvotes

Hi, been working on this one for months, supports HIFI and ONT genomes. Aligned or unaligned, one command calls phased SNVs and indels, structural variants, copy-number variants and loss of heterozygosity, tandem repeats, read depth and CpG methylation.

A whole human genome in 10 minutes, more accurate than Clair3, while being efficient and fast enough to run on a laptop.

To build it, I made an aligner (Bonefish: up to 8x faster & more accurate than minimap2)
A new bioinformatic I/O library (Pasta: much faster and more efficient than samtools/BCFtools)
And a new genomic codec (zflate: Faster and more efficient than libdeflate)

All the tools above are also 100% rust!

https://github.com/DylanCosto/lrpipe


r/madeinrust • • 17h ago

Majority AI Coded OpenMail – open-source MCP server in Rust that lets ChatGPT manage 60+ mailboxes

3 Upvotes

I got tired of opening 50+ mailboxes every morning, so I built OpenMail: an open-source MCP server in Rust that lets ChatGPT manage all of them from one place.

It speaks plain IMAP/SMTP, so it works with Gmail, Outlook, Fastmail, iCloud, Yahoo, and any generic server. Up to 500 accounts. It reads, searches, organizes, drafts, sends (with human approval), and writes daily briefs.

Self-hosted, your mail stays on your machine, nothing is sent without your OK. AI agents wrote most of it while I supervised and reviewed their work, and I tested it live with 62 mailboxes.

Video and repo links are in the comments.

It is pre-release 0.1.0, tested against GreenMail, not yet Gmail/Microsoft 365/Dovecot, no security audit yet. If you try it, a star on GitHub helps a lot.


r/madeinrust • • 18h ago

Majority AI Coded Orbit: a native Rust desktop app for running coding agents (T3 Code alternative, no Electron). Built entirely by AI

1 Upvotes

Hey r/madeinrust,

I want to share Orbit, a desktop app for running coding agents (Claude Code, Codex, and anything that speaks ACP) side by side. It's written in Rust on GPUI, with no Electron, no webview and no Node.

Repo (MIT): https://github.com/countradooku/orbit

Full disclosure up front: this was built entirely by AI. I directed it, made the product and stack decisions and tested it, but the code was written by Claude Code. I'm telling you up front because I think you should know.

Why I made it

  • The recent controversy around T3 Code and user data. It made me want a tool like this that I can actually read and trust, that keeps everything local, and that I control.
  • I wanted something that isn't Electron. An app that sits open all day managing agents shouldn't need a gigabyte of RAM and burn CPU while it does nothing.

Numbers

Windows 11, release builds, median of 5 runs, against T3 Code on the same machine:

OrbitT3 Code (Electron)
Window up238 ms461 ms
Memory (whole process tree)~93 MB~1,035 MB
Processes2 (app + background host)7
Idle CPU0.00 %7.66 %
On disk~43 MB~235 MB

The methodology and the script to reproduce this are in docs/BENCHMARKS.md.

What it does

  • Parallel agent threads, each optionally in its own git worktree. Approve or deny tool calls, steer mid-turn, interrupt.
  • Review and undo: inline diffs for every edit an agent makes, a review sheet per turn or per thread, and checkpoints with undo. This works even in folders that aren't git repos (it keeps a shadow repo).
  • A background host: agents keep running after you close the window. The built-in terminal has scrollback and hibernation.
  • Remote hosts over your own ssh (your keys, agent, ProxyJump), plus WSL. There's a host switcher, so several machines can run in one window.
  • Teams of agents, a usage and quota board with failover, automations, a CLI (orbit) that doubles as an MCP server, and a built-in browser.
  • Plugins:

    • Data plugins: themes, prompt templates and recipes.
    • Agent manifests: add any agent CLI with a TOML file.
    • Native panels.
    • WebAssembly hooks in a wasmi sandbox (e.g. a guard that blocks rm -rf /), behind capability consent and an audit log.
  • Coming next: voice dictation with on-device Whisper on candle (pure Rust).

A lot of the inspiration comes from T3 Code (the original idea and much of the UX), Orca, PandaCode, and the Cursor and Codex desktop apps. Huge respect to the people behind those.

Stack, for the Rust folks

  • UI: GPUI + GPUI Kit, on gpui-fast (Longbridge's GPUI fork, the one that actually idles at 0 % CPU).
  • Channels and websockets: crossfire channels instead of tokio's, and sockudo-ws for websockets.
  • Wire format: wincode, with a small framing layer that batches streaming tokens.
  • Plugins: wasmi, chosen over wasmtime: about 1.2 MB against 11.6 MB, and a 20 s build against 193 s.
  • Voice (in progress): candle, with a custom KV-cached Whisper decoder.

Honest status

  • It's been developed and tested mostly on Windows. macOS and Linux are supported, but they've had much less hands-on testing. The macOS release build passes on CI; two engine tests currently fail on Linux CI, and I'm fixing them now. Expect rough edges.
  • It's early. Bug reports are very welcome.

What's next

I'm planning something like T3 Connect: reaching your agents and machines from anywhere, done in a way that keeps your data yours.

If people want this, I'm happy to maintain it long term. Issues, ideas and PRs are welcome, and if you'd use it, a star or a comment tells me it's worth continuing.

Thanks for reading!


r/madeinrust • • 21h ago

Majority AI Coded KUTE 0.8: Rust tokenization engine for text and event logs. Column container beats xz on two real logs; five experiments that failed are in the docs

Thumbnail
reddit.com
0 Upvotes

r/madeinrust • • 22h ago

Majority AI Coded [Dev deep-dive] hyprdesk: a desktop layer for Hyprland in Rust: one iced daemon, four dedicated binaries, Lua config, and a theme engine that never runs code

3 Upvotes

r/madeinrust • • 22h ago

AI Assisted Been working on a native music player in Rust and GPUI, called Wiremann.

Thumbnail
gallery
22 Upvotes

https://github.com/wiremann/wiremann

Wiremann is a native, lightweight and fast GPU-accelerated music player, built purely in Rust.It is cross-platform and uses the GPUI library (actually a fork called WGPUI, which uses WGPU across all platforms) for the UI. The main goal is to keep it as lightweight as possible, while not compromising on features or looks.

I recently released v0.4.1 Throttle Up, which you can download binaries for here: v0.4.1

Wiremann is already pretty usable, and has features like word-synced lyrics & more, but is still pretty WIP, so expect bugs and crashes.

I have many features planned, and will work on it as time allows.

Also i code the largest majority of this stuff by hand. I can guarantee that theres no slop in this repo. However, with that being said, i do use generative AI, but mostly to help in troubleshooting and fixing bugs, rather than entirely slopping together new stuff. I also use it to try and find the best way to implement something. Any contributions will also be checked to meet these standards.

Discord server: here


r/madeinrust • • 23h ago

Majority AI Coded GitHub - Vibernt/cupel: Know which tests protect you. CLI and MCP for people and coding agents.

Thumbnail
github.com
1 Upvotes

r/madeinrust • • 1d ago

AI Assisted I built a skill to help AI assistants build better Ratatui applications

Post image
2 Upvotes

r/madeinrust • • 1d ago

Majority AI Coded nattes: a typesafe, in-process message queue inspired by NATS, where a wrong subject is a compile error

Post image
4 Upvotes

I've been working on nattes, an in-process message queue with NATS's subject model (user.*.delete, git.>, queue groups, request/reply), except that subjects are not strings. You declare the topics as a tree of types, and walk down it:

topics! {
    topics {
        git { push: PushMsg },
        user { id(u32) { delete: DeleteMsg } },
    }
}

let bus = Channel::<topics::Topic>::new();

let mut deletes = bus.user().id(Wild).delete().subscribe().await; // user.id.*.delete
bus.user().id(42).delete().publish(DeleteMsg).await;

let msg = deletes.next().await.unwrap();
assert_eq!(msg.params(), (42,));

With string subjects, a typo is a subscription that silently never fires. Here it doesn't build:

bus.user().id(Wild).delet()
    error: no method named `delet` found for struct `Channel<T, P>`

bus.git().push().publish(DeleteMsg)
    error: mismatched types: expected `PushMsg`, found `DeleteMsg`

bus.user().id(Wild).delete().publish(DeleteMsg)
    error: no method named `publish` found for struct `Channel<DeleteLeaf, (u32,)>`

What it does:

  • Wildcard and fixed parameters, subscribing to everything below a topic, queue groups, request/reply and scatter-gather.
  • A sub-channel is a root: a component that takes a Channel<topics::git::Topic> works the same standalone or mounted inside a bigger tree.
  • No async runtime in its dependencies. Subscriptions are futures::Streams, and timeouts come from whatever runtime you use.
  • Per-subscription buffers with a choice of overflow policy (drop newest, drop oldest, or make the publisher wait).
  • Optional bridges: the same tree in two processes over any byte transport, with your own codec. Each side only sends what the other subscribes to.
  • Steps are plain methods, so rust-analyzer completes them and go-to-definition lands in the topics! tree.

What it is not: a broker. Delivery is in memory and at most once, nothing is persisted or redelivered, and the tree is fixed at compile time. If you need durability or subjects built at run time, use NATS itself.

It's a preview (0.4), so the API still changes between minor versions. I'd like feedback on the topics! syntax and on the API in general.


r/madeinrust • • 1d ago

AI Assisted Ubuntu Touch Emulator for apps developement

Post image
2 Upvotes

Made in Rust with Teksilo GUI framework.

It showcases a complex UI with docks, controls, drag & drop, settings and the ability to show textures coming from another process, here QEMU.


r/madeinrust • • 1d ago

AI Assisted I built repo-pack, an open-source single-binary Rust CLI and stdio MCP server designed to pack local or remote repositories into clean, token-efficient context for LLMs and coding agents.

Post image
4 Upvotes

I built repo-pack, an open-source single-binary Rust CLI and stdio MCP server designed to pack local or remote repositories into clean, token-efficient context for LLMs and coding agents.

GitHub:https://github.com/Juanmidev1/repo-pack

Key features:

• Tree-sitter AST skeleton mode (--skeleton and --focus): Replaces function bodies with placeholders across Rust, TypeScript/TSX, JavaScript/JSX, and Python while preserving signatures, types, and imports. On its own codebase, this cuts token usage by ~57%.

• Native MCP server mode (repo-pack --mcp): Exposes repo_map, read_files, and pack_impact tools over stdio so agents like Claude Code can explore large repositories incrementally without loading everything at once.

• Secret redaction on by default: Automatically scans and redacts API keys, tokens, private keys, and credential assignments into [REDACTED:] before generating output (opt out with --allow-secrets).

• Git-aware context (--diff and --impact): Packs only modified, uncommitted, or untracked files against a Git ref and automatically includes files that import the changed modules.

• Built-in presets and remote repos: Includes --preset review | arch | bug, shows the heaviest files with --top, and accepts remote Git URLs via shallow cloning into a temporary directory.

Pre-built binaries for Linux, macOS, and Windows (v0.2.0) are up on GitHub Releases, or you can build a minimal version without tree-sitter grammars (~3 MB) using --no-default-features. Feedback and ideas for additional language grammars are welcome.


r/madeinrust • • 1d ago

AI Assisted DNS Switcher: a small egui app that times DNS resolvers with a hand-built UDP query

Post image
1 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/madeinrust • • 1d ago

AI Assisted We built a free, open-source hub for indie teams: chat, voice, task boards and build distribution in one app

5 Upvotes

I recently moved my project P2 from Electron to pure Rust, and it's now open source (MIT). Sharing a few notes in case they help others considering GPUI outside of Zed:

- GPUI on Windows and macOS: I needed a few local patches (kept in `third_party/`), mainly around platform windowing. On macOS it renders through Metal with no extra work.

- Real-time + UI: a socket connection feeds a client-core crate, and views subscribe to entity updates. Keeping the network layer out of the UI crates made testing much easier.

- WebRTC calls in Rust with mesh topology, TURN credentials from the server and automatic ICE restarts.

- Content-defined chunking for game builds, so updates only download changed blocks.

- An in-game overlay: an off-screen GPUI renderer whose frames are composited by a C++ DLL inside the game (shared-memory IPC).

Workspace layout, crates and build instructions are in the README:

https://github.com/captainTvZx/P2

Happy to answer questions about GPUI in production, or the Electron → Rust migration.


r/madeinrust • • 1d ago

AI Assisted Character Customization

Thumbnail
youtu.be
0 Upvotes

r/madeinrust • • 1d ago

Majority AI Coded Whiteboard Tracker – A fast, open-source task whiteboard written in Rust (egui) with automatic 2×2 tiling and mind-map branches

Post image
12 Upvotes

Hi, I just released v0.1.0 of Whiteboard Tracker, an open-source desktop whiteboard for writing down and tracking tasks smoothly.

Built in the Swiss minimalist style (high-contrast calm white UI) using Rust and egui, the binary is under 5 MB and starts instantly.

### Key Features

Daily Profiles: Every day is its own profile. Create multiple profiles and carry unfinished tasks over to a new one.

Quick Entry & Automatic 2×2 Tiling: Type your day's tasks in one go and they are automatically laid out on the screen (up to 4 tasks per page, opening new pages as tasks grow).

Unlimited Mind-Map Branches: Break any task into smaller sub-tasks and infinite branches rendered as a clean mind map (with collapsible +N nodes).

Focus Mode: Click any task to expand it along with its branches.

Notes & Three Statuses: Attach notes to any task/branch and track progress across Active, Completed, and Cancelled states with automatic completion bars.

Index & Undo: Reorder tasks across pages, edit/delete from a global index, and undo actions (Ctrl+Z).

Local-First & Bilingual: Auto-saves locally with JSON export/import, plus full Arabic support with a geometrically mirrored RTL interface.

### Installation

Ready-made packages are available on the Releases page for Fedora (.rpm), Ubuntu/Debian (.deb), and Windows (.exe / .zip).

### Roadmap (v0.2.0)

Swiss Dark Mode

Cloud Backup (optional)

Direct integration with your own AI client

Screenshots: [https://imgur.com/a/dBPIX9q]

Source Code: https://github.com/octapus871/whiteboard-tracker

Download (v0.1.0): https://github.com/octapus871/whiteboard-tracker/releases/tag/v0.1.0

Feedback, bug reports, and feature ideas are very welcome!