Cargo Features

[dependencies]
sn_node = { version = "0.112.6", default-features = false, features = ["local", "otlp", "metrics", "network-contacts", "nightly", "open-metrics", "encrypt-records", "upnp", "loud", "tracing-opentelemetry"] }
default = encrypt-records, metrics, open-metrics, upnp

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

local

Enables local of sn_evm and 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

nightly
open-metrics default = prometheus-client

Enables open-metrics of sn_networking

encrypt-records default

Enables encrypt-records of sn_networking

upnp default

Enables upnp of sn_networking

loud

loud mode: print important messages to console

Enables loud 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