forked from nervosnetwork/sparse-merkle-tree
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
54 lines (47 loc) · 1.11 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
[package]
name = "sparse-merkle-tree"
version = "0.6.1"
authors = ["jjy <[email protected]>"]
edition = "2018"
license = "MIT"
repository = "https://github.com/nervosnetwork/sparse-merkle-tree"
description = "Sparse merkle tree implement in rust"
include = [
"/src",
"/benches",
"/build.rs",
"/c/deps/ckb-c-stdlib",
"/c/ckb_smt.h",
]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[features]
default = ["std"]
std = []
# SMT implemented in C
smtc = []
# A storage optimized SMT implemented in trie (https://ouvrard-pierre-alain.medium.com/sparse-merkle-tree-86e6e2fc26da)
trie = []
[dependencies]
cfg-if = "1"
blake2b-rs = "0.2"
serde_with = { version = "3.3.0", features = ["hex"] }
serde = "1.0.183"
hex = "0.4.3"
ethers = "2.0.9"
tiny-keccak = "2.0.2"
[dev-dependencies]
proptest = "0.9"
criterion = "0.2"
rand = "0.8"
hex = "0.4.3"
serde_json = "1.0"
anyhow = "1.0.65"
serde_with = { version = "3.3.0", features = ["hex"] }
[[bench]]
name = "smt_benchmark"
harness = false
[[bench]]
name = "store_counter_benchmark"
harness = false
[build-dependencies]
cc = "1.0"