| 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": "Rust", |
| 5 | |
| 6 | // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 7 | "image": "mcr.microsoft.com/devcontainers/rust:1-1-bookworm", |
| 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 | |
| 18 | // Features to add to the dev container. More info: https://containers.dev/features. |
| 19 | //"features": {}, |
| 20 | |
| 21 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 22 | //"forwardPorts": [], |
| 23 | |
| 24 | // Use 'postCreateCommand' to run commands after the container is created. |
| 25 | //"postCreateCommand": "rustc --version", |
| 26 | |
| 27 | // Configure tool-specific properties. |
| 28 | "customizations": { |
| 29 | "jetbrains": { |
| 30 | "backend": "RustRover", |
| 31 | }, |
| 32 | }, |
| 33 | |
| 34 | // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 35 | //"remoteUser": "root" |
| 36 | } |