rust Posts
A collection of my posts on rust
. Whether I'm trying to
build something new or figure out how to break it, these notes, fixes,
and deep dives document my process. I hope you find them useful.
-
I just released envfmt v1.0.0. The big change was removing all dependencies to make it a tiny, stable lib. Here are my notes on the update.
-
I'm building a CLI to write better git commits. This is my dev log on getting the first messy, working version up and running with Gemini.
-
I got sidetracked building a tool and ended up writing a tiny Rust crate to find XDG paths. These are my notes on how I built xdgdir.
-
I needed to expand environment variables for another project, so I built my first Rust crate. This is my log on envfmt and using traits for testing.
-
My personal log on loading .env files in Rust. I use the envy crate to parse variables into a struct, which makes handling config much easier.
-
Fixing the "cannot find derive macro Deserialize" error with serde in Rust. A quick note that the derive feature needs to be enabled in Cargo.toml.
-
My personal cheat sheet for basic SeaORM operations. It's my reference for how to insert, select, update, and delete a simple row in Rust.
-
I needed a way to manage database tables in Rust. These are my notes on using sea-orm-cli to set up and run my first migration with SeaORM.
-
A quick note to myself on Rust's
?
operator. It's a cleaner way to handle Result types by propagating errors instead of using a match block. -
My note-to-self for writing a UTF-8 tokenizer in Rust. The trick is reading byte-by-byte and only checking for whitespace on single-byte chars.
-
A quick reference for making structs printable in Rust. It shows how to use the Debug trait with the derive macro and how to implement it manually.