[package]
name = "cedar-policy"
edition = "2021"
version = "2.2.2"
license = "Apache-2.0"
categories = ["compilers", "config"]
description = "Cedar is a language for defining permissions as policies, which describe who should have access to what."
keywords = ["cedar", "authorization", "policy", "security"]
homepage = "https://cedarpolicy.com"
repository = "https://github.com/cedar-policy/cedar"
[dependencies]
cedar-policy-core = { version = "=2.2.2", path = "../cedar-policy-core" }
cedar-policy-validator = { version = "=2.2.2", path = "../cedar-policy-validator" }
ref-cast = "1.0"
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
lalrpop-util = { version = "0.19.12", features = ["lexer"] }
itertools = "0.10"
thiserror = "1.0"
smol_str = { version = "0.2", features = ["serde"] }
dhat = { version = "0.3.2", optional = true}
[features]
default = ["ipaddr", "decimal"]
ipaddr = ["cedar-policy-core/ipaddr", "cedar-policy-validator/ipaddr"]
decimal = ["cedar-policy-core/decimal", "cedar-policy-validator/decimal"]
heap-profiling = ["dep:dhat"]
corpus-timing = []
integration_testing = []
[lib]
crate_type = ["rlib"]
[dev-dependencies]
cedar-policy = { path = ".", default-features = false, features = ["integration_testing"] }
cool_asserts = "2.0"
criterion = "0.4"
globset = "0.4"
[[bench]]
name = "cedar_benchmarks"
harness = false