rust-rule-engine 1.20.1

A blazing-fast Rust rule engine with RETE algorithm, backward chaining inference, and GRL (Grule Rule Language) syntax. Features: forward/backward chaining, pattern matching, unification, O(1) rule indexing, TMS, expression evaluation, method calls, streaming with Redis state backend, watermarking, and custom functions. Production-ready for business rules, expert systems, real-time stream processing, and decision automation.
Documentation
// Simplified Pattern Matching Rules for Individual Testing
// Each rule tests one specific pattern type

rule "VIPExistsRule" "Test EXISTS pattern" salience 20 no-loop {
    when
        exists(Customer.tier == "VIP")
    then
        System.vipFound = true;
        log("VIP customer found");
}

rule "NoPendingOrdersRule" "Test NOT pattern" salience 15 no-loop {
    when
        !exists(Order.status == "pending")
    then
        Marketing.sendEmails = true;
        log("No pending orders - marketing enabled");
}

rule "AllOrdersProcessedRule" "Test FORALL pattern" salience 10 no-loop {
    when
        forall(Order.status == "processed")
    then
        Shipping.readyToShip = true;
        log("All orders processed - ready to ship");
}