Add devcontainer configuration

Adds basic devcontainer configuration using Microsoft's
rust:1-1-bookworm container.

The existing recommended extensions are included.
This commit is contained in:
deadmeu 2025-06-18 17:52:57 +10:00
parent 4f3d7dad42
commit 481765a378
No known key found for this signature in database
3 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,40 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/rust
{
"name": "Rust",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bookworm",
"customizations": {
"vscode": {
"extensions": [
// cspell:disable-next-line
"foxundermoon.shell-format",
"streetsidesoftware.code-spell-checker"
]
}
},
// Use 'mounts' to make the cargo cache persistent in a Docker Volume.
// "mounts": [
// {
// "source": "devcontainer-cargo-cache-${devcontainerId}",
// "target": "/usr/local/cargo",
// "type": "volume"
// }
// ]
// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "./.devcontainer/postCreateCommand.sh"
// Configure tool-specific properties.
// "customizations": {},
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}

View file

@ -0,0 +1,4 @@
#!/bin/sh
sudo apt update && sudo apt install -y --no-install-recommends \
clang

View file

@ -28,6 +28,8 @@ denoland
deque
dequeue
dev
devcontainer
devcontainers
devs
discoverability
duplicative