Cargo Features

[dependencies]
sn_node = { version = "0.106.0-alpha.5", default-features = false, features = ["local-discovery", "otlp", "metrics", "network-contacts", "open-metrics", "encrypt-records", "tracing-opentelemetry"] }
default = metrics

The metrics feature is set by default 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 = prometheus-client

Enables open-metrics of sn_networking

encrypt-records

Enables encrypt-records of sn_networking

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