Skip to content

Commit 30f8c9f

Browse files
committed
remove rust installations and change wasm32-wasi to wasm32-wasip1
Signed-off-by: Jiaxiao (mossaka) Zhou <[email protected]>
1 parent 50d16f9 commit 30f8c9f

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

.devcontainer/bootstrap.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# Install Rustup Installer
22
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
33

4-
# Install rust and other components
5-
readonly RUST_UP_PATH=$HOME/.cargo/bin
6-
$RUST_UP_PATH/rustup update stable && $RUST_UP_PATH/rustup default stable && $RUST_UP_PATH/rustup component add clippy rustfmt
7-
8-
# Install wasm32-wasi target
9-
$RUST_UP_PATH/rustup target add wasm32-wasi wasm32-unknown-unknown
10-
114
# Install k3d
125
curl -s https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[toolchain]
22
channel = "1.85.0"
33
components = ["clippy", "rustfmt"]
4-
targets = ["wasm32-wasi", "wasm32-unknown-unknown"]
4+
targets = ["wasm32-wasip1", "wasm32-unknown-unknown"]
55
profile = "default"

scripts/setup-linux.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
sudo apt -y update
33
sudo apt-get install -y protobuf-compiler libseccomp-dev
44

5-
echo "setting up rust"
6-
sudo rustup toolchain install --component clippy --component rustfmt --no-self-update stable
7-
sudo rustup target add wasm32-wasi && sudo rustup target add wasm32-unknown-unknown
8-
95
## setup tinygo. required for building test spin app
106
echo "setting up tinygo"
117
wget https://github.com/tinygo-org/tinygo/releases/download/v0.34.0/tinygo_0.34.0_amd64.deb

0 commit comments

Comments
 (0)