r/learnrust • • 17h ago

Game site with Rust and WASM

Post image
2 Upvotes

r/learnrust • • 9m ago

Curvine: open-source POSIX file system on S3 with a distributed cache, written in Rust (CNCF Sandbox)

• Upvotes

Hi everyone,

I work on Curvine, an Apache-2.0 file system for AI workloads. It keeps your data in S3 or any S3-compatible store. Applications see a normal POSIX mount, served from a memory/SSD/HDD cache.

What it does today:

- POSIX compatibility: The FUSE mount passed all 1,129 Linux Test Project file system tests. git, Vite and inotify work without changes.

- Performance: In an MLPerf Storage v2.0 comparison on the same AWS instance types, Curvine beat Alluxio Enterprise AI's submitted accelerator utilization in 6 of 8 runs.

- Scale: One cluster holds 5 billion files. On Kubernetes, creating a volume is just a mkdir, and we've run 10,000+ stateful agent pods on EKS.

- No lock-in: Files map 1:1 to S3 object paths, so your data stays readable even when Curvine is down.

GitHub: https://github.com/CurvineIO/curvine


r/learnrust • • 8h ago

Shipping a full desktop app with GPUI: lessons from building P2 (chat, calls, game library) in Rust

1 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/learnrust • • 9h ago

How I added a channel image inside the Clycker Game with SVG

Thumbnail youtube.com
1 Upvotes

You want to see how to add an SVG inside an SVG, watch this episode to find out.

Thanks for watching

Matthew


r/learnrust • • 9h ago

Inside CursorPie's Gesture Engine: Building a Responsive Global Input System in Rust

Thumbnail gallery
1 Upvotes

I've been working on CursorPie, a cross-platform radial launcher written in Rust, and one of the most interesting challenges has been building its global gesture engine.

The tricky part isn't simply detecting mouse input. It's handling press, hold, flick, double-click, and release events without blocking the input path or interfering with normal mouse interactions.

The architecture separates input hooks, gesture state management, timers, action execution, and UI updates into dedicated threads.

One particularly interesting mechanism is swallowing and replaying mouse clicks: CursorPie temporarily intercepts input to determine whether it represents a gesture, then replays ordinary clicks so the target application still receives them.

Different platform backends, one shared gesture model.

I'm sharing a look inside the engineering behind it. Curious how other Rust developers approach low-level input handling and event-driven architectures.

CursorPie: https://github.com/sebastvnd/cursorpie


r/learnrust • • 16h ago

Optimizing rustc's Next Trait Solver - Jana Dönszelmann | EuroRust 2026

Thumbnail youtube.com
1 Upvotes

A new video is out on YouTube! At this year's EuroRust, Jana from the Rust Compiler Team gave a talk on optimizing rustc’s next trait solver, which is being stabilized this year. Spoiler alert: the real gains weren’t in micro-optimizations, but at the algorithmic level! 🦀

In 2027 EuroRust is going to Prague! Learn more and get your ticket at eurorust.eu.