# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "kitsune2_gossip"
version = "0.5.0-dev.0"
authors = ["Holochain Core Dev Team <devcore@holochain.org>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Gossip implementation for kitsune2"
homepage = "https://www.holochain.org/"
documentation = "https://docs.rs/kitsune2_gossip"
readme = "README.md"
keywords = [
    "holochain",
    "kitsune",
    "p2p",
    "dht",
    "networking",
]
categories = ["network-programming"]
license = "Apache-2.0"
repository = "https://github.com/holochain/kitsune2"
resolver = "2"

[features]
schema = [
    "dep:schemars",
    "kitsune2_core/schema",
]
sharding = []
test-utils = ["dep:kitsune2_test_utils"]

[lib]
name = "kitsune2_gossip"
path = "src/lib.rs"

[[test]]
name = "historical_load"
path = "tests/historical_load.rs"

[[test]]
name = "initial_sync"
path = "tests/initial_sync.rs"

[dependencies.bytes]
version = "1.8.0"
features = ["serde"]

[dependencies.futures]
version = "0.3"

[dependencies.kitsune2_api]
version = "0.5.0-dev.0"

[dependencies.kitsune2_core]
version = "0.5.0-dev.0"

[dependencies.kitsune2_dht]
version = "0.5.0-dev.0"

[dependencies.kitsune2_test_utils]
version = "0.5.0-dev.0"
optional = true

[dependencies.prost]
version = "0.14"

[dependencies.rand]
version = "0.8.5"

[dependencies.schemars]
version = "0.9"
features = ["preserve_order"]
optional = true

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.thiserror]
version = "2.0.3"

[dependencies.tokio]
version = "1.41.1"
features = [
    "rt",
    "sync",
]

[dependencies.tracing]
version = "0.1"
