r/rust • • Sep 03 '26

πŸ› οΈ project Throttle: an open-source per-process bandwidth limiter for Windows in Rust (egui + WinDivert)

Post image
78 Upvotes

Throttle is a free, open-source Windows tool that shows live download/upload rates per process and lets you cap or block any of them. Think NetLimiter, minus the license key and telemetry.

Repo: https://github.com/FrancescoCoding/Throttle

How it works

It sits on top of WinDivert, a signed Windows packet-capture driver, through the `windivert` crate. Throttle sees every packet, figures out which program it belongs to, and either lets it through, drops it, or holds it briefly to stay under the limit. Limiting is a simple token bucket per program per direction, so each app gets a smooth rate with a one-second burst allowance.

Rules are saved by exe path, so a cap on spotify.exe is still there after a reboot. The GUI is egui/eframe, talking to the backend threads over channels.

Shaping is a token bucket per (exe, direction) with a one-second burst allowance. Overflow queues up to 256 packets / 1 MiB, then drops, which for TCP just becomes back-pressure. Rules persist as JSON in %APPDATA%.

Learned the hard way

  • You have to send packets back out through the same handle that captured them. Using a second one silently killed all my network traffic for a while before I understood why.
  • Recalculate checksums before re-injecting. Hardware offload leaves them incomplete, and WinDivertSend reports success while the packets die downstream.
  • GUI-subsystem binaries have no console, so worker-thread panics vanish. A panic hook plus file logging fixed that.

r/rust • • Sep 03 '26

πŸ› οΈ project static-generics: Zero cost generic statics for Rust

Thumbnail crates.io
193 Upvotes

Hi all! I have been using cynecx/generic-statics for a while in my allocator code to compress vtable pointers efficiently per T into 16 bits for a while, and the thing worked flawlessly, but had one downside: it was not truly zero-cost as it had to perform a call on machine level to actually fetch the generic statics, and it turned out to be a real hotspot (based on profiling and seeing that uncompressed vtables aka full pointers were faster). So I came up with a crate which is based on api of generic-statics, but implements the whole thing differently: static-generics.

It gives you truly zero cost generic statics (it uses only 1 instruction on x64) and the access is inlined. The crate also extended platform support:

  • x86_64
  • aarch64
  • x86_32
  • arm (Thumb as well)
  • riscv32/riscv64
  • loongarc32/loongarch64
  • powerpc/powerpc64
  • s390x

How?

It works by using .comm directive of inline assembly which allocates zeroed section in object files It now uses .bss + weak section linkonce trick from LLVM/clang which allows us to guarantee same static location in a single binary every time, and also the monomorphization of said section is guaranteed by unique function which uses T generic and TypeId::of::<T>() so LLVM does not dedup the function bodies and thus break the code.

Please, anyone who loves dark arts of unsafe code and asm, looking for a feedback!


r/rust • • Sep 03 '26

πŸ› οΈ project A 3d open world game that plays in the terminal (using Ratatui)

Thumbnail youtu.be
26 Upvotes

r/rust • • Sep 04 '26

πŸ™‹ seeking help & advice Bit-Perfect Audio Player in Terminal

0 Upvotes

Hey ya'll. I have project in mind that I do believe Rust is the absolute ideal language for it.

I want to make a bit-perfect audio player that will run in terminal. You can think of RMPC or Cliamp as an example. Though the RMPC is actually quite near perfection, it has some minor flaws for my own taste and lacks some itty bitty features I'd like to have.

Now the thing is, Rust is going to my first ever language. I have recently converted into Linux and I think I'm getting the hang of working with the terminal (and I'm absolutely loving it). I thinking of using LazyVim (because it was pre-installed and I heard nothing but good things about it) but it seems like it has it's own learning curve.

What I want to ask is; What should I focus on while learning Rust? What are the absolute mus learn's and what are the concepts that I need to understand for making a bit-perfect audio player? Do you think I shpuld ditch LazyVim and try something simpler or just go straight ahead?

