[package]
name = "kitsune2_gossip"
version.workspace = true
description = "Gossip implementation for kitsune2"
license.workspace = true
homepage.workspace = true
repository.workspace = true
documentation = "https://docs.rs/kitsune2_gossip"
authors.workspace = true
keywords.workspace = true
categories.workspace = true
edition.workspace = true

[dependencies]
kitsune2_api = { workspace = true }
kitsune2_dht = { workspace = true }
kitsune2_core = { workspace = true }

prost = { workspace = true }
bytes = { workspace = true }
tokio = { workspace = true, features = ["rt", "sync"] }
tracing = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
rand = { workspace = true }
thiserror = { workspace = true }
futures = { workspace = true }

# Feature: schema
schemars = { workspace = true, optional = true }

# Feature: test-utils
kitsune2_test_utils = { workspace = true, optional = true }

[features]
sharding = []

test-utils = ["dep:kitsune2_test_utils"]

schema = ["dep:schemars", "kitsune2_core/schema"]
