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
Entitiestype 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.
- validator
- Validator for Cedar policies
Macros§
- impl_
diagnostic_ from_ method_ on_ field - Macro which implements the
.labels()and.source_code()methods ofmiette::Diagnosticby using the parameter$iwhich must be a field of some type for which the method$m()returnsOption<&Loc>. E.g., a field of typeExprorBox<Expr>, where$missource_loc. - impl_
diagnostic_ from_ method_ on_ nonempty_ field - Macro which implements the
.labels()and.source_code()methods ofmiette::Diagnosticby using the parameter$iwhich must be a field of typeNonEmpty<T>whereThas a method$m()which returnsOption<&Loc>. E.g., a field of typeNonEmpty<EntityUID>, where$misloc. Only the first item in theNonEmptywill be underlined. - impl_
diagnostic_ from_ source_ loc_ opt_ field - Macro which implements the
.labels()and.source_code()methods ofmiette::Diagnosticby using the parameter$iwhich must be the name of a field of typeOption<Loc> - impl_
diagnostic_ from_ two_ source_ loc_ opt_ fields - Macro which implements the
.labels()and.source_code()methods ofmiette::Diagnosticby using the parameters$iand$jwhich 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_strtrait function.