MCPcopy Index your code
hub / github.com/ShawnHymel/introduction-to-embedded-rust

github.com/ShawnHymel/introduction-to-embedded-rust @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
97 symbols 167 edges 18 files 30 documented · 31%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Introduction to Embedded Rust

Getting Started

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

Initialize rustlings

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-run to disable this feature. It just means you need to press r in the rustlings prompt when you want to check your code.

License

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.

Extension points exported contracts — how you extend this code

Hello (Interface)
Define the trait [1 implementers]
workspace/apps/generics-examples/src/main.rs

Core symbols most depended-on inside this repo

unwrap
called by 49
workspace/apps/generics-examples/src/main.rs
write
called by 12
workspace/libraries/tmp102-driver/src/lib.rs
write_read
called by 3
workspace/libraries/tmp102-driver/src/lib.rs
read_temperature_c
called by 2
workspace/libraries/tmp102-driver/src/lib.rs
read
called by 2
workspace/libraries/tmp102-driver/src/lib.rs
add
called by 2
workspace/apps/generics-examples/src/main.rs
as_u8
called by 1
workspace/libraries/tmp102-driver/src/lib.rs
raw_to_celsius
called by 1
workspace/libraries/tmp102-driver/src/lib.rs

Shape

Function 61
Method 20
Class 12
Enum 3
Interface 1

Languages

Rust100%

Modules by API surface

workspace/libraries/tmp102-driver/src/lib.rs19 symbols
workspace/apps/generics-examples/src/main.rs16 symbols
workspace/apps/ownership-examples/src/main.rs14 symbols
workspace/apps/lifetime-examples/src/main.rs14 symbols
workspace/apps/led-wrapper/src/main.rs6 symbols
workspace/apps/embassy-demo/src/main.rs4 symbols
workspace/apps/timer-interrupt/src/main.rs3 symbols
workspace/apps/external-interrupt/src/main.rs3 symbols
workspace/apps/usb-serial/src/main.rs2 symbols
workspace/apps/usb-serial-rp2040/src/main.rs2 symbols
workspace/apps/tmp1x2-solution/src/main.rs2 symbols
workspace/apps/tmp102-driver-demo/src/main.rs2 symbols

For agents

$ claude mcp add introduction-to-embedded-rust \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page