# 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.77"
name = "cedar-policy-core"
version = "4.0.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Core implemenation of the Cedar Policy language."
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"

[features]
arbitrary = ["dep:arbitrary"]
decimal = ["dep:regex"]
default = [
    "ipaddr",
    "decimal",
]
ipaddr = []
partial-eval = []
test-util = []
wasm = [
    "serde-wasm-bindgen",
    "tsify",
    "wasm-bindgen",
]

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

[dependencies.arbitrary]
version = "1"
features = ["derive"]
optional = true

[dependencies.either]
version = "1.8"

[dependencies.itertools]
version = "0.13"

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

[dependencies.lazy_static]
version = "1.4"

[dependencies.miette]
version = "7.1.0"
features = ["serde"]

[dependencies.nonempty]
version = "0.10.0"

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

[dependencies.regex]
version = "1.8"
features = ["unicode"]
optional = true

[dependencies.rustc_lexer]
version = "0.1"

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

[dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_with]
version = "3.0"
features = ["json"]

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

[dependencies.stacker]
version = "0.1.15"

[dependencies.thiserror]
version = "1.0"

[dependencies.tsify]
version = "0.4.5"
optional = true

[dependencies.wasm-bindgen]
version = "0.2.82"
optional = true

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

[dev-dependencies.miette]
version = "7.1.0"
features = ["fancy"]

[build-dependencies.lalrpop]
version = "0.21.0"

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