Crate cuengine

Crate cuengine 

Source
Expand description

Go-Rust FFI bridge for CUE evaluation

This crate provides a safe Rust interface to the Go-based CUE evaluator. It handles all FFI operations, memory management, and error handling for calling Go functions from Rust.

Re-exports§

pub use error::CueEngineError;
pub use error::Result;
pub use retry::RetryConfig;
pub use validation::Limits;

Modules§

cache
Cache implementation for CUE evaluation results
error
Error types for CUE evaluation
retry
Retry logic with exponential backoff
validation
Input validation functions

Structs§

CStringPtr
RAII wrapper for C strings returned from FFI Ensures proper cleanup when the wrapper goes out of scope
FieldMeta
Source location metadata for a single field
ModuleEvalOptions
Options for module evaluation
ModuleResult
Result of evaluating an entire CUE module

Functions§

evaluate_cue_package
Convenience wrapper around evaluate_module for single-directory evaluation.
evaluate_cue_package_typed
Evaluates a CUE package and returns the result as a typed struct
evaluate_module
Evaluates CUE instances in a module and returns results with optional source metadata
get_bridge_version
Gets the bridge version information from the Go side