forked from deanmlittle/svm-merkle-tree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
44 lines (39 loc) · 1.12 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
[package]
name = "dd-merkle-tree"
version = "0.1.1"
description = "A rust/wasm/svm-compatible merkle tree"
edition = "2021"
[lib]
crate-type = ["cdylib", "lib"]
name = "dd_merkle_tree"
[features]
no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
idl-build = ["anchor-lang/idl-build"]
default = ["standard"]
standard = ["sha2", "sha3", "rayon"]
wasm = ["wasm-bindgen", "sha2", "sha3"]
anchor = ["anchor-lang", "solana"]
solana = ["solana-program"]
[profile.release]
lto = true
[dependencies]
anchor-lang = { version = "0.30.0", optional = true }
solana-program = { version = "1.17.25", optional = true }
rayon = { version = "1.10.0", optional = true }
sha2 = { version = "0.10.8", optional = true }
sha3 = { version = "0.10.8", optional = true }
wasm-bindgen = { version = "0.2.92", optional = true }
hex-literal = "0.4.1"
hex = "0.4.3"
thiserror = "1.0.56"
anyhow = "1.0.83"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
anchor-lang = { version = "0.30.0" }
solana-program = { version = "1.17.25" }
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2.92"
sha2 = "0.10.8"
sha3 = "0.10.8"