-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.devcontainer.json
More file actions
99 lines (99 loc) · 3.72 KB
/
.devcontainer.json
File metadata and controls
99 lines (99 loc) · 3.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"image": "ghcr.io/magicolo/rust",
"containerUser": "ubuntu",
"remoteUser": "ubuntu",
"remoteEnv": {
// General
"COMPOSE_BAKE": "1",
"DOCKER_BUILDKIT": "1",
// Rust
"RUST_TEST_NOCAPTURE": "1",
"CARGO_TARGET_DIR": "/home/ubuntu/.rust/target"
},
"containerEnv": {
// General
"COMPOSE_BAKE": "1",
"DOCKER_BUILDKIT": "1",
// Rust
"RUST_TEST_NOCAPTURE": "1",
"CARGO_TARGET_DIR": "/home/ubuntu/.rust/target"
},
"mounts": [
{
"source": "${localEnv:HOME}/.ssh",
"target": "/home/ubuntu/.ssh",
"type": "bind"
},
{
"source": "${localEnv:HOME}/.gitconfig",
"target": "/home/ubuntu/.gitconfig",
"type": "bind"
},
{
"source": "${localEnv:HOME}/.docker",
"target": "/home/ubuntu/.docker",
"type": "bind"
},
{
"source": "${localEnv:HOME}/.rust",
"target": "/home/ubuntu/.rust",
"type": "bind"
}
],
"features": {
"ghcr.io/devcontainers/features/common-utils": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker": {}
},
"customizations": {
"vscode": {
"extensions": [
// General
"streetsidesoftware.code-spell-checker",
"mutantdino.resourcemonitor",
"ms-azuretools.vscode-docker",
"yzhang.markdown-all-in-one",
"humao.rest-client",
"mhutchie.git-graph",
"ryanluker.vscode-coverage-gutters",
"usernamehw.errorlens",
"Gruntfuggly.todo-tree",
"mechatroner.rainbow-csv",
"dotenv.dotenv-vscode",
"fill-labs.dependi",
"github.vscode-github-actions",
"Codeium.codeium",
// Rust
"tamasfe.even-better-toml",
"vadimcn.vscode-lldb",
"rust-lang.rust-analyzer",
"Swellaby.vscode-rust-test-adapter"
],
"settings": {
// General
"dev.containers.dockerCredentialHelper": false,
"dev.containers.copyGitConfig": false,
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnSaveMode": "file",
"testExplorer.useNativeTesting": true,
"files.watcherExclude": {
"**/target/**": true
},
"errorLens.enabledDiagnosticLevels": ["error", "warning"],
"todo-tree.regex.regex": "(//|#|<!--|;|/\\*|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)|todo!|unimplemented!",
// Rust
"rust-analyzer.check.command": "clippy",
"rust-analyzer.showUnlinkedFileNotification": false,
"rust-analyzer.imports.preferNoStd": true,
"rust-analyzer.testExplorer": true,
"rust-analyzer.rustfmt.overrideCommand": [
"bash",
"-c",
"$(rustup which --toolchain nightly rustfmt) --edition 2024 --style-edition 2024 --unstable-features --config wrap_comments=true --config imports_granularity='Crate' --config format_code_in_doc_comments=true --config reorder_impl_items=true --config group_imports='One' ${file}"
],
"rust-analyzer.rustfmt.rangeFormatting.enable": true
}
}
},
"initializeCommand": "mkdir --parents ${localEnv:HOME}/.ssh ${localEnv:HOME}/.docker ${localEnv:HOME}/.rust && touch ${localEnv:HOME}/.gitconfig"
}