r/rust • • 19h ago

Optimizing rustc's next trail solver

Thumbnail donsz.nl
170 Upvotes

The next rust trait solver, a large subsystem of the rust compiler that we've been trying to replace, will finally land in rust 1.102.0. In the last stages, before stabilizing it, its performance was a major blocker. But what is "a trait solver"? And why is its performance a problem? My goal for this blog post is to answer those questions in a way where you don't need any prior knowledge. I think discussions of the trait solver can quickly become quite involved, and daunting. So here, we'll start from the very basics!

This is a writeup of my eurorust 2026 talk of the same name, that I gave on October 15, 2026


r/rust • • 22h ago

🧠 educational Miscompilation in Rust 1.97

60 Upvotes

I reported a miscompilation in Rust 1.97 back in July. In this presentation, I went through the details of the bug and the investigation as it unfolded in the Zulip chat with the Rust team, and shared my takeaways and conclusions.

https://youtu.be/-dNsUB7QRk4

Edit: link to the Zulip chat #t-compiler > Miscompilation in 1.97.0 with new Option::None discrimi... @ 💬


r/rust • • 12h ago

List of ~200 companies hiring (or that have hired) Rust engineers

43 Upvotes

Hey, I'm Georgios from getarustjob.com. I run a Rust job board, and after listing a few hundred Rust roles I put together a clean list of the companies behind them.

If you're job hunting, switching into Rust, or just curious who's investing in it, this should save you some digging. Recruiters / staffing agencies are removed so it's only actual companies.

At a glance

  • Cloud / infra / developer tools: 52 companies (27%)
  • AI / ML / data / quantum: 33 companies (17%)
  • Crypto / web3 / trading: 30 companies (16%)
  • Defense / aerospace / robotics: 26 companies (13%)
  • Consumer / media / e-commerce / other: 20 companies (10%)
  • Security / identity / privacy: 17 companies (9%)
  • Finance / banking / payments: 9 companies (5%)
  • Automotive / industrial / hardware: 6 companies (3%)
  • Cloud + AI + crypto = 60% of companies
  • Most listings by company: Kraken (12), Anduril (9), then Radar Labs / Zscaler (4), then several at 3 (Supabase, IonQ, ParadeDB, QuEra, Anthropic, Polars, xAI, Alignerr, Fab2, Massive, Revel, Palantir, Citi, Dassault…)
IndustryCompaniesShare
Cloud / infra / developer tools5227%
AI / ML / data / quantum3317%
Crypto / web3 / trading3016%
Defense / aerospace / robotics2613%
Consumer / media / e-commerce / other2010%
Security / identity / privacy179%
Finance / banking / payments95%
Automotive / industrial / hardware63%

Industries below are ordered by company count; inside each group, companies are ordered by total Rust roles I've listed.


Cloud / infra / developer tools (52 companies · 27%)

  • Radar Labs (4 listings)
  • Supabase (3 listings)
  • Fab2 (3 listings)
  • Massive (3 listings)
  • Revel (3 listings)
  • Intelic (2 listings)
  • Loci (2 listings)
  • MetalBear (2 listings)
  • Microsoft (2 listings)
  • Qumulo (2 listings)
  • Siemens (2 listings)
  • Realm (2 listings)
  • Amazon Web Services (1 listing)
  • CircuitHub (1 listing)
  • Cloudflare (1 listing)
  • Deepslate (1 listing)
  • GitLab (1 listing)
  • Grid Dynamics (1 listing)
  • Huawei Research Center Germany (1 listing)
  • JUXT (1 listing)
  • Kake (1 listing)
  • Kaseya (1 listing)
  • Mainmatter (1 listing)
  • Materna (1 listing)
  • Minimal (1 listing)
  • MIRA (1 listing)
  • Mozilla (1 listing)
  • Neo (1 listing)
  • NordicWorkflow (1 listing)
  • Prima (1 listing)
  • Prospecta (1 listing)
  • Quicknode (1 listing)
  • Restate (1 listing)
  • Sentry (1 listing)
  • Serokell (1 listing)
  • STEINER-HITECH (1 listing)
  • Technology Innovation Institute (1 listing)
  • Tempo (1 listing)
  • Twin Labs (1 listing)
  • UMATR (1 listing)
  • Voluntas (1 listing)
  • Workato (1 listing)
  • Zed (1 listing)
  • Ditto (1 listing)
  • Enhance (1 listing)
  • Everforth Apex (1 listing)
  • Full Spectrum (1 listing)
  • MongoDB (1 listing)
  • N-able (1 listing)
  • Poppi Technologies (1 listing)
  • Termius (1 listing)
  • Wasmer (1 listing)

