[package]
name = "kadcast"
authors = ["herr-seppia <seppia@dusk.network>"]
version = "0.8.0"
description = "Implementation of the Kadcast Network Protocol."
categories = ["network-programming"]
keywords = ["p2p", "network", "kad", "peer-to-peer", "kadcast"]
license = "MPL-2.0"
repository = "https://github.com/dusk-network/kadcast"
publish = true

rust-version = "1.89"
edition = "2024"

exclude = [".git*", "ARCHITECTURE.md", "architecture.jpg"]

[dependencies]
arrayvec = "0.7"
blake2 = "0.10"
rand = "0.8"
tokio = { version = "1", features = [
  "rt",
  "net",
  "sync",
  "time",
  "io-std",
  "rt-multi-thread",
  "macros",
] }
raptorq = { version = "2.0", optional = true }
tracing = "0.1"
itertools = "0.10"
socket2 = "0.6"
serde_derive = "1"
serde = "1"
humantime-serde = "1"
semver = "1"
hex = "0.4"

[dev-dependencies]
clap = "4.5"
rustc_tools_util = "0.2"
tracing-subscriber = "0.3"
toml = "0.5"

[features]
default = ["raptorq"]
diagnostics = []

[[example]]
name = "kadcast"
path = "examples/main.rs"
