25 lines
735 B
Rust
25 lines
735 B
Rust
#![cfg_attr(feature = "net", doc = include_str!("../README.md"))]
|
|
//! Broadcast messages to peers subscribed to a topic
|
|
//!
|
|
//! The crate is designed to be used from the [iroh] crate, which provides a
|
|
//! [high level interface](https://docs.rs/iroh/latest/iroh/client/gossip/index.html),
|
|
//! but can also be used standalone.
|
|
//!
|
|
//! [iroh]: https://docs.rs/iroh
|
|
#![deny(missing_docs, rustdoc::broken_intra_doc_links)]
|
|
#![cfg_attr(iroh_docsrs, feature(doc_cfg))]
|
|
|
|
#[cfg(feature = "net")]
|
|
pub use net::Gossip;
|
|
#[cfg(feature = "net")]
|
|
#[doc(inline)]
|
|
pub use net::GOSSIP_ALPN as ALPN;
|
|
|
|
#[cfg(any(feature = "net", feature = "rpc"))]
|
|
pub mod api;
|
|
pub mod metrics;
|
|
#[cfg(feature = "net")]
|
|
pub mod net;
|
|
pub mod proto;
|
|
|
|
pub use proto::TopicId;
|