Skip to main content

weirdnet_rules/
lib.rs

1//! If-this-then-that over an event history: rule specs generic over the application's
2//! then-actions, the condition syntax and comparison, templates, every/cron schedules, and a
3//! matching, loop-protected engine that reaches the application only through [`engine::Host`].
4#![forbid(unsafe_code)]
5
6pub mod compare;
7pub mod engine;
8mod error;
9mod model;
10pub mod schedule;
11pub mod syntax;
12pub mod template;
13
14pub use error::{Result, RulesError};
15pub use model::{Condition, Op, RuleSpec, SPEC_VERSION, Schedule, ThenAction};