optional rust-crypto for beacon bin

This commit is contained in:
poma 2020-01-17 22:05:27 +07:00
parent 2703431b77
commit 4ccd5b1e0d
No known key found for this signature in database
GPG Key ID: BA20CB01FE165657

@ -29,6 +29,7 @@ bellman_ce = { path = "../bellman", default-features = false } # active features
# needed for native only but don't break wasm if present # needed for native only but don't break wasm if present
num_cpus = "1" num_cpus = "1"
crossbeam = "0.3" crossbeam = "0.3"
rust-crypto = { version = "0.2", optional = true }
# needed for wasm only # needed for wasm only
wasm-bindgen = { version = "0.2.58", optional = true } wasm-bindgen = { version = "0.2.58", optional = true }
@ -37,5 +38,5 @@ web-sys = { version = "0.3.35", features = ["console"], optional = true }
console_error_panic_hook = { version = "0.1.6", optional = true } console_error_panic_hook = { version = "0.1.6", optional = true }
[features] [features]
default = ["bellman_ce/multicore"] default = ["bellman_ce/multicore", "rust-crypto"]
wasm = ["wasm-bindgen", "js-sys", "web-sys", "console_error_panic_hook", "bellman_ce/wasm"] wasm = ["wasm-bindgen", "js-sys", "web-sys", "console_error_panic_hook", "bellman_ce/wasm"]