Cargo Features

[dependencies]
sn_node = { version = "0.106.5", default-features = false, features = ["local-discovery", "otlp", "metrics", "network-contacts", "open-metrics", "encrypt-records", "upnp", "reward-forward", "tracing-opentelemetry"] }
default = metrics, open-metrics, reward-forward, upnp

These default features are set whenever sn_node is added without default-features = false somewhere in the dependency tree.

local-discovery

Enables local-discovery of sn_networking

otlp

Enables otlp of sn_logging

metrics default

Enables process-metrics of sn_logging

network-contacts

Enables network-contacts of sn_peers_acquisition

open-metrics default = prometheus-client

Enables open-metrics of sn_networking

encrypt-records

Enables encrypt-records of sn_networking

upnp default

Enables upnp of sn_networking

reward-forward default

Enables reward-forward of sn_transfers

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
tracing-opentelemetry implicit feature

Enables tracing-opentelemetry ^0.21

tracing-opentelemetry:

OpenTelemetry integration for tracing