changeset 626:850a007b8737

Conditional getrandom and wasm feature
author NumberFour8 <lukas.pohanka@inina.net>
date Tue, 05 Sep 2023 12:46:17 +0200
parents 90a85d60e34f
children 7413aefa4d22
files Cargo.toml
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Cargo.toml	Tue Sep 05 10:59:39 2023 +0200
+++ b/Cargo.toml	Tue Sep 05 12:46:17 2023 +0200
@@ -19,6 +19,7 @@
 crc = "1.8"
 integer-encoding = "3.0"
 rand = "0.7"
+getrandom = { optional = true, version = "0.2.10", features = ["js"] }
 snap = "1.0"
 
 errno = { optional = true, version = "0.2" }
@@ -28,6 +29,7 @@
 
 [features]
 default = ["fs"]
+wasm = ["getrandom"]
 async = ["tokio"]
 fs = ["errno", "fs2"]