Skip to content

Commit b93d9c0

Browse files
committed
chore: Pin getrandom to fixed version for Web WASM builds (#61)
1 parent 3da57b6 commit b93d9c0

File tree

5 files changed

+50
-145
lines changed

5 files changed

+50
-145
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,9 @@ jobs:
4646
- name: Test Docs
4747
run: cargo doc --locked
4848
- name: Test wasm
49-
env:
50-
RUSTFLAGS: --cfg getrandom_backend="wasm_js"
5149
run: wasm-pack test --headless --chrome --firefox -- --locked --all-features
5250
if: startsWith(matrix.os, 'ubuntu')
5351
- name: Test wasm (no default features)
54-
env:
55-
RUSTFLAGS: --cfg getrandom_backend="wasm_js"
5652
run: wasm-pack test --headless --chrome --firefox -- --locked --no-default-features
5753
if: startsWith(matrix.os, 'ubuntu')
5854
miri:

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ authors = ["Gonçalo Rica Pais da Silva <[email protected]>"]
88
edition = "2024"
99
repository = "https://github.com/Bluefinger/bevy_rand"
1010
license = "MIT OR Apache-2.0"
11-
version = "0.12.0"
11+
version = "0.12.1"
1212
rust-version = "1.86.0"
1313

1414
[workspace.dependencies]
@@ -62,7 +62,7 @@ bevy_reflect = { workspace = true, optional = true }
6262
bevy_prng = { path = "bevy_prng", version = "0.12" }
6363

6464
# others
65-
getrandom = "0.3.1"
65+
getrandom = "0.3.4"
6666
rand_core.workspace = true
6767
rand_core_06 = { workspace = true, optional = true }
6868

@@ -91,7 +91,7 @@ serde = { workspace = true }
9191

9292
[target.'cfg(all(target_family = "wasm", any(target_os = "unknown", target_os = "none")))'.dev-dependencies]
9393
wasm-bindgen-test = "0.3"
94-
getrandom = { version = "0.3", features = ["wasm_js"] }
94+
getrandom = { version = "0.3.4", features = ["wasm_js"] }
9595
getrandom_02 = { version = "0.2", features = ["js"], package = "getrandom" }
9696
bevy_ecs = { version = "0.17.0", default-features = false, features = [
9797
"bevy_reflect",

0 commit comments

Comments
 (0)