@@ -6,6 +6,8 @@ license = "MIT OR Apache-2.0"
6
6
repository = " https://github.com/ChainSafe/WebZjs"
7
7
description = " A browser client-side library for implementing Zcash wallets"
8
8
edition = " 2021"
9
+ resolver = " 2"
10
+
9
11
10
12
[lib ]
11
13
crate-type = [" cdylib" , " rlib" ]
@@ -20,17 +22,17 @@ codegen-units = 1
20
22
wasm-opt = [" -O4" , " -O4" ]
21
23
22
24
[features ]
23
- default = [" native" ]
25
+ default = [" native" , " multicore " ]
24
26
25
27
native = [" tonic/channel" , " tonic/gzip" , " tonic/tls-webpki-roots" ]
26
- wasm-parallel = [" wasm" , " wasm-bindgen-rayon" ]
27
- wasm = [" console_error_panic_hook" , " dep:tracing-web" ]
28
+ multicore = [" zcash_proofs/multicore" , " zcash_primitives/multicore" , " zcash_client_memory/multicore" ]
28
29
30
+ # WASM specific features
31
+ wasm = [" console_error_panic_hook" , " dep:tracing-web" , " zcash_client_backend/wasm-bindgen" ]
32
+ wasm-parallel = [" wasm" , " wasm-bindgen-rayon" , " multicore" ]
29
33
console_error_panic_hook = [" dep:console_error_panic_hook" ]
30
-
31
34
no-bundler = [" wasm-bindgen-rayon?/no-bundler" ]
32
35
33
-
34
36
[dependencies ]
35
37
# # Web dependencies
36
38
wasm-bindgen = " 0.2.84"
@@ -46,20 +48,19 @@ tonic-web-wasm-client = "0.6.0"
46
48
47
49
# # Zcash dependencies
48
50
zcash_keys = { git = " https://github.com/ChainSafe/librustzcash" , rev = " a77e8a0204dab421fdbf5822e585716339567b96" , features = [" transparent-inputs" , " orchard" , " sapling" , " unstable" ] }
49
- zcash_client_backend = { git = " https://github.com/ChainSafe/librustzcash" , rev = " a77e8a0204dab421fdbf5822e585716339567b96" , default-features = false , features = [" lightwalletd-tonic" , " wasm-bindgen " ] }
51
+ zcash_client_backend = { git = " https://github.com/ChainSafe/librustzcash" , rev = " a77e8a0204dab421fdbf5822e585716339567b96" , default-features = false , features = [" lightwalletd-tonic" ] }
50
52
zcash_client_memory = { git = " https://github.com/ChainSafe/librustzcash" , rev = " a77e8a0204dab421fdbf5822e585716339567b96" , features = [" orchard" ] }
51
53
zcash_primitives = { git = " https://github.com/ChainSafe/librustzcash" , rev = " a77e8a0204dab421fdbf5822e585716339567b96" }
52
54
zcash_address = { git = " https://github.com/ChainSafe/librustzcash" , rev = " a77e8a0204dab421fdbf5822e585716339567b96" }
53
55
zcash_proofs = { git = " https://github.com/ChainSafe/librustzcash" , rev = " a77e8a0204dab421fdbf5822e585716339567b96" , default-features = false , features = [" bundled-prover" ] }
54
56
57
+
55
58
# # gRPC Web dependencies
56
59
prost = { version = " 0.12" , default-features = false }
57
60
tonic = { version = " 0.12" , default-features = false , features = [
58
61
" prost" ,
59
62
] }
60
63
61
-
62
-
63
64
getrandom = { version = " 0.2" , features = [" js" ] }
64
65
thiserror = " 1.0.63"
65
66
indexed_db_futures = " 0.5.0"
@@ -72,7 +73,7 @@ nonempty = "0.7"
72
73
hex = " 0.4.3"
73
74
tracing-subscriber = { version = " 0.3.18" , features = [" env-filter" ] }
74
75
tracing = " 0.1.40"
75
-
76
+ rayon = " 1.8 "
76
77
77
78
[dev-dependencies ]
78
79
wasm-bindgen-test = " 0.3.42"
0 commit comments