[package]
edition = "2024"
name = "mithril-client"
version = "0.13.2"
authors = [
"dev@iohk.io",
"mithril-dev@iohk.io",
]
build = false
include = [
"**/*.rs",
"Cargo.toml",
"README.md",
".gitignore",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Mithril client library"
homepage = "https://mithril.network"
readme = "README.md"
categories = ["cryptography"]
license = "Apache-2.0"
repository = "https://github.com/input-output-hk/mithril/"
resolver = "2"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
default = [
"native-tls",
"rug-backend",
"enable-http-compression",
]
enable-http-compression = [
"reqwest/gzip",
"reqwest/zstd",
"reqwest/deflate",
"reqwest/brotli",
]
fs = [
"flate2",
"flume",
"tar",
"tokio/rt",
"zstd",
]
full = ["fs"]
native-tls = ["reqwest/native-tls"]
native-tls-alpn = ["reqwest/native-tls-alpn"]
native-tls-vendored = ["reqwest/native-tls-vendored"]
num-integer-backend = ["mithril-common/num-integer-backend"]
portable = []
rug-backend = ["mithril-common/rug-backend"]
rustls-tls = ["reqwest/rustls-tls"]
rustls-tls-manual-roots = ["reqwest/rustls-tls-manual-roots"]
rustls-tls-native-roots = ["reqwest/rustls-tls-native-roots"]
rustls-tls-webpki-roots = ["reqwest/rustls-tls-webpki-roots"]
unstable = []
[lib]
name = "mithril_client"
crate-type = [
"lib",
"cdylib",
"staticlib",
]
path = "src/lib.rs"
[[test]]
name = "cardano_db_snapshot_list_get_download_verify"
path = "tests/cardano_db_snapshot_list_get_download_verify.rs"
required-features = ["fs"]
[[test]]
name = "cardano_transaction_proof"
path = "tests/cardano_transaction_proof.rs"
[[test]]
name = "certificate_get_list"
path = "tests/certificate_get_list.rs"
[[test]]
name = "mithril_stake_distribution_list_get_show_verify"
path = "tests/mithril_stake_distribution_list_get_show_verify.rs"
[[test]]
name = "snapshot_list_get_show_download_verify"
path = "tests/snapshot_list_get_show_download_verify.rs"
required-features = ["fs"]
[dependencies.anyhow]
version = "1.0.100"
[dependencies.async-trait]
version = "0.1.89"
[dependencies.chrono]
version = "0.4.42"
features = ["serde"]
[dependencies.flate2]
version = "1.1.8"
optional = true
[dependencies.flume]
version = "0.12.0"
optional = true
[dependencies.futures]
version = "0.3.31"
[dependencies.mithril-aggregator-client]
version = ">=0.1.4"
[dependencies.mithril-common]
version = ">=0.6"
default-features = false
[dependencies.reqwest]
version = "0.12.24"
features = [
"json",
"charset",
"http2",
"macos-system-configuration",
"stream",
]
default-features = false
[dependencies.serde]
version = "1.0.228"
features = [
"derive",
"rc",
]
[dependencies.serde_json]
version = "1.0.149"
[dependencies.slog]
version = "2.7.0"
[dependencies.strum]
version = "0.27.2"
features = ["derive"]
[dependencies.tar]
version = "0.4.44"
optional = true
[dependencies.thiserror]
version = "2.0.17"
[dependencies.tokio]
version = "1.49.0"
features = [
"rt",
"sync",
"time",
]
[dependencies.uuid]
version = "1.19.0"
features = ["v4"]
[dependencies.zstd]
version = "0.13.3"
optional = true
[dev-dependencies.axum]
version = "0.8.8"
features = ["json"]
[dev-dependencies.axum-test]
version = "18.6.0"
[dev-dependencies.bon]
version = "3.8.2"
[dev-dependencies.hex]
version = "0.4.3"
[dev-dependencies.http]
version = "1.4.0"
[dev-dependencies.httpmock]
version = "0.8.2"
[dev-dependencies.mockall]
version = "0.14.0"
[dev-dependencies.sha2]
version = "0.10.9"
[dev-dependencies.slog-async]
version = "2.8.0"
[dev-dependencies.slog-term]
version = "2.9.2"
[dev-dependencies.tokio]
version = "1.49.0"
features = [
"rt",
"sync",
"time",
"macros",
]
[dev-dependencies.tower-http]
version = "0.6.8"
features = ["fs"]
[target.'cfg(not(target_family = "wasm"))'.dependencies.mithril-aggregator-discovery]
version = "0.1"
[target.'cfg(not(target_family = "wasm"))'.dependencies.mithril-cardano-node-internal-database]
version = "0.1"
[target.'cfg(not(target_family = "wasm"))'.dependencies.rand]
version = "0.9.2"
[target.'cfg(target_family = "wasm")'.dependencies.getrandom]
version = "0.2.16"
features = ["js"]
[target.'cfg(target_family = "wasm")'.dependencies.uuid]
version = "1.19.0"
features = [
"v4",
"js",
]