forked from YanOctavian/sparse-merkle-tree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
62 lines (53 loc) · 1.45 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
56
57
58
59
60
61
62
[package]
name = "sparse-merkle-tree"
version = "0.6.1"
authors = ["jjy <jjyruby@gmail.com>"]
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 = [
"serde/std",
"codec/std",
"serde_with/std",
"scale-info/std",
"utoipa",
]
# 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 = {version = "1"}
serde = { version = "1.0.105", features = ["derive"], default-features = false }
codec = { package = "parity-scale-codec", version = "3.6.9", features = ["derive"], default-features = false }
serde_with = { version = "3.3.0", features = ["hex", "alloc", "macros"], default-features = false}
scale-info = { version = "2.10.0", default-features = false, features = [
"derive",
] }
utoipa = { version = "5.2.0", features = ["actix_extras"], optional = true}
[dev-dependencies]
proptest = "0.9"
criterion = "0.2"
rand = "0.8"
hex = "0.4.3"
serde_json = "1.0"
anyhow = "1.0.65"
[[bench]]
name = "smt_benchmark"
harness = false
[[bench]]
name = "store_counter_benchmark"
harness = false
[build-dependencies]
cc = "1.0"