Rust

Why stdout is faster than stderr?

31 minute read Published: 2024-01-10

I recently realized stdout is much faster than stderr for Rust. Here are my findings after diving deep into this rabbit hole.


Fully Automated Releases for Rust Projects

14 minute read Published: 2023-10-24

Here is how you can publish a Rust project with a single click of a button and automate everything.


Taking Rust to the Cloud: Blazingly Fast File Sharing

12 minute read Published: 2023-05-17

"rustypaste" is a self-hosted and minimal file upload/pastebin service written in Rust. In this post, I will be talking about its features and telling the story behind how I deployed it to shuttle.rs to make it publicly available for free use.


Packaging Rust Applications for the NPM Registry

10 minute read Published: 2023-01-24

Recently I packaged my project git-cliff (changelog generator written in Rust) for NPM with the help of my friend @atlj. I thought this would be an interesting topic for a blog post since it has a certain technical depth about distributing binaries and frankly it still amazes me how the whole thing works so smoothly. So let's create a simple Rust project, package it for NPM and fully automate the release process via GitHub Actions.


Zero-dependency random number generation in Rust

12 minute read Published: 2023-01-03

Let's investigate how to generate random numbers without external dependencies in Rust.


How hard upgrading a Rust JWT library could be?

8 minute read Published: 2022-04-22

Recently one of my clients requested me to maintain their Rust project. It is a web server that is built with Rocket + Diesel and running stable for a couple of years now. Like any other Rust developer would do, the first thing that I checked was the outdated dependencies via cargo-outdated. The result was close to what I expected: most of the dependencies were out-of-date. However, among all those crates, rust-jwt caught my eye. It was 12 minor versions behind!