Skip to content

Commit 02201db

Browse files
committed
chore: modernize WASM
1 parent 6981414 commit 02201db

File tree

3 files changed

+75
-26
lines changed

3 files changed

+75
-26
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
- name: Test main lib in headless Chrome
3939
run: wasm-pack test --headless --chrome rust
4040
- name: Test derive lib in headless Chrome
41-
run: wasm-pack test --headless --chrome rust/derive
41+
run: RUSTFLAGS='--cfg getrandom_backend="wasm_js"' wasm-pack test --headless --chrome rust --all-features

Cargo.lock

Lines changed: 71 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ strict_encoding_test = { path = "./test_helpers" }
2828

2929
[target.'cfg(target_arch = "wasm32")'.dependencies]
3030
wasm-bindgen = "0.2"
31-
rand = { version = "0.8.4", optional = true }
32-
getrandom = { version = "0.2", features = ["js"], optional = true }
31+
rand = { version = "0.9.1", optional = true }
32+
getrandom = { version = "0.3", features = ["wasm_js"] }
33+
getrandom2 = { package = "getrandom", version = "0.2", features = ["js"] }
3334

3435
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
3536
wasm-bindgen-test = "0.3"

0 commit comments

Comments
 (0)