From abc0d296601794d85fe1e20280543266f2570552 Mon Sep 17 00:00:00 2001 From: Josh McKinney Date: Fri, 18 Oct 2024 05:22:19 -0700 Subject: [PATCH] pin toolchain version to 1.81 (#775) --- .github/workflows/ci.yml | 6 ++++-- rust-toolchain.toml | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 rust-toolchain.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5e04d55a..88c2bd31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,9 @@ jobs: steps: - uses: actions/checkout@v4 - name: Install Rust - run: rustup update stable + uses: dtolnay/rust-toolchain@master + with: + toolchain: 1.81 # because 1.82 broke tests with main functions in them - name: Build dependencies run: RUSTFLAGS="--cfg tokio_unstable" cargo build @@ -50,7 +52,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '18' + node-version: "18" - name: Install node dependencies run: npm install diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 00000000..81f2b564 --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +# rust 1.82 introduced a breaking change that causes the doc tests to fail +channel = "1.81"