# 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"
name = "car-vision"
version = "0.34.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Apple Vision.framework bindings (OCR, layout, classification) for Common Agent Runtime"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/Parslee-ai/car"

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

[[example]]
name = "ocr_smoke"
path = "examples/ocr_smoke.rs"

[[example]]
name = "vision_full_smoke"
path = "examples/vision_full_smoke.rs"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
    "macros",
    "rt-multi-thread",
]

[lints.clippy]
assertions_on_constants = "allow"
doc_lazy_continuation = "allow"
empty_line_after_doc_comments = "allow"
field_reassign_with_default = "allow"
large_enum_variant = "allow"
needless_range_loop = "allow"
result_large_err = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
unnecessary_sort_by = "allow"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(car_system_audio)",
    "cfg(car_skip_mlx)",
    "cfg(car_skip_cuda)",
]
