| 1 | // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: |
| 2 | // https://github.com/microsoft/vscode-dev-containers/tree/v0.245.2/containers/rust |
| 3 | { |
| 4 | "name": "Rust", |
| 5 | "build": { |
| 6 | "dockerfile": "Dockerfile", |
| 7 | "args": { |
| 8 | // Use the VARIANT arg to pick a Debian OS version: buster, bullseye |
| 9 | // Use bullseye when on local on arm64/Apple Silicon. |
| 10 | "VARIANT": "buster" |
| 11 | } |
| 12 | }, |
| 13 | "runArgs": [ |
| 14 | "--cap-add=SYS_PTRACE", |
| 15 | "--security-opt", |
| 16 | "seccomp=unconfined" |
| 17 | ], |
| 18 | |
| 19 | // Configure tool-specific properties. |
| 20 | "customizations": { |
| 21 | // Configure properties specific to VS Code. |
| 22 | "vscode": { |
| 23 | // Set *default* container specific settings.json values on container create. |
| 24 | "settings": { |
| 25 | "lldb.executable": "/usr/bin/lldb", |
| 26 | // VS Code don't watch files under ./target |
| 27 | "files.watcherExclude": { |
| 28 | "**/target/**": true |
| 29 | }, |
| 30 | "rust-analyzer.checkOnSave.command": "clippy" |
| 31 | }, |
| 32 | |
| 33 | // Add the IDs of extensions you want installed when the container is created. |
| 34 | "extensions": [ |
| 35 | "vadimcn.vscode-lldb", |
| 36 | "mutantdino.resourcemonitor", |
| 37 | "rust-lang.rust-analyzer", |
| 38 | "tamasfe.even-better-toml", |
| 39 | "serayuzgur.crates" |
| 40 | ] |
| 41 | } |
| 42 | }, |
| 43 | |
| 44 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 45 | // "forwardPorts": [], |
| 46 | |
| 47 | // Use 'postCreateCommand' to run commands after the container is created. |
| 48 | // "postCreateCommand": "rustc --version", |
| 49 | |
| 50 | // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 51 | "remoteUser": "vscode", |
| 52 | "features": { |
| 53 | "git": "latest", |
| 54 | "git-lfs": "latest" |
| 55 | } |
| 56 | } |