







Many Rust beginners with a background in systems programming tend to use bool (or even u8 – an 8-bit unsigned integer type) to represent “state”. For example, how about a bool to indicate whether a user is active or not? struct User { // ... …
A Kubernetes Operator in Rust
You can check the operator yourself here, or use it as boilerplate code to start your own rust operator. A little bit of background I’ve been writing Kubernetes operators for quite some time …

Level Up your Rust pattern matching
Rust’s pattern matching feels simple enough: match on enums, destructure tuples, handle Option and Result.

Place Capability Graphs: A General-Purpose Model of Rust’s Ownership and Borrowing Guarantees
Rust’s novel type system has proved an attractive target for verification and program analysis tools, due to the rich guarantees it provides for controlling aliasing and mutability. However, fully understanding, extracting and exploiting these guarantees is subtle and challenging: existing models for Rust’s type checking either support a smaller idealised language disconnected from real-world Rust code, or come with severe limitations in terms of precise modelling of Rust borrows, composite types storing them, function signatures and loops.
Rust Error Handling: thiserror, anyhow, and When to Use Each
In this blog post, we’ll explore strategies for streamlining error handling in Rust using two popular libraries: thiserror and anyhow. We’ll discuss their features, use cases, and provide insights on when to choose each library. TL;DR thiserror simplifies the implementation of custom error type, removing boilerplates anyhow consolidates errors that implement std::error::Error While thiserror provides detailed error information for specific reactions, anyhow hides internal details Return Different Error Types from Function Let’s start by creating a function decode() for illustration. The function has 3 steps:
Pretty State Machine Patterns in Rust
A computer scientist working in open source towards a more hopeful future.

The Rust Programming Language - The Rust Programming Language
by Steve Klabnik, Carol Nichols, and Chris Krycho, with contributions from the Rust Community
into_inner in Rust - NotDefine.dev
Learn how the into_inner pattern works in Rust: how it uses ownership to unwrap a struct and return the inner data, with a real-world example from std::io::BufWriter
Why Use Structured Errors in Rust Applications?
Going against the common wisdom of “using anyhow for applications”.
Pscheidl/rust-kubernetes-operator-example
An example of a Kubernetes operator implemented in Rust
fjall - Rust
Fjall is a log-structured embeddable key-value storage engine written in Rust. It features:
Master Hexagonal Architecture in Rust
Everything you need to write flexible, future-proof Rust applications using hexagonal architecture.

Rust Programming Language
A language empowering everyone to build reliable and efficient software.

Rust traits and dependency injection - Julio Merino (jmmv.dev)
Dependency injection is one of my favorite design patterns to develop highly-testable and modular code. Unfortunately, applying this pattern by taking Rust traits as arguments to public functions has …