forked from input-output-hk/mithril
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
127 lines (113 loc) · 3.69 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
[package]
name = "mithril-common"
version = "0.4.59"
description = "Common types, interfaces, and utilities for Mithril nodes."
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
include = ["**/*.rs", "Cargo.toml", "README.md", ".gitignore", "openapi.yaml"]
[lib]
crate-type = ["lib", "cdylib", "staticlib"]
[[bench]]
name = "block_range"
harness = false
[[bench]]
name = "digester"
harness = false
required-features = ["fs"]
[[bench]]
name = "merkle_tree"
harness = false
[[bench]]
name = "merkle_map"
harness = false
[dependencies]
anyhow = "1.0.86"
async-trait = "0.1.82"
bech32 = "0.11.0"
blake2 = "0.10.6"
chrono = { version = "0.4.38", features = ["serde"] }
ciborium = "0.2.2"
ckb-merkle-mountain-range = "0.6.0"
digest = "0.10.7"
ed25519-dalek = { version = "2.1.1", features = ["rand_core", "serde"] }
fixed = "1.28.0"
glob = { version = "0.3.1", optional = true }
hex = "0.4.3"
jsonschema = { version = "0.18.1", optional = true }
kes-summed-ed25519 = { version = "0.2.1", features = [
"serde_enabled",
"sk_clone_enabled",
] }
mithril-stm = { path = "../mithril-stm", version = "0.3", default-features = false }
nom = "7.1.3"
pallas-addresses = { version = "0.30.1", optional = true }
pallas-codec = { version = "0.30.1", optional = true }
pallas-hardano = { version = "0.30.1", optional = true }
pallas-network = { version = "0.30.1", optional = true }
pallas-primitives = { version = "0.30.1", optional = true }
pallas-traverse = { version = "0.30.1", optional = true }
rand_chacha = "0.3.1"
rand_core = "0.6.4"
rayon = "1.10.0"
reqwest = { version = "0.12.7", optional = true }
semver = "1.0.23"
serde = { version = "1.0.209", features = ["derive"] }
serde_bytes = "0.11.15"
serde_json = "1.0.128"
serde_with = "3.9.0"
serde_yaml = "0.9.34"
sha2 = "0.10.8"
slog = "2.7.0"
strum = { version = "0.26.3", features = ["derive"] }
thiserror = "1.0.63"
tokio = { version = "1.40.0", features = ["io-util", "rt", "sync"] }
typetag = "0.2.18"
walkdir = "2.5.0"
warp = { version = "0.3.7", optional = true }
[target.'cfg(target_family = "wasm")'.dependencies]
wasm-bindgen = "0.2.93"
[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports", "async_tokio"] }
mockall = "0.13.0"
pallas-crypto = "0.30.1"
rand_core = { version = "0.6.4", features = ["getrandom"] }
reqwest = { version = "0.12.7", features = ["json"] }
slog-async = "2.8.0"
slog-term = "2.9.1"
tokio = { version = "1.40.0", features = ["macros", "rt-multi-thread", "time"] }
[build-dependencies]
mithril-build-script = { path = "../internal/mithril-build-script", version = "=0.2" }
[features]
default = ["rug-backend"]
# Full feature set
full = ["random", "fs", "test_tools"]
random = ["rand_core/getrandom"]
fs = [
"tokio/fs",
"tokio/process",
"dep:pallas-addresses",
"dep:pallas-codec",
"dep:pallas-hardano",
"dep:pallas-network",
"dep:pallas-primitives",
"dep:pallas-traverse",
]
# Enables `rug-backend` features for `mithril-stm` dependency
rug-backend = ["mithril-stm/rug-backend"]
# Enables `num-integer-backend` features for `mithril-stm` dependency
# by default it's `rug-backend`
num-integer-backend = ["mithril-stm/num-integer-backend"]
# Disable signer certification, to be used only for tests
allow_skip_signer_certification = []
# Enable all tests tools
test_tools = ["apispec", "test_http_server", "random"]
# Enable tools to helps validate conformity to an OpenAPI specification
apispec = ["dep:glob", "dep:jsonschema", "dep:warp", "dep:reqwest"]
test_http_server = ["dep:warp"]
[package.metadata.docs.rs]
all-features = true
# enable unstable features in the documentation
rustdoc-args = ["--cfg", "docsrs"]