apis 0.5.13

Reactive, session-oriented, asynchronous process-calculus framework
Documentation
//! # Apis <IMG STYLE="vertical-align: middle" SRC="https://raw.githubusercontent.com/spearman/apis/master/doc/apis.png">
//!
//! *Reactive, session-oriented, asynchronous process-calculus framework.*
//!
//! [Repository](https://github.com/spearman/apis)
//!
//! Processes are "reactive" threads with specified message handling and update
//! behavior.
//!
//! Sessions are collections of Processes and Channels in a fixed communication
//! topology. The `def_session!` macro is used to define a Session together with its
//! Channels and Processes.
//!
//! A 'Program' defines a transition system with Sessions as nodes. The `def_program!`
//! macro is used to define modes (Sessions) and transitions between them.

#![feature(associated_type_defaults)]

// NOTE: many of these public re-exports are required for use in macros
pub use either;
pub use log;
pub use macro_machines;
pub use strum;
pub use vec_map;

pub mod channel;
pub mod message;
pub mod process;
pub mod program;
pub mod session;
#[cfg(doc)]
pub mod example;

pub use channel::Channel;
pub use message::Message;
pub use process::Process;
pub use program::Program;
pub use session::Session;

pub fn report_sizes <CTX : session::Context + 'static> () {
  println!("apis report sizes...");
  session::report_sizes::<CTX>();
  process::report_sizes::<CTX>();
  channel::report_sizes::<CTX>();
  message::report_sizes::<CTX>();
  println!("...apis report sizes");
}