1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2020 nytopop (Eric Izoita)
//
// Licensed under the Apache License, Version 2.0, <LICENSE-APACHE or
// http://apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT or
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
//! A Rust framework for writing fast and highly resilient gRPC mesh services.
#![feature(trait_alias, entry_insert)]
#![warn(rust_2018_idioms, missing_docs)]
#![doc(html_logo_url = "https://raw.githubusercontent.com/nytopop/blip/master/blip.png")]

#[macro_use]
mod macros;

mod collections;

pub mod cluster;
pub mod overlay;
#[cfg(feature = "simulation")]
pub mod simulation;

#[doc(inline)]
pub use cluster::{
    cut::{Member, MultiNodeCut, Subscription},
    partition::Rejoin,
};
#[doc(inline)]
pub use overlay::{Mesh, MeshService};

/// A re-export of [async_trait](https://docs.rs/async-trait/latest/async_trait/) for
/// convenience.
#[doc(inline)]
pub use tonic::async_trait;