23 stable releases

new 3.2.0 May 17, 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

#830 in Configuration

Download history 6156/week @ 2024-01-26 6126/week @ 2024-02-02 7710/week @ 2024-02-09 7907/week @ 2024-02-16 8387/week @ 2024-02-23 6720/week @ 2024-03-01 8490/week @ 2024-03-08 8634/week @ 2024-03-15 9130/week @ 2024-03-22 8001/week @ 2024-03-29 8899/week @ 2024-04-05 9410/week @ 2024-04-12 8505/week @ 2024-04-19 8719/week @ 2024-04-26 9272/week @ 2024-05-03 7208/week @ 2024-05-10

35,124 downloads per month
Used in 61 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–9MB
~158K SLoC