Skip to content

Commit f94f365

Browse files
committed
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>
1 parent e3af483 commit f94f365

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/universal:2",
3+
"waitFor": "onCreateCommand",
4+
"onCreateCommand": ".devcontainer/setup.sh",
5+
"updateContentCommand": "cargo build",
6+
"postCreateCommand": "",
7+
"postAttachCommand": {
8+
"server": "rustlings watch"
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"rust-lang.rust-analyzer"
14+
]
15+
}
16+
}
17+
}

.devcontainer/setup.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
curl https://sh.rustup.rs -sSf | sh -s -- -y
3+
rustup install stable
4+
bash install.sh

0 commit comments

Comments
 (0)