# 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 = "2021" rust-version = "1.76" name = "iroh-gossip" version = "0.28.1" authors = ["n0 team"] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "gossip messages over broadcast trees" readme = "README.md" license = "MIT/Apache-2.0" repository = "https://github.com/n0-computer/iroh-gossip" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "iroh_docsrs", ] [lib] name = "iroh_gossip" path = "src/lib.rs" [[example]] name = "chat" path = "examples/chat.rs" required-features = ["net"] [dependencies.anyhow] version = "1" [dependencies.async-channel] version = "2.3.1" optional = true [dependencies.blake3] version = "1.4.5" package = "iroh-blake3" [dependencies.bytes] version = "1.7" features = ["serde"] [dependencies.derive_more] version = "1.0.0" features = [ "add", "debug", "deref", "display", "from", "try_into", "into", ] [dependencies.ed25519-dalek] version = "2.0.0" features = [ "serde", "rand_core", ] [dependencies.futures-concurrency] version = "7.6.1" optional = true [dependencies.futures-lite] version = "2.3" optional = true [dependencies.futures-util] version = "0.3.30" optional = true [dependencies.indexmap] version = "2.0" [dependencies.iroh-base] version = "0.28.0" [dependencies.iroh-metrics] version = "0.28.0" [dependencies.iroh-net] version = "0.28.1" optional = true default-features = false [dependencies.iroh-router] version = "0.28.0" optional = true [dependencies.nested_enum_utils] version = "0.1.0" optional = true [dependencies.postcard] version = "1" features = [ "alloc", "use-std", "experimental-derive", ] default-features = false [dependencies.quic-rpc] version = "0.14" optional = true [dependencies.quic-rpc-derive] version = "0.14" optional = true [dependencies.rand] version = "0.8.5" features = ["std_rng"] [dependencies.rand_core] version = "0.6.4" [dependencies.serde] version = "1.0.164" features = ["derive"] [dependencies.serde-error] version = "0.1.3" [dependencies.strum] version = "0.26" optional = true [dependencies.tokio] version = "1" features = [ "io-util", "sync", "rt", "macros", "net", "fs", ] optional = true [dependencies.tokio-util] version = "0.7.12" features = [ "codec", "rt", ] optional = true [dependencies.tracing] version = "0.1" [dev-dependencies.clap] version = "4" features = ["derive"] [dev-dependencies.iroh-net] version = "0.28.1" features = ["test-utils"] default-features = false [dev-dependencies.iroh-test] version = "0.28.0" [dev-dependencies.rand_chacha] version = "0.3.1" [dev-dependencies.tracing-subscriber] version = "0.3" features = ["env-filter"] [dev-dependencies.url] version = "2.4.0" [features] default = [ "net", "rpc", ] net = [ "dep:futures-lite", "dep:iroh-net", "dep:iroh-router", "dep:tokio", "dep:tokio-util", "dep:async-channel", "dep:futures-util", "dep:futures-concurrency", ] rpc = [ "dep:nested_enum_utils", "dep:quic-rpc", "dep:quic-rpc-derive", "dep:strum", ] [lints.clippy] unused-async = "warn" [lints.rust] missing_debug_implementations = "warn" [lints.rust.unexpected_cfgs] level = "warn" priority = 0 check-cfg = ["cfg(iroh_docsrs)"]