Skip to main content

Crate sailing

Crate sailing 

Source
Expand description

Sailing: a Sans-I/O Raft consensus library.

This is the umbrella crate. It re-exports the runtime-agnostic protocol core as proto and, behind feature flags, an I/O driver: the runtime-agnostic reactor (tokio / smol via agnostic) or the completion-I/O compio backend.

sailing = { version = "0.1", features = ["tokio"] }   # reactor on tokio
sailing = { version = "0.1", features = ["compio"] }  # completion-I/O backend
# the no_std + alloc protocol core only (no driver):
sailing = { version = "0.1", default-features = false, features = ["alloc", "tcp"] }

Re-exports§

pub use sailing_proto as proto;

Modules§

compiocompio
The completion-I/O (compio) driver.
reactorreactor
The runtime-agnostic reactor driver (tokio / smol via agnostic); pick the runtime with the tokio or smol feature.