From 2e9ff5dfa3f11415f0efe9b946ee2734500e9ee3 Mon Sep 17 00:00:00 2001 From: Jeff Hemphill Date: Wed, 18 Oct 2023 07:09:10 -0700 Subject: [PATCH] Add `rust-toolchain.toml` to raytracing example (#3607) --- .github/workflows/main.yml | 2 +- examples/raytrace-parallel/rust-toolchain.toml | 5 +++++ examples/wasm-audio-worklet/rust-toolchain.toml | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 examples/raytrace-parallel/rust-toolchain.toml create mode 100644 examples/wasm-audio-worklet/rust-toolchain.toml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4078fe6d..8363d0eaa 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -69,7 +69,7 @@ jobs: - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown -- -D warnings - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown --tests -- -D warnings - run: cargo clippy --no-deps --all-features --target wasm32-unknown-unknown -p wasm-bindgen-benchmark -- -D warnings - - run: for i in examples/*/; do cd "$i"; cargo clippy --no-deps --all-features --target wasm32-unknown-unknown -- -D warnings || exit 1; cd ../..; done + - run: for i in examples/*/; do cd "$i"; cargo +stable clippy --no-deps --all-features --target wasm32-unknown-unknown -- -D warnings || exit 1; cd ../..; done test_wasm_bindgen: name: "Run wasm-bindgen crate tests (unix)" diff --git a/examples/raytrace-parallel/rust-toolchain.toml b/examples/raytrace-parallel/rust-toolchain.toml new file mode 100644 index 000000000..fa80a7bad --- /dev/null +++ b/examples/raytrace-parallel/rust-toolchain.toml @@ -0,0 +1,5 @@ +[toolchain] +channel = "nightly" +components = ["rust-src"] +targets = ["wasm32-unknown-unknown"] +profile = "minimal" diff --git a/examples/wasm-audio-worklet/rust-toolchain.toml b/examples/wasm-audio-worklet/rust-toolchain.toml new file mode 100644 index 000000000..fa80a7bad --- /dev/null +++ b/examples/wasm-audio-worklet/rust-toolchain.toml @@ -0,0 +1,5 @@ +[toolchain] +channel = "nightly" +components = ["rust-src"] +targets = ["wasm32-unknown-unknown"] +profile = "minimal"