Skip to content

Commit 5027e14

Browse files
authored
Simplify onto Microsoft Rust image
1 parent 9f5c5f0 commit 5027e14

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.devcontainer/devcontainer.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
// For format details, see https://aka.ms/devcontainer.json.
22
{
33
"name": "Rust",
4-
"build": {
5-
"dockerfile": "Dockerfile",
6-
"args": {
7-
// Use the VARIANT arg to pick a Debian OS version: buster, bullseye
8-
// Use bullseye when on local on arm64/Apple Silicon.
9-
"VARIANT": "bullseye"
10-
}
11-
},
4+
"image": "mcr.microsoft.com/devcontainers/rust",
5+
// "image": "rust:1-trixie",
6+
// "image": "mcr.microsoft.com/devcontainers/base:debian-bullseye",
7+
// "build": {
8+
// "dockerfile": "Dockerfile",
9+
// "args": {
10+
// // Use the VARIANT arg to pick a Debian OS version: buster, bullseye
11+
// // Use bullseye when on local on arm64/Apple Silicon.
12+
// "VARIANT": "trixie"
13+
// }
14+
// },
1215
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
1316

1417
// Configure tool-specific properties.
@@ -21,8 +24,7 @@
2124
// VS Code don't watch files under ./target
2225
"files.watcherExclude": {
2326
"**/target/**": true
24-
},
25-
"rust-analyzer.checkOnSave.command": "clippy"
27+
}
2628
},
2729

2830
// Add the IDs of extensions you want installed when the container is created.
@@ -42,11 +44,12 @@
4244
// "postCreateCommand": "rustc --version",
4345

4446
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
45-
"remoteUser": "vscode",
47+
// "remoteUser": "vscode",
4648
"features": {
4749
"git": "os-provided",
4850
"github-cli": "latest",
49-
"ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {},
51+
"rust": "latest",
52+
// "ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {},
5053
"ghcr.io/devcontainers/features/sshd:1": {
5154
"version": "latest"
5255
}

0 commit comments

Comments
 (0)