|
1 | 1 | // For format details, see https://aka.ms/devcontainer.json. |
2 | 2 | { |
3 | 3 | "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 | + // }, |
12 | 15 | "runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], |
13 | 16 |
|
14 | 17 | // Configure tool-specific properties. |
|
21 | 24 | // VS Code don't watch files under ./target |
22 | 25 | "files.watcherExclude": { |
23 | 26 | "**/target/**": true |
24 | | - }, |
25 | | - "rust-analyzer.checkOnSave.command": "clippy" |
| 27 | + } |
26 | 28 | }, |
27 | 29 |
|
28 | 30 | // Add the IDs of extensions you want installed when the container is created. |
|
42 | 44 | // "postCreateCommand": "rustc --version", |
43 | 45 |
|
44 | 46 | // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
45 | | - "remoteUser": "vscode", |
| 47 | + // "remoteUser": "vscode", |
46 | 48 | "features": { |
47 | 49 | "git": "os-provided", |
48 | 50 | "github-cli": "latest", |
49 | | - "ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {}, |
| 51 | + "rust": "latest", |
| 52 | + // "ghcr.io/meaningful-ooo/devcontainer-features/fish:1": {}, |
50 | 53 | "ghcr.io/devcontainers/features/sshd:1": { |
51 | 54 | "version": "latest" |
52 | 55 | } |
|
0 commit comments