[package] name = "ant-libp2p-kad" edition = "2021" rust-version = { workspace = true } description = "Kademlia protocol for libp2p" version = "0.47.1" authors = ["Parity Technologies "] license = "MIT" repository = "https://github.com/libp2p/rust-libp2p" keywords = ["peer-to-peer", "libp2p", "networking"] categories = ["network-programming", "asynchronous"] [dependencies] arrayvec = "0.7.4" bytes = "1" either = "1.11" fnv = "1.0" asynchronous-codec = { workspace = true } futures = { workspace = true } ant-libp2p-core = { workspace = true } ant-libp2p-swarm = { workspace = true } futures-bounded = { workspace = true } quick-protobuf = "0.8" quick-protobuf-codec = { workspace = true } libp2p-identity = { workspace = true, features = ["rand"] } rand = "0.8" sha2 = "0.10.8" smallvec = "1.13.2" uint = "0.9" futures-timer = "3.0.3" web-time = { workspace = true } serde = { version = "1.0", optional = true, features = ["derive"] } thiserror = { workspace = true } tracing = { workspace = true } [dev-dependencies] async-std = { version = "1.12.0", features = ["attributes"] } futures-timer = "3.0" ant-libp2p-identify = { path = "../identify" } ant-libp2p-noise = { workspace = true } ant-libp2p-swarm = { path = "../../swarm", features = ["macros"] } ant-libp2p-swarm-test = { path = "../../swarm-test" } ant-libp2p-yamux = { workspace = true } quickcheck = { workspace = true } tracing-subscriber = { workspace = true, features = ["env-filter"] } [features] serde = ["dep:serde", "bytes/serde"] # 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