diff --git a/.changes/getrandom-js-feature.md b/.changes/getrandom-js-feature.md new file mode 100644 index 00000000..85e1f5a4 --- /dev/null +++ b/.changes/getrandom-js-feature.md @@ -0,0 +1,5 @@ +--- +"iota-crypto": minor +--- + +Added js feature to getrandom for wasm compatibility. diff --git a/Cargo.toml b/Cargo.toml index a2d49493..e9a09661 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -73,7 +73,7 @@ chacha20poly1305 = { version = "0.8", optional = true } digest = { version = "0.9", optional = true, default-features = false } ed25519-zebra = { version = "2.2", optional = true, default-features = false } generic-array = { version = "0.14", optional = true, default-features = false } -getrandom = { version = "0.2", optional = true, default-features = false } +getrandom = { version = "0.2", optional = true, default-features = false, features = ["js"] } hmac_ = { version = "0.11", optional = true, default-features = false, package = "hmac" } lazy_static = { version = "1.4", optional = true, default-features = false } pbkdf2 = { version = "0.8", optional = true, default-features = false }