| Crates.io | product-farm-core |
| lib.rs | product-farm-core |
| version | 0.2.0 |
| created_at | 2025-12-30 15:20:23.740121+00 |
| updated_at | 2026-01-04 01:28:54.740653+00 |
| description | Core domain types for Product-FARM rule engine |
| homepage | |
| repository | https://github.com/ayushmaanbhav/product-farm |
| max_upload_size | |
| id | 2012815 |
| size | 221,898 |
Core domain types and abstractions for the Product-FARM rule engine ecosystem.
product-farm-core provides the foundational types used across the Product-FARM rule engine:
This crate is part of Product-FARM, an enterprise-grade rule engine featuring:
[dependencies]
product-farm-core = "0.2"
use product_farm_core::{Value, Attribute, AttributeType};
// Create typed values
let price = Value::Number(99.99);
let name = Value::String("Premium Plan".into());
let features = Value::Array(vec![
Value::String("Feature A".into()),
Value::String("Feature B".into()),
]);
// Define attributes with validation
let attr = Attribute {
id: "base_price".into(),
name: "Base Price".into(),
attribute_type: AttributeType::Number,
default_value: Some(Value::Number(0.0)),
constraints: vec![],
};
| Crate | Description |
|---|---|
| product-farm-json-logic | JSON Logic parser with bytecode VM |
| product-farm-rule-engine | DAG executor with parallel evaluation |
| product-farm-farmscript | Human-friendly DSL for rules |
| product-farm-llm-evaluator | LLM-powered rule evaluation |
| product-farm-yaml-loader | YAML-based product definitions |
MIT License - see LICENSE for details.