Skip to content

Commit 2847b5a

Browse files
woshilapinTristramg
authored andcommitted
move 'getrandom' to 'wasm' (only needed there)
Signed-off-by: Jean SIMARD <[email protected]>
1 parent 13e74ae commit 2847b5a

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,4 @@ thiserror = "2.0"
2626
osm4routing = "0.8"
2727
clap = { version = "4.5", features = ["derive"] }
2828
num-traits = "0.2"
29-
getrandom = { version = "0.3", features = ["wasm_js"] }
3029
geo-index = "0.3.1"

wasm/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,8 @@ geo-types = "*"
1212
wasm-bindgen = "0.2.92"
1313
serde-wasm-bindgen = "0.6.5"
1414
console_error_panic_hook = "0.1.1"
15+
16+
[target.wasm32-unknown-unknown.dependencies]
17+
# See also the configuration in `.cargo/config.toml`
18+
# https://docs.rs/getrandom/latest/getrandom/#webassembly-support
19+
getrandom = { version = "0.3", features = ["wasm_js"] }

0 commit comments

Comments
 (0)