bastion_executor/
lib.rs

1//!
2//!
3//!
4//! Bastion Executor is NUMA-aware SMP based Fault-tolerant Executor
5//!
6//! Bastion Executor is a highly-available, fault-tolerant, async communication
7//! oriented executor. Bastion's main idea is supplying a fully async runtime
8//! with fault-tolerance to work on heavy loads.
9//!
10//! Main differences between other executors are:
11//! * Uses SMP based execution scheme to exploit cache affinity on multiple cores and execution is
12//! equally distributed over the system resources, which means utilizing the all system.
13//! * Uses NUMA-aware allocation for scheduler's queues and exploit locality on server workloads.
14//! * Tailored for creating middleware and working with actor model like concurrency and distributed communication.
15//!
16//! **NOTE:** Bastion Executor is independent of it's framework implementation.
17//! It uses [lightproc] to encapsulate and provide fault-tolerance to your future based workloads.
18//! You can use your futures with [lightproc] to run your workloads on Bastion Executor without the need to have framework.
19//!
20//! [lightproc]: https://docs.rs/lightproc
21//!
22
23#![doc(
24    html_logo_url = "https://raw.githubusercontent.com/bastion-rs/bastion/master/img/bastion-logo.png"
25)]
26// Discarded lints
27#![allow(clippy::if_same_then_else)]
28// Force missing implementations
29#![warn(missing_docs)]
30#![warn(missing_debug_implementations)]
31
32pub mod blocking;
33pub mod load_balancer;
34pub mod placement;
35pub mod pool;
36pub mod run;
37pub mod run_queue;
38pub mod sleepers;
39mod thread_manager;
40pub mod worker;
41
42///
43/// Prelude of Bastion Executor
44pub mod prelude {
45    pub use crate::blocking::*;
46    pub use crate::pool::*;
47    pub use crate::run::*;
48}