Skip to content

Commit b4c3bc3

Browse files
committed
Fix wasm stuff
1 parent bcebd8e commit b4c3bc3

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Cargo.lock

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ async-trait = "0.1"
2525
chrono = { version = "0.4", features = ["clock", "wasmbind"], default-features = false }
2626
fake = { version = "4.2", features = ["chrono"] }
2727
colorgrad = "0.7"
28-
getrandom = { version = "0.3" }
2928
humansize = "2"
3029
humantime = "2"
3130
instant = { version = "0.1", features = ["now", "wasm-bindgen"] }
3231
lazy_static = "1.5"
3332
progress_string = "0.2"
33+
getrandom = { version = "0.3", features = ["wasm_js"] }
3434
rand = "0.9"
3535
rand_distr = "0.5"
3636
regex = "1.11"

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ build-apple:
1818

1919
.PHONY: build-web
2020
build-web:
21-
trunk build --release
21+
RUSTFLAGS='--cfg getrandom_backend="wasm_js"' trunk build --release
2222

2323
.PHONY: clean
2424
clean:

0 commit comments

Comments
 (0)