[package]
edition = "2024"
rust-version = "1.88"
name = "grapevine"
version = "1.1.0"
authors = ["Kobby Pentangeli <kobbypentangeli@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A modern, asynchronous peer-to-peer gossip protocol library and application"
homepage = "https://github.com/kobby-pentangeli/grapevine"
documentation = "https://docs.rs/grapevine"
readme = "README.md"
keywords = [
"peer-to-peer",
"gossip",
"async",
]
categories = ["network-programming"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kobby-pentangeli/grapevine"
[lib]
name = "grapevine"
path = "src/lib.rs"
[[bin]]
name = "grapevine"
path = "src/main.rs"
[[example]]
name = "custom_config"
path = "examples/custom_config.rs"
[[example]]
name = "multi_node_cluster"
path = "examples/multi_node_cluster.rs"
[[example]]
name = "simple_node"
path = "examples/simple_node.rs"
[[test]]
name = "anti_entropy"
path = "tests/anti_entropy.rs"
[[test]]
name = "authenticity"
path = "tests/authenticity.rs"
[[test]]
name = "direct_messaging"
path = "tests/direct_messaging.rs"
[[test]]
name = "membership"
path = "tests/membership.rs"
[[test]]
name = "message_broadcast"
path = "tests/message_broadcast.rs"
[[test]]
name = "network_topology"
path = "tests/network_topology.rs"
[[test]]
name = "node_lifecycle"
path = "tests/node_lifecycle.rs"
[[test]]
name = "rate_limiting"
path = "tests/rate_limiting.rs"
[[bench]]
name = "gossip_bench"
path = "benches/gossip_bench.rs"
harness = false
[dependencies.bincode]
version = "2.0"
features = ["serde"]
[dependencies.bytes]
version = "1.9"
features = ["serde"]
[dependencies.clap]
version = "4.5"
features = [
"derive",
"env",
]
[dependencies.crossterm]
version = "0.29.0"
[dependencies.dashmap]
version = "6.1"
[dependencies.dotenvy]
version = "0.15"
[dependencies.ed25519-dalek]
version = "2.1"
[dependencies.futures]
version = "0.3"
[dependencies.rand]
version = "0.9"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.42"
features = ["full"]
[dependencies.tokio-util]
version = "0.7"
features = ["codec"]
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
]
[dev-dependencies.criterion]
version = "0.8"
features = ["async_tokio"]
[dev-dependencies.serde_json]
version = "1.0"
[profile.bench]
inherits = "release"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1