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
// Simple business rules for e-commerce system

rule "Basic Age Check" salience 10 {
    when
        user.age >= 18
    then
        set(user.canPurchase, true);
}

rule "VIP Customer Discount" salience 15 {
    when
        user.vipStatus == true
    then
        apply_discount(10);
        log("VIP discount applied");
}

rule "First Time Buyer" salience 5 {
    when
        user.orderCount == 0
    then
        set(user.welcomeBonus, 50);
        log("Welcome bonus granted");
}