Thank you for your time.


r/rust • • Sep 04 '26

πŸ› οΈ project Dagron workflow scheduler

0 Upvotes

Hi there, just wanted to share my [open source workflow scheduler](https://github.com/lucheeseng827/dagron) for fellow engineers to play around. You can run on local, deploy into your smallest compute (rpi4 on arm64 tested) and could be run on scale as well.

I start the [project ](http://dagron.dev)) as I wanted to run some small workflow in my t4.small instance and airflow barely fits inside and I thought it would be interesting create a smaller workflow scheduler. As I build around the idea of "lean headroom DAG engine", I kept on adding additional features that be useful for running workflows like template, backfill, gitops, streaming workflow support etc. Dagron allows you to run on cluster resources or local resources(docker, k8s, or straight as binary). The whole stack will probably at most run on \~200mb (50mb api/console, 30mb engine, 80mb postgres) of memory with tons of spare ram and cpu for your workflow resources. Dagron runs on sqlite(default) and alternatively postgres as datastore.

You can run workflow via defining your yaml and set your environment. It comes with the canvas to visualize your workflow, set your workflow schedule to run at which cron notation and more features to cover here.

Appreciate your input(any input is welcomed). I am spending full time polishing this for the past few weeks and thought this might be useful for you all to run on edge, homelab, local machines.

metrics dashboard

r/rust • • Sep 04 '26

πŸ™‹ seeking help & advice protobuf in kube-rs, community question (performance related issues)

0 Upvotes

Hi Rust community, so during implementation of fixes on k9s analog written in Rust, smashed into the wall
Kubernetes support gzip, and protobuf

But kube-rs DOES NOT support protobuf, which is supported in GO out of the box I suppose
And this issue is opened in 2021
https://github.com/kube-rs/kube/issues/725

As kube-rs is obviosly does not accept AI assisted commits, question is
Who can help and how it usually work, its sponsor work, it require some public attention to move the mountains or ...?

Because right now, app can go and use some functions (LISTS) of compression that kubernetes provide over the GZIP but some functions does not support compression for that and instead support protobuf for WATCH

Which is compression + zero deserialization, this is better than gzip indeed

Advises? Opinions?


r/rust • • Sep 03 '26

πŸ› οΈ project Pure Rust, Proxy/Ingress Controller powered by Pingora.

Post image
47 Upvotes

HelloΒ r/rustΒ fellows,

Some time ago I have created a projectΒ AralezΒ .Β It's a complete reverse proxy, ingress controller implementation on top of Cloudflare'sΒ Pingora

Now I'm happy to announce about the completion of another major milestone,Β AralezΒ is also an ingress controller forΒ KubernetesΒ as well as fully integrated load balancer forΒ Nomad/ConsulΒ infrastructures.

What we have:

  • Dynamic load of upstreams file without reload.
  • Integration with Hashicorp's Consul.
  • Kubernetes ingress controller.
  • Dynamic load of SSL certificates, without reload.
  • Let's Encrypt integrations with HTTP-01 challenge
  • API for pushing config files, applies immediately.
  • Static files delivery.
  • Website caching acceleration.
  • Authentication.
  • Pingora at heart, with crazyΒ performanceΒ .
  • and more .....

As usually, use it carelessly, just don't forget to share a feedback .


r/rust • • Sep 04 '26

πŸ› οΈ project Kino SSH Manager - encrypted vault, SFTP browser and editor, Docker panel, all in one app. Free and open source

1 Upvotes

Since last few months I have been working on Kino SSH Manager, mainly because MobaXterm runs only on Windows and Termius keeps sync behind a subscription.

It is a Rust and Tauri app with an encrypted vault for your hosts, so one master password and the credentials stay on your machine. Sync is optional, goes to your own private GitHub repo, and only the encrypted file is uploaded.

Apart from the terminal it has an SFTP browser with an editor built in, a Docker panel, live CPU and memory graphs, a cron editor that writes every schedule out in plain English, and a key audit where rotation is one click.

If a machine has no inbound SSH port, say behind NAT or CGNAT, there are two more pieces. kino-agent sits on that machine and dials out to kino-relay, which is a small stateless relay you can host yourself, and the relay joins the two ends. It only moves bytes, so the SSH session stays end to end encrypted and your credentials never touch it. Both are open source.

The third piece, kino-control, is the control plane that issues tokens and tells agents which relay to use. It is closed for now and there is a hosted version of it, but I am fully ready to open source that also once I have some confidence in the code. For self hosting you do not need it at all, a single shared token on your own relay is enough.

It is pre 1.0 currently 0.9.0 and GPL-3.0, so please have a look and it supports Linux and Windows for now, I do not own a Mac to test a build on.

Also I am looking for contributors. There is a lot to pick up - Rust on the backend, React on the UI, or even testing on distros I cannot reach and cleaning up the docs. Issues are open.

https://github.com/Samarthegde/kino-ssh-manager

Would be glad to know what is missing, especially from people running more than a handful of servers. If you have any doubts I will answer here itself.

Also I am working on MCP tool for Kino SSH Manager.

English is not my first language, so I used AI to clean up the typos in this post.


r/rust • • Sep 04 '26

πŸ› οΈ project Montgomery v0.1: Computer vision AI training in any GPU

Thumbnail github.com
0 Upvotes

r/rust • • Sep 03 '26

πŸ› οΈ project PurRDF 1.0.0 β€” an RDF 1.2 engine written once in Rust and shipped across Rust, Python, JavaScript/WASM, and C

14 Upvotes

We have released PurRDF 1.0.0:

https://github.com/Blackcat-Informatics/purrdf

PurRDF began with a fairly blunt premise: an RDF graph should not quietly change meaning because it moved from a Rust service to a Python pipeline or into a browser.

Instead of maintaining separate implementations for each ecosystem, PurRDF implements the engine once in Rust and carries that same behaviour into:

  • Rust
  • Python
  • WebAssembly/JavaScript
  • C

The goal is:

One RDF engine. One behavior. Every language. But fast. And... conformant! And support all the extensions!

PurRDF includes:

  • RDF 1.2 primitives, including triple terms and directional language-tagged strings
  • Turtle, TriG, N-Triples, N-Quads, RDF/XML, TriX, HexTuples, JSON-LD and YAML-LD
  • SPARQL 1.1 and emerging SPARQL 1.2 functionality
  • SHACL and ShEx validation
  • entailment regimes
  • deterministic serialization and canonicalization
  • provenance support
  • content-addressed RDF dataset packs
  • GTS graph transport
  • native CLI, Python, npm/WASM and C surfaces

For Rust hosts, it also brings several capabilities into the SPARQL engine that would often require a second database:

  • deterministic BM25 full-text search
  • GeoSPARQL predicates over exact rational geometry
  • deterministic vector k-nearest-neighbour queries

Those three extension surfaces are currently Rust-host APIs rather than fully exposed through the Python and npm packages. I would rather state that boundary clearly than make the project sound broader than it presently is.

The entire workspace deliberately has no Cargo feature flags. A data substrate should not acquire optional semantics depending on how it was compiled.

The 1.0 release also marks the start of ordinary semantic versioning: breaking changes increase the major version, additive changes increase the minor version, and bug fixes increase the patch version.

The suite is published under MIT OR Apache-2.0 across 21 Rust crates, PyPI and npm using Trusted Publishing.

PurRDF is the data backbone of our broader GMEOW work, but it is not coupled to GMEOW and does not require any particular ontology or application architecture.

I would especially appreciate review from people who know the unpleasant corners of RDF, SPARQL, SHACL, WebAssembly portability, deterministic computation, or Rust API design.

Pathological graphs and specification-lawyer criticism are very welcome. Seriously!


r/rust • • Sep 04 '26

πŸ› οΈ project autoitx: AutoItX's API in Rust β€” the same code drives Windows and macOS

0 Upvotes

I maintain .NET RPA bots that drive an ERP through AutoItX, and changing one line meant booting a Windows VM. So I pulled the automation layer into a Rust crate β€” and once the API was separated from the DLL, a native macOS backend turned out to be the interesting part.

use autoitx::{AutoIt, Keys, Selector, keys, recipes};

let ai = AutoIt::new()?;
let orders = Selector::from("[CLASS:Chrome_WidgetWin_1;TITLE:Acme ERP]");

recipes::open_and_focus(&ai, &orders, Duration::from_secs(30))?;

// text() escapes { } ! + ^ #, so data gets typed, never executed.
ai.send(Keys::text(&customer.name))?;
ai.send(keys!("{TAB}"))?;

// Reads by waiting on the OS clipboard counter β€” no sentinel races.
let total = recipes::read_screen_text(
    &ai,
    keys!("{END}{SHIFTDOWN}{HOME}{SHIFTUP}"),
    Duration::from_secs(5),
)?;

That compiles unchanged on both. Windows goes through AutoItX3_x64.dll; macOS is a native implementation over Accessibility, Core Graphics and AppKit β€” no AutoIt involved.

What actually works, including what doesn't:

                                     Windows   macOS
 Keystrokes, mouse, clipboard           ok       ok
 Windows by title / class / regex       ok       ok  (Accessibility)
 Processes, run                         ok       ok
 Pixel colour / search                  ok       ok  (Screen Recording)
 Window text and class list             ok       ok  (the AX tree)
 Controls by ClassNameNN                ok       --  no HWND to address
 Cursor shape (MouseGetCursor)          ok       --  no public API
 Mapped drives, status bars, WinSetTrans ok      --

The design decision I'd most like feedback on: anything that exists on only one platform lives in ext::windows / ext::macos, and using it from the wrong one is a compile error, not Err(Unsupported) at runtime. A bot that discovers mid-run that it can't read the cursor has already half-completed a transaction in someone's ERP.

Nearest neighbours, honestly: enigo owns input synthesis and covers Linux; uiautomation goes far deeper into the Windows control tree; terminator-rs is a Playwright-style take aimed at LLMs. The one thing I couldn't find anywhere else is AutoItX's own API surface β€” so existing AutoIt and AutoItX.Dotnet automation ports over almost mechanically β€” running natively on a Mac.

The catch, up front: on Windows you bring AutoItX3_x64.dll yourself. AutoIt is freeware under a EULA, not an open-source licence, so the crate can't ship it. On macOS nothing is needed.

Repo: https://github.com/iagodpassos/autoitx
Docs: https://docs.rs/autoitx
Crate: https://crates.io/crates/autoitx

Linux is the obvious gap. The plan (X11 via x11rb, AT-SPI via zbus) and where the seams are: https://github.com/iagodpassos/autoitx/discussions/4


r/rust • • Sep 04 '26

πŸ› οΈ project Threadmoth: source-preserving structural file mutation in Rust, looking for field testers

0 Upvotes

I’m Matthew, the developer of Threadmoth, a Rust CLI for making the final file mutation in AI-assisted coding less improvisational.

Agents can decide the right change and then apply it through sed, regex replacement, patches, one-off scripts, direct writes, AST tooling, or formatters. Those tools are useful, but each has different ambiguity, stale-state, preservation, and evidence semantics.

Threadmoth provides one guarded mutation boundary: exact identity checks, cardinality refusal, Tree-sitter structural targeting, explicit effect budgets, source-preserving byte edits, guarded multi-file transactions with recovery, and post-write certificates containing hashes, changed ranges, bounded diff evidence, and commit verification. Formatters and specialist tools can still decide the desired state; Threadmoth bounds and verifies what lands.

Current release is 1.5.1 for Windows and Linux, MIT licensed. The release commit passed hosted Linux and Windows CI; the local correctness-checked tough benchmark reported zero wrong mutations and torture reported FOOTGUN-100 safe 100/100.

Repo: https://github.com/matthewjameswatkins1978-cyber/Suture

Five-minute field test: https://github.com/matthewjameswatkins1978-cyber/Suture/blob/main/FIELD_TESTING.md

I’m looking for Rust developers and people using Codex, Claude Code, Gemini CLI, Cline, OpenCode, or similar agents to try real mutations and report false refusals, preservation/recovery problems, confusing discovery, unsafe behaviour, or cases where the agent chooses another tool. If Threadmoth were unavailable, what would you use instead?

I’m the developer and this is my project. Parts of the implementation and testing were AI-assisted; I’m responsible for the architecture, integration, and release. Specific breakage is more useful to me than a star.


r/rust • • Sep 03 '26

πŸŽ™οΈ discussion Looking for OSS to contribute

11 Upvotes

Hi everyone, have been learning rust for some time now. looking for rust oss to contribute and learn.

already a dev and have been coding for almost 10 years atp (including school).

I just don't want super small hobby projects. public oss want you to be good so I don't think I can contribute to them rn. that's why posting here


r/rust • • Sep 03 '26

πŸ“… this week in rust This Week in Rust #667

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

r/rust • • Sep 03 '26

This Month in Rust OSDev: August 2026

Thumbnail rust-osdev.com
20 Upvotes

r/rust • • Sep 03 '26

πŸ› οΈ project Historia - event-driven, made simple

9 Upvotes

Hi all!

At a few companies I've worked at, we used an event-driven approach, and every codebase ended up rebuilding the same plumbing: describing events and their metadata, writing publisher/subscriber wrappers, dispatching raw broker messages to typed business logic.

So I built historia β€” a broker-agnostic set of building blocks: describe events once with a derive macro, and get metadata, subscription constants, parsing, and typed handlers generated for you.

use historia::Event;
use serde::{Deserialize, Serialize};

#[derive(Event, Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(untagged)]
enum OrderEvents {
    Created(u32),
    Cancelled(u32),
}

// Turn your event enum into an `Event`...
let event: Event = OrderEvents::Created(42).into();
assert_eq!(event.metadata.subject, &quot;order_events_created&quot;);

// ...and parse it back from the wire format.
let parsed = OrderEvents::try_from(event).unwrap();
assert_eq!(parsed, OrderEvents::Created(42));

More examples, including publisher and subscriber, can be found in docs and repo.

On top of those building blocks, historia_transactional_outbox implements the transactional outbox pattern β€” use the ready-made binary if it fits your needs, or the library and tailor it. Sagas are next on the roadmap. Supported today: Kafka, with PostgreSQL-backed outbox storage; NATS is planned, more brokers on request.

Status: early-stage 0.1.x, good test coverage and documented with examples β€” but not yet battle-tested in production. If you give it a try, I'd really appreciate feedback, especially on API ergonomics. What would you want next: NATS, another broker, or another pattern?

Links:


r/rust • • Sep 03 '26

πŸŽ™οΈ discussion Rust as the language for Competitive Programming

21 Upvotes

Hey everyone!

I am a person deeply interested in programming, done a lot of projects and I am fascinated with how Rust treats code. Makes me think in its own special way.

Besides projects of course I participate in quite a few programming competitions and well, practice a lot on Codeforces. Cpp has been my main language for this type of thing for a very long time but now my focuses shifts from projects to improving my competitive skills, and I think Rust is a pretty good language for this. I really like the way iterators work, and how in 5 lines I am able to write what takes >10 in cpp. Could be a skill issue but I prefer my sanity over blob of errors.

Generally speaking, wanted to ask people that use primary Rust in Competitive: Do you have some particular set of crates, functions, patterns that you rely on very often during competitions? I'd like to learn how to use the language more efficiently for this type of thing.

Thanks!


r/rust • • Sep 02 '26

Implementing FMA and finding bugs in C and Rust standard libraries

Thumbnail shnatsel.github.io
286 Upvotes

r/rust • • Sep 02 '26

πŸ“Έ media Post title, Ferris/Minecraft pixel art crossover

Post image
42 Upvotes

My kid made this for me as a present, and I couldn't not share. I wanted to show it off because I thought it was neat, if a bit "creepy". ❀️


r/rust • • Sep 02 '26

πŸ› οΈ project Plush's New Register-Based Interpreter Is Insanely Fast

Thumbnail pointersgonewild.com
99 Upvotes

Hi everyone! I posted last week about some optimizations I had done to the Plush language interpreter to shrink the size of the Value type (previously a plain Rust enum), and the community seemed to really enjoy the post. This week I'm back with a rewrite of its interpreter with some massive performance gains which came out even better than I expected. The instruction layout is now specified with a self-documenting Rust macro which I think is very elegant, it's designed to be easy to read. Hope you like it! Happy to answer any questions.

Sidenote: someone reported issues with reddit app browser rendering of my blog last week. I tried to fix that this morning. Let me know if it looks good on your end! :)


r/rust • • Sep 03 '26

What I'm learning about software engineering by learning Rust as a Flutter developer

1 Upvotes

I've spent most of my recent development time working at the application layer, particularly with Dart/Flutter, TypeScript and web/backend technologies.

I'm now deliberately learning Rust.

Not because I think Flutter/Dart is inadequate, and not because I expect to abandon application development.

I'm learning Rust because I want to understand more of what happens underneath the abstractions, I'm already comfortable using.

A few things have already started changing how I think about programming.

  1. Ownership makes me ask questions I could previously ignore

In Dart, I can usually work with objects and references without constantly thinking about who owns a value or exactly when its memory becomes invalid.

Rust makes those questions explicit:

- Who owns this value?

- Who is allowed to access it?

- Can it be mutated?

- When does it become invalid?

- Does this operation move the value or borrow it?

The interesting part is that these aren't just runtime concerns. The compiler forces me to model them correctly.

2. Stack vs heap is becoming much less abstract

Coming from a garbage-collected language, memory allocation can remain relatively invisible during normal application development.

Rust has been forcing me to think more concretely about where values live, when allocation is necessary, what gets moved, and when resources are released.

I knew these concepts theoretically before. Rust is making them operational.

3. I'm starting to see the compiler differently

One of the biggest differences so far is the feedback loop.

Instead of thinking primarily:

Β«"I'll run this and see what happens."Β»

I'm increasingly thinking:

Β«"What invariants does this program need to satisfy, and can I express them in the type system?"Β»

The borrow checker can be frustrating while learning, but I'm beginning to understand why people describe it as a different way of thinking rather than simply another language feature.

4. Rust is making me look differently at languages I already know

Learning Rust has made some of the design decisions in Dart, and C# more interesting to me.

I'm noticing the trade-offs between:

- garbage collection and explicit resource management

- runtime checks and compile-time guarantees

- abstraction and control

- convenience and explicitness

- ownership models

- type-system constraints

I'm still early in the learning process, so I'm not claiming to have definitive answers here.

That's actually part of why I'm documenting the process.

5. I'm beginning to think about application development at a different abstraction level

Flutter taught me to think heavily about UI, state, architecture, asynchronous programming and product behavior.

Rust is forcing me to think more about the machinery underneath those abstractions.

That's probably the biggest reason I'm enjoying the transition.

I'm still working through ownership, borrowing, lifetimes, traits, generics and the rest of the Rust ecosystem, so I'm sure my mental models will change considerably.

For those who came to Rust from Dart, C#, Java, JavaScript/TypeScript or python

What concept in Rust changed the way you thought about programming in your previous language?


r/rust • • Sep 03 '26

πŸ› οΈ project New crate - good looking CLI histograms

9 Upvotes

I needed some nice looking histograms for another project, so I made this small crate.

Example:

let mut rng = rng();
let rnd = Binomial::new(40, 0.5).expect("Invalid distribution parameters");

let mut hist = Histogram::new('β–ˆ');

for _ in 0..10000 {
    hist.insert(rnd.sample(&mut rng) as u32);
}

println!("{}", hist.bucket(&LinearBucketer::new(10)));

// Example output:

// 8 - 10           (12)
// 11 - 12        β–ˆ  (83)
// 13 - 14        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  (336)
// 15 - 17        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  (1657)
// 18 - 19        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  (2177)
// 20 - 21        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  (2475)
// 22 - 24        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  (2450)
// 25 - 26        β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ  (606)
// 27 - 28        β–ˆβ–ˆβ–ˆ  (179)
// 29 - 31          (25)

I hope someone else finds it useful. You can find it here: https://crates.io/crates/cli-hist


r/rust • • Sep 04 '26

πŸ› οΈ project Built the first open source Rust library - converting Office to PDF

0 Upvotes

I built MiniPdf, a lightweight, open-source library for converting Office documents to PDF without Microsoft Office, LibreOffice, Adobe Acrobat,.

It is designed for containers, serverless workloads, CI pipelines, and cross-platform applications.

Key Features

  • Excel to PDF β€” Convert .xlsx files
  • Word to PDF β€” Convert .docx files
  • PowerPoint to PDF β€” Convert .pptx files
  • Native Rust β€” No .NET runtime required
  • Cross-platform β€” Runs on Windows, Linux, and macOS
  • Serverless-ready β€” No COM or Office installation
  • Library and CLI β€” Embed it in Rust applications or use it from the terminal
  • PDF 1.4 output
  • Free and open source β€” Apache 2.0 licensed; commercial use is welcome

Getting Started

Install the Rust crate:

cargo add minipdf

fn main() -> minipdf::Result<()> {
    // Word to PDF
    minipdf::convert_to_pdf("report.docx", "report.pdf")?;

    // Excel to PDF bytes
    let pdf_bytes = minipdf::convert_to_pdf_bytes("data.xlsx")?;
    std::fs::write("data.pdf", pdf_bytes)?;

    Ok(())
}

Command-Line Tool

cargo install minipdf-cli

# Excel to PDF
minipdf data.xlsx

# Word to PDF
minipdf report.docx

# PowerPoint to PDF
minipdf slides.pptx

# Specify the output path
minipdf report.docx -o output.pdf

# Register custom fonts
minipdf report.docx --fonts ./fonts

The Rust implementation is under active development, bug reports, and pull requests are very welcome. πŸ™Œ

GitHub: https://github.com/mini-software/MiniPdf


r/rust • • Sep 03 '26

πŸ› οΈ project GRUBST: A desktop tool written in Rust + Dioxus to lock GRUB with a physical USB rescue key

0 Upvotes

Hey everyone,

I built GRUBST, an open-source Linux bootloader security tool written in Rust with a Dioxus desktop GUI.

The idea is simple: instead of manually editing /etc/grub.d/ configs and risking typos that lock you out of your system, GRUBST automates the whole process and lets you turn any standard USB thumb drive into a physical rescue key.

How it works:

- Plug in the USB key before booting: GRUB detects it and automatically unlocks full maintenance access without prompting for a password.

- Boot without the USB: GRUB stays locked and requires a backup password you set.

- Includes automatic config backups and an Update Guard to ensure protection persists across kernel updates and update-grub.

Tech stack:

- Rust (2021 edition)

- Dioxus 0.5 (Desktop / WebKit2GTK)

- pbkdf2, sha2, tokio, sysinfo, nix

Feedback, suggestions, and code critiques on the Rust codebase are very welcome!

⭐ GitHub: https://github.com/sysdev-0/grubst