A gentle introduction to procedural macrosThis blog post is based on my EuroRust presentation with slight changes and some omissions.Nov 11Nov 11
Adding compile-time safety to the AWS SDK with syn’s Visit traitEarlier this year, I wrote a blog post on how to use syn’s Fold trait to recursively transform a function, as an appendix of sorts to my…Jul 2Jul 2
Making an HTML parsing script a hundred times faster with RayonRecently, I was writing a Rust script to gather some data from the internet. The task at hand was fairly simple: visit a URL, retrieve the…Apr 26Apr 26
Deploying Axum to Lambda and ECS, using Lambda Web AdapterAWS Lambda Web Adapter is “A tool to run web applications on AWS Lambda”. It allows you to build a REST API with tooling that you are…Feb 161Feb 161
Rust macros taking care of even more Lambda boilerplateIn our last blog post, we showed how a procedural macro can generate basic AWS Lambda boilerplate. But the macro had a serious drawback: we…Jan 30Jan 30
Rust macros taking care of some Lambda boilerplateWhen you have a shiny golden hammer, you go looking for nice nails to hit.Jan 101Jan 101
Rust Compile Time Checks for SecretsOne of the joys of writing Rust is seeing how much work is ‘shifted to the left’, to compile time. Yes, the many compilation errors that…Jun 6, 2023Jun 6, 2023
Using a procedural macro to generate DynamoDB client codeIn a previous example project, I was storing my data in AWS DynamoDB. The code for saving looked like this:Nov 1, 2022Nov 1, 2022
How code might help you understand the Monty Hall problemThere’s a famous brain teaser that many of you are probably familiar with, called the ‘Monty Hall problem’. It goes like this (from…Oct 16, 2022Oct 16, 2022
Some Rust ObservationsAs may be guessed from my previous blog post, this year I finally did it! I started learning Rust. And like so many others before me, I’ve…Sep 26, 2022Sep 26, 2022