apple-vision 0.15.1

Safe Rust bindings for Apple's Vision framework — OCR, object detection, face landmarks on macOS
Documentation
# 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.70"
name = "apple-vision"
version = "0.15.1"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
    "src/**/*",
    "examples/**/*",
    "tests/**/*",
    "swift-bridge/Package.swift",
    "swift-bridge/Sources/**/*",
    "build.rs",
    "Cargo.toml",
    "README.md",
    "LICENSE-*",
    "CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for Apple's Vision framework — OCR, object detection, face landmarks on macOS"
homepage = "https://github.com/doom-fish/vision-rs"
readme = "README.md"
keywords = [
    "vision",
    "ocr",
    "macos",
    "computer-vision",
    "apple",
]
categories = [
    "api-bindings",
    "os::macos-apis",
    "computer-vision",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/vision-rs"

[package.metadata.docs.rs]
all-features = true
default-target = "aarch64-apple-darwin"
targets = [
    "aarch64-apple-darwin",
    "x86_64-apple-darwin",
]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[badges.maintenance]
status = "actively-developed"

[features]
aesthetics = ["detect_faces"]
animals = ["detect_faces"]
body_pose = []
classify = []
contours = ["face_landmarks"]
coreml = ["classify"]
default = [
    "recognize_text",
    "detect_faces",
    "detect_barcodes",
    "saliency",
    "face_landmarks",
    "body_pose",
    "hand_pose",
    "contours",
    "animals",
    "classify",
    "rectangles",
    "horizon",
    "feature_print",
    "humans",
    "aesthetics",
    "segmentation",
    "optical_flow",
    "coreml",
    "tracking",
]
detect_barcodes = []
detect_faces = []
face_landmarks = ["detect_faces"]
feature_print = []
hand_pose = ["body_pose"]
horizon = []
humans = ["detect_faces"]
optical_flow = ["segmentation"]
recognize_text = []
rectangles = ["face_landmarks"]
saliency = []
segmentation = []
tracking = [
    "recognize_text",
    "rectangles",
]

[lib]
name = "apple_vision"
crate-type = ["lib"]
path = "src/lib.rs"

[[example]]
name = "01_ocr_smoke"
path = "examples/01_ocr_smoke.rs"
required-features = ["recognize_text"]

[[example]]
name = "02_ocr_pixel_buffer"
path = "examples/02_ocr_pixel_buffer.rs"
required-features = ["recognize_text"]

[[example]]
name = "03_face_detect"
path = "examples/03_face_detect.rs"
required-features = [
    "detect_faces",
    "recognize_text",
]

[[example]]
name = "04_v013_missing_requests"
path = "examples/04_v013_missing_requests.rs"

[[example]]
name = "05_tracking"
path = "examples/05_tracking.rs"
required-features = ["tracking"]

[[example]]
name = "06_request_processing"
path = "examples/06_request_processing.rs"
required-features = ["recognize_text"]

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

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

[dependencies.apple-cf]
version = ">=0.4.0, <0.6"
features = [
    "cv",
    "iosurface",
]
default-features = false

[dependencies.libc]
version = "0.2.186"

[dev-dependencies.regex-lite]
version = "0.1"

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

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

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

[lints.rust]

[profile.release]
debug = 2
strip = "none"