[package]
edition = "2021"
rust-version = "1.89"
name = "cedar-policy-cli"
version = "4.9.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI interface for 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]
default = []
experimental = [
"permissive-validate",
"partial-validate",
"partial-eval",
"tpe",
]
partial-eval = ["cedar-policy/partial-eval"]
partial-validate = ["cedar-policy/partial-validate"]
permissive-validate = ["cedar-policy/permissive-validate"]
tpe = [
"cedar-policy/tpe",
"cedar-policy/partial-eval",
]
[lib]
name = "cedar_policy_cli"
path = "src/lib.rs"
[[bin]]
name = "cedar"
path = "src/main.rs"
[[test]]
name = "sample"
path = "tests/sample.rs"
[dependencies.cedar-policy]
version = "=4.9.1"
[dependencies.cedar-policy-formatter]
version = "=4.9.1"
[dependencies.clap]
version = "4"
features = [
"derive",
"env",
]
[dependencies.miette]
version = "7.6.0"
features = ["fancy"]
[dependencies.owo-colors]
version = "4.2.3"
features = ["supports-colors"]
[dependencies.semver]
version = "1.0.27"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.thiserror]
version = "2.0"
[dev-dependencies.assert_cmd]
version = "2.1"
[dev-dependencies.glob]
version = "0.3.2"
[dev-dependencies.graphviz-rust]
version = "0.9.6"
default-features = false
[dev-dependencies.predicates]
version = "3.1.3"
[dev-dependencies.rstest]
version = "0.26.1"
[dev-dependencies.tempfile]
version = "3"
[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
cast_lossless = "warn"
cast_possible_truncation = "warn"
cloned_instead_of_copied = "warn"
expect_used = "deny"
fallible_impl_from = "deny"
format_collect = "warn"
format_push_string = "warn"
implicit_clone = "warn"
inconsistent_struct_constructor = "warn"
indexing_slicing = "deny"
inefficient_to_string = "warn"
large_enum_variant = "allow"
large_types_passed_by_value = "warn"
missing_const_for_fn = "allow"
needless_doctest_main = "allow"
needless_pass_by_value = "warn"
option_as_ref_cloned = "warn"
option_if_let_else = "allow"
option_option = "warn"
panic = "deny"
redundant_clone = "deny"
redundant_pub_crate = "allow"
ref_option = "warn"
ref_option_ref = "warn"
result_large_err = "allow"
should_panic_without_expect = "deny"
string_slice = "deny"
todo = "deny"
too_long_first_doc_paragraph = "allow"
trivially_copy_pass_by_ref = "warn"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"
use_self = "allow"
[lints.clippy.nursery]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "deny"
rust-2018-idioms = "deny"
unsafe_code = "forbid"
unused_assignments = "allow"
[lints.rust.unexpected_cfgs]
level = "deny"
priority = 0
check-cfg = [
"cfg(kani)",
"cfg(fuzzing)",
]