20 stable releases

new 3.1.3 Apr 15, 2024
3.1.2 Mar 29, 2024
3.0.1 Dec 21, 2023
2.4.5 Apr 1, 2024
2.3.1 Jul 20, 2023

#716 in Configuration

Download history 2664/week @ 2023-12-23 3716/week @ 2023-12-30 5267/week @ 2024-01-06 6490/week @ 2024-01-13 5843/week @ 2024-01-20 6304/week @ 2024-01-27 6167/week @ 2024-02-03 7785/week @ 2024-02-10 8567/week @ 2024-02-17 7528/week @ 2024-02-24 6944/week @ 2024-03-02 8820/week @ 2024-03-09 8557/week @ 2024-03-16 8723/week @ 2024-03-23 8216/week @ 2024-03-30 7540/week @ 2024-04-06

34,620 downloads per month
Used in 57 crates (6 directly)

Apache-2.0

1.5MB
34K 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–8.5MB
~148K SLoC