SM aims to be a safe, fast and simple state machine library.
-
safe — Rust's type system, ownership model and exhaustive pattern matching prevent you from mis-using your state machines
-
fast — zero runtime overhead, the machine is 100% static, all validation happens at compile-time
-
simple — five traits, and one optional declarative macro, control-flow only, no business logic attached
You might be looking for:
Quick Example
extern crate sm;
use sm;
sm!