Skip to content

Commit 3f4274e

Browse files
authored
Update MSRV to Rust v1.64.0. (#252)
Technically, this happened as a result of hashbrown update in #195, but we didn't catch it at the time. Add tests using MSRV to prevent this from happening in the future. Signed-off-by: Piotr Sikora <[email protected]>
1 parent 1109769 commit 3f4274e

File tree

2 files changed

+52
-3
lines changed

2 files changed

+52
-3
lines changed

.github/workflows/rust.yml

+51-2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,55 @@ jobs:
8888
bazelisk --noworkspace_rc run --noenable_bzlmod //bazel/cargo:crates_vendor
8989
git diff --exit-code
9090
91+
msrv:
92+
runs-on: ubuntu-latest
93+
94+
env:
95+
RUSTFLAGS: -D warnings
96+
97+
steps:
98+
- uses: actions/checkout@v2
99+
100+
- name: Install dependencies
101+
if: ${{ env.ACT }}
102+
run: |
103+
curl -OL https://static.rust-lang.org/rustup/rustup-init.sh
104+
chmod +x ./rustup-init.sh
105+
./rustup-init.sh -y --default-toolchain 1.64.0
106+
rm rustup-init.sh
107+
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
108+
109+
- name: Update Rust
110+
run: |
111+
rustup toolchain install 1.64.0 --component clippy --component rustfmt
112+
rustup default 1.64.0
113+
rustup target add wasm32-unknown-unknown
114+
rustup target add wasm32-wasi
115+
116+
- name: Build (wasm32-unknown-unknown)
117+
run: cargo build --release --all-targets --target=wasm32-unknown-unknown
118+
119+
- name: Clippy (wasm32-unknown-unknown)
120+
run: cargo clippy --release --all-targets --target=wasm32-unknown-unknown
121+
122+
- name: Build (wasm32-wasi)
123+
run: cargo build --release --all-targets --target=wasm32-wasi
124+
125+
- name: Clippy (wasm32-wasi)
126+
run: cargo clippy --release --all-targets --target=wasm32-wasi
127+
128+
- name: Format (rustfmt)
129+
run: cargo fmt -- --check
130+
131+
- name: Format (manifest)
132+
run: cargo verify-project
133+
134+
- name: Package (docs)
135+
run: cargo doc --no-deps --target=wasm32-unknown-unknown
136+
137+
- name: Package (publish)
138+
run: cargo publish --dry-run --target=wasm32-unknown-unknown
139+
91140
stable:
92141
runs-on: ubuntu-latest
93142

@@ -157,9 +206,9 @@ jobs:
157206
- name: Update Rust
158207
run: |
159208
rustup toolchain install nightly --component clippy --component rustfmt
160-
rustup +nightly target add wasm32-unknown-unknown
161-
rustup +nightly target add wasm32-wasi
162209
rustup default nightly
210+
rustup target add wasm32-unknown-unknown
211+
rustup target add wasm32-wasi
163212
164213
- name: Build (wasm32-unknown-unknown)
165214
run: cargo build --release --all-targets --target=wasm32-unknown-unknown

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "proxy-wasm"
33
version = "0.2.2"
44
authors = ["Piotr Sikora <[email protected]>"]
5-
rust-version = "1.61"
5+
rust-version = "1.64"
66
description = "WebAssembly for Proxies"
77
readme = "README.md"
88
license = "Apache-2.0"

0 commit comments

Comments
 (0)