AI / ML / data / quantum (33 companies · 17%)

  • IonQ (3 listings)
  • ParadeDB (3 listings)
  • QuEra Computing (3 listings)
  • webAI (3 listings)
  • Anthropic (3 listings)
  • Polars (3 listings)
  • xAI (3 listings)
  • Alignerr (3 listings)
  • Google (2 listings)
  • Oxford Ionics (2 listings)
  • Tensordyne (2 listings)
  • Aftershoot (1 listing)
  • Cognite (1 listing)
  • CommonAI (1 listing)
  • Datamint (1 listing)
  • Estuary (1 listing)
  • Fivetran (1 listing)
  • Harmattan AI (1 listing)
  • Modal (1 listing)
  • Nebius (1 listing)
  • NVIDIA (1 listing)
  • PsiQuantum (1 listing)
  • Quantum - QTR (1 listing)
  • Runpod (1 listing)
  • SolveAI (1 listing)
  • Veo Technologies (1 listing)
  • Vermillion Analytics (1 listing)
  • VuNet Systems (1 listing)
  • LiteLLM (1 listing)
  • Machinify (1 listing)
  • Neurelo (1 listing)
  • Satalia (1 listing)
  • yeet (1 listing)

Crypto / web3 / trading (30 companies · 16%)

  • Kraken (12 listings)
  • Keyrock (3 listings)
  • Braiins (2 listings)
  • Helius (2 listings)
  • Binance (1 listing)
  • Blockrotate (1 listing)
  • BlockTech (1 listing)
  • Chainlink Labs (1 listing)
  • DEX Labs (1 listing)
  • Dune (1 listing)
  • Easygo (1 listing)
  • Flowdesk (1 listing)
  • Mysten Labs (1 listing)
  • No Limit Nodes (1 listing)
  • OneChronos (1 listing)
  • Payward (1 listing)
  • Polygon.io (1 listing)
  • Stake Engine (1 listing)
  • Upstox (1 listing)
  • Verse (1 listing)
  • CoW DAO (1 listing)
  • MoonPay (1 listing)
  • NinjaTrader (1 listing)
  • Ondo Finance (1 listing)
  • Partisia Blockchain Applications (1 listing)
  • Phantasma Labs (1 listing)
  • Prex (1 listing)
  • Rain (1 listing)
  • Sentz (1 listing)
  • Uniswap Labs (1 listing)

Defense / aerospace / robotics (26 companies · 13%)

  • Anduril (9 listings)
  • Palantir (3 listings)
  • Neros Technologies (2 listings)
  • Helsing (2 listings)
  • Axon (1 listing)
  • CHAOS Industries (1 listing)
  • General Dynamics Mission Systems (1 listing)
  • Humble Robotics (1 listing)
  • Intramotev (1 listing)
  • Mind Robotics (1 listing)
  • Oceaneering (1 listing)
  • OSARO (1 listing)
  • Parry Labs (1 listing)
  • Quantum-Systems (1 listing)
  • SpaceXSI (1 listing)
  • Stoke Space (1 listing)
  • Thales (1 listing)
  • Thales Norway (1 listing)
  • Trusted Space (1 listing)
  • Umbra (1 listing)
  • Air Space Intelligence (1 listing)
  • BWI GmbH (1 listing)
  • Cambridge Aerospace (1 listing)
  • Defense Unicorns (1 listing)
  • General Dynamics UK (1 listing)
  • Watney Robotics (1 listing)

