Cargo Features

sn_client has no features set by default.

sn_client = { version = "0.106.3", features = ["local-discovery", "open-metrics", "test-utils", "websockets"] }

Enables local-discovery of sn_networking

open-metrics = prometheus-client

Enables open-metrics of sn_networking

test-utils = eyre, lazy_static, sn_peers_acquisition

Affects sn_client::test_utils


required to pass on flag to node builds

Enables websockets of sn_networking and sn_protocol

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

prometheus-client open-metrics?
sn_peers_acquisition test-utils?
eyre test-utils?
lazy_static test-utils?