diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000000..b127f11f0b --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,8 @@ +FROM mcr.microsoft.com/vscode/devcontainers/rust:0-1 + +# Update to Rust 1.54.0 +RUN rustup update 1.54.0 && rustup default 1.54.0 + +# Install Deno +ENV DENO_INSTALL=/usr/local +RUN curl -fsSL https://deno.land/x/install/install.sh | sh diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000000..d37be58f2f --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,26 @@ +{ + "name": "Rust", + "build": { + "dockerfile": "Dockerfile" + }, + "runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"], + + "settings": { + "lldb.executable": "/usr/bin/lldb", + // VS Code don't watch files under ./target + "files.watcherExclude": { + "**/target/**": true + } + }, + + "extensions": [ + "matklad.rust-analyzer", + "bungcip.better-toml", + "vadimcn.vscode-lldb", + "mutantdino.resourcemonitor" + ], + + "postCreateCommand": "git submodule update --init", + + "remoteUser": "vscode" +}