blog | sven kanoldt

sharing thoughts on learning rust, open source projects and other tech stuff

t-rec: Config Profiles, Wallpapers and Smoother Animations

With versions 0.7.11 through 0.8.1, t-rec gained several features that make terminal recordings more configurable and visually appealing. If you don't know t-rec yet: it's a terminal recorder written in Rust that captures your terminal session and outputs a GIF or MP4. Here's what's new.

Read more ⟶

Rust Algorithm Bites – Validating a Binary Search Tree

In the previous article, I covered a level-order traversal of a binary tree in Rust. This time, I want to take on a classic problem from LeetCode #98: Validate Binary Search Tree.

Read more ⟶

Rust Algorithm Bites – Binary Tree Level Order Traversal

Mastering LeetCode 102: Binary Tree Level Order Traversal with a BFS approach in Rust, leveraging Rc, RefCell, and VecDeque for efficient tree traversal.

Read more ⟶

Designing Error Types in Rust Libraries

When designing error types in Rust, especially for libraries with a public API, there are several important considerations to keep in mind. This post will explore some of the important implications and common pitfalls when designing error types in Rust libraries. Further, we will look at thiserror and how the Rust standard library's std::io::Error can serve as a reference for designing your own error types.

Read more ⟶

What is a CIDR trie and how can it help you?

In this post, we will explore the CIDR trie data structure and how it can help you manage IP addresses and subnets in your Rust project.

Read more ⟶