iroh_gossip/lib.rs
1#![cfg_attr(feature = "net", doc = include_str!("../README.md"))]
2//! Broadcast messages to peers subscribed to a topic
3//!
4//! The crate is designed to be used from the [iroh] crate, which provides a
5//! [high level interface](https://docs.rs/iroh/latest/iroh/client/gossip/index.html),
6//! but can also be used standalone.
7//!
8//! [iroh]: https://docs.rs/iroh
9#![deny(missing_docs, rustdoc::broken_intra_doc_links)]
10#![cfg_attr(iroh_docsrs, feature(doc_cfg))]
11
12#[cfg(feature = "net")]
13#[doc(inline)]
14pub use net::GOSSIP_ALPN as ALPN;
15
16#[cfg(any(feature = "net", feature = "rpc"))]
17pub mod api;
18pub mod metrics;
19#[cfg(feature = "net")]
20pub mod net;
21pub mod proto;