shrupl/.devcontainer/devcontainer.json

58 lines
1.7 KiB
JSON
Raw Normal View History

2025-05-17 23:57:52 +00:00
// 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",
2025-05-22 14:27:00 +00:00
2025-05-17 23:57:52 +00:00
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
2025-05-22 14:27:00 +00:00
"image": "debian:bookworm",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
// "ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": "true"
},
"ghcr.io/devcontainers/features/rust:1": {
"targets": "x86_64-unknown-linux-gnu,x86_64-unknown-linux-musl"
},
"ghcr.io/lee-orr/rusty-dev-containers/cargo-binstall:0": {
"packages": "cargo-llvm-cov"
2025-05-22 14:27:00 +00:00
},
2025-07-12 01:33:08 +00:00
"ghcr.io/devcontainers-extra/features/apt-get-packages:1": {
2025-06-04 22:19:24 +00:00
"packages": "git-flow, musl-tools"
2025-05-22 14:27:00 +00:00
}
},
2025-05-17 23:57:52 +00:00
// cargo cache persistence
"mounts": [
{
"source": "devcontainer-cargo-cache-${devcontainerId}",
"target": "/usr/local/cargo",
"type": "volume"
}
],
// 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": "rustup target install x86_64-unknown-linux-musl | :",
2025-05-17 23:57:52 +00:00
// Configure tool-specific properties.
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh"
},
"extensions": [
2025-06-05 22:08:24 +00:00
"mhutchie.git-graph",
"Gruntfuggly.todo-tree",
"ryanluker.vscode-coverage-gutters"
2025-05-17 23:57:52 +00:00
]
}
2025-05-22 14:27:00 +00:00
},
2025-05-17 23:57:52 +00:00
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
2025-05-22 14:27:00 +00:00
"remoteUser": "vscode"
2025-05-17 23:57:52 +00:00
}