Consumer / media / e-commerce / other (20 companies · 10%)

  • Matic (2 listings)
  • 1501 (1 listing)
  • ArtCraft (1 listing)
  • Cardog (1 listing)
  • Discord (1 listing)
  • DoorDash (1 listing)
  • Komodo Health (1 listing)
  • Magnite (1 listing)
  • Paradromics (1 listing)
  • Postscript (1 listing)
  • QTPILOT (1 listing)
  • Veepee (1 listing)
  • Walmart Global Tech India (1 listing)
  • Anza (1 listing)
  • Arionkoder (1 listing)
  • Carv (1 listing)
  • Cube Group (1 listing)
  • Darley Technologies (1 listing)
  • Layup (1 listing)
  • Tubi (1 listing)

Security / identity / privacy (17 companies · 9%)

  • Zscaler (4 listings)
  • OPSWAT (2 listings)
  • Proton (2 listings)
  • 1Password (2 listings)
  • Cyberus Technology (1 listing)
  • Cylake (1 listing)
  • Scanner (1 listing)
  • ThreatMark (1 listing)
  • Threema (1 listing)
  • Vietnam National Cyber Security Technology (1 listing)
  • Aembit (1 listing)
  • Arkion Identity Systems (1 listing)
  • Dragos (1 listing)
  • Fortanix (1 listing)
  • IDEMIA (1 listing)
  • Lastwall (1 listing)
  • National Digital Trust Company (1 listing)

Finance / banking / payments (9 companies · 5%)

  • Citi (3 listings)
  • Abacus Group (1 listing)
  • Avaloq (1 listing)
  • BlackRock (1 listing)
  • Fidelity Investments (1 listing)
  • Longbridge (1 listing)
  • NCR Atleos (1 listing)
  • Nasdaq (1 listing)
  • Scalable Capital (1 listing)

Automotive / industrial / hardware (6 companies · 3%)

  • Dassault Systèmes (3 listings)
  • Rivian and Volkswagen Group Technologies (2 listings)
  • arculus (1 listing)
  • Flyscan Systems (1 listing)
  • Gentherm (1 listing)
  • Frequenz (1 listing)

~193 companies · 269 listings.

Same list with country / remote filters and who's hiring right now: getarustjob.com/companies-using-rust

If something looks wrong or a company shouldn't be here, tell me and I'll fix it.


r/rust • • 21h ago

🛠️ project A new name for ntpd-rs: Statime - Trifecta Tech Foundation

Thumbnail trifectatech.org
27 Upvotes

Interestingly this has nothing to do with https://fr.wikipedia.org/wiki/Jason_Statham


r/rust • • 15h ago

Why does tokio mirror certain parts of the futures crate?

21 Upvotes

Take the AsyncRead trait for example. Both tokio and futures is based around the poll_read method but they take a different buffer type and return a different error type. Why? Was the futures version unsuitable?


r/rust • • 12h ago

🛠️ project Moving a terminal app from Tauri + React to GPUI - the numbers and the ugly parts

20 Upvotes

I moved muxflow* from Tauri + React to GPUI. The desktop app is now 100% Rust.

Results, before any optimization of the GPUI version:

- Idle memory: 417 MB → 98 MB (76.5% lower)

- Idle CPU: 3.5% → 1.4%

- Time to first terminal prompt: 832 → 230 ms cold, 785 → 157 ms warm

- Typing latency p95: 47.4 → 31.2 ms

To be fair, muxflow was thin to begin with, so the raw numbers are a few tens of megabytes/ms.

This migration would be a strong no-go without LLMs. Pre-LLM the cost would be huge! Writing the whole UI in Rust vs the familiar React? But with LLMs, the cost goes away to just some tokens. And with that I get:

  1. Much better performance
  2. A codebase that is 100% Rust (beyond mobile)
  3. No finicky Tauri rendering differences between Mac and Linux

The ugly parts:

