2021-08-13 22:51:54 +02:00
|
|
|
[package]
|
|
|
|
name = "libp2p-metrics"
|
2021-11-26 09:34:58 -07:00
|
|
|
edition = "2021"
|
2022-12-23 03:17:59 +11:00
|
|
|
rust-version = "1.65.0"
|
2021-08-13 22:51:54 +02:00
|
|
|
description = "Metrics for libp2p"
|
2022-12-12 12:30:23 +01:00
|
|
|
version = "0.12.0"
|
2021-08-13 22:51:54 +02:00
|
|
|
authors = ["Max Inden <mail@max-inden.de>"]
|
|
|
|
license = "MIT"
|
|
|
|
repository = "https://github.com/libp2p/rust-libp2p"
|
|
|
|
keywords = ["peer-to-peer", "libp2p", "networking"]
|
|
|
|
categories = ["network-programming", "asynchronous"]
|
|
|
|
|
|
|
|
[features]
|
2021-11-16 08:59:39 -05:00
|
|
|
gossipsub = ["libp2p-gossipsub"]
|
2021-08-13 22:51:54 +02:00
|
|
|
identify = ["libp2p-identify"]
|
|
|
|
kad = ["libp2p-kad"]
|
|
|
|
ping = ["libp2p-ping"]
|
2022-01-14 19:58:28 +01:00
|
|
|
relay = ["libp2p-relay"]
|
2022-02-08 15:56:35 +01:00
|
|
|
dcutr = ["libp2p-dcutr"]
|
2021-08-13 22:51:54 +02:00
|
|
|
|
|
|
|
[dependencies]
|
2022-12-20 09:52:08 +01:00
|
|
|
libp2p-core = { version = "0.39.0", path = "../../core" }
|
2022-12-12 12:30:23 +01:00
|
|
|
libp2p-dcutr = { version = "0.9.0", path = "../../protocols/dcutr", optional = true }
|
|
|
|
libp2p-identify = { version = "0.42.0", path = "../../protocols/identify", optional = true }
|
|
|
|
libp2p-kad = { version = "0.43.0", path = "../../protocols/kad", optional = true }
|
|
|
|
libp2p-ping = { version = "0.42.0", path = "../../protocols/ping", optional = true }
|
|
|
|
libp2p-relay = { version = "0.15.0", path = "../../protocols/relay", optional = true }
|
2022-12-09 15:44:08 +01:00
|
|
|
libp2p-swarm = { version = "0.42.0", path = "../../swarm" }
|
2023-01-03 20:42:32 +01:00
|
|
|
prometheus-client = "0.19.0"
|
2021-08-13 22:51:54 +02:00
|
|
|
|
2022-02-14 21:24:58 +11:00
|
|
|
[target.'cfg(not(target_os = "unknown"))'.dependencies]
|
2022-12-12 12:30:23 +01:00
|
|
|
libp2p-gossipsub = { version = "0.44.0", path = "../../protocols/gossipsub", optional = true }
|
2022-02-14 21:24:58 +11:00
|
|
|
|
2021-08-13 22:51:54 +02:00
|
|
|
[dev-dependencies]
|
2022-12-02 18:06:09 +01:00
|
|
|
env_logger = "0.10.0"
|
2023-01-31 23:34:17 +00:00
|
|
|
futures = "0.3.26"
|
2022-03-05 09:15:10 -05:00
|
|
|
hyper = { version="0.14", features = ["server", "tcp", "http1"] }
|
2022-12-13 07:58:01 +11:00
|
|
|
libp2p-noise = { path = "../../transports/noise" }
|
|
|
|
libp2p-ping = { path = "../../protocols/ping" }
|
|
|
|
libp2p-swarm = { path = "../../swarm", features = ["macros"] }
|
|
|
|
libp2p-tcp = { path = "../../transports/tcp", features = ["async-io"] }
|
|
|
|
libp2p-yamux = { path = "../../muxers/yamux" }
|
|
|
|
log = "0.4.0"
|
2022-03-05 09:15:10 -05:00
|
|
|
tokio = { version = "1", features = ["rt-multi-thread"] }
|
2022-10-24 04:00:20 +02:00
|
|
|
|
2022-12-09 15:44:08 +01:00
|
|
|
# Passing arguments to the docsrs builder in order to properly document cfg's.
|
2022-10-24 04:00:20 +02:00
|
|
|
# More information: https://docs.rs/about/builds#cross-compiling
|
|
|
|
[package.metadata.docs.rs]
|
|
|
|
all-features = true
|
|
|
|
rustdoc-args = ["--cfg", "docsrs"]
|
|
|
|
rustc-args = ["--cfg", "docsrs"]
|
2022-12-13 07:58:01 +11:00
|
|
|
|
|
|
|
[[example]]
|
|
|
|
name = "metrics"
|
2023-01-03 20:42:32 +01:00
|
|
|
required-features = ["ping", "identify"]
|