Tagged: Rust

Rust

Safe representation of restricted values

In this article, I explore how we can use Rust's type system to restrict what values can be stored in a type, such only allowing floating point numbers between zero and one.

09 March 2022 · 12 min read
Rust

Dancing with the compiler: Rust and explicitness

One thing that often surprises newcomers to Rust is how verbose it can be. In this article, I explore how I typically work in tandem with the compiler to make my code more explicit and less error-prone.

03 March 2022 · 8 min read
Rust

Safe operations with typestate in Rust

A lesser known safety property of Rust is the ability to restrict what operations you can perform on a type given its internal state.

17 December 2021 · 4 min read
Rust

Safe JSON representations with Rust

You might know about Rust for its memory safety. In this article, I explore how other properties like Enum help you write applications with well-defined behaviors.

09 November 2021 · 4 min read
Rust

Rust for serverless applications

Rust is gaining popularity amongst developers, so do serverless technologies. This is a quick guide to deploy serverless applications using Rust and AWS SAM.

11 August 2020 · 5 min read