1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-12 11:14:55 +02:00

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>
This commit is contained in:
Emmanuel Roullit 2022-12-01 14:05:10 +01:00
parent e3af483fa6
commit f94f365e14
2 changed files with 21 additions and 0 deletions

View File

@ -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"
]
}
}
}

4
.devcontainer/setup.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
curl https://sh.rustup.rs -sSf | sh -s -- -y
rustup install stable
bash install.sh