Skip to content

fx-rs

fx-rs brings ability-style algebraic effects to stable Rust: typed effects (abilities), handlers that interpret them, and lenses for focusing into context, the same effect-handler programming model offered by fx.go, expressed in Rust’s type system.

Terminal window
cargo add fx-rs
  • Abilities, typed algebraic effects
  • Handlers, interpret and transform effects
  • Lenses, focus into structured context
  • Functional, stable Rust, published on crates.io

fx-rs is the Rust member of a cross-language algebraic-effects family that includes nfx (Nix) and fx.go (Go). For a more type theoretic take on effects in Rust, freer monads with a dependent type checker, see rust-effects.

Source Code crates.io Support this project