|
runtime 1.0.0
Checked CEL programs, owned values, and reusable execution stacks
|
Note: This project is a temporary solution for using the CEL language from cel-rs in C++. This library will be deprecated when using the Rust implementations from C++ becomes viable.
Build a checked program once, then evaluate it repeatedly on your own reusable stack. This C++20 library supplies program builders, owning results, complete value types, and callable values. To compile CEL text instead of constructing operations in C++, start with CEL parser.
Use CPM to build a static runtime with your application. After adding CPM to your project, declare the dependency and link your application target:
Include <cel/runtime.hpp> in your application. The build tutorial includes prerequisites, a complete application, and configure/build commands. No install step is needed.
Push two owned values, add a checked operation, and prepare the result:
The template arguments list the result first, followed by the operands in source order. Preparing checks the C++ boundary types once. You can call the prepared program again using the same stack.
Read these guides in order:
The generated documentation places grouped APIs under Reference and symbol lookup under Index. Build it with cmake --preset docs followed by cmake --build --preset docs, then open build/docs/html/index.html.