Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions extensions/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ cc_library(
"//common:decl",
"//common:type",
"//common:value",
"//compiler",
"//eval/public:cel_function_registry",
"//eval/public:cel_options",
"//internal:status_macros",
Expand Down
5 changes: 5 additions & 0 deletions extensions/encoders.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#include "common/decl.h"
#include "common/type.h"
#include "common/value.h"
#include "compiler/compiler.h"
#include "eval/public/cel_function_registry.h"
#include "eval/public/cel_options.h"
#include "internal/status_macros.h"
Expand Down Expand Up @@ -111,4 +112,8 @@ CheckerLibrary EncodersCheckerLibrary() {
return {"cel.lib.ext.encoders", &RegisterEncodersDecls};
}

CompilerLibrary EncodersCompilerLibrary() {
return CompilerLibrary::FromCheckerLibrary(EncodersCheckerLibrary());
}

} // namespace cel::extensions
4 changes: 4 additions & 0 deletions extensions/encoders.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "absl/base/nullability.h"
#include "absl/status/status.h"
#include "checker/type_checker_builder.h"
#include "compiler/compiler.h"
#include "eval/public/cel_function_registry.h"
#include "eval/public/cel_options.h"
#include "runtime/function_registry.h"
Expand All @@ -36,6 +37,9 @@ absl::Status RegisterEncodersFunctions(
// Declarations for the encoders extension library.
CheckerLibrary EncodersCheckerLibrary();

// Compiler library for the encoders extension.
CompilerLibrary EncodersCompilerLibrary();

} // namespace cel::extensions

#endif // THIRD_PARTY_CEL_CPP_EXTENSIONS_ENCODERS_H_