Browse Source

Add devcontainer/codespace config (#857)

* Add devcontainer/codespace config

* Fix devcontainer source

* Add note

* Install cmake to devcontainer

Required by libz-sys

* Run `apt update` first

* Run apt commands in sudo mode

* Use `-y` flag

🤦

* Exclude assets from VSCode search
pull/858/head
Spenser Black 3 years ago committed by GitHub
parent
commit
944ce50bd2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      .devcontainer/Dockerfile
  2. 9
      .devcontainer/devcontainer.json
  3. 4
      .editorconfig
  4. 6
      .vscode/settings.json

4
.devcontainer/Dockerfile

@ -0,0 +1,4 @@ @@ -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

9
.devcontainer/devcontainer.json

@ -0,0 +1,9 @@ @@ -0,0 +1,9 @@
{
"name": "Rust",
"build": {
"dockerfile": "Dockerfile",
"args": { "VARIANT": "buster" }
},
"extensions": ["EditorConfig.EditorConfig"],
"remoteUser": "vscode"
}

4
.editorconfig

@ -13,3 +13,7 @@ indent_size = 2 @@ -13,3 +13,7 @@ indent_size = 2
[{Makefile,.SRCINFO}]
indent_style = tab
[*.json]
indent_style = space
indent_size = 2

6
.vscode/settings.json vendored

@ -0,0 +1,6 @@ @@ -0,0 +1,6 @@
{
"search.exclude": {
"**/node_modules": false,
"**/target": true
}
}
Loading…
Cancel
Save