radio/iroh-gossip/Cargo.toml

[package]
name = "iroh-gossip"
version = "0.96.0"
edition = "2021"
readme = "README.md"
description = "gossip messages over broadcast trees"
license = "MIT/Apache-2.0"
authors = ["n0 team"]
repository = "https://github.com/n0-computer/iroh-gossip"

# Sadly this also needs to be updated in .github/workflows/ci.yml
rust-version = "1.89"

[lib]
crate-type = ["cdylib", "rlib"]

[lints]
workspace = true

[dependencies]
hemera = { package = "cyber-hemera", path = "../../hemera/rs" }
bytes = { version = "1.7", features = ["serde"] }
data-encoding = "2.6.0"
derive_more = { version = "2.0.1", features = [
    "add",
    "debug",
    "deref",
    "display",
    "from",
    "try_into",
    "into",
] }
ed25519-dalek = { version = "3.0.0-pre.1", features = ["serde", "rand_core"] }
hex = "0.4.3"
indexmap = "2.0"
iroh-metrics = { version = "0.38", default-features = false }
iroh-base = { version = "0.96", default-features = false, features = ["key"] }
n0-future = "0.3"
postcard = { version = "1", default-features = false, features = [
    "alloc",
    "use-std",
    "experimental-derive",
] }
rand = { version = "0.9.2", features = ["std_rng"] }
serde = { version = "1.0.164", features = ["derive"] }

# net dependencies (optional)
futures-lite = { version = "2.3", optional = true }
futures-concurrency = { version = "7.6.1", optional = true }
futures-util = { version = "0.3.30", optional = true }
iroh = { version = "0.96", default-features = false, optional = true }
tokio = { version = "1", optional = true, features = ["io-util", "sync"] }
tokio-util = { version = "0.7.12", optional = true, features = ["codec"] }
tracing = "0.1"
irpc = { version = "0.12.0", optional = true, default-features = false, features = [
    "derive",
    "stream",
    "spans",
] }
n0-error = { version = "0.1", features = ["anyhow"] }

# rpc dependencies (optional)
quinn = { package = "iroh-quinn", version = "0.16.0", optional = true }

# test-utils dependencies (optional)
rand_chacha = { version = "0.9", optional = true }
humantime-serde = { version = "1.1.1", optional = true }

# simulator dependencies (optional)
clap = { version = "4", features = ["derive"], optional = true }
toml = { version = "0.9.8", optional = true }
tracing-subscriber = { version = "0.3", features = [
    "env-filter",
], optional = true }
serde_json = { version = "1", optional = true }
rayon = { version = "1.10.0", optional = true }
comfy-table = { version = "7.1.4", optional = true }


[dev-dependencies]
tokio = { version = "1", features = [
    "io-util",
    "sync",
    "rt",
    "macros",
    "net",
    "fs",
] }
clap = { version = "4", features = ["derive"] }
humantime-serde = { version = "1.1.1" }
iroh = { version = "0.96", default-features = false, features = [
    "metrics",
    "test-utils",
] }
rand_chacha = "0.9"
testresult = "0.4.1"
tracing-subscriber = { version = "0.3.20", features = ["env-filter"] }
n0-tracing-test = "0.3"
url = "2.4.0"
serde-byte-array = "0.1.2"

[features]
default = ["net", "metrics"]
net = [
    "dep:irpc",
    "dep:futures-lite",
    "dep:iroh",
    "dep:tokio",
    "dep:tokio-util",
    "dep:futures-util",
    "dep:futures-concurrency",
]
rpc = [
    "dep:irpc",
    "dep:tokio",
    "dep:quinn",
    "irpc/rpc",
    "irpc/quinn_endpoint_setup",
]
test-utils = ["dep:rand_chacha", "dep:humantime-serde"]
simulator = [
    "test-utils",
    "dep:tracing-subscriber",
    "dep:toml",
    "dep:clap",
    "dep:serde_json",
    "dep:rayon",
    "dep:comfy-table",
]
metrics = ["iroh-metrics/metrics"]
examples = ["net"]

test
name = "sim"
path = "tests/sim.rs"
required-features = ["test-utils"]

bin
name = "sim"
required-features = ["simulator"]

example
name = "chat"
required-features = ["examples"]

example
name = "setup"
required-features = ["examples"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "iroh_docsrs"]


Synonyms

