Expand description
Implementation of the Cedar parser and evaluation engine in Rust.
Modules§
- ast
- This module contains the AST datatypes.
- authorizer
- This module contains the Cedar “authorizer”, which implements the actual authorization logic.
- entities
- This module contains the
Entities
type and related functionality. - est
- This module contains the External Syntax Tree (EST)
- evaluator
- This module contains the Cedar evaluator.
- expr_
builder - Contains the trait
ExprBuilder
, defining a generic interface for building different expression data structures (e.g., AST and EST). - extensions
- This module contains all of the standard Cedar extensions.
- fuzzy_
match - This module provides the fuzzy matching utility used to make suggestions when encountering unknown values in entities, functions, etc.
- jsonvalue
- This module provides general-purpose JSON utilities not specific to Cedar.
- parser
- This module contains the parser for the Cedar language.
- transitive_
closure - Module containing code to compute the transitive closure of a graph. This is a generic utility, and not specific to Cedar.
Macros§
- impl_
diagnostic_ from_ method_ on_ field - Macro which implements the
.labels()
and.source_code()
methods ofmiette::Diagnostic
by using the parameter$i
which must be a field of some type for which the method$m()
returnsOption<&Loc>
. E.g., a field of typeExpr
orBox<Expr>
, where$m
issource_loc
. - impl_
diagnostic_ from_ method_ on_ nonempty_ field - Macro which implements the
.labels()
and.source_code()
methods ofmiette::Diagnostic
by using the parameter$i
which must be a field of typeNonEmpty<T>
whereT
has a method$m()
which returnsOption<&Loc>
. E.g., a field of typeNonEmpty<EntityUID>
, where$m
isloc
. Only the first item in theNonEmpty
will be underlined. - impl_
diagnostic_ from_ source_ loc_ field - Macro which implements the
.labels()
and.source_code()
methods ofmiette::Diagnostic
by using the parameter$i
which must be the name of a field of typeLoc
- impl_
diagnostic_ from_ source_ loc_ opt_ field - Macro which implements the
.labels()
and.source_code()
methods ofmiette::Diagnostic
by using the parameter$i
which must be the name of a field of typeOption<Loc>
- impl_
diagnostic_ from_ two_ source_ loc_ fields - Macro which implements the
.labels()
and.source_code()
methods ofmiette::Diagnostic
by using the parameters$i
and$j
which must be names of fields of typeLoc
. Both locations will be underlined. It is assumed they have the samesrc
. - impl_
diagnostic_ from_ two_ source_ loc_ opt_ fields - Macro which implements the
.labels()
and.source_code()
methods ofmiette::Diagnostic
by using the parameters$i
and$j
which must be the names of fields of typeOption<Loc>
. Both locations will be underlined, if both locs are present. It is assumed that both locs have the samesrc
, if both locs are present.
Traits§
- From
Normalized Str - Trait for parsing “normalized” strings only, throwing an error if a
non-normalized string is encountered. See docs on the
FromNormalizedStr::from_normalized_str
trait function.