feat: Add devcontainer (#1248)
Signed-off-by: Praateek <praateekm@gmail.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
# Use Rust base image
|
||||||
|
FROM mcr.microsoft.com/devcontainers/rust:1
|
||||||
|
|
||||||
|
# Install additional dependencies
|
||||||
|
RUN apt-get update && apt-get install -y \
|
||||||
|
build-essential \
|
||||||
|
libdbus-1-dev \
|
||||||
|
gnome-keyring \
|
||||||
|
libxcb1-dev \
|
||||||
|
&& apt-get clean
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
{
|
||||||
|
"name": "Rust Dev Container",
|
||||||
|
"build": {
|
||||||
|
"dockerfile": "Dockerfile"
|
||||||
|
},
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/rust:1": {
|
||||||
|
"version": "stable"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"rust-lang.rust-analyzer",
|
||||||
|
"vadimcn.vscode-lldb"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"terminal.integrated.defaultProfile.linux": "/bin/bash"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"postCreateCommand": "cargo build",
|
||||||
|
"remoteUser": "vscode",
|
||||||
|
"mounts": [
|
||||||
|
"source=${localWorkspaceFolder}/crates,target=/workspace/crates,type=bind"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user