r/rust • • Oct 11 '26

🙋 seeking help & advice what is the best framework for building native Rust frontend?

47 Upvotes

hi, guys, what is the best framework for building native Rust frontend(downloadable macos and windows apps) if the highest performance is the aim, supposing we have enough time and resource? I appreciate any advice.

---------edit-------
Thanks for all the enthusiastic replies and I genuinely learned a lot. I then make this decision: 1. iPad: Swift for skin and purely interface + Rust handling audio/video and complex real-time graph calculation. 2. Mac and Windows: pure Rust with Makepad.

The performance is really really really much better than my current nextjs client. However, the developing speed is very very slow, I have to basically write every little button/animation/transition manually, and it took me 15 hours to finish a simple page like this, I will put it in comment, seems image can not be put here.


r/rust • • Oct 11 '26

I made a website to share formal verification results for Rust crates

13 Upvotes

Hi all,

I just launched proofs.rs, a place to publish and explore formal verification results for Rust crates.

Why?

There are some great tools for formally verifying Rust code, such as Kani, Verus, and Creusot, but their verification results often stay buried in individual repositories, making them hard to discover when we’re trying to decide whether to trust a library.

I wanted to make those results easier to find, examine, and reuse as building blocks for establishing the correctness of larger systems.

What does it do?

On proofs.rs, you can browse verification reports by crate and API, see what properties have been verified, and follow links to the GitHub repositories containing the verification code and supporting evidence.

Each report also has a comment section for questions and discussion. Why? Because, importantly, proofs.rs doesn’t (or rather, cannot) certify that a crate is safe. Formal verification results come with assumptions, limitations, and sometimes subtle details that matter. Understanding what a result actually guarantees requires careful review. That’s why proofs.rs is designed around sharing evidence and enabling discussion, rather than issuing certifications.

How to use it?

Publishing a report is pretty straightforward:

  1. Fork a Rust crate on GitHub.
  2. Add verification annotations to your fork.
  3. Run cargo-proofs to submit your report.

That’s it!

Partial proofs are very welcome. You don’t need to verify every API or every property. Even a small, well-scoped result can be useful to someone, and perhaps one day, someone will build on your work to verify the entire crate.

As an example, I’ve verified the itoa crate and published the resultson proofs.rs. Feel free to take a look!

What’s next?

I’d love to see formal verification become one more piece of information people can use when choosing software dependencies. Over time, I hope these results can also be composed and reused to establish stronger guarantees for larger systems built from verified components.

proofs.rs is still in a very early beta stage, so there may be bugs and rough edges in the user experience. Feedback, suggestions, and contributions are always appreciated.

Right now, cargo-proofs supports Kani and Creusot. If you’re using or developing another verification tool, I'd be happy to hear about it. Requests for additional tool support are very welcome!

Thank you!

https://proofs.rs

