It's a simple devcontainer containing the essentials for developing on ESP32 in Rust.
The devcontainer contains:
- The minimum for Rust development (use
mcr.microsoft.com/devcontainers/rust:0-1-bullseye
image) - The
espup
andcargo-template
tools
A number of VSCode extensions are already installed:
- Essentials:
rust-lang.rust-analyzer
: Rust language support for VS Codeserayuzgur.crate
: Helps Rust developers managing dependencies
- Usefuls:
tamasfe.even-better-toml
: Fully-featured TOML supportusernamehw.errorlens
: Improve highlighting of error, warning and otherms-azuretools.vscode-docker
: Docker support for VS CodeIBM.output-colorizer
: Syntax highlighting for log filesgithub.vscode-pull-request-github
: Pull Request and Issues provider for GitHub
- Almost useless:
shardulm94.trailing-spaces
: Highlight trailing spaces and delete thembierner.emojisense
: Adds suggestions and autocomplete for emojivscode-icons-team.vscode-icons
: Icons for VS Code
- Download (or clone) the repository, then open it via VS Code, a popup should offer to launch the folder in a container, accept.
- VSCode restarts, and builds the container (this may take a few minutes), this action is performed only once.
⚠️ If no popup appears, pressctrl + shift + P
then selectDev Containers : Reopen in Container
. - Once the container has been built and opened, you can use VSCode as normal.
ℹ️ To create a new project in the container, use the following command: cargo generate esp-rs/esp-idf-template cargo
(this template will use the std
library, see the [Rust ESP Book] (https://esp-rs.github.io/book) if you don't want to use it).