Open Source Rust
Rules Engine

Get started with GoRules for Rust in few simple steps

use serde_json::json;
use zen_engine::DecisionEngine;
use zen_engine::model::DecisionContent;

async fn evaluate() {
    let decision_content: DecisionContent = serde_json::from_str(include_str!("jdm_graph.json")).unwrap();
    let engine = DecisionEngine::default();
    let decision = engine.create_decision(decision_content.into());

    let result = decision.evaluate(&json!({ "input": 12 })).await;
}

STEP 1

Install the ZEN Engine

Add zen-engine as a dependency of your project.

STEP 2

Create a decision

Create a decision using business rules engine platform by following the guide.

STEP 3

Evaluate Business Rules

Integrate the in your codebase using library to receive decisions based on parameters.

Embedded Systems

Harness the power of our Rust-based rules engine to optimize decision-making in resource-constrained embedded systems. By leveraging Rust's minimal runtime and fine-grained control over system resources, developers can implement complex business logic directly on IoT devices, edge computing nodes, and microcontrollers.

Predictable Performance for Time-Critical Operations

Guarantee consistent response times in time-sensitive applications. By leveraging Rust's control over memory allocation and its lack of garbage collection, our rule engine provides predictable, low-latency performance crucial for real-time systems where milliseconds matter, from high-frequency trading to industrial control systems.

Get started with GoRules

Need help?

Get in touch for enterprise consultancy and support

Start integrating

Integrate in as little as 10 minutes with our evaluation API