ferricel-core-0.1.2 has been yanked.
ferricel-core
ferricel-core is the Rust library that powers ferricel.
It provides a compiler and runtime for CEL (Common Expression Language),
targeting WebAssembly as the compilation output.
Use it to embed CEL compilation and evaluation directly in your Rust program.
Usage
Basic evaluation
use ;
let wasm = new
.build
.compile?;
let result = new
.with_wasm
.build?
.eval?;
assert_eq!;
Host extensions
Register host-provided functions that a CEL expression can call at runtime:
use ;
use ExtensionDecl;
let abs_decl = ExtensionDecl ;
let wasm = new
.with_extension
.build
.compile?;
let result = new
.with_extension
.with_wasm
.build?
.eval?;
assert_eq!;
For more examples (logging, custom Wasmtime config, protobuf bindings, performance tips), see the user guide.
Related crates
ferricel— CLI tool built on top of this libraryferricel-types— shared type definitions