# 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 = "quasivision"
version = "0.2.2"
build = false
exclude = [
    "demo/",
    "images/",
    "output/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust-based pseudo-visual understanding tool. Analyzes screenshots, UI mockups, and real-world photos — detects UI components, recognizes text via OCR, identifies objects with YOLOE-26n."
homepage = "https://github.com/WeiChens/quasivision"
readme = "README.md"
keywords = [
    "ui-detection",
    "ocr",
    "object-detection",
    "computer-vision",
    "screenshot",
]
categories = [
    "computer-vision",
    "multimedia::images",
]
license = "MIT"
repository = "https://github.com/WeiChens/quasivision"

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

[[bin]]
name = "quasivision"
path = "src/main.rs"

[dependencies.ab_glyph]
version = "0.2"

[dependencies.anyhow]
version = "1"

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.image]
version = "0.25"

[dependencies.imageproc]
version = "0.25"

[dependencies.ndarray]
version = "0.16"

[dependencies.ort]
version = "2.0.0-rc.12"
features = ["ndarray"]

[dependencies.rayon]
version = "1.10"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.ureq]
version = "3"
features = [
    "gzip",
    "win-system-proxy",
]

[target.'cfg(target_os = "linux")'.dependencies.oar-ocr]
version = "0.6"

[target.'cfg(target_os = "macos")'.dependencies.oar-ocr]
version = "0.6"
features = ["coreml"]

[target.'cfg(target_os = "windows")'.dependencies.oar-ocr]
version = "0.6"
features = ["directml"]
