Two items on my never-ending to-do list have been to start working with Rust, and to spend some time fiddling with Microsoft’s Visual Studio Code Development Container. My two biggest blockers have been that Python is my answer to damn near everything, and my normal workflow is using Sublime with simple shell scripts that wrap around Docker Compose in order to drive Docker. An old teammate messaged me, checking in to let me know that he’s in love with his devcontainer setup and successfully proselytizing about it at work, and I figured what better way to kill two birds with one stone over the weekend?
I wanted the same “code and play” feel that VSCode provides for Python with a devcontainer (with appropriate plug-ins installed — that VSCode recommended) and thanks in part to this detailed Stack Overflow answer for using Rust with VSCode and a little bit of trial and error, I was able to hit the ground running.
Table of Contents