52 lines
No EOL
1.7 KiB
JSON
52 lines
No EOL
1.7 KiB
JSON
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.224.2/containers/rust
|
|
{
|
|
"name": "Rust",
|
|
"build": {
|
|
"dockerfile": "Dockerfile",
|
|
"args": {
|
|
// Use the VARIANT arg to pick a Debian OS version: buster, bullseye
|
|
// Use bullseye when on local on arm64/Apple Silicon.
|
|
"VARIANT": "bullseye"
|
|
}
|
|
},
|
|
"runArgs": [
|
|
"--name=tcpaste-dev",
|
|
"--cap-add=SYS_PTRACE",
|
|
"--userns=keep-id",
|
|
"--network=host",
|
|
"--security-opt",
|
|
"seccomp=unconfined",
|
|
"--security-opt",
|
|
"label=disable"
|
|
],
|
|
// Set *default* container specific settings.json values on container create.
|
|
"settings": {
|
|
"lldb.executable": "/usr/bin/lldb",
|
|
// VS Code don't watch files under ./target
|
|
"files.watcherExclude": {
|
|
"**/target/**": true
|
|
},
|
|
"rust-analyzer.checkOnSave.command": "clippy"
|
|
},
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
"extensions": [
|
|
"vadimcn.vscode-lldb",
|
|
"mutantdino.resourcemonitor",
|
|
"matklad.rust-analyzer",
|
|
"tamasfe.even-better-toml",
|
|
"serayuzgur.crates",
|
|
"Swellaby.vscode-rust-test-adapter",
|
|
"mhutchie.git-graph",
|
|
"eamodio.gitlens",
|
|
"gurumukhi.selected-lines-count",
|
|
],
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// "forwardPorts": [],
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
//"postCreateCommand": "",
|
|
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
|
//"remoteUser": "vscode",
|
|
// "workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,Z",
|
|
// "workspaceFolder": "/workspace",
|
|
} |