-
Notifications
You must be signed in to change notification settings - Fork 2
/
Cargo.toml
94 lines (86 loc) · 2.54 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
[package]
name = "trinci-core"
version = "0.2.10"
authors = ["The Trinci Team <[email protected]>"]
edition = "2021"
description = "TRINCI Blockchain Core"
keywords = ["trinci", "blockchain", "core"]
[dependencies]
# Foundations
log = "0.4.14"
bs58 = "0.4.0"
hex = "0.4.3"
bitflags = "1.2.1"
async-std = "1.9.0"
futures = "0.3.15"
parking_lot = "0.12.0"
# rand needs to stay at 0.7 for ed25519-dalek
rand = "0.7"
# Serialization
serde = { version = "1.0.136", features = ["derive"] }
serde_bytes = "0.11.5"
rmp-serde = "1.0.0"
serde-value = { git = "https://github.com/affidaty-blockchain/serde-value", branch = "helper_macro" }
serde_json = { version = "1.0", features = ["preserve_order"] }
# Cryptography primitives
ring = { version = "0.16.20", default-features = false, features = ["std"] }
ed25519-dalek = "1.0.1"
# Exonum MerkleDB
merkledb = { git = "https://github.com/affidaty-blockchain/merkledb", default-features = false, features = [
"rocksdb_snappy",
"sodiumoxide-crypto",
], optional = true }
# WasmTime
# wasmtime = { version = "0.35.1", default-features = false, features = [
# "parallel-compilation",
# "cranelift",
# ], optional = true }
wasmtime = { version = "11.0.1", optional = true }
# P2P framework
libp2p = { version = "0.44.0", default-features = false, features = [
"tcp-async-io",
"mplex",
"plaintext",
"mdns",
"kad",
"gossipsub",
"identify",
"request-response",
], optional = true }
# HTTP framework
tide = { version = "0.16", default-features = false, features = [
"h1-server",
], optional = true }
# TPM2 interaction
tss-esapi = { version = "6.1.1", default-features = false, optional = true }
tss-esapi-sys = { version = "0.2.0", default-features = false, optional = true }
# Drand
rand_pcg = "0.3.1"
rand_core = "0.6.3"
# POST
isahc = { version = "1.6.0", optional = true }
# Indexer
curl = { version = "0.4", optional = true }
uuid = { version = "1.1.2", features = [
"v4", # Lets you generate random UUIDs
"fast-rng", # Use a faster (but still sufficiently random) RNG
], optional = true }
# Kafka
kafka = { version = "0.9.0", optional = true }
[dev-dependencies]
lazy_static = "1.4.0"
mockall = "0.11.0"
tempfile = "3.2.0"
ureq = { version = "2.1.1", default-features = false }
[features]
default = ["with-rocksdb", "with-wasmtime", "p2p", "rest", "bridge"]
indexer = ["curl", "uuid"]
with-rocksdb = ["merkledb"]
with-wasmtime = ["wasmtime"]
p2p = ["libp2p"]
rest = ["tide"]
bridge = []
tpm2 = ["tss-esapi", "tss-esapi-sys"]
rt-monitor = ["isahc"]
ro-exec = []
kafka-producer = ["kafka"]