diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 000000000..0ca9c711e --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,4 @@ +# NOTE: see https://hub.docker.com/_/microsoft-vscode-devcontainers +ARG VARIANT="buster" +FROM mcr.microsoft.com/vscode/devcontainers/rust:1-${VARIANT} +RUN sudo apt update && sudo apt install -y cmake diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 000000000..ab0943d0e --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,9 @@ +{ + "name": "Rust", + "build": { + "dockerfile": "Dockerfile", + "args": { "VARIANT": "buster" } + }, + "extensions": ["EditorConfig.EditorConfig"], + "remoteUser": "vscode" +} diff --git a/.editorconfig b/.editorconfig index 7de8d32ee..7d715a8a0 100644 --- a/.editorconfig +++ b/.editorconfig @@ -13,3 +13,7 @@ indent_size = 2 [{Makefile,.SRCINFO}] indent_style = tab + +[*.json] +indent_style = space +indent_size = 2 diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..50081e8cd --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,6 @@ +{ + "search.exclude": { + "**/node_modules": false, + "**/target": true + } +}