devcontainer.json 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. {
  2. "name": "Rust",
  3. "build": {
  4. "dockerfile": "Dockerfile",
  5. "args": {
  6. // Use the VARIANT arg to pick a Debian OS version: buster, bullseye
  7. // Use bullseye when on local on arm64/Apple Silicon.
  8. "VARIANT": "bullseye"
  9. }
  10. },
  11. // Configure tool-specific properties.
  12. "customizations": {
  13. // Configure properties specific to VS Code.
  14. "vscode": {
  15. // Set *default* container specific settings.json values on container create.
  16. "settings": {
  17. "lldb.executable": "/usr/bin/lldb",
  18. // VS Code don't watch files under ./target
  19. "files.watcherExclude": {
  20. "**/target/**": true
  21. },
  22. "rust-analyzer.checkOnSave.command": "clippy"
  23. },
  24. // Add the IDs of extensions you want installed when the container is created.
  25. "extensions": [
  26. "vadimcn.vscode-lldb",
  27. "mutantdino.resourcemonitor",
  28. "rust-lang.rust-analyzer",
  29. "tamasfe.even-better-toml",
  30. "serayuzgur.crates",
  31. "mhutchie.git-graph"
  32. ]
  33. }
  34. },
  35. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  36. // "forwardPorts": [],
  37. // Use 'postCreateCommand' to run commands after the container is created.
  38. // "postCreateCommand": "rustc --version",
  39. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  40. "remoteUser": "vscode"
  41. }