Skip to content

Commit 8bf753e

Browse files
authored
ci: pin Rust to 1.81 for wasm32-unknown-unknown tests (#3125)
There is an incompatibility with the version of Node available on our test runners and wasm32 in Rust 1.82 (#3123). To unblock the CI, this change pins Rust to 1.81 for the tests using the `wasm32-unknown-unknown` target. This is the same strategy used in Tokio to mitigate tokio-rs/tokio#6910 until a more permanent fix can be put in place. This change also bumps the MSRV on the `tracing-examples` crate from 1.63.0 to 1.64.0 to avoid triggering a lint about the MSRV after a change in Tokio 1.41.0 which bumps the required Rust version for the `try_join!` macro. The Tokio MSRV is 1.70 now, so needing this bump for the examples seems reasonable.
1 parent cb9ec62 commit 8bf753e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/CI.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,10 @@ jobs:
269269
- tracing
270270
steps:
271271
- uses: actions/checkout@v4
272-
- uses: dtolnay/rust-toolchain@stable
272+
- name: Install Rust 1.81
273+
uses: dtolnay/rust-toolchain@stable
273274
with:
275+
toolchain: 1.81
274276
target: wasm32-unknown-unknown
275277
- name: install test runner for wasm
276278
uses: taiki-e/install-action@wasm-pack

examples/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "tracing-examples"
33
version = "0.0.0"
44
publish = false
55
edition = "2018"
6-
rust-version = "1.63.0"
6+
rust-version = "1.64.0"
77

88
[features]
99
default = []

0 commit comments

Comments
 (0)