# 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 = "2024"
rust-version = "1.85"
name = "aqc-file-engine-core"
version = "0.4.0"
build = false
include = [
    "src/**",
    "tests/**",
    "Cargo.toml",
    "README.md",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared framework types and FileEngine trait for aqc-{domain}-engine crates."
readme = "README.md"
keywords = [
    "aqc",
    "file-engine",
    "guardrails",
    "config",
]
categories = [
    "development-tools",
    "config",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/agent-quality-controls/aqc-shared"

[package.metadata.docs.rs]
all-features = true

[package.metadata.guardrail3]
shared = true

[features]
all = ["api"]
api = []
default = ["all"]

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

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

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

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

[dependencies.serde]
version = "1"
features = ["derive"]

[lints.clippy]
arithmetic_side_effects = "deny"
as_conversions = "deny"
dbg_macro = "deny"
disallowed_macros = "deny"
disallowed_methods = "deny"
disallowed_types = "deny"
empty_line_after_doc_comments = "deny"
expect_used = "deny"
float_cmp = "deny"
implicit_clone = "deny"
indexing_slicing = "deny"
large_futures = "deny"
large_stack_arrays = "deny"
lossy_float_literal = "deny"
map_unwrap_or = "deny"
missing_assert_message = "deny"
missing_docs_in_private_items = "deny"
module_name_repetitions = "deny"
multiple_crate_versions = "deny"
must_use_candidate = "deny"
needless_pass_by_value = "deny"
option_if_let_else = "deny"
panic = "deny"
partial_pub_fields = "deny"
print_stderr = "deny"
print_stdout = "deny"
redundant_closure_for_method_calls = "deny"
redundant_else = "deny"
redundant_pub_crate = "allow"
ref_option_ref = "deny"
rest_pat_in_fully_bound_structs = "deny"
semicolon_if_nothing_returned = "deny"
shadow_unrelated = "deny"
single_match_else = "deny"
str_to_string = "deny"
string_slice = "deny"
todo = "deny"
trivially_copy_pass_by_ref = "deny"
unimplemented = "deny"
unwrap_used = "deny"
verbose_file_reads = "deny"
wildcard_enum_match_arm = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
dead_code = "deny"
missing_debug_implementations = "deny"
unreachable_pub = "deny"
unsafe_code = "forbid"
unused_crate_dependencies = "deny"
unused_results = "deny"
warnings = "deny"
