Cargo Features

libp2p_metrics has no features set by default.

libp2p-metrics = { version = "0.14.1", features = ["dcutr", "gossipsub", "identify", "kad", "ping", "relay"] }
dcutr = libp2p-dcutr
gossipsub = libp2p-gossipsub
identify = libp2p-identify
kad = libp2p-kad
ping = libp2p-ping
relay = libp2p-relay

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

libp2p-dcutr dcutr?
libp2p-gossipsub gossipsub?
libp2p-identify identify?
libp2p-kad kad?
libp2p-ping ping?
libp2p-relay relay?