mithril-aggregator-client

Crates.iomithril-aggregator-client
lib.rsmithril-aggregator-client
version0.1.5
created_at2025-12-05 10:25:05.39417+00
updated_at2025-12-05 10:25:05.39417+00
descriptionClient to request data from a Mithril Aggregator
homepagehttps://mithril.network
repositoryhttps://github.com/input-output-hk/mithril/
max_upload_size
id1967987
size210,050
mithril (github:input-output-hk:mithril)

documentation

https://mithril.network/doc

README

Mithril-aggregator-client CI workflow License Discord

This crate provides a client to request data from a Mithril Aggregator over http.

Configuration of http features

Reqwest is used as the backend for the http client. Its default features are disabled to let the user control which features to enable.

To enable a reqwest feature, add the following to your Cargo.toml:

reqwest = { version = "x.yy", features = ["feature_a", "feature_b"] }

for example, if reqwest is a workspace dependency, and you want to enable the default feature and the compression features:

reqwest = { workspace = true, features = [
    "default",
    "gzip",
    "zstd",
    "deflate",
    "brotli"
] }

Unused dependency warning

You should add the reqwest dependency even if you don't use it directly in your code. If you are using cargo machete to track unused dependencies, it will raise a warning.

To avoid this warning, add the following to your Cargo.toml:

[package.metadata.cargo-machete]
# reqwest: for features configuration, indirect dependency via `mithril-aggregator-client`
ignored = ["reqwest"]
Commit count: 11046

cargo fmt