|
2 | 2 | // README at: https://github.com/devcontainers/templates/tree/main/src/rust
|
3 | 3 | {
|
4 | 4 | "name": "Rust",
|
5 |
| - // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
6 | 5 | "dockerComposeFile": "docker-compose.yml",
|
7 | 6 | "service": "devcontainer",
|
8 | 7 | "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
|
9 | 8 | "features": {
|
10 |
| - "ghcr.io/devcontainers/features/rust:1": {} |
| 9 | + "ghcr.io/devcontainers/features/rust:1": { |
| 10 | + "version": "1.66.0" |
| 11 | + } |
11 | 12 | },
|
12 | 13 | "customizations": {
|
13 | 14 | "vscode": {
|
14 | 15 | "extensions": [
|
15 |
| - "rust-lang.rust-analyzer", // rust analyser |
| 16 | + "rust-lang.rust-analyzer@prerelease", // rust analyser, pre-release has less bugs |
16 | 17 | "cschleiden.vscode-github-actions", // github actions
|
17 | 18 | "serayuzgur.crates", // crates
|
18 | 19 | "vadimcn.vscode-lldb" //debug
|
|
32 | 33 | // "type": "volume"
|
33 | 34 | // }
|
34 | 35 | // ]
|
35 |
| - |
36 |
| - // Features to add to the dev container. More info: https://containers.dev/features. |
37 |
| - // "features": {}, |
38 |
| - |
39 |
| - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
40 | 36 | "forwardPorts": [
|
41 | 37 | 8000, // GraphiQL on node-port
|
42 | 38 | 8020, // create and deploy subgraphs
|
43 | 39 | 5001 //ipfs
|
44 | 40 | ]
|
45 | 41 |
|
46 |
| - // Use 'postCreateCommand' to run commands after the container is created. |
47 |
| - // "postCreateCommand": "rustc --version", |
48 |
| - |
49 |
| - // Configure tool-specific properties. |
50 |
| - // "customizations": {}, |
51 |
| - |
52 |
| - // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
53 |
| - // "remoteUser": "root" |
54 | 42 | }
|
0 commit comments