- The GPUI third-party crate ecosystem is very niche compared to React. With Tauri I used CodeMirror. With GPUI I couldn't use the Zed crates since they're GPL and muxflow is MIT, so I wrote my own lightweight markdown WYSIWYG and code editor.

- Build times. It's hard to run many agents in parallel, as parallel builds and tests put heavy I/O pressure on the machine. I haven't tried optimizing it yet.

Write-up with more detail: https://galvered.com/blog/muxflow-gpui-migration/

Curious whether others hit the same crate gap, and what you used for text editing in GPUI.

* an app I'm building for personal use open source, MIT, runs coding agents in tmux across remote machines


r/rust • • 38m ago

📸 media Qt Bindings compared: CXX-Qt vs Qt Bridge

Post image
18 Upvotes

Hey there!

I'm one of the developers of Qt Bridge (https://crates.io/crates/qtbridge). One of the questions we receive most often (aside from licensing) is what makes Qt Bridge different from CXX-Qt.

This takes more than a couple of lines to explain and is best illustrated with an example, so I wrote a blog post about it: https://www.qt.io/blog/rust-bindings-cxx-qt-vs-qt-bridge

We hope it demonstrates the strengths and value of both crates. As always, let us know what you think!


r/rust • • 15h ago

🙋 seeking help & advice Should I add support for Rust?

13 Upvotes

Hi, I am the developer of Leadwerks Game Engine. I'm looking for a mid-difficulty language, somewhere in between C++ and Lua. C# would work nicely, but the lag spikes caused by the garbage collection seem like it ruins the language for realtime 3D games, especially for VR. I'm not that familiar with Rust but I hear a lot of good things about it, and it appears to use shared pointers, which eliminates the performance problems full garbage collection would introduce.

Support for Rust can be added by piping all the commands through a C interface and writing some structure/class code on the Rust side that wraps everything up nicely for the end user.

I'm aware of the open-source Bevy 3D engine, but it's lacking a visual editor. Leadwerks 5 has a very capable level editor / visual designer that's been refined over years with lots of user feedback. To be clear, Leadwerks is closed-source commercial software (with a low price point and no royalties).

Do you think Rust would be a good match for what we are looking for in a language? Would adding support for the Rust programming language would be of interest to developers here? Please let me know your thoughts and if you have any questions.


r/rust • • 6h ago

🙋 seeking help & advice Considering Rust for backend services handling 10k+ req/s - real experiences with dev velocity?

7 Upvotes

I'm evaluating languages for a new internal backend service that needs to sustain high throughput with strict latency requirements. Rust keeps coming up because of its performance profile and lack of GC pauses, but I'm curious how it actually plays out in practice for teams.

Specifically:
- How much slower is initial development compared to something like Go or Kotlin when you have to fight the borrow checker on complex request/response flows?
- Once the core logic is in place, do you see meaningful maintenance wins from the type system (fewer runtime surprises, easier refactors)?
- Any gotchas with common patterns like connection pooling, structured concurrency, or observability that eat into the perf advantage?

Not looking for "Rust is the best" takes

- more interested in concrete tradeoffs people have measured on similar workloads. If you've shipped something in this range, what surprised you (good or bad)?


r/rust • • 3h ago

Advanced Projects in Networking with Tokio

6 Upvotes

Hey everyone,

I've been learning Rust and recently started exploring concurrency and asynchronous programming with Tokio. Im familiar with the fundamentals of ownership, lifetimes, channels, synchronization primitives, and task spawning.

I want to deepen my understanding of Tokio by building a non trivial networking project rather than just following tutorials or reading documentation.

What networking projects would you recommend for someone looking to develop a deeper, practical understanding of asynchronous Rust? I would also love to hear about projects youve personally built that helped you understand these concepts better.


r/rust • • 13h ago

Suggestions for Rust Course

4 Upvotes

I am currently learning Rust programming language and want to enroll into a course for better guidance and projects . Someone help me choose the best available course on Udemy.


r/rust • • 1h ago

🛠️ project Made a Rust crate for running AoC solutions

0 Upvotes

