Skip to content

Commit d91d5e7

Browse files
committed
build: Add getrandom w/ WASM support
Needed by many packages, fixes WASM builds.
1 parent e4b5942 commit d91d5e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buttplug/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ tokio-stream = "0.1.17"
9292
instant = "0.1.13"
9393
regex = "1.11.1"
9494
tokio-tungstenite = { version = "0.26.1", features = ["rustls-tls-webpki-roots", "url"], optional = true }
95-
# This needs to follow whatever tokio-tungstenite and reqwest expects. Right now that's 0.22, not
96-
# 0.23. Remember to check in the future.
9795
rustls = { version = "0.23.20", optional = true, default-features = false, features = ["ring"]}
9896
aes = { version = "0.8.4" }
9997
ecb = { version = "0.1.2", features = ["std"] }
10098
rand = { version = "0.8.5" }
10199
sha2 = { version = "0.10.8", features = ["std"] }
100+
# Used by several packages, but we need to bring in the JS feature for wasm.
101+
getrandom = { version = "0.2", features = ["js"] }
102102

103103
[dev-dependencies]
104104
serde_yaml = "0.9.34"

0 commit comments

Comments
 (0)