diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 00000000..52dd46a7 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -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 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000..3abb5937 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -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" + ] + } + \ No newline at end of file