Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-rust/cel-rust
/ main
Function
main
example/src/simple.rs:3–8 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
use cel::{Context, Program};
2
3
fn main() {
4
let program = Program::compile(
"1 == 1"
).unwrap();
5
let context = Context::default();
6
let value = program.execute(&context).unwrap();
7
assert_eq!(value, true.into());
8
}
Callers
nothing calls this directly
Calls
1
execute
Method · 0.80
Tested by
no test coverage detected