2019-07-04 14:47:59 +02:00
|
|
|
[package]
|
|
|
|
name = "libp2p-swarm"
|
2021-11-26 09:34:58 -07:00
|
|
|
edition = "2021"
|
2022-11-18 22:04:16 +11:00
|
|
|
rust-version = "1.62.0"
|
2019-07-04 14:47:59 +02:00
|
|
|
description = "The libp2p swarm"
|
2022-12-09 15:44:08 +01:00
|
|
|
version = "0.42.0"
|
2019-07-04 14:47:59 +02:00
|
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
|
|
license = "MIT"
|
|
|
|
repository = "https://github.com/libp2p/rust-libp2p"
|
|
|
|
keywords = ["peer-to-peer", "libp2p", "networking"]
|
|
|
|
categories = ["network-programming", "asynchronous"]
|
|
|
|
|
|
|
|
[dependencies]
|
2020-08-23 16:57:20 +02:00
|
|
|
either = "1.6.0"
|
2022-02-13 21:57:38 +01:00
|
|
|
fnv = "1.0"
|
2023-01-31 23:34:17 +00:00
|
|
|
futures = "0.3.26"
|
2022-02-13 21:57:38 +01:00
|
|
|
futures-timer = "3.0.2"
|
|
|
|
instant = "0.1.11"
|
2022-12-20 09:52:08 +01:00
|
|
|
libp2p-core = { version = "0.39.0", path = "../core" }
|
2023-01-12 11:21:02 +00:00
|
|
|
libp2p-swarm-derive = { version = "0.32.0", path = "../swarm-derive", optional = true }
|
2020-01-16 13:17:39 +01:00
|
|
|
log = "0.4"
|
2022-02-13 21:57:38 +01:00
|
|
|
pin-project = "1.0.0"
|
2022-09-22 12:48:32 +04:00
|
|
|
rand = "0.8"
|
2021-03-15 12:31:21 +01:00
|
|
|
smallvec = "1.6.1"
|
2022-02-13 21:57:38 +01:00
|
|
|
thiserror = "1.0"
|
2019-07-04 14:47:59 +02:00
|
|
|
void = "1"
|
2022-11-24 23:12:35 +01:00
|
|
|
wasm-bindgen-futures = { version = "0.4.33", optional = true }
|
|
|
|
getrandom = { version = "0.2.3", features = ["js"], optional = true } # Explicit dependency to be used in `wasm-bindgen` feature
|
2022-11-18 22:04:16 +11:00
|
|
|
|
|
|
|
[target.'cfg(not(any(target_os = "emscripten", target_os = "wasi", target_os = "unknown")))'.dependencies]
|
2022-11-15 15:26:03 +01:00
|
|
|
async-std = { version = "1.6.2", optional = true }
|
2022-11-18 22:04:16 +11:00
|
|
|
tokio = { version = "1.15", features = ["rt"], optional = true }
|
2019-07-04 14:47:59 +02:00
|
|
|
|
2022-11-13 10:59:14 +11:00
|
|
|
[features]
|
|
|
|
macros = ["dep:libp2p-swarm-derive"]
|
2022-11-15 15:26:03 +01:00
|
|
|
tokio = ["dep:tokio"]
|
|
|
|
async-std = ["dep:async-std"]
|
2022-11-24 23:12:35 +01:00
|
|
|
wasm-bindgen = ["dep:wasm-bindgen-futures", "dep:getrandom"]
|
2022-11-13 10:59:14 +11:00
|
|
|
|
2019-07-04 14:47:59 +02:00
|
|
|
[dev-dependencies]
|
2022-02-13 21:57:38 +01:00
|
|
|
async-std = { version = "1.6.2", features = ["attributes"] }
|
2022-11-13 10:59:14 +11:00
|
|
|
either = "1.6.0"
|
2022-12-02 18:06:09 +01:00
|
|
|
env_logger = "0.10"
|
2023-01-31 23:34:17 +00:00
|
|
|
futures = "0.3.26"
|
2022-11-13 10:59:14 +11:00
|
|
|
libp2p-identify = { path = "../protocols/identify" }
|
|
|
|
libp2p-kad = { path = "../protocols/kad" }
|
|
|
|
libp2p-ping = { path = "../protocols/ping" }
|
|
|
|
libp2p-plaintext = { path = "../transports/plaintext" }
|
2022-11-29 17:45:58 +01:00
|
|
|
libp2p-swarm-derive = { path = "../swarm-derive" }
|
2022-11-13 10:59:14 +11:00
|
|
|
libp2p-yamux = { path = "../muxers/yamux" }
|
2022-09-22 12:48:32 +04:00
|
|
|
quickcheck = { package = "quickcheck-ext", path = "../misc/quickcheck-ext" }
|
2022-11-13 10:59:14 +11:00
|
|
|
void = "1"
|
|
|
|
|
|
|
|
[[test]]
|
|
|
|
name = "swarm_derive"
|
|
|
|
required-features = ["macros"]
|
2022-10-24 04:00:20 +02:00
|
|
|
|
2022-11-13 10:59:14 +11: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"]
|