
Git Ignore for Rust Projects and What to Commit Step by Step
What belongs in .gitignore for a Rust project, why Cargo.lock is committed for binaries, and what to keep out of the repository: target, secrets, editor files and local config.
Everything you need to level up your coding skills.

What belongs in .gitignore for a Rust project, why Cargo.lock is committed for binaries, and what to keep out of the repository: target, secrets, editor files and local config.

OFFSET pagination slows down and skips rows as data changes. Keyset pagination remembers the last key and stays fast. Build it with SQLx, including the tie-breaker and the cursor.

Implement undo and redo in Rust with the command pattern: commands as an enum, execute and undo methods, history stacks, merging, and a text editor example.

CQRS splits the model you write to from the model you read from. See the idea in Rust types, where it helps (different read shapes, scale) and where it only adds moving parts.

Event sourcing stores changes as an append-only list of events and derives state by folding them. A small Rust example: events enum, aggregate, command handling, store and replay.

macro_rules! matches token patterns and expands them into code. Learn fragment types, repetition and when a macro beats a function.

Turn Rust structs into JSON and back with serde and serde_json, including renames, optional fields, defaults and what the parse errors look like.

Cargo cannot find versions that satisfy every requirement in your tree. Read the message, find the conflict with cargo tree, and fix it by relaxing a requirement, updating a crate, or a patch.

Set the HTTP response headers that harden a web service: Content-Security-Policy, X-Content-Type-Options, Strict-Transport-Security, Referrer-Policy and more, applied with tower-http in Axum.

Build a Grafana dashboard for a Rust service from Prometheus metrics: the RED panels, PromQL for rate, errors and p99, saturation panels, variables and alert rules.

A Compose file that runs a Rust service with PostgreSQL and Redis for local development, with healthchecks so the app starts after its dependencies, volumes, networks and a clean teardown.

Cache the result of an expensive pure function in a HashMap or with the cached crate. Includes the recursion pattern, key design, bounded size and when memoizing is the wrong fix.
We send one email when a new post is published. No spam.