Skip to content

Commit a6cc40e

Browse files
committed
build: More wasm CI fixing
1 parent 45050b8 commit a6cc40e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ jobs:
9393
with:
9494
version: 'latest'
9595
- name: Build Dev
96-
run: wasm-pack build --dev crates/buttplug_server --no-default-features --features wasm
96+
run: RUSTFLAGS='--cfg getrandom_backend="wasm_js"' wasm-pack build --dev crates/buttplug_server --no-default-features --features wasm

crates/buttplug_server/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,5 @@ byteorder = "1.5.0"
5959
rand = { version = "0.8" }
6060

6161
[target.wasm32-unknown-unknown.dependencies]
62-
getrandom = { version = "0.2.15", features = ["js"]}
62+
getrandom = { version = "0.3.3", features = ["wasm_js"]}
63+
getrandom_old = { version = "0.2.15", features = ["js"], package = "getrandom"}

0 commit comments

Comments
 (0)