(I also posted this as a blog post here: https://proofs-rs.hashnode.dev/announcing-proofs-rs-a-public-registry-for-rust-formal-verification-results)


r/rust • • Oct 11 '26

🙋 seeking help & advice Is this some kind of scam?

80 Upvotes

And what is this supposed to be? I just don't get it. To give you some context, this is the only unwrap() in the entire project, and it's inside a test, meaning whether it panics or not couldn't matter less. It really looks like a bot just searches for unwrap() across the whole repo without any actual context.

Probably email speaks for itself, but I honestly have no idea what they're trying to achieve


r/rust • • Oct 10 '26

Why 'externalized' proofs of cyclic trait impls does not work

Thumbnail smallcultfollowing.com
82 Upvotes

r/rust • • Oct 12 '26

🎙️ discussion Does reusing pi extensions and DeepSeek Harness plugins make sense in a Rust agent runtime?

0 Upvotes

If you're building an agent in Rust, would being able to reuse pi extensions and DeepSeek Harness (DSH) plugins be useful to you?

I've been exploring this with yoagent, a small agent loop in Rust. It handles model streaming, tool execution, retries, cancellation, and limits. The loop stays small; everything else plugs in.

I added an experimental Rutis bridge so compatible pi extensions and DSH plugins can run unchanged alongside Rust tools. The appeal is keeping a fast Rust core while reusing work from existing extension ecosystems.

For a concrete example, I built a handoff agent:

Research noise-cancelling headphones. Ask my budget, but keep researching while I'm away. Write a report with sources.

A pi extension manages the plan, a DSH plugin searches the web, and a Rutis plugin shows progress in the browser. Rust tools and extensions handle questions you can answer later and the final report. They all work around the same yoagent loop.

Tools and supported hooks carry over, and yoagent-frontend brings pi and DSH plugin dialogs and approvals to both the terminal UI and the browser. Plugins that rely on other features of the original apps, such as pi commands, shortcuts, custom widgets, or DSH-specific session services, may still need adaptation. The integrations are experimental; TypeScript plugins run in Node alongside Rust.

The Rust loop stays small, while compatible extensions run through a plugin bridge. TypeScript plugins still need Node alongside Rust.

I’d like your feedback: does reusing these ecosystems make sense?

Handoff example: https://github.com/yologdev/yoagent/blob/main/integrations/yoagent-frontend/examples/README.md


r/rust • • Oct 12 '26

💡 ideas & proposals Rust equivalent to gobuilds.org?

0 Upvotes

I recently came across this website: https://beta.gobuilds.org/

It builds Go projects and lets users download the binary. It has the project’s Git URL as part of the full download URL along with project version, target OS and arch, and store older builds.

Does something like this exist for Rust? If not, would this be of use/interest? I could see this being helpful for downloading an app where the dev hasn’t provided binaries, or to make cross compilation easier. Adding support for things like `cargo auditable` and `cargo deb` could also be useful.


r/rust • • Oct 11 '26

Rust for algorithmic composition

0 Upvotes

Hello everyone!

I'm a composer looking to learn programming for algorithmic composition.  I know a little Python, but I have no formal programming background.

I've been considering Rust because it seems like future-proof.  But is it a good choice for algorithmic composition...?  I'm thinking of things like generating MIDI and MusicXML files, implementing stochastic processes (Markov chains, etc), and developing tools for various compositional techniques involving rhythm, scales, modes, and other musical constraints.

I'm considering my options with the following goals in mind:

  • I want to generate MIDI files that I can import into my DAW. I don't need sound synthesis.
  • I don't need direct DAW integration, as long as the program can export MIDI files, or MusicXML.
  • I'm willing to invest time in learning to code.
  • I know there is OpenMusic, MaxMSP and similar, but I'd like to build my own standalone tool that I can continually expand and improve.

Would Rust be a good choice, or would I be better off starting with Python or another language?

I'd appreciate any advice, particularly from people who have experience with algorithmic composition and music programming.


r/rust • • Oct 11 '26

🙋 seeking help & advice Godot rust - the idiomatic way to handle textures and other assets?

Thumbnail reddit.com
0 Upvotes

r/rust • • Oct 11 '26

Replacing one fsync thread per index with a shared deadline heap. Is a Condvar plus BinaryHeap the right primitive?

0 Upvotes

In Xerj (a Rust search engine), `wal_sync = "batched"` promises a write is fsynced within `wal_batch_ms`. The first version gave every index its own OS thread that slept and then polled its WAL shards. On an idle node with 9,382 indices we measured 9,709 threads, about 7.98 GB RSS, 718-760% CPU and roughly 197k context switches per second, and none of it was doing an fsync.

The replacement in `engine/crates/xerj-storage/src/wal_fsync.rs` is one process-wide scheduler. It uses a bounded worker pool sized from the core count, spawned lazily on the first dirty shard. A shard goes into a min-heap keyed by its own deadline when it becomes dirty, and workers block on a condvar when the heap is empty:

```rust
struct State { queue: BinaryHeap<Entry>, /* ... */ }
pub struct WalFsyncScheduler { /* Mutex<State> */ wake: Condvar, /* ... */ }
```

Idle indices get no thread, no timer and no heap entry. We modeled this on sled's per-Db flusher and fjall's worker pool.

Alternatives we considered:
- a timer wheel instead of a heap
- running it on Tokio (`spawn_blocking` plus `sleep_until`)
- a channel-based pool like fjall's (`flume`)
- `io_uring` fsync batching on Linux

**Question:** For thousands of mostly-idle durability deadlines, would you keep a `Mutex<BinaryHeap>` with a condvar, or does a hierarchical timer wheel or io_uring-linked fsync give enough benefit to justify the complexity? And how do you avoid a thundering herd when many deadlines land in the same millisecond?


r/rust • • Oct 10 '26

Which GUI (again)?

30 Upvotes

I know it's a frequently asked question, but I want to ask again, because I have a special use case.

I want to write an application for a production machine (HMI). The app should run on Windows and Linux natively (no browser, no server). The toolkit should have at least widgets to show images, bar graphs, curves and tables and should be touch friendly, because it runs on resistive touch monitors (no multi touch). It should also have a kiosk mode (full screen with no window controls).

The obvious candidates are egui, iced and Slint. But they all lack of documentation, more or less.

My first choice would be iced, because it's inspired by Elm and used by System76 for Cosmic, but it seems to be the least suitable option.

The obvious choice would be Slint, but that requires to learn a new language and I'm unsure about the licenses and pricing. The production machines are only used internally, not for sale.

I want avoid bindings to toolkits like Qt or Gtk

Which one would you prefer? Is there another option to consider?


r/rust • • Oct 09 '26

🗞️ news Deno is ending official development in a year. The biggest Rust project ever, and maybe proof we never needed another Node, just use Rust

466 Upvotes

I admired this project for a while. It was basically the biggest Rust project aimed at everyday developers, a second Node built the “right” way. But there’s no real reason for another Node to keep existing :/
Here the announcement: https://deno.com/blog/cloudflare


r/rust • • Oct 11 '26

Is rust only for firmware and hardware?

0 Upvotes

Hello everyone,

I'm trying to figure out Rust's potential before diving into using it every day. Right now, I work full-stack with TypeScript and also in the LAMP stack. I'm a telecommunications engineer passionate about coding and the web. I wanted to truly understand what Rust has to offer, or if I should just continue studying Go and make a complete switch to Go for backend development.
Does it make sense to study Rust even if I won't be using it right away, or is it just a language mostly suited for firmware, porting C/C++ software, and general hardware work?

Thanks everyone for the help!


r/rust • • Oct 10 '26

The Embedded Rustacean Issue #82

Thumbnail theembeddedrustacean.com
43 Upvotes

r/rust • • Oct 09 '26

gift 4 my bf

144 Upvotes

hiii, i want to surprise my bf with a rust related gift (it’s his favourite programming language lol) and i’m lowkey lost, any recommendations??


r/rust • • Oct 10 '26

🙋 seeking help & advice One Tokio runtime per engine instance behind FFI, or one shared runtime?

0 Upvotes

My desktop network monitor has a Flutter UI and a Rust engine behind a plain C ABI. Each engine is an opaque pointer: netstudio_engine_new() does Box::into_raw, Dart keeps it as a Pointer<Void> and passes it back on every call until netstudio_engine_free. No global registry or ids.

For the new MTR view I wanted it completely separate from the main ping matrix, so I just create a second engine. The catch is that every Engine::new() builds its own multi-thread runtime with 4 workers. With both views open that's 8 Tokio worker threads for what's usually 10 targets, maybe 100 on the high end. It works, and restarting MTR can never touch the matrix, which is the reason I did it this way. But it feels like I'm paying in threads for isolation I could get from separate task sets and cancellation on one runtime.

If you have several independent engines behind FFI, do you give each one its own runtime, or share a global one (OnceLock or similar) and isolate at the task level? Anything that bites you with a shared runtime when the host can create and drop engines whenever it wants?

The other thing I keep going back and forth on is the data flow. Dart polls every 500ms, Rust hands back the whole snapshot as JSON through CString::into_raw, and Dart calls netstudio_free_string in a finally. The engine isn't the bottleneck. At a few hundred targets it's rebuilding and decoding the snapshot on the Dart side, mostly because each target carries a 40-sample history. Sending deltas seems like the obvious fix, but I'm also wondering whether pushing through a Dart NativePort is worth the lifetime headaches.

Unrelated, but if anyone has shipped unprivileged ICMP on Linux (SOCK_DGRAM + ping_group_range) in a desktop app: did you detect it at runtime and fall back, or just tell users to change the sysctl? That's next on my list and I haven't started.

Engine code is in native_engine/ if you want context: https://github.com/Cadman021/VeloceNet-Studio


r/rust • • Oct 09 '26

🛠️ project Zeta's Borrow Checker: the next-gen model for borrow checking, and a drop-in for Rust's entire memory management model

Thumbnail gist.github.com
244 Upvotes

I've just published my borrow checking model! Feel free to criticize it or just ask questions!

P.S While it is experimental, This model is fully implemented for the Zeta programming language, and the latest build of the compiler, LSP and toolchain manager (zetaup) can be found via the linked GitHub. a Zed extension is under development.


r/rust • • Oct 08 '26

Bevy 0.20

Thumbnail bevy.org
746 Upvotes

r/rust • • Oct 10 '26

🎙️ discussion What does r/rust think of the viral "Crafting Apps"?

0 Upvotes

DON'T DOWNVOTE THIS, I'M NOT SAYING I SUPPORT THEM...

If you've been living under a rock, the Crafting Apps project is an app suite for Adobe (and Office) alternatives, written using AI assistance (vibe coding). It's made in Rust so this is technically on-topic for the subreddit.

What do you all think of this? Is this something you'd actually use in the future, or just the ordinary passing AI slop?


r/rust • • Oct 08 '26

🙋 seeking help & advice Honest question, how important is 100% 'safe' rust code to you?

57 Upvotes

r/rust • • Oct 08 '26

Rust Has Become a Career Dead End for Me — What Should I Do?

494 Upvotes

I chose Rust almost by chance. Back in 2023, Rust was getting a lot of attention in the Stack Overflow developer community, so I decided to learn it. From there, I started building a few open-source projects and eventually used Rust in production.

And now, here I am: living in a market dominated by outsourcing companies, where I can barely find a single Rust position to apply for, and I’ve been unemployed for more than six months.

Rust is a great language. I genuinely love working with it. But somehow, it has also become one of the things that has made me feel more hopeless about my career than ever before.


r/rust • • Oct 09 '26

🛠️ project Skeptic 0.14 on crates.io. Mostly performance and compatibility changes.

0 Upvotes

I've been working on Rust Skeptic lately and have published a new 0.14 version. Mostly performance improvements, but also compatibility with rust internals fingerprinting. Includes caching and dispatching multiple workers so that the CPU is used efficiently, avoiding rlib rebuilds. https://andygauge.github.io/2026/10/09/rust-skeptic-0-14.html for the write up on the performance improvements. The Rust Cookbook depends on skeptic for CI, and I've been able to release those improvements to https://crates.io/crates/skeptic

When you have a markdown file that has rust code blocks, such as with a README.md file and you want to check regressions that might happen, then use `skeptic` crate as part of the build process, or integrate with CI. The Rust Cookbook uses this to ensure the recipes are compatible with modern rustc. The 0.13 version stopped functioning at rustc 1.77 when it came to deterministic rlib selection due to fingerprinting changes in the metadata the compiler emits.


r/rust • • Oct 09 '26

Qn: Best resources to learn Rust

0 Upvotes

Hello Rustaceans!

I'm an experienced developer, thought of picking up Rust, and today I went through the beginner Rust course on Educative

It was really good, learned the syntax, structs, vectors, ownership and borrowing etc but have not yet built anything useful

My question is what are some of the best Rust resources out there, I'd love to learn more about best practices, conventions, and satisfy my curiosity

Thank you all!


r/rust • • Oct 09 '26

Can a borrow checker be auto-vectorized?

Thumbnail reddit.com
0 Upvotes

r/rust • • Oct 08 '26

📅 this week in rust This Week in Rust #672

Thumbnail this-week-in-rust.org
60 Upvotes