|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/rust |
| 3 | +{ |
| 4 | + "name": "static-config", |
| 5 | + "build": { |
| 6 | + "dockerfile": "Dockerfile" |
| 7 | + }, |
| 8 | + |
| 9 | + // Use 'mounts' to make the cargo cache persistent in a Docker Volume. |
| 10 | + "mounts": [ |
| 11 | + { |
| 12 | + "source": "devcontainer-cargo-cache-${devcontainerId}", |
| 13 | + "target": "/usr/local/cargo", |
| 14 | + "type": "volume" |
| 15 | + }, |
| 16 | + { |
| 17 | + "source": "devcontainer-rustup-cache-${devcontainerId}", |
| 18 | + "target": "/usr/local/rustup", |
| 19 | + "type": "volume" |
| 20 | + } |
| 21 | + ], |
| 22 | + |
| 23 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 24 | + "features": { |
| 25 | + "ghcr.io/devcontainers/features/github-cli:1": {} |
| 26 | + }, |
| 27 | + |
| 28 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 29 | + "postCreateCommand": "cargo check", |
| 30 | + |
| 31 | + // Configure tool-specific properties. |
| 32 | + "customizations": { |
| 33 | + // Configure properties specific to VS Code. |
| 34 | + "vscode": { |
| 35 | + // Set *default* container specific settings.json values on container create. |
| 36 | + "settings": { |
| 37 | + "dev.containers.githubCLILoginWithToken": true |
| 38 | + }, |
| 39 | + "extensions": [ |
| 40 | + "bytecodealliance.wit-idl", |
| 41 | + "github.vscode-github-actions", |
| 42 | + "ms-azuretools.vscode-containers", |
| 43 | + "rust-lang.rust-analyzer", |
| 44 | + "streetsidesoftware.code-spell-checker", |
| 45 | + "tamasfe.even-better-toml", |
| 46 | + "vadimcn.vscode-lldb" |
| 47 | + ] |
| 48 | + } |
| 49 | + } |
| 50 | + |
| 51 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 52 | + // "remoteUser": "root" |
| 53 | +} |
0 commit comments