Skip to content

Commit

Permalink
Merge pull request #195 from RCasatta/2024-01--wasm
Browse files Browse the repository at this point in the history
Fix WASM build and add a job in CI
  • Loading branch information
delta1 authored Feb 21, 2025
2 parents 73403be + 7c6933d commit 7debedd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,15 @@ jobs:
DO_FEATURE_MATRIX: false
run: ./contrib/test.sh

Wasm:
name: Check WASM
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- run: rustup target add wasm32-unknown-unknown
- run: cargo check --target wasm32-unknown-unknown
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ actual-serde = { package = "serde", version = "1.0.103", features = [
], optional = true }


[target.wasm32-unknown-unknown.dev-dependencies]
getrandom = { version = "0.2", features = ["js"] }

[dev-dependencies]
rand = "0.8"
rand_chacha = "0.3"
Expand Down

0 comments on commit 7debedd

Please sign in to comment.