Skip to content

Commit

Permalink
Perf codespace experience (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy authored Jan 17, 2024
1 parent 0f5386a commit 85885da
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"image": "mcr.microsoft.com/devcontainers/universal:2",
"postCreateCommand": "${containerWorkspaceFolder}/scripts/env_setup.bash",
"customizations": {
"vscode": {
"extensions": [
"tamasfe.even-better-toml",
"rust-lang.rust-analyzer",
"mads-hartmann.bash-ide-vscode"
]
}
}
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
target/
tmp/
!tmp/.gitkeep
Cargo.lock
Cargo.lock
scripts/rustup.sh
6 changes: 5 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
{
"recommendations": ["swellaby.rust-pack", "lizebang.bash-extension-pack", "pkief.material-icon-theme"]
"recommendations": [
"tamasfe.even-better-toml",
"rust-lang.rust-analyzer",
"mads-hartmann.bash-ide-vscode"
]
}
4 changes: 3 additions & 1 deletion ENV_SETUP.bash → scripts/env_setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ if [[ $CUR_SYSTEM =~ $UBUNTU_FLAG ]];then
sudo apt install -y libseccomp-dev gcc
fi

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs >> scripts/rustup.sh
chmod +x scripts/rustup.sh
./scripts/rustup.sh -y

0 comments on commit 85885da

Please sign in to comment.