[package] name = "ant-libp2p" edition = "2021" rust-version = { workspace = true } description = "Peer-to-peer networking library" version = "0.54.2" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/maidsafe/ant-rust-libp2p" keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [features] full = [ "async-std", "autonat", "cbor", "dcutr", "dns", "ecdsa", "ed25519", "floodsub", "gossipsub", "identify", "json", "kad", "macros", "mdns", "memory-connection-limits", "metrics", "noise", "ping", "plaintext", "pnet", "quic", "relay", "rendezvous", "request-response", "rsa", "secp256k1", "serde", "tcp", "tls", "tokio", "uds", "wasm-bindgen", "websocket-websys", "websocket", "webtransport-websys", "yamux", "upnp", ] async-std = [ "ant-libp2p-swarm/async-std", "libp2p-mdns?/async-io", "ant-libp2p-tcp?/async-io", "libp2p-dns?/async-std", "ant-libp2p-quic?/async-std",] autonat = ["dep:ant-libp2p-autonat"] cbor = ["ant-libp2p-request-response?/cbor"] dcutr = ["dep:ant-libp2p-dcutr", "libp2p-metrics?/dcutr"] dns = ["dep:libp2p-dns"] ecdsa = ["libp2p-identity/ecdsa"] ed25519 = ["libp2p-identity/ed25519"] floodsub = ["dep:libp2p-floodsub"] gossipsub = ["dep:ant-libp2p-gossipsub", "libp2p-metrics?/gossipsub"] identify = ["dep:ant-libp2p-identify", "libp2p-metrics?/identify"] json = ["ant-libp2p-request-response?/json"] kad = ["dep:ant-libp2p-kad", "libp2p-metrics?/kad"] macros = ["ant-libp2p-swarm/macros"] mdns = ["dep:libp2p-mdns"] memory-connection-limits = ["dep:ant-libp2p-memory-connection-limits"] metrics = ["dep:libp2p-metrics"] noise = ["dep:ant-libp2p-noise"] ping = ["dep:ant-libp2p-ping", "libp2p-metrics?/ping"] plaintext = ["dep:ant-libp2p-plaintext"] pnet = ["dep:libp2p-pnet"] quic = ["dep:ant-libp2p-quic"] relay = ["dep:ant-libp2p-relay", "libp2p-metrics?/relay"] rendezvous = ["dep:libp2p-rendezvous"] request-response = ["dep:ant-libp2p-request-response"] rsa = ["libp2p-identity/rsa"] secp256k1 = ["libp2p-identity/secp256k1"] serde = ["ant-libp2p-core/serde", "ant-libp2p-kad?/serde", "ant-libp2p-gossipsub?/serde"] tcp = ["dep:ant-libp2p-tcp"] tls = ["dep:libp2p-tls"] tokio = [ "ant-libp2p-swarm/tokio", "libp2p-mdns?/tokio", "ant-libp2p-tcp?/tokio", "libp2p-dns?/tokio", "ant-libp2p-quic?/tokio", "ant-libp2p-upnp?/tokio"] uds = ["dep:libp2p-uds"] wasm-bindgen = [ "futures-timer/wasm-bindgen", "getrandom/js", "ant-libp2p-swarm/wasm-bindgen", "ant-libp2p-gossipsub?/wasm-bindgen"] websocket-websys = ["dep:ant-libp2p-websocket-websys"] websocket = ["dep:ant-libp2p-websocket"] webtransport-websys = ["dep:ant-libp2p-webtransport-websys"] yamux = ["dep:ant-libp2p-yamux"] upnp = ["dep:ant-libp2p-upnp"] [dependencies] bytes = "1" either = "1.9.0" futures = { workspace = true } futures-timer = "3.0.2" # Explicit dependency to be used in `wasm-bindgen` feature getrandom = "0.2.3" # Explicit dependency to be used in `wasm-bindgen` feature # TODO feature flag? rw-stream-sink = { workspace = true } ant-libp2p-allow-block-list = { workspace = true } ant-libp2p-autonat = { workspace = true, optional = true } ant-libp2p-connection-limits = { workspace = true } ant-libp2p-core = { workspace = true } ant-libp2p-dcutr = { workspace = true, optional = true } libp2p-floodsub = { workspace = true, optional = true } ant-libp2p-gossipsub = { workspace = true, optional = true } ant-libp2p-identify = { workspace = true, optional = true } libp2p-identity = { workspace = true, features = ["rand"] } ant-libp2p-kad = { workspace = true, optional = true } libp2p-metrics = { workspace = true, optional = true } ant-libp2p-noise = { workspace = true, optional = true } ant-libp2p-ping = { workspace = true, optional = true } ant-libp2p-plaintext = { workspace = true, optional = true } libp2p-pnet = { workspace = true, optional = true } ant-libp2p-relay = { workspace = true, optional = true } libp2p-rendezvous = { workspace = true, optional = true } ant-libp2p-request-response = { workspace = true, optional = true } ant-libp2p-swarm = { workspace = true } ant-libp2p-websocket-websys = { workspace = true, optional = true } ant-libp2p-webtransport-websys = { workspace = true, optional = true } ant-libp2p-yamux = { workspace = true, optional = true } multiaddr = { workspace = true } pin-project = "1.0.0" thiserror = { workspace = true } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] libp2p-dns = { workspace = true, optional = true } libp2p-mdns = { workspace = true, optional = true } ant-libp2p-memory-connection-limits = { workspace = true, optional = true } ant-libp2p-quic = { workspace = true, optional = true } ant-libp2p-tcp = { workspace = true, optional = true } libp2p-tls = { workspace = true, optional = true } libp2p-uds = { workspace = true, optional = true } ant-libp2p-upnp = { workspace = true, optional = true } ant-libp2p-websocket = { workspace = true, optional = true } [dev-dependencies] async-std = { version = "1.6.2", features = ["attributes"] } async-trait = "0.1" clap = { version = "4.1.6", features = ["derive"] } tokio = { workspace = true, features = [ "io-util", "io-std", "macros", "rt", "rt-multi-thread"] } libp2p-mplex = { workspace = true } ant-libp2p-noise = { workspace = true } ant-libp2p-tcp = { workspace = true, features = ["tokio"] } tracing-subscriber = { workspace = true, features = ["env-filter"] } # 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 [lints] workspace = true