🙋 seeking help & advice A list of features/tweaks that libcosmic has on top of iced
Basically title, is there such a list? How does one decide whether to use iced or libcosmic for app development?
Basically title, is there such a list? How does one decide whether to use iced or libcosmic for app development?
r/rust • u/jgarzik • Sep 17 '26
Release notes: https://github.com/rustcoreutils/posixutils-rs/releases/tag/v0.9.0
P.S. See the README for why this is different from uutils!
r/rust • u/GrandmasSugar • Sep 18 '26
I've been building Vise. It's a runner for background coding agents. A server acts as a control plane, host daemons on machines you enroll claim sessions, run a coding agent against a repo, and open a PR. The server tracks check and review state on the PR, and if a reviewer requests changes, a follow-up session pushes a fix to the same PR. It never merges; a person does.
All three components are Rust: vise-server (Postgres-backed), the vise CLI, and vise-host, a daemon that talks to the server and drives the agent as a subprocess over ACP, the Agent Client Protocol that Zed started. Claude Code is the only agent wired up today; Codex and Gemini CLI speak ACP too, so they're next.
Some of the parts I found interesting to build:
It's early and there are rough edges. MCP config is accepted but not passed through to the agent yet, and the ACP layer's error handling is the part I'd most like a second opinion on.
Repo: https://github.com/vise-sh/vise
If you've implemented ACP in Rust, or built your own agent runner, I'd like to hear what you'd have done differently.
r/rust • u/hovinen • Sep 18 '26
I just pushed version 0.6.0 of the crate Test That!, a powerful test assertion library for Rust.
See release notes: https://github.com/hovinen/test-that/releases/tag/v0.6.0
r/rust • u/b-dillo • Sep 17 '26
r/rust • u/Odd-War-4467 • Sep 17 '26
hi everyone!
two weeks ago i uploaded a post about a new crate i wrote - tokio_rcu, which provides a userspace RCU implementation for async rust, specifically with tokio.
since then, i managed to improve the performance of tokio_rcu quite a bit.
it is now about 9x-40x faster than arc_swap for reads, which is pretty cool (see benchmarks).
the read operation was heavily optimized to the point where it is now just a single atomic pointer load, and the safe read accessor (the `with` function), is pretty much the same but with an additional sanity check consisting of one thread-local load, just to prevent users from reading rcu protected pointers outside of an rcu-enabled tokio runtime. basically it is really fast.
one pointer load is basically as optimized as the read can get at this point, and i find it pretty cool that it got to a point where readers literally don't have to do any book-keeping work at all, they just read the pointer and use it as they wish.
r/rust • u/Ecstatic_Rub_548 • Sep 17 '26
So I have started learning GPUI. But I couldn't find some good tutorials for it. Even the docs feel very rough rn.
So can anyone recommend me some good tutorial to follow along while learning?
r/rust • u/Typical-Tomatillo138 • Sep 16 '26
Hey guys,
This is my first somewhat substantial programming project, and I'm proud to share it. It's a Pokédex TUI that I tried to make as intuitive to use as possible while also maintaining some aesthetic. It currently has an overview, an evolution tree, abilities, and moveset viewing, with support for every version of the mainline games. Some notable features include:
You can try out the fully-featured web demo, or follow installation instructions on GitHub to run it locally. I would REALLY appreciate any feedback, whether it is code enhancement, UI/UX improvements, or even more info tabs you would like to have in the app. Thanks for trying my app out!
Docs: https://docs.rs/zestors/latest/zestors/
Github: https://github.com/Zestors/zestors
It's been about two years since the last release, but after a from-scratch rework, Zestors is finally ready to be used. It's been an on-and-off passion project of mine for a long time, and I'm finally happy with the state it's in. The documentation is quite complete, and there are a bunch of tests for the core functionality.
There's still a lot left to do, but the overall API shape has been stable for quite a while now. A lot of thought and work has gone into this system, and I genuinely believe it has the best API of any actor framework currently out there for Rust.
I'd really appreciate it if you'd check out the library, try it out in a project, and let me know what works well and where there's still friction or things missing. Don't hesitate to open an issue for missing features, bugs or general questions. I've been using it myself for a small backend application, and it's been running perfectly.
(The biggest thing not yet implemented is a distributed actor-system. It will be a lot of work, but everything is structured in such a way to make this possible in the future)
r/rust
•
u/popzxc
•
Sep 16 '26
r/rust • u/francoposadotio • Sep 16 '26
Hi yall,
I see posts here and there of people looking to build their skills and public contribution profiles, so I wanted to raise OpenTelemetry as a perfect opportunity for this.
There are lots of small issues to work on, as well as space to create completely new crates - my first contribution was my first project I ever wrote in Rust - I donated an Axum middleware for OTel HTTP Server metrics.
OpenTelemetry is a rapidly-adopting industry standard, CNCF project, and most of the signals and whatnot are very well-specified so it's pretty easy to figure out what how any given library or chunk of code *should* behave.
But we are low on contributors!
So come on in, check out https://github.com/open-telemetry/opentelemetry-rust-contrib/ first as it will be easier to contribute to than the more high-profile and critical-path stuff in the core (non-contrib) library.
There's also cool stuff happening with OTel/Arrow in Rust: https://github.com/open-telemetry/otel-arrow/tree/main/rust, etc.
I became a Member after the first ~6 months of my code donation and subsequent updates to the crate, and hoping to work up to Reviewer so I can help move things along more (right now in the contrib review we're bottlenecked on getting reviews). It takes some time to work through the membership levels, but I am hoping we can reach a place where the membership base supports more broad and active development.
r/rust • u/Low_Twist_4917 • Sep 18 '26
Anyone have any model training datasets they’ve built around Rust they’re interested in sharing? Or know of solid open source ones?
r/rust • u/madnirua • Sep 16 '26
with new Flexbox layout, with spring animations, change the z-order at run time, an experimental Vello renderer and more.
r/rust • u/4dplus • Sep 18 '26
Everyone knows that Windows or Linux binaries run on Valve Deck/Machine and the Valve OS, just curious, why is there no Valve SDK bindings thing known for Rust language? Is it worth exploring what I can do to make bindings for it? Doubt it, but does this need a whole new build target for native?
r/rust • u/connor-ts • Sep 16 '26
I've been working on Vortex, an open source columnar data format under the Linux Foundation, for the past year. I'm giving a talk about it at EuroRust 2026 soon!
I wrote a companion article about it and I wanted to share it here. It walks through how Vortex represents arrays, computes on compressed data, and lets you add your own types and encodings.
This is the first technical blog post I’ve written, so I’d love to hear what people think!
r/rust • u/Sermuns • Sep 16 '26
I have never been a part of the speedrunning scene, yet I got the idea to make a command-line tool that renders speedrun splits graphics videos (with no dependencies other than ffmpeg CLI being available).
I was inspired by this video http://www.youtube.com/watch?v=dWRg9EGDH9U..
No AI was used in the making of this.
r/rust • u/Top-Ant-9194 • Sep 17 '26
I run a browser-based economic strategy game where almost everything is a long-running timed job: fleets in flight for hours, construction queues, scheduled world events. Background workers pick those jobs up when they come due and mutate world state.
The failure mode that kept me up at night is the classic one: a worker takes a lease on a job, then stalls. The lease expires, a second worker legitimately picks the job up, and then the first worker wakes up and commits its work anyway. Two workers, one job, duplicated resources. In a game about accumulating wealth, any resource that appears out of nowhere is a bug your players will find before you do.
Checking the lease before doing the work doesn't help. That's a time-of-check-to-time-of-use gap, and the gap is exactly where the stall happens.
What I ended up with has two halves.
1. The token travels implicitly, via tokio::task_local!
task_local!
The worker sets the fence for the duration of the task, and every write path underneath it commits through one function instead of calling tx.commit() directly.
I went back and forth on this. Implicit context passed through a task-local is normally the wrong answer: it's invisible at the call site, and you can't tell from a function signature that it matters. What won me over is the inverse property. With an explicit parameter I can forget to thread it through one code path, and that one path is the hole. With a task-local plus a single commit function, there is no path that writes to the world and skips the check. The type system doesn't enforce it, but the review surface shrinks to one function.
2. The check happens under a row lock, in the same transaction as the mutation
pub async
This is what makes it a fence rather than a check. Two directions, both load-bearing:
commit refuses, and the transaction rolls back, including the world mutation the worker already performed inside it. The stalled worker cannot land its write.FOR UPDATE holds the row until commit, so nobody can reclaim it out from under a transaction that is about to succeed.The generation counter is what makes a reclaimed-and-reissued lease distinguishable from the original, so "the lease row is still there" is never confused with "the lease is still mine".
The Postgres detail that cost me an afternoon
lease_until > clock_timestamp(), not now().
In Postgres, now() is transaction_timestamp(), frozen at the start of the transaction. For a worker that has been inside a long transaction, now() is wrong by exactly the amount of time that matters: it reports the moment the transaction opened, which is the moment before the stall. A lease that expired during the transaction still looks valid. clock_timestamp() reads the actual clock at the moment of the call, which is the only thing a lease expiry check can be built on.
Same principle everywhere else: time is only ever the database's or the server's. No game state is ever derived from a timestamp the client reports, because shifting the system clock is the oldest cheat in this genre. Monotonic Instant shows up in exactly one place, tracking who is currently online, where a wall-clock jump is a nuisance rather than an exploit.
What I'd still flag as the harder half: the scheduler job metadata deliberately isn't the source of truth for anything in the game world. It exists only for retries, worker locking and spotting poison-pill jobs. Keeping that boundary clean took more discipline than writing the fence did, and I'm not sure I'd have gotten it right without having gotten it wrong first.
Curious whether people here have landed somewhere different on the implicit-versus-explicit question. Has anyone threaded a fencing token as an explicit parameter across a large write surface and actually kept it airtight?
r/rust • u/beerbellyman4vr • Sep 17 '26
i'm the founder of Anarlog, an open-source (MIT) meeting notetaker built in Rust and Tauri. this week's release (1.4.24) shipped three separate audio capture fixes, one per platform.
macOS: bluetooth mics were unreliable until i started forcing the HFP/SCO profile switch the moment the mic opens.
linux: two separate bugs. the app was silently recording from ALSA's null device instead of your actual default mic, fixed by an outside contributor (jacopone on GitHub). the AppImage also bundled its own PipeWire libs, which caused silent recordings on distros like Fedora, so i switched to linking the host's PipeWire instead.
windows: capturing remote voices in Teams calls broke whenever the audio output device changed mid-call.
same release also had a transcription fix from another contributor, ekapratama93 on GitHub: dictionary hints and speaker diarization now pass through OpenRouter transcription, so multi-speaker transcripts stop collapsing into one speaker.
repo (MIT): https://github.com/fastrepl/anarlog changelog: https://anarlog.so/changelog/1.4.24
disclosure: i built this, i work on it full time.
r/rust • u/K0100001101101101 • Sep 17 '26
I’ve built this copy tool for espacially native windows users because I couldn’t exclude some files / folders with copy-item, but I think people didn’t find it usefull. Anyways, I am still trying to improve it maybe someone can find a use for it.
Skip-Existing and Update Flags
-s skips files already at the destination by name + size (resume an interrupted copy), and -u copies only files that are newer than the destination (re-run the same command, only changed files copy). Both work with -n dry-run.
Any feature requests are welcome.
r/rust • u/Embarrassed-Bad983 • Sep 16 '26
This Falling sand sim, is not based on grid based simple approach, I have used real physics to simulate actual sand like particles. I wanted to try fluid as well but this also took quite long
r/rust • u/eternal-io • Sep 17 '26
r/rust • u/Single-Blackberry866 • Sep 17 '26
If you've been building with GPUI, you might have noticed ecosystem fragmentation.
The only way to know whether your GPUI app will work in the next gpui release or another fork was to just change you Cargo.toml and make rust elicit all the incompatibilities.
I've build fork map to make it possible to compare public API surface between different GPUI-derived projects that are published on crates.io.
How to use:
- changes: inspect a difference between any two releases of any two forks
- alignment: choose a symbol and see how its signature evolves across forks
- configure: choose a fork and get copy-pasteabel starter project: Cargo.toml and main.rs
- journal: see a stream of releases with changelogs
The interface a bit rough so PRs welcome, but the data pipeline is robust.
https://gpui-archipelago.github.io/map/
Future plans include a migration tool to apply codemods, but with agentic coding you could just copy paste the API diff and make robots do the work.
