diff --git a/misc/metrics/Cargo.toml b/misc/metrics/Cargo.toml index 90e46cf4fe4..f1bb5fbd9c3 100644 --- a/misc/metrics/Cargo.toml +++ b/misc/metrics/Cargo.toml @@ -11,32 +11,30 @@ keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [features] +dcutr = ["libp2p-dcutr"] gossipsub = ["libp2p-gossipsub"] identify = ["libp2p-identify"] kad = ["libp2p-kad"] ping = ["libp2p-ping"] relay = ["libp2p-relay"] -dcutr = ["libp2p-dcutr"] [dependencies] instant = "0.1.12" libp2p-core = { workspace = true } libp2p-dcutr = { workspace = true, optional = true } +libp2p-gossipsub = { workspace = true, optional = true } libp2p-identify = { workspace = true, optional = true } +libp2p-identity = { workspace = true } libp2p-kad = { workspace = true, optional = true } libp2p-ping = { workspace = true, optional = true } libp2p-relay = { workspace = true, optional = true } libp2p-swarm = { workspace = true } -libp2p-identity = { workspace = true } -prometheus-client = { version = "0.21.2"} once_cell = "1.18.0" - -[target.'cfg(not(target_os = "unknown"))'.dependencies] -libp2p-gossipsub = { workspace = true, optional = true } +prometheus-client = { version = "0.21.2"} # Passing arguments to the docsrs builder in order to properly document cfg's. # More information: https://docs.rs/about/builds#cross-compiling [package.metadata.docs.rs] all-features = true -rustdoc-args = ["--cfg", "docsrs"] rustc-args = ["--cfg", "docsrs"] +rustdoc-args = ["--cfg", "docsrs"]