Rust support on AWS Lambda was recently released, which seems like as good an opportunity as any to share some code and the solutions to challenges I encountered along the way ☺. I’ve decided to create a little diceware service, and the lambda-runtime crate provides a great API to make this a breeze. Setting up the library We’re going to generate a basic crate: $ cargo new dicers –lib && cd dicers Created library dicers project You should see a structure similar to this: