Build the Docker image:
docker build -t env-embedded-rust .
To run:
Linux, macOS, Windows (PowerShell):
docker run --rm -it -p 3000:3000 -v "$(pwd)/workspace:/home/student/workspace" -w /workspace env-embedded-rust
If you would like to practice rust with the official rustlings exercises, you should navigate to the workspace/ directory (in the container) and initialize rustlings:
cd /home/student/workspace
rustlings init
To start rustlings or pick up where you left off:
cd /home/student/workspace/rustlings
rustlings --manual-run
Note: by default, rustlings uses rust-analyzer to watch for file changes to check if your code works or not. This sometimes struggles in a container, so I recommend using
--manual-runto disable this feature. It just means you need to pressrin the rustlings prompt when you want to check your code.
All software in this repository, unless otherwise noted, is licensed under the MIT license.
Copyright 2025 Shawn Hymel
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the “Software”), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
$ claude mcp add introduction-to-embedded-rust \
-- python -m otcore.mcp_server <graph>