Registry / auth / cedar-policy

cedar-policy

JSON →
library4.11.0rscratesunverified

Cedar is a language for defining permissions as policies, describing who should have access to what.

# Cargo.toml [dependencies] cedar-policy = "4.11.0"
INSTALL
IMPORT
SIG · CEDAR-POLICY
C
cedar-policy
authrustv4.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PolicySet
use cedar_policy::PolicySet;

Parses a Cedar policy string into a PolicySet.

use cedar_policy::PolicySet; let policy = r#"permit(principal, action, resource) when { true };"#; let policies = PolicySet::from_str(policy).unwrap(); println!("Policy set created: {:?}", policies);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.11.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Resources
cedar-policy — cargo add cedar-policy · libregistry