diff options
| author | Emmanuel Roullit <emmanuel.roullit@gmail.com> | 2022-12-01 14:05:10 +0100 |
|---|---|---|
| committer | Emmanuel Roullit <emmanuel.roullit@gmail.com> | 2022-12-01 14:15:35 +0100 |
| commit | f94f365e146fa37b66e5c2e6b392d282f8c049f1 (patch) | |
| tree | 8ff2e6c8ce8fe24ea3f3b8167a463d24d2c406cf | |
| parent | e3af483fa68dbe2efd957327500b55acd86ef0fd (diff) | |
dev: add basic devcontainer settings file
Theses settings files are the base needed to declare and
bootstrap development environment on codespaces
Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
| -rw-r--r-- | .devcontainer/devcontainer.json | 17 | ||||
| -rwxr-xr-x | .devcontainer/setup.sh | 4 |
2 files changed, 21 insertions, 0 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..0fd90cc --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,17 @@ +{ + "image": "mcr.microsoft.com/devcontainers/universal:2", + "waitFor": "onCreateCommand", + "onCreateCommand": ".devcontainer/setup.sh", + "updateContentCommand": "cargo build", + "postCreateCommand": "", + "postAttachCommand": { + "server": "rustlings watch" + }, + "customizations": { + "vscode": { + "extensions": [ + "rust-lang.rust-analyzer" + ] + } + } +} diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh new file mode 100755 index 0000000..e50bde3 --- /dev/null +++ b/.devcontainer/setup.sh @@ -0,0 +1,4 @@ +#!/bin/bash +curl https://sh.rustup.rs -sSf | sh -s -- -y +rustup install stable +bash install.sh |
