-
Notifications
You must be signed in to change notification settings - Fork 4
/
Cargo.toml
55 lines (48 loc) · 2.18 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[package]
name = "pivx-shield-rust"
version = "1.1.6"
authors = ["Duddino <[email protected]>", "Alessandro Rezzi <[email protected]>"]
edition = "2021"
description = "WASM library for interoperation with the PIVX Shield sapling protocol."
repository = "https://github.com/PIVX-Labs/pivx-shield"
license = "MIT"
[lib]
crate-type = ["cdylib", "rlib"]
[features]
default = ["console_error_panic_hook"]
multicore = ["pivx_proofs/multicore", "wasm-bindgen-rayon"]
[dependencies]
tokio = { version = "1.40.0", default-features = false, features = ["sync", "macros"] }
rayon = "1.10.0"
sha256 = { version = "1.5.0", default-features = false }
getrandom = { version = "0.2.15", features = ["js"] }
reqwest = { version = "0.12.0", features = ["blocking"] }
wasm-bindgen = "0.2.93" # Wasm-bindgen makes stdweb fail to compile. See https://github.com/koute/stdweb/issues/427
wasm-bindgen-futures = "0.4.43"
pivx_client_backend = { git = "https://github.com/Duddino/librustpivx" }
pivx_primitives = { git = "https://github.com/Duddino/librustpivx", default-features = false, features = ["transparent-inputs"] }
pivx_proofs = { git = "https://github.com/Duddino/librustpivx", default-features = false, features = ["local-prover"] }
serde = { version = "1.0", features = ["derive"] }
serde-wasm-bindgen = "0.6.5"
serde_json = "1.0.128"
jubjub = "0.9"
hex = "0.4.3"
# The `console_error_panic_hook` crate provides better debugging of panics by
# logging them with `console.error`. This is great for development, but requires
# all the `std::fmt` and `std::panicking` infrastructure, so isn't great for
# code size when deploying.
console_error_panic_hook = { version = "0.1.7", optional = true }
secp256k1 = "0.21.3"
either = "1.13.0"
wasm-bindgen-rayon = { version = "1.2.1", optional = true }
rand_core = "0.6.4"
atomic_float = "1.1.0"
[dev-dependencies]
tokio = { version = "1.40.0", features = ["full"] }
pivx_primitives = { git = "https://github.com/Duddino/librustpivx", default-features = false, features = ["transparent-inputs", "test-dependencies"] }
wasm-bindgen-test = "0.3.13"
[profile.release]
opt-level = 3
lto = true
[package.metadata.wasm-pack.profile.release]
wasm-opt = ["-O4", "--enable-mutable-globals"]