Cargo Features

libp2p-metrics has no features set by default.

[dependencies]
libp2p-metrics = { version = "0.15.0", 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. These features may have been created by mistake, and this functionality may be removed in the future.

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