Skip to content

Commit 759c580

Browse files
committed
Update Rust toolchain to 1.49.0
1 parent 94faa0e commit 759c580

7 files changed

Lines changed: 248 additions & 155 deletions

File tree

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
"editor.defaultFormatter": "matklad.rust-analyzer"
2626
}
2727
},
28-
"postCreateCommand": "cd tests/app && cargo +1.46.0 build --release --target wasm32-wasi && cd ../.."
29-
}
28+
"postCreateCommand": "cd tests/app && cargo +1.49.0 build --release --target wasm32-wasi && cd ../.."
29+
}

.devcontainer/setup.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ apt-get install -y \
1414
clang
1515

1616
## Install rustup and common components
17-
curl https://sh.rustup.rs -sSf | sh -s -- -y
17+
curl https://sh.rustup.rs -sSf | sh -s -- -y
1818

1919
source $HOME/.cargo/env
2020

2121
rustup install 1.46
2222
rustup component add rustfmt --toolchain nightly
23-
rustup component add clippy
23+
rustup component add clippy
2424

2525
# add wasm target
26-
rustup target add wasm32-wasi --toolchain 1.46.0
26+
rustup target add wasm32-wasi --toolchain 1.49.0
2727

2828
# macro expansion debugging
2929
cargo install cargo-expand
@@ -39,4 +39,4 @@ cargo install cargo-watch
3939
#cp -R /root/.oh-my-zsh /home/$USERNAME
4040
#cp /root/.zshrc /home/$USERNAME
4141
#sed -i -e "s/\/root\/.oh-my-zsh/\/home\/$USERNAME\/.oh-my-zsh/g" /home/$USERNAME/.zshrc
42-
#chown -R $USER_UID:$USER_GID /home/$USERNAME/.oh-my-zsh /home/$USERNAME/.zshrc
42+
#chown -R $USER_UID:$USER_GID /home/$USERNAME/.oh-my-zsh /home/$USERNAME/.zshrc

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ jobs:
7979
~/.cargo/registry
8080
~/.cargo/git
8181
target
82-
key: ${{ runner.os }}-1.46.0-cargo-${{ hashFiles('tests/app/Cargo.lock') }}
82+
key: ${{ runner.os }}-1.49.0-cargo-${{ hashFiles('tests/app/Cargo.lock') }}
8383
- name: Set up Rust
8484
uses: hecrj/setup-rust-action@v1
8585
with:
8686
targets: wasm32-wasi
87-
rust-version: "1.46.0"
87+
rust-version: "1.49.0"
8888
- name: Build
8989
working-directory: tests/app
9090
run: cargo build --locked --release --target wasm32-wasi

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@ The fastest way to get started with [Compute@Edge](https://www.fastly.com/produc
3131
$ fastly compute build
3232
```
3333

34-
Alternatively, you can also build your WASM application using Rust's standard cargo tooling.
34+
Alternatively, you can also build your WASM application using Rust's standard cargo tooling.
3535

36-
> Fastly assumes a Rust toolchain version of `1.46.0`
36+
> Fastly assumes a Rust toolchain version of `1.49.0`
3737
3838
```sh
39-
# optionally install 1.46.0 if you have not done so already
40-
$ rustup install 1.46.0 --profile minimal
39+
# optionally install 1.49.0 if you have not done so already
40+
$ rustup install 1.49.0 --profile minimal
4141
# optionally install the wasm32 toolchain if you have not done so already
42-
$ rustup target add wasm32-wasi --toolchain 1.46.0
42+
$ rustup target add wasm32-wasi --toolchain 1.49.0
4343
# build a release mode .wasm executable
44-
$ cargo +1.46.0 build --release --target wasm32-wasi
44+
$ cargo +1.49.0 build --release --target wasm32-wasi
4545
```
4646

4747
To start fasttime, just provide it with the path to your Fastly Compute@Edge `.wasm` build artifact.
@@ -71,7 +71,7 @@ $ fasttime -w target/wasm32-wasi/release/app.wasm \
7171
This pairs well with a `cargo watch` workflow. In another terminal, run
7272

7373
```sh
74-
$ cargo +1.46.0 watch -x 'build --release --target wasm32-wasi'
74+
$ cargo +1.49.0 watch -x 'build --release --target wasm32-wasi'
7575
```
7676

7777
You can then make changes to your application in your text editor, have cargo automatically rebuild your application, and have `fasttime` automatically reload it as you develop your application
@@ -90,7 +90,7 @@ $ fasttime -w target/wasm32-wasi/release/app.wasm \
9090

9191
#### 📚 dictionaries
9292

93-
A common way to look up key-value'd information in Fastly is to use [edge dictionaries](https://docs.fastly.com/en/guides/about-edge-dictionaries). `fasttime` supports providing multiple `-d | --dictionary` flags with values of the form `{dictionary}:{key}={value},{key2}={value2}`.
93+
A common way to look up key-value'd information in Fastly is to use [edge dictionaries](https://docs.fastly.com/en/guides/about-edge-dictionaries). `fasttime` supports providing multiple `-d | --dictionary` flags with values of the form `{dictionary}:{key}={value},{key2}={value2}`.
9494

9595
```sh
9696
$ fasttime -w target/wasm32-wasi/release/app.wasm \

0 commit comments

Comments
 (0)