mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 14:02:22 -05: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:
parent
e3af483fa6
commit
f94f365e14
2 changed files with 21 additions and 0 deletions
17
.devcontainer/devcontainer.json
Normal file
17
.devcontainer/devcontainer.json
Normal 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
4
.devcontainer/setup.sh
Executable file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||||
|
rustup install stable
|
||||||
|
bash install.sh
|
Loading…
Reference in a new issue