Crate cedar_policy_core

Source
Expand description

Implementation of the Cedar parser and evaluation engine in Rust.

Modules§

  • This module contains the AST datatypes.
  • This module contains the Cedar “authorizer”, which implements the actual authorization logic.
  • This module contains the Entities type and related functionality.
  • This module contains the External Syntax Tree (EST)
  • This module contains the Cedar evaluator.
  • This module contains all of the standard Cedar extensions.
  • This module provides the fuzzy matching utility used to make suggestions when encountering unknown values in entities, functions, etc.
  • This module provides general-purpose JSON utilities not specific to Cedar.
  • This module contains the parser for the Cedar language.
  • Module containing code to compute the transitive closure of a graph. This is a generic utility, and not specific to Cedar.

Macros§

  • Macro which implements the .labels() and .source_code() methods of miette::Diagnostic by using the parameter $i which must be an Expr (or Box<Expr>) type field.
  • Macro which implements the .labels() and .source_code() methods of miette::Diagnostic by using the parameter $i which must be the name of a field of type Loc
  • Macro which implements the .labels() and .source_code() methods of miette::Diagnostic by using the parameter $i which must be the name of a field of type Option<Loc>
  • Macro which implements the .labels() and .source_code() methods of miette::Diagnostic by using the parameters $i and $j which must be names of fields of type Loc. Both locations will be underlined. It is assumed they have the same src.
  • Macro which implements the .labels() and .source_code() methods of miette::Diagnostic by using the parameters $i and $j which must be the names of fields of type Option<Loc>. Both locations will be underlined, if both locs are present. It is assumed that both locs have the same src, if both locs are present.

Traits§