I’d like to add a lightweight devcontainer so contributors get the same Rust toolchain, VS Code extensions, settings, and debugger out of the box. This improves on-boarding, reduces "works on my machine" issues, and makes remote development straightforward.
Proposal (minimal, ready-to-tweak):
{
"name": "Rust [minimal]",
"image": "mcr.microsoft.com/devcontainers/rust:latest",
"remoteUser": "vscode",
"customizations": {
"vscode": {
"settings": {
"editor.formatOnSave": true,
"terminal.integrated.defaultProfile.linux": "zsh"
},
"extensions": [
"rust-lang.rust-analyzer",
"vadimcn.vscode-lldb"
]
}
},
"features": {
"ghcr.io/devcontainers-extra/features/zsh-plugins:0": {
"plugins": "git golang zsh-autosuggestions zsh-syntax-highlighting",
"omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions https://github.com/zsh-users/zsh-syntax-highlighting",
"username": "vscode"
}
}
}
- I can pin the Rust version via
rust-toolchain.toml if you prefer (e.g., stable or a specific version).
- I’ll add a short "Getting started with devcontainers" section to the README.
- If
.gitignore currently excludes .devcontainer/, I’ll remove that entry so the config is versioned.
If approved, I’ll open a PR with:
.devcontainer/devcontainer.json (as above, or with your tweaks)
- optional
rust-toolchain.toml
- README update (quick start)
Happy to implement, just let me know your preference on pinning Rust and any additional extensions/settings you want 💪
I’d like to add a lightweight devcontainer so contributors get the same Rust toolchain, VS Code extensions, settings, and debugger out of the box. This improves on-boarding, reduces "works on my machine" issues, and makes remote development straightforward.
Proposal (minimal, ready-to-tweak):
{ "name": "Rust [minimal]", "image": "mcr.microsoft.com/devcontainers/rust:latest", "remoteUser": "vscode", "customizations": { "vscode": { "settings": { "editor.formatOnSave": true, "terminal.integrated.defaultProfile.linux": "zsh" }, "extensions": [ "rust-lang.rust-analyzer", "vadimcn.vscode-lldb" ] } }, "features": { "ghcr.io/devcontainers-extra/features/zsh-plugins:0": { "plugins": "git golang zsh-autosuggestions zsh-syntax-highlighting", "omzPlugins": "https://github.com/zsh-users/zsh-autosuggestions https://github.com/zsh-users/zsh-syntax-highlighting", "username": "vscode" } } }rust-toolchain.tomlif you prefer (e.g.,stableor a specific version)..gitignorecurrently excludes.devcontainer/, I’ll remove that entry so the config is versioned.If approved, I’ll open a PR with:
.devcontainer/devcontainer.json(as above, or with your tweaks)rust-toolchain.tomlHappy to implement, just let me know your preference on pinning Rust and any additional extensions/settings you want 💪