aboutsummaryrefslogblamecommitdiff
path: root/src/lib.rs
blob: 3162c4263c8298de1a60d0d761ef7af4120a190d (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                                                           
   





                                                             
                                                         





                                                                                 
              

             
                 
              
 
           
           
 

                
 
                         
                                            


            
//! Netapp is a Rust library that takes care of a few common tasks in distributed software:
//!
//! - establishing secure connections
//! - managing connection lifetime, reconnecting on failure
//! - checking peer's state
//! - peer discovery
//! - query/response message passing model for communications
//! - multiplexing transfers over a connection
//! - overlay networks: full mesh, and soon other methods
//!
//! Of particular interest, read the documentation for the `netapp::NetApp` type,
//! the `message::Message` trait, and `proto::RequestPriority` to learn more
//! about message priorization.
//! Also check out the examples to learn how to use this crate.

pub mod error;
pub mod util;

pub mod endpoint;
pub mod proto;

mod client;
mod server;

pub mod netapp;
pub mod peering;

pub use crate::netapp::*;
pub use util::{NetworkKey, NodeID, NodeKey};

#[cfg(test)]
mod test;