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
somewhere in the dependency tree.default-features = false - local-discovery
- upnp
- websockets
-
tcp is automatically enabled when compiling for wasm32
Enables libp2p
- open-metrics = hyper, prometheus-client, sysinfo
- 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.