From ace7cd7b0d7f0de1bbb33bd435971ea6ad3a6ff1 Mon Sep 17 00:00:00 2001 From: Vadim Getmanshchuk Date: Tue, 9 Jun 2026 10:33:15 -0500 Subject: [PATCH 1/2] chore: convert rust-toolchain to TOML and add wasm32-wasip1 target The release workflow failed because the wasm32-wasip1 target was not installed. The reusable workflow uses actions-rust-lang/setup-rust-toolchain which reads rust-toolchain.toml and installs declared targets automatically. Convert the plain-text rust-toolchain file to rust-toolchain.toml with the targets field so CI installs wasm32-wasip1 without manual steps. --- rust-toolchain | 1 - rust-toolchain.toml | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) delete mode 100644 rust-toolchain create mode 100644 rust-toolchain.toml diff --git a/rust-toolchain b/rust-toolchain deleted file mode 100644 index 55f6ae9..0000000 --- a/rust-toolchain +++ /dev/null @@ -1 +0,0 @@ -1.95.0 diff --git a/rust-toolchain.toml b/rust-toolchain.toml new file mode 100644 index 0000000..cb5b89d --- /dev/null +++ b/rust-toolchain.toml @@ -0,0 +1,3 @@ +[toolchain] +channel = "1.95.0" +targets = ["wasm32-wasip1"] From 9fa6c5bba285d7f0309d49693ca3bb04234911c2 Mon Sep 17 00:00:00 2001 From: Vadim Getmanshchuk Date: Tue, 9 Jun 2026 11:06:27 -0500 Subject: [PATCH 2/2] Fix CI: replace actions-rs/toolchain with rustup show for rust-toolchain.toml support --- .github/workflows/test.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7accee..75c2c08 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,14 +5,11 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install Rust - uses: actions-rs/toolchain@v1 - - name: Add wasm32-wasip1 Rust target - run: rustup target add wasm32-wasip1 - - name: Install rustfmt - run: rustup component add rustfmt - shell: bash + run: | + rustup show + rustup component add rustfmt - name: Check formatting run: cargo fmt --all -- --check shell: bash