# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "cedar-policy"
version = "2.1.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cedar is a language for defining permissions as policies, which describe who should have access to what."
homepage = "https://cedarpolicy.com"
readme = "README.md"
keywords = [
    "cedar",
    "authorization",
    "policy",
    "security",
]
categories = [
    "compilers",
    "config",
]
license = "Apache-2.0"
repository = "https://github.com/cedar-policy/cedar"
resolver = "1"

[features]
corpus-timing = []
decimal = [
    "cedar-policy-core/decimal",
    "cedar-policy-validator/decimal",
]
default = [
    "ipaddr",
    "decimal",
]
heap-profiling = ["dep:dhat"]
integration_testing = []
ipaddr = [
    "cedar-policy-core/ipaddr",
    "cedar-policy-validator/ipaddr",
]

[lib]
name = "cedar_policy"
crate_type = ["rlib"]
path = "src/lib.rs"

[[test]]
name = "corpus_tests"
path = "tests/corpus_tests.rs"

[[test]]
name = "decimal"
path = "tests/decimal.rs"

[[test]]
name = "example_use_cases_doc"
path = "tests/example_use_cases_doc.rs"

[[test]]
name = "ip"
path = "tests/ip.rs"

[[test]]
name = "multi"
path = "tests/multi.rs"

[[test]]
name = "public_interface"
path = "tests/public_interface.rs"

[[bench]]
name = "cedar_benchmarks"
path = "benches/cedar_benchmarks.rs"
harness = false

[dependencies.cedar-policy-core]
version = "=2.1.3"

[dependencies.cedar-policy-validator]
version = "=2.1.3"

[dependencies.dhat]
version = "0.3.2"
optional = true

[dependencies.itertools]
version = "0.10"

[dependencies.lalrpop-util]
version = "0.19.12"
features = ["lexer"]

[dependencies.ref-cast]
version = "1.0"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0"

[dependencies.smol_str]
version = "0.2"
features = ["serde"]

[dependencies.thiserror]
version = "1.0"

[dev-dependencies.cool_asserts]
version = "2.0"

[dev-dependencies.criterion]
version = "0.4"

[dev-dependencies.globset]
version = "0.4"
