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" : " bullseye"
11+ }
12+ },
13+ "runArgs" : [
14+ " --cap-add=SYS_PTRACE" ,
15+ " --security-opt" ,
16+ " seccomp=unconfined"
17+ ],
18+ // Configure tool-specific properties.
19+ "customizations" : {
20+ // Configure properties specific to VS Code.
21+ "vscode" : {
22+ // Set *default* container specific settings.json values on container create.
23+ "settings" : {
24+ "lldb.executable" : " /usr/bin/lldb" ,
25+ // VS Code don't watch files under ./target
26+ "files.watcherExclude" : {
27+ "**/target/**" : true
28+ },
29+ "rust-analyzer.checkOnSave.command" : " clippy"
30+ },
31+ // Add the IDs of extensions you want installed when the container is created.
32+ "extensions" : [
33+ " vadimcn.vscode-lldb" ,
34+ " mutantdino.resourcemonitor" ,
35+ " rust-lang.rust-analyzer" ,
36+ " tamasfe.even-better-toml" ,
37+ " serayuzgur.crates" ,
38+ " ms-azuretools.vscode-docker" ,
39+ " ms-vscode-remote.vscode-remote-extensionpack" ,
40+ " ms-azure-devops.azure-pipelines"
41+ ]
42+ }
43+ },
44+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
45+ // "forwardPorts": [],
46+ // Use 'postCreateCommand' to run commands after the container is created.
47+ // "postCreateCommand": "rustc --version",
48+ "postCreateCommand" : " pwsh ./.devcontainer/Invoke-PostCreateCommand.ps1" ,
49+ "postStartCommand" : " ./.devcontainer/postStartCommand.sh" ,
50+ // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
51+ "remoteUser" : " vscode" ,
52+ "features" : {
53+ "docker-from-docker" : " latest" ,
54+ "powershell" : " latest"
55+ }
56+ }
0 commit comments