rust-rule-engine 1.18.0

A blazing-fast Rust rule engine with RETE algorithm, backward chaining inference, and GRL (Grule Rule Language) syntax. Features SIMD/zero-copy/parallel parsing, forward/backward chaining, pattern matching, O(1) rule indexing, TMS, expression evaluation, method calls, streaming with Redis state backend. Production-ready for business rules, expert systems, and real-time decision automation.
Documentation
1
2
3
4
5
6
7
8
9
// Simple test for stream pattern parsing
rule "TestStreamParsing" salience 100 {
    when
        login: LoginEvent from stream("logins") over window(10 min, sliding) &&
        login.user_id == "test123"
    then
        Alert.Type = "STREAM_TEST";
        Alert.Message = "Stream pattern parsed successfully";
}