I’ve been doing Advent of Code for a while, and last year (I forgot to make a post...) I decided to make a little Rust crate to help run my solutions more easily. It’s called [**aoc-star**](https://github.com/Yag000/aoc-star).

You just add a`#[star(day = X, part = X)]` attribute to your functions, and it lets you run them from the command line. It can also fetch inputs and submit answers if you set it up with your session cookie.

I've found that it removes a bit of the tedious part of the challenge, hope that it can be useful to some. There is more info on the README.


r/rust • • 17h ago

How convert precossesor tera to askama ?

0 Upvotes

Hello , i'm dev of runique a framework web in rust , and now , i'm in a time of consolidate a source code.

For a futur , i would like gave a choice of engine template.

Now, runique use tera, i have add a few preproceror for limited a boilerplat , and after a little research, i learn it’s complicated.

So i came to you for advice , have you a recommandation ?

Sorry for my english, i'm french


r/rust • • 2h ago

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

0 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/rust • • 18h ago

🛠️ project Phai Studio: a drag-and-drop designer and IDE for Windows desktop apps in Rust

Post image
0 Upvotes

I've been building Phai Studio, an IDE for making Windows programs in Rust. You lay out a form by dragging controls onto it, double-click one to get its event handler, write Rust, and press F5.

Full disclosure: most of the code was written with an AI assistant. I designed it, tested it and decided what goes in. That's partly why I'm posting: I'm still learning Rust myself, and I'd love people who know it better to look at what came out.

What's in it

  • A form designer with 40+ controls: buttons, text boxes, a data grid, tree and list views, charts, a calendar, menus, toolbars and a web view. Forms are a plain TOML file (.phf), and the generated _ui.rs is ordinary Rust you can read.
  • An editor built on rust-analyzer: completion, hover docs, go to definition, rename, plus a debugger, a test runner and Git.
  • Data: MySQL/MariaDB (its own wire-protocol client), PostgreSQL and SQLite, with tables bound to the grid and saves in one transaction.
  • Publish: makes a setup.exe and a portable folder. Release builds remap local paths (project, ~/.cargo, rustup, the home folder), so the exe you hand out doesn't carry C:\Users\<you>\... in panic locations.
  • Web: the same forms can run as a web app/PWA on a phone.
  • The UI is native Win32 + GDI+, not a web view. It runs in English or Thai.

Licence: the runtime libraries that go into your programs (phai-ui, phai-data, phai-web) are MIT, and what you build is yours. The IDE itself is source-available under PolyForm Perimeter, free to use, including for programs you sell.

Windows 10/11 only for now. Feedback very welcome, especially on the generated code and the phai-ui API.


r/rust • • 9h ago

🛠️ project Mergeon: an open-source desktop Git client built with Rust and GPUI

Post image
0 Upvotes

I just open-sourced Mergeon (GPL-3.0), a desktop Git client I've been building in Rust with Zed's GPUI:

https://github.com/Spilveru/mergeon

A few architecture notes that might be interesting:

- Split into a layered Cargo workspace (git CLI runner, queries, mutations, async app model, and GPUI views).

- Instead of libgit2 or an internal DB, it shells out to git through a per-repo serialized mutation queue with timeouts so it never fights your terminal over index.lock.

- Diffs use tree-sitter for syntax highlighting; settings live in an atomic JSON file with GitHub tokens stored via the OS keyring; AppImage auto-updates verify Ed25519 manifest signatures with ring.

Linux is the main target right now (AppImage/.deb in Releases). Windows builds pass CI and are marked beta.

Curious to hear feedback on the code or anyone else's experience shipping standalone apps with GPUI.


r/rust • • 16h ago

📸 media Gittype v0.10.5 not working

Post image
0 Upvotes

I'm unable to use the --repo and trending commands for this utility. It would show this screen everytime I would try to run the --repo command and wouldn't load any repo or stuff if I run with the trending command it just loads the interface. Local repository mode works.

For me it also hangs up on 428/430 when I try to build it via cargo. I used curl later so that not really an issue for download but a program build issue.

The older version v0.5.0 is working; which is what I'm using currently. I would like to know if this problem is with me only or others are facing it too, before raising an issue to the developer.

This issue is raised in my logs when I try the --repo command

Cloning repository: unhappychoice/gittype

Repository processing failed:

Repository clone error:

there is no TLS stream available; class=Ssl (16)

I don't know rust so I don't understand any of it. I used AI to understand that something is wrong with the git2 / libgit2 HTTPS/TLS configuration in v0.10.5.

Before telling me to just use the local repo feature and call it a day, I would like to tell you that if I would be cool with just the local repo feature I won't be making this post. Thank You.

I would appreciate any kind of input on this.


r/rust • • 17h ago

🛠️ project GitHub - Vibernt/cupel: Know which tests protect you. CLI and MCP for people and coding agents.

Thumbnail github.com
0 Upvotes

I'm the author of Cupel, an open-source (MIT, zero-dependency) test-quality tool. It plants small faults in your code and records which tests notice. 0.5.0 has a lot of Rust-specific work, and I'd love feedback from people running cargo-mutants on real workspaces.

What backend: "cupel" does differently (it still uses cargo-mutants' fault list and catch credit):

  • Builds and runs only the test targets and tests that cover the faulty line. It stops after two catching targets, or one in pull-request mode.
  • Compiles many faults into one build, selected at run time with CUPEL_FAULT. Trust is decided per test target: a target that behaves differently with every switch off falls back to one build per fault.
  • Opt-in whole-function variants (bodyVariants) for faults that would regroup an expression (a && b && c with one && → ||). A one-line copy of the function body is selected at entry, so Rust parses each variant exactly. A verify mode re-checks every switched fault against its own build.
  • Keeps the build session in your user cache between runs (10 GB cap). An unchanged project's setup went from 527 s to 5 s.
  • Tries the tests in the fault's own file first. That cut fault-test time by more than half on one workspace, with identical results.

Measured on one machine (Apple silicon): a 56-fault workspace (sqlx/tokio dependencies) took 138 s with cargo-mutants, and 42 s cold / 26 s warm with Cupel, with identical rows. A private workspace's pull-request guard went from 27 to 21 minutes.

Caveats: verified on macOS only so far (Linux/Windows CI just started), and it isn't on crates.io or npm (install from the GitHub release). Docs: https://vibernt.github.io/cupel/rust.html · Repo: https://github.com/Vibernt/cupel

What would make this useful in your CI?


r/rust • • 16h ago

🛠️ project 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

0 Upvotes
KUTE is a tokenization engine in Rust with Python bindings (`pip install kute-engine`, `cargo install kute-cli`). It trains and applies byte-level BPE, and the same engine handles event sequences and structured records. Every vocabulary is a versioned file with a content digest. 0.8.0 came out this week.


What is new and held up when measured:


**Whole event records, stored by column.**
 `kute events pack` keeps entity, time and every other field exactly. On all 11,175,629 events of the HDFS_v1 log (644 MB as JSON Lines):


| | bytes |
|---|---:|
| `kute events pack` | 11,995,521 |
| the same columns written plainly, xz -9 each | 12,956,032 |
| xz -9 on the file | 23,144,380 |
| zstd -19 on the file | 26,457,244 |


On the Loghub-2.0 OpenSSH log (638,947 records, 77 MB): 1,274,967 against 1,378,672, 3,879,452 and 2,776,163 in the same order. Both unpack to the source byte for byte. The honest reading is the second row: most of the gain over a general compressor is the column layout, which you can do by hand. Against that, the container is about 7% smaller. One run each.


**Training and encoding speed**
, unchanged since 0.7. Against Hugging Face `tokenizers` 0.23.2 on enwik8, 32,768 tokens, the same split pattern on both sides, ten runs, each a new process that trains once: training took 1.94 s against 7.73 s on a 24-thread desktop, and 4.0 s against 64.4 s on a 4-core laptop. So 4x to about 16x depending on the machine; there is no single ratio. Token counts differ by 0.8%. These runs were on 0.7.0 and 0.6.0; I have not rerun them on 0.8.0, whose trainer code is the same.


What I tried in this release that went against it, and left in the docs:


- 
**Agent messages.**
 Two scripted agents negotiate a vocabulary for their messages, every byte counted (synthetic messages). zlib with a preset dictionary was a fifth smaller than KUTE's tokens.
- 
**Layered vocabularies**
 (short local ids over a general vocabulary). They recovered bytes and no tokens, zlib did as much without them, and a flat vocabulary with ids ranked by frequency was smallest. Not built.
- 
**Composed token representations**
 (sums, rotated sums and bindings of hashed vectors). They did what exact counting does, no better, at over a thousand times the storage. Two of those three outcomes follow from the arithmetic on any data, so they check the implementation and say nothing about the logs.
- 
**Predicting the next log event.**
 On OpenSSH a longer history predicts worse than the previous event alone. I had first found the opposite, on a file whose timestamps I had converted wrongly across a year boundary. The earlier result was never released; the correction is written up next to the new one.
- 
**Numeric signals.**
 The container with a checked error bound came within 0.2% of the same differencing done by hand. It adds a contract, not bytes.


Also new, tested but compared with nothing: discovery over events as they arrive with bounded memory, an HTTP service on loopback, and Ed25519 signatures on vocabularies (no registry, expiry or revocation).


What KUTE is not: a text compressor. On held-out English its token container is larger than `xz -9` on the raw bytes.


Limits: two logs, one text corpus, one code base, mostly one run each, two Windows machines for the timings. Experimental; formats may change before 1.0.


Release notes: https://github.com/kannaka-labs/kute/releases/tag/v0.8.0
Method, reports, limits: https://github.com/kannaka-labs/kute/blob/main/benchmarks/README.md


I would like to know where it loses. If you have an event log with entity and time fields, `kute events pack` against your own best compressor is a one-line test.

Building the CLI needs a C compiler, btw, because the event and signal containers use the 'zstd' crate.  Teh core libraries and the Pythion package do not.

(Built with heavy use of an AI coding agent and checked by a second agent session, which installed the release from crates.io into a clean folder and reran the quick start. The measurements are reproducible from the scripts.)

r/rust • • 2h ago

🛠️ project My rust prototype for 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 my current prototype for heterogeneous values which I use a lot.

If you have any feedback, please enlighten me!


r/rust • • 11h ago

Curated list of Rust crates for building reliable CLIs

0 Upvotes

After shipping a couple of internal tools in Rust, I started keeping notes on which crates actually hold up for CLI work without turning into a mess of dependencies or runtime surprises. Here's the shortlist I've settled on, grouped by concern.


r/rust • • 13h ago

🧠 educational I'm making a step-by-step series building a wallet & payments REST API in Rust. Would love feedback from learners

Thumbnail youtu.be
0 Upvotes

Hi everyone! I'm making a YouTube series where I build a wallet and payments REST API in Rust, one small step at a time. It's aimed at people who know basic Rust and want to see how it's used to build a real backend.

It starts with a single Axum route. So far it covers CRUD with shared state, error handling with thiserror, type-safe validation, PostgreSQL with SQLx, and the repository pattern with traits. Next up are integration tests, accounts, money transfers, race conditions, auth and idempotency.

Transparency note: I cloned of my own voice because English isn't my first language.

If you're learning Rust, I'd really appreciate your feedback:

- Is the pace OK, or did you get lost anywhere?

- Which concept felt unclear or rushed?

- Is the code readable on screen?

- What would you like to see in future episodes?

Thanks for taking a look!


r/rust • • 15h ago

🛠️ project Fishy Client: a lightweight, open-source (GPL-3.0) launcher for your Epic Games library.

Thumbnail github.com
0 Upvotes

r/rust • • 10h ago

If you're gonna vibe the UI, don't just follow the agent recommendations

0 Upvotes

Yes, gpui is nice and egui is quick to start with. Yes, Claude.

Discord gpui app is interesting, and artcraft egui app is wild.

There are alternatives out there like slint. If you can afford the tokens, just consider them, as well, and then compare.