25 stable releases

3.2.1 May 31, 2024
3.1.3 Apr 15, 2024
3.1.2 Mar 29, 2024
3.0.1 Dec 21, 2023
2.3.1 Jul 20, 2023

#631 in Configuration

Download history 8488/week @ 2024-03-25 8512/week @ 2024-04-01 9019/week @ 2024-04-08 9224/week @ 2024-04-15 8578/week @ 2024-04-22 8918/week @ 2024-04-29 9548/week @ 2024-05-06 8221/week @ 2024-05-13 8205/week @ 2024-05-20 8309/week @ 2024-05-27 8464/week @ 2024-06-03 8974/week @ 2024-06-10 7872/week @ 2024-06-17 8239/week @ 2024-06-24 7682/week @ 2024-07-01 9956/week @ 2024-07-08

34,127 downloads per month
Used in 65 crates (6 directly)

Apache-2.0

1.5MB
35K SLoC

Cedar Policy Core

This package contains the Cedar parser and evaluation engine.

This package exposes low-level and advanced Cedar APIs, e.g., for interacting with policy ASTs directly. Anyone simply wanting to use Cedar from a Rust client (e.g., to make authorization decisions) should use cedar-policy instead.

For more information about the Cedar language/project, please take a look at cedarpolicy.com.

Development

Build and test this crate independently by running cargo build and cargo test from this directory. Run these commands from the root directory of this repository to build and test this package and all other crates in this repository. This crate is consumed either directly or indirectly by all other crates in this repository, so a change here may precipitate test failures elsewhere.

Documentation

Generated documentation for the latest version can be accessed on docs.rs.


lib.rs:

Implementation of the Cedar parser and evaluation engine in Rust.

Dependencies

~5.5–9.5MB
~158K SLoC