forked from cel-expr/cel-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruntime_std_extensions.h
More file actions
46 lines (40 loc) · 1.61 KB
/
Copy pathruntime_std_extensions.h
File metadata and controls
46 lines (40 loc) · 1.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef THIRD_PARTY_CEL_CPP_ENV_RUNTIME_STD_EXTENSIONS_H_
#define THIRD_PARTY_CEL_CPP_ENV_RUNTIME_STD_EXTENSIONS_H_
#include "env/env_runtime.h"
namespace cel {
// Registers the standard CEL extension functions with the given environment
// runtime. This makes them available, but does not enable them. See Env::Config
// for how to enable extensions.
//
// Included in the standard runtime environment:
//
// - cel.lib.ext.bindings (alias: "bindings")
// - cel.lib.ext.encoders (alias: "encoders")
// - cel.lib.ext.lists (alias: "lists")
// - cel.lib.ext.math (alias: "math")
// - optional
// - cel.lib.ext.protos (alias: "protos")
// - cel.lib.ext.sets (alias: "sets")
// - cel.lib.ext.strings (alias: "strings")
// - cel.lib.ext.comprev2 (alias: "two-var-comprehensions")
//
// NOTE: Not included in the standard runtime environment yet - include manually
// if needed:
// - cel.lib.ext.regex (alias: "regex")
//
void RegisterStandardExtensions(EnvRuntime& env_runtime);
} // namespace cel
#endif // THIRD_PARTY_CEL_CPP_ENV_RUNTIME_STD_EXTENSIONS_H_