The pieces / weirdnet-rules

weirdnet-rules

If-this-then-that rule specs, conditions, schedules and a loop-protected engine.

GitHub crates.io docs.rs weirdnet-rules = "0.1"

What it is

If-this-then-that over an event history, without knowing what the events or the actions are. The crate does no I/O and decides no permissions.

What is in it

  • RuleSpec<T>: on event patterns, if conditions, then actions of the application’s type, optional schedule, versioned JSON.
  • syntax, compare: conditions such as inserted > 0 or title ~ "btc halving".
  • schedule: every 6h and five-field cron in any zone. template: {field}, {rule}, {now}.
  • engine: matching, loop protection (no re-entry, bounded depth and runs), running actions in order, due scheduled rules.

Where it fits

  • Extracted from Muninn.
  • License: BSD-3-Clause.