Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proto types #116

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Proto types #116

wants to merge 3 commits into from

Conversation

JonasHedEng
Copy link
Contributor

Based off of #81 . I made an attempt at some initial conversion to/from proto expressions. Does the expression IDs exist somewhere or are they computable as of now? I skipped it for now. I'll try to pick it up at a later point, but please feel free to pick it up from here!

I think what "should" be implemented is actually to/from ParsedExpr and CheckedExpr but since Expr is the underlying type, I went for that to begin with.

flokli and others added 3 commits December 5, 2024 15:17
These are vendored from https://github.com/google/cel-spec,
proto/cel/expr/ at ed066e332b7acc3dbf68e65e0001061539d25e83.

The other files only contain messages for interacting with a CEL
interpreter, but don't represent ASTs.
This adds the cel_interpreter::proto mod, exposing the cel.expr protobuf
types, as well as the necessary plumbing to generate the type
definitions at compile time.

The outcome can be best explored by invoking `cargo doc` with the
`proto` feature enabled, and starting at the
`cel_interpreter::proto::[Parsed]Expr` struct.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants