From ee0ff082a4a2ed9716613f2c7e7fe1244c49feb0 Mon Sep 17 00:00:00 2001 From: Boshen Date: Thu, 28 Nov 2024 19:11:30 +0800 Subject: [PATCH] chore(deps): update dependency rust to v1.82.0 --- .github/workflows/ci.yml | 5 +++++ .github/workflows/release_wasm.yml | 4 ++++ rust-toolchain.toml | 2 +- tasks/ast_tools/src/schema/defs.rs | 1 + 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5cd132c6355353..dda2ea0a49a970 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,6 +121,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: taiki-e/checkout-action@v1 + + # wasm bindgen breaks under rustc 1.82.0 wasm-bindgen 0.2.95 + # https://github.com/rustwasm/wasm-bindgen/issues/4207 + - run: sed -i ${{ (runner.os == 'macOS' && '""') || '' }} -e 's/82/81/g' rust-toolchain.toml + - uses: Boshen/setup-rust@main with: cache-key: wasm diff --git a/.github/workflows/release_wasm.yml b/.github/workflows/release_wasm.yml index 1fd1d49af3c037..761e0755b886a9 100644 --- a/.github/workflows/release_wasm.yml +++ b/.github/workflows/release_wasm.yml @@ -45,6 +45,10 @@ jobs: steps: - uses: taiki-e/checkout-action@v1 + # wasm bindgen breaks under rustc 1.82.0 wasm-bindgen 0.2.95 + # https://github.com/rustwasm/wasm-bindgen/issues/4207 + - run: sed -i ${{ (runner.os == 'macOS' && '""') || '' }} -e 's/82/81/g' rust-toolchain.toml + - uses: ./.github/actions/pnpm - uses: Boshen/setup-rust@main diff --git a/rust-toolchain.toml b/rust-toolchain.toml index bbf217f21b9acc..5f3ff177655ca9 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.81.0" +channel = "1.82.0" profile = "default" diff --git a/tasks/ast_tools/src/schema/defs.rs b/tasks/ast_tools/src/schema/defs.rs index 6a05e355e73c47..433d5f05be2f01 100644 --- a/tasks/ast_tools/src/schema/defs.rs +++ b/tasks/ast_tools/src/schema/defs.rs @@ -14,6 +14,7 @@ use super::TypeName; #[derive(Debug, Serialize)] #[serde(untagged)] +#[expect(clippy::large_enum_variant)] pub enum TypeDef { Struct(StructDef), Enum(EnumDef),