diff options
| author | wznmickey <first@wznmickey.com> | 2024-03-28 00:11:19 +0800 |
|---|---|---|
| committer | wznmickey <first@wznmickey.com> | 2024-03-28 00:11:19 +0800 |
| commit | dd72429af49afbfbf0c1f59f053ecc4382d074fc (patch) | |
| tree | 81cc6a54f23a6f5c8a2ca4ae221efda0910c64a4 /.devcontainer | |
| parent | 92183a74c4c7b91459c1371bb7a68b5e4c1c23bd (diff) | |
| parent | 34d04139cd372edc0dc611ad83e056d7c4b61a73 (diff) | |
Merge remote-tracking branch 'origin/main'
Diffstat (limited to '.devcontainer')
| -rw-r--r-- | .devcontainer/devcontainer.json | 19 | ||||
| -rwxr-xr-x | .devcontainer/setup.sh | 7 |
2 files changed, 5 insertions, 21 deletions
diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index e1b2cec..f25e8bd 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,17 +1,8 @@ { - "image": "mcr.microsoft.com/devcontainers/universal:2-linux", - "waitFor": "onCreateCommand", - "onCreateCommand": ".devcontainer/setup.sh", - "updateContentCommand": "cargo build", - "postCreateCommand": "", - "postAttachCommand": { - "server": "rustlings watch" - }, - "customizations": { - "vscode": { - "extensions": [ - "rust-lang.rust-analyzer" - ] - } + "image": "mcr.microsoft.com/devcontainers/rust:1", + "updateContentCommand": ["cargo", "build"], + "postAttachCommand": ["rustlings", "watch"], + "remoteEnv": { + "PATH": "${containerEnv:PATH}:${containerWorkspaceFolder}/target/debug" } } diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh deleted file mode 100755 index 0e090a8..0000000 --- a/.devcontainer/setup.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -curl https://sh.rustup.rs -sSf | sh -s -- -y - -# Update current shell environment variables after install to find rustup -. "$HOME/.cargo/env" -rustup install stable -bash install.sh |
