forked from input-output-hk/mithril
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
79 lines (69 loc) · 2.32 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
[package]
name = "mithril-client"
version = "0.5.16"
description = "Mithril client library"
authors = { workspace = true }
edition = { workspace = true }
homepage = { workspace = true }
license = { workspace = true }
repository = { workspace = true }
categories = ["cryptography"]
include = ["**/*.rs", "Cargo.toml", "README.md", ".gitignore"]
[lib]
crate-type = ["lib", "cdylib", "staticlib"]
[[test]]
name = "snapshot_list_get_show_download_verify"
path = "tests/snapshot_list_get_show_download_verify.rs"
required-features = ["fs"]
[dependencies]
anyhow = "1.0.75"
async-recursion = "1.0.5"
async-trait = "0.1.73"
chrono = { version = "0.4.31", features = ["serde"] }
flate2 = { version = "1.0.27", optional = true }
flume = { version = "0.11.0", optional = true }
futures = "0.3.28"
reqwest = { version = "0.11.22", features = ["json", "stream"] }
semver = "1.0.19"
serde = { version = "1.0.188", features = ["derive"] }
serde_json = "1.0.107"
slog = "2.7.0"
strum = { version = "0.25.0", features = ["derive"] }
tar = { version = "0.4.40", optional = true }
thiserror = "1.0.49"
tokio = { version = "1.32.0", features = ["sync"] }
uuid = { version = "1.5.0", features = ["v4"] }
zstd = { version = "0.13.0", optional = true }
[target.'cfg(not(target_family = "wasm"))'.dependencies]
mithril-common = { path = "../mithril-common", version = "0.2", features = [
"fs",
] }
[target.'cfg(target_family = "wasm")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
mithril-common = { path = "../mithril-common", version = "0.2" }
reqwest = { version = "0.11.22", features = ["json", "stream"] }
[dev-dependencies]
httpmock = "0.6.8"
indicatif = { version = "0.17.7", features = ["tokio"] }
mithril-common = { path = "../mithril-common", version = "0.2", features = [
"random",
"test_tools",
] }
mockall = "0.12.0"
slog-async = "2.8.0"
slog-scope = "4.4.0"
slog-term = "2.9.0"
tokio = { version = "1.32.0", features = ["macros", "rt"] }
warp = "0.3"
[features]
# Include nothing by default
default = []
# Full feature set
full = ["fs"]
# Enable file system releated functionnality, right now that mean ony snapshot download
fs = ["flate2", "flume", "tar", "tokio/rt", "zstd"]
portable = ["mithril-common/portable"]
[package.metadata.docs.rs]
all-features = true
# enable unstable features in the documentation
rustdoc-args = ["--cfg", "docsrs"]