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" : " uProtocol-USubscription rust" ,
5
+ "build" : {
6
+ "dockerfile" : " Dockerfile"
7
+ },
8
+ "runArgs" : [
9
+ " --privileged"
10
+ ],
11
+ // This is a workaround which is again necessary on MacOS 14.0, it looks like this bug is back:
12
+ // https://github.com/microsoft/vscode-dev-containers/issues/1487#issuecomment-1143907307
13
+ "mounts" : [
14
+ " source=rust-volume,target=/rust-volume,type=volume"
15
+ ],
16
+ "postCreateCommand" : " sudo .devcontainer/post-create.sh" ,
17
+ "customizations" : {
18
+ "vscode" : {
19
+ // Set *default* container specific settings.json values on container create.
20
+ "settings" : {
21
+ "lldb.executable" : " /usr/bin/lldb" ,
22
+ // VS Code don't watch files under ./target
23
+ "files.watcherExclude" : {
24
+ "**/target/**" : true
25
+ },
26
+ "rust-analyzer.checkOnSave.command" : " clippy" ,
27
+ "coverage-gutters.coverageBaseDir" : " **" ,
28
+ "coverage-gutters.coverageFileNames" : [
29
+ " target/tarpaulin/lcov.info"
30
+ ]
31
+ },
32
+ // Add the IDs of extensions you want installed when the container is created.
33
+ "extensions" : [
34
+ " asciidoctor.asciidoctor-vscode" ,
35
+ " bianxianyang.htmlplay" ,
36
+ " bierner.markdown-mermaid" ,
37
+ " bierner.markdown-preview-github-styles" ,
38
+ " davidanson.vscode-markdownlint" ,
39
+ " hediet.vscode-drawio" ,
40
+ " linusu.auto-dark-mode" ,
41
+ " mhutchie.git-graph" ,
42
+ " ryanluker.vscode-coverage-gutters" ,
43
+ " rust-lang.rust-analyzer" ,
44
+ " streetsidesoftware.code-spell-checker" ,
45
+ " tamasfe.even-better-toml" ,
46
+ " timonwong.shellcheck" ,
47
+ " vadimcn.vscode-lldb" ,
48
+ " yzhang.markdown-all-in-one" ,
49
+ " zxh404.vscode-proto3"
50
+ ]
51
+ }
52
+ },
53
+ "workspaceMount" : " source=${localWorkspaceFolder},target=/workspace/up-subscription-rust/,type=bind" ,
54
+ "workspaceFolder" : " /workspace/up-subscription-rust/" ,
55
+ "remoteUser" : " vscode"
56
+ }
0 commit comments