Rust

Taking Rust to the Cloud: Blazingly Fast File Sharing

16 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

16 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

16 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?

13 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!