# 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"
rust-version = "1.85"
name = "core-policy"
version = "0.11.0"
authors = ["p47h Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure RBAC/ABAC policy engine core (zero crypto/network dependencies)"
documentation = "https://docs.rs/core-policy"
readme = "README.md"
keywords = [
    "rbac",
    "abac",
    "authorization",
    "policy",
    "access-control",
]
categories = [
    "authentication",
    "no-std::no-alloc",
]
license = "Apache-2.0"
repository = "https://github.com/p47h-org/p47h-open-core"

[features]
default = []
toml = ["dep:toml"]

[lib]
name = "core_policy"
path = "src/lib.rs"

[[example]]
name = "custom_resources"
path = "examples/custom_resources.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "alloc",
    "derive",
]
default-features = false

[dependencies.toml]
version = "0.8"
features = [
    "parse",
    "display",
    "parse",
    "display",
]
optional = true
default-features = false

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

[dev-dependencies.proptest]
version = "1.0"

[dev-dependencies.toml]
version = "0.8"
features = [
    "parse",
    "display",
    "parse",
    "display",
]
default-features = false

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]
