[package]
name = "cedar-policy-cli"
edition = "2021"
rust-version = "1.76.0"  # minimum supported Rust version is currently 1.76.0 because `cedar-policy-core` requirement. Check with `cargo install cargo-msrv && cargo msrv --min 1.75.0`

version = "3.2.5"
license = "Apache-2.0"
categories = ["compilers", "config"]
description = "CLI interface for the Cedar Policy language."
keywords = ["cedar", "authorization", "policy", "security"]
homepage = "https://cedarpolicy.com"
repository = "https://github.com/cedar-policy/cedar"

[dependencies]
cedar-policy = { version = "=3.2.5", path = "../cedar-policy" }
cedar-policy-formatter = { version = "=3.2.5", path = "../cedar-policy-formatter" }
clap = { version = "4", features = ["derive", "env"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
miette = { version = "7.1.0", features = ["fancy"] }
thiserror = "1.0"

[features]
default = []
experimental = ["partial-validate"]
partial-validate = ["cedar-policy/partial-validate"]

[dev-dependencies]
assert_cmd = "2.0"
tempfile = "3"
glob = "0.3.1"
predicates = "3.1.0"

# We override the name of the binary for src/main.rs, which otherwise would be
# cedar-policy-cli (matching the crate name).
[[bin]]
name = "cedar"
path = "src/main.rs"
