Cargo Features

sn_networking has no features set by default.

[dependencies]
sn_networking = { version = "0.15.2", features = ["local-discovery", "upnp", "websockets", "open-metrics", "encrypt-records"] }
default

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

Enables quic of libp2p

local-discovery

Enables mdns of libp2p

upnp

Enables upnp of libp2p

websockets

tcp is automatically enabled when compiling for wasm32

Enables libp2p

open-metrics = hyper, prometheus-client, sysinfo

Enables metrics of libp2p

encrypt-records

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.

hyper open-metrics?

Enables hyper ^0.14

prometheus-client open-metrics?
sysinfo open-metrics?