# 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.96"
name = "cpex-pdp-cedar-direct"
version = "0.2.0"
authors = [
    "Teryl Taylor",
    "Fred Araujo",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CPEX PDP — Amazon Cedar policy evaluation."
homepage = "https://contextforge-org.github.io/cpex/"
readme = false
keywords = [
    "ai",
    "agent",
    "security",
    "policy",
    "plugin",
]
categories = ["development-tools"]
license = "Apache-2.0"
repository = "https://github.com/contextforge-org/cpex"

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

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

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

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

[dependencies.apl-core]
version = "0.2.0"

[dependencies.async-trait]
version = "0.1"

[dependencies.cedar-policy]
version = "4"

[dependencies.serde_json]
version = "1"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.stacker]
version = "0.1"

[dependencies.thiserror]
version = "2"

[dev-dependencies.apl-cmf]
version = "0.2.0"

[dev-dependencies.apl-cpex]
version = "0.2.0"

[dev-dependencies.cpex-core]
version = "0.2.0"

[dev-dependencies.futures]
version = "0.3"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt",
    "rt-multi-thread",
    "sync",
    "time",
    "macros",
    "macros",
    "rt",
    "rt-multi-thread",
]

[lints.clippy]
allow_attributes = "allow"
allow_attributes_without_reason = "allow"
assigning_clones = "allow"
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
bool_comparison = "allow"
checked_conversions = "deny"
clone_on_ref_ptr = "allow"
cloned_instead_of_copied = "deny"
cognitive_complexity = "allow"
collapsible_match = "allow"
dbg_macro = "deny"
derivable_impls = "allow"
disallowed_methods = "deny"
doc_lazy_continuation = "allow"
doc_markdown = "allow"
doc_overindented_list_items = "allow"
empty_line_after_doc_comments = "allow"
enum_glob_use = "deny"
expect_used = "allow"
explicit_into_iter_loop = "deny"
explicit_iter_loop = "allow"
extra_unused_type_parameters = "allow"
field_reassign_with_default = "allow"
flat_map_option = "deny"
fn_params_excessive_bools = "deny"
from_iter_instead_of_collect = "deny"
if_not_else = "allow"
implicit_clone = "deny"
indexing_slicing = "allow"
inefficient_to_string = "deny"
items_after_statements = "allow"
iter_kv_map = "allow"
large_enum_variant = "deny"
let_underscore_future = "deny"
let_underscore_must_use = "allow"
macro_use_imports = "deny"
manual_assert = "allow"
manual_instant_elapsed = "deny"
manual_let_else = "allow"
manual_ok_or = "deny"
manual_repeat_n = "allow"
manual_string_new = "allow"
map_unwrap_or = "allow"
match_bool = "deny"
match_same_arms = "allow"
missing_docs_in_private_items = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
missing_safety_doc = "allow"
mut_mut = "deny"
needless_borrow = "deny"
needless_continue = "allow"
needless_for_each = "deny"
or_fun_call = "deny"
panic = "allow"
print_stderr = "allow"
print_stdout = "allow"
range_plus_one = "deny"
rc_buffer = "allow"
rc_mutex = "deny"
redundant_closure_for_method_calls = "allow"
redundant_else = "deny"
return_self_not_must_use = "allow"
same_functions_in_if_condition = "deny"
semicolon_if_nothing_returned = "deny"
stable_sort_primitive = "deny"
string_add = "deny"
string_lit_as_bytes = "deny"
struct_excessive_bools = "allow"
todo = "deny"
too_many_arguments = "allow"
too_many_lines = "allow"
trait_duplication_in_bounds = "deny"
type_complexity = "allow"
type_repetition_in_bounds = "deny"
unimplemented = "deny"
uninlined_format_args = "allow"
unnecessary_get_then_check = "deny"
unnecessary_map_or = "allow"
unnested_or_patterns = "allow"
unreadable_literal = "allow"
unused_self = "allow"
unwrap_or_default = "allow"
unwrap_used = "allow"
useless_vec = "allow"
vec_init_then_push = "deny"
wildcard_imports = "allow"
zero_sized_map_values = "deny"

[lints.rust]
dead_code = "allow"
keyword_idents_2024 = "deny"
macro_use_extern_crate = "deny"
meta_variable_misuse = "deny"
missing_debug_implementations = "allow"
missing_docs = "allow"
non_ascii_idents = "deny"
noop_method_call = "deny"
private_interfaces = "allow"
redundant_lifetimes = "deny"
trivial_numeric_casts = "deny"
unreachable_pub = "allow"
unsafe_code = "allow"
unused_extern_crates = "allow"
unused_imports = "deny"
unused_macro_rules = "deny"
unused_mut = "allow"
unused_qualifications = "allow"
unused_variables = "deny"

[lints.rustdoc]
bare_urls = "allow"
broken_intra_doc_links = "deny"
invalid_codeblock_attributes = "deny"
invalid_html_tags = "deny"
missing_crate_level_docs = "allow"
private_intra_doc_links = "deny"
