Skip to content

Commit

Permalink
Add feature for wasm targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-lj committed Dec 12, 2024
1 parent 3bbbcac commit f519333
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions fastcrypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ fastcrypto-derive = { path = "../fastcrypto-derive", version = "0.1.3" }
serde_json = "1.0.93"
num-bigint = "0.4.4"
bech32 = "0.9.1"
getrandom = {version = "0.2.15", features = ["js"], optional = true}

# Required for bulletproofs
bulletproofs = { version = "4.0.0", optional = true }
Expand Down Expand Up @@ -114,6 +115,9 @@ experimental = ["dep:bulletproofs", "dep:merlin"]
# Include AES and its modes.
aes = ["dep:aes", "dep:cbc", "dep:aes-gcm", "dep:ctr", "dep:aes-gcm-siv"]

# Needs to be enabled for wasm targets.
wasm = ["dep:getrandom"]

[dev-dependencies]
criterion = "0.4.0"
k256 = { version = "0.11.6", features = ["ecdsa", "sha256", "keccak256"] }
Expand Down

0 comments on commit f519333

Please sign in to comment.