-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer-rust.json
More file actions
65 lines (59 loc) · 1.72 KB
/
devcontainer-rust.json
File metadata and controls
65 lines (59 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
{
"name": "Rust Development Container",
"image": "mcr.microsoft.com/devcontainers/rust:latest",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true
},
"ghcr.io/devcontainers/features/git:1": {
"version": "latest"
},
"ghcr.io/devcontainers/features/github-cli:1": {
"version": "latest"
}
},
"customizations": {
"vscode": {
"extensions": [
"editorconfig.editorconfig",
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
"serayuzgur.crates",
"vadimcn.vscode-lldb",
"streetsidesoftware.code-spell-checker",
"davidanson.vscode-markdownlint",
"eamodio.gitlens",
"github.vscode-github-actions",
"ms-azuretools.vscode-docker"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "zsh",
"editor.formatOnSave": true,
"[rust]": {
"editor.defaultFormatter": "rust-lang.rust-analyzer"
},
"rust-analyzer.checkOnSave.command": "clippy",
"rust-analyzer.cargo.features": "all",
"rust-analyzer.inlayHints.typeHints.enable": true,
"rust-analyzer.inlayHints.parameterHints.enable": true,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true
}
}
},
"postCreateCommand": "cargo fetch && rustup component add clippy rustfmt",
"remoteUser": "vscode",
"forwardPorts": [8080, 3000],
"portsAttributes": {
"8080": {
"label": "Application",
"onAutoForward": "notify"
},
"3000": {
"label": "Alt Application",
"onAutoForward": "silent"
}
}
}