nox/Cargo.toml
optica/Cargo.toml
rs/Cargo.toml
cw-cyber/Cargo.toml
zheng/Cargo.toml
trident/Cargo.toml
honeycrisp/Cargo.toml
bbg/Cargo.toml
lens/Cargo.toml
radio/Cargo.toml
hemera/Cargo.toml
strata/Cargo.toml
strata/compute/Cargo.toml
rs/rsc/Cargo.toml
lens/binius/Cargo.toml
radio/iroh-base/Cargo.toml
hemera/bench/Cargo.toml
radio/iroh-blobs/Cargo.toml
cyb/cyb-boot/Cargo.toml
radio/iroh-ffi/Cargo.toml
hemera/wgsl/Cargo.toml
strata/proof/Cargo.toml
radio/particle/Cargo.toml
rs/macros/Cargo.toml
cyb/src-tauri/Cargo.toml
honeycrisp/rane/Cargo.toml
honeycrisp/unimem/Cargo.toml
lens/src/Cargo.toml
rs/core/Cargo.toml
radio/radio-cli/Cargo.toml
strata/core/Cargo.toml
cyb/cyb/Cargo.toml
nox/rs/Cargo.toml
hemera/cli/Cargo.toml
radio/iroh-dns-server/Cargo.toml
nox/cli/Cargo.toml
hemera/rs/Cargo.toml
radio/iroh-docs/Cargo.toml
lens/ikat/Cargo.toml
lens/core/Cargo.toml
radio/iroh-car/Cargo.toml
strata/ext/Cargo.toml
nox/metal/Cargo.toml
radio/cyber-bao/Cargo.toml
strata/src/Cargo.toml
radio/iroh/Cargo.toml
bostrom-mcp/rust/Cargo.toml
rs/mir-format/Cargo.toml
radio/iroh-willow/Cargo.toml
radio/iroh-relay/Cargo.toml
lens/assayer/Cargo.toml
honeycrisp/aruminium/Cargo.toml
honeycrisp/acpu/Cargo.toml
lens/brakedown/Cargo.toml
lens/porphyry/Cargo.toml
cw-cyber/contracts/std-test/Cargo.toml
strata/genies/cli/Cargo.toml
strata/jali/rs/Cargo.toml
cw-cyber/contracts/hub-channels/Cargo.toml
cw-cyber/contracts/hub-libs/Cargo.toml
strata/kuro/cli/Cargo.toml
cw-cyber/contracts/litium-core/Cargo.toml
cw-cyber/contracts/litium-refer/Cargo.toml
cyb/cyb/cyb-services/Cargo.toml
strata/nebu/rs/Cargo.toml
radio/iroh-ffi/iroh-js/Cargo.toml
cw-cyber/contracts/cw-cyber-subgraph/Cargo.toml
cw-cyber/packages/cyber-std-test/Cargo.toml
rs/tests/macro-integration/Cargo.toml
strata/kuro/rs/Cargo.toml
strata/nebu/wgsl/Cargo.toml
cw-cyber/contracts/graph-filter/Cargo.toml
cw-cyber/contracts/litium-wrap/Cargo.toml
radio/tests/integration/Cargo.toml
strata/trop/rs/Cargo.toml
honeycrisp/aruminium/benches/Cargo.toml
cw-cyber/contracts/hub-tokens/Cargo.toml
strata/trop/wgsl/Cargo.toml
radio/iroh/bench/Cargo.toml
cw-cyber/contracts/cw-cyber-gift/Cargo.toml
cw-cyber/contracts/litium-mine/Cargo.toml
cyb/cyb/cyb-ui/Cargo.toml
trident/editor/zed/Cargo.toml
cw-cyber/contracts/cw-cyber-passport/Cargo.toml
strata/jali/cli/Cargo.toml
strata/jali/wgsl/Cargo.toml
cw-cyber/contracts/hub-protocols/Cargo.toml
cw-cyber/contracts/hub-skills/Cargo.toml
strata/nebu/cli/Cargo.toml
cw-cyber/packages/hub-base/Cargo.toml
honeycrisp/rane/benches/Cargo.toml
strata/trop/cli/Cargo.toml
strata/kuro/wgsl/Cargo.toml
cw-cyber/packages/cyber-std/Cargo.toml
cw-cyber/contracts/cybernet/Cargo.toml
cyb/cyb/cyb-shell/Cargo.toml
cw-cyber/tests/litium-tests/Cargo.toml
cw-cyber/contracts/hub-networks/Cargo.toml
strata/genies/rs/Cargo.toml
strata/genies/wgsl/Cargo.toml
cw-cyber/contracts/litium-stake/Cargo.toml
cyb/cyb/cyb-portal/Cargo.toml
honeycrisp/unimem/experiments/iosurface_probe/Cargo.toml
honeycrisp/unimem/experiments/hyp_probe/Cargo.toml
honeycrisp/unimem/experiments/dext_contiguous_alloc/client/Cargo.toml
honeycrisp/unimem/experiments/dext_iosurface_pa/client/Cargo.toml

Neighbours