[package]
edition = "2021"
rust-version = "1.76"
name = "visionkit-rs"
version = "0.2.1"
authors = ["Per Johansson <per@doom.fish>"]
build = "build.rs"
include = [
"src/**/*",
"swift-bridge/Package.swift",
"swift-bridge/Sources/**/*",
"examples/**/*",
"tests/**/*",
"build.rs",
"Cargo.toml",
"README.md",
"LICENSE-*",
"CHANGELOG.md",
"COVERAGE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Safe Rust bindings for VisionKit.framework — image analysis, Live Text, and availability-aware area coverage on macOS"
homepage = "https://github.com/doom-fish/visionkit-rs"
readme = "README.md"
keywords = [
"visionkit",
"ocr",
"macos",
"apple",
"vision",
]
categories = [
"api-bindings",
"os::macos-apis",
"multimedia::images",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/doom-fish/visionkit-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"
[lib]
name = "visionkit"
crate-type = ["lib"]
path = "src/lib.rs"
[[example]]
name = "01_vn_document_camera_view_controller"
path = "examples/01_vn_document_camera_view_controller.rs"
[[example]]
name = "02_framework_smoke"
path = "examples/02_framework_smoke.rs"
[[example]]
name = "03_data_scanner_view_controller"
path = "examples/03_data_scanner_view_controller.rs"
[[example]]
name = "04_image_analyzer"
path = "examples/04_image_analyzer.rs"
[[example]]
name = "05_live_text_interaction"
path = "examples/05_live_text_interaction.rs"
[[example]]
name = "06_image_analysis"
path = "examples/06_image_analysis.rs"
[[example]]
name = "07_recognized_text"
path = "examples/07_recognized_text.rs"
[[example]]
name = "08_barcode"
path = "examples/08_barcode.rs"
[[example]]
name = "09_recognized_item"
path = "examples/09_recognized_item.rs"
[[test]]
name = "api_coverage"
path = "tests/api_coverage.rs"
[[test]]
name = "barcode_tests"
path = "tests/barcode_tests.rs"
[[test]]
name = "data_scanner_view_controller_tests"
path = "tests/data_scanner_view_controller_tests.rs"
[[test]]
name = "image_analysis_tests"
path = "tests/image_analysis_tests.rs"
[[test]]
name = "image_analyzer_tests"
path = "tests/image_analyzer_tests.rs"
[[test]]
name = "live_text_interaction_tests"
path = "tests/live_text_interaction_tests.rs"
[[test]]
name = "recognized_item_tests"
path = "tests/recognized_item_tests.rs"
[[test]]
name = "recognized_text_tests"
path = "tests/recognized_text_tests.rs"
[[test]]
name = "vn_document_camera_view_controller_tests"
path = "tests/vn_document_camera_view_controller_tests.rs"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "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"