deploying rust in containers

The goal I am pretty familiar with containers and multi stage deployment have been my go to since quite a while now, for my golang codebases. Now that I have been picking up rust, deploying my first rust service in production did bring me back to my usual habits of containerization. We’ll be trying to optimize for speed of build and container size. The cargo.toml [...] [lib] name = "vs" path = "src/lib....

June 2, 2021 · 3 min · Me

cross compiling rust from linux to rpi0/alpine

If you read my previous posts, you should now have a raspberry-pi running alpine and docker. Resources are pretty limited on rpi0, so we are going to deploy programs using rust. Note: golang could have fit in there as well (and ofc all C and close to machine languages). Compiling from NOT a rpi0 Obviously, you don’t want to compile from a raspberry pi zero, unless you have all the time in the world and love waiting....

April 20, 2019 · 2 min · Me