pixhunt 0.7.0

Fast screen finding: template matching (RGB tolerance / ZNCC), color-blob search and wait/poll APIs, with pluggable capture backends (cross-platform xcap, plus Windows GDI / DXGI / PrintWindow window capture).
# 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.88"
name = "pixhunt"
version = "0.7.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast screen finding: template matching (RGB tolerance / ZNCC), color-blob search and wait/poll APIs, with pluggable capture backends (cross-platform xcap, plus Windows GDI / DXGI / PrintWindow window capture)."
readme = "README.md"
keywords = [
    "template-matching",
    "screenshot",
    "computer-vision",
    "automation",
    "image-search",
]
categories = [
    "computer-vision",
    "multimedia::images",
    "os",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/xiaoheliu1/pixhunt"
resolver = "3"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
capture-dxgi = ["dep:windows"]
capture-gdi = ["dep:windows"]
capture-window = ["dep:windows"]
default = []
match-corr = ["dep:corrmatch"]
parallel = [
    "dep:rayon",
    "corrmatch?/rayon",
]
tracing = ["dep:tracing"]

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

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

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

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

[[bench]]
name = "match"
path = "benches/match.rs"
harness = false

[dependencies.corrmatch]
version = "0.1"
features = ["simd"]
optional = true

[dependencies.image]
version = "0.25"
features = ["png"]
default-features = false

[dependencies.rayon]
version = "1"
optional = true

[dependencies.tracing]
version = "0.1"
optional = true

[dependencies.xcap]
version = "0.9.8"

[dev-dependencies.criterion]
version = "0.5"

[target."cfg(windows)".dependencies.windows]
version = "0.51"
features = [
    "Win32_Foundation",
    "Win32_Graphics_Gdi",
    "Win32_Graphics_Direct3D",
    "Win32_Graphics_Direct3D11",
    "Win32_Graphics_Dxgi",
    "Win32_Graphics_Dxgi_Common",
    "Win32_Storage_Xps",
    "Win32_UI_WindowsAndMessaging",
]
optional = true

[target."cfg(windows)".dev-dependencies.enigo]
version = "0.6"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1