# 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 = "imgfprint"
version = "0.4.3"
build = false
exclude = [
    ".github/**",
    "benches/**",
    "examples/**",
    "tests/**",
    "fuzz/**",
    "*.sh",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance, deterministic image fingerprinting library"
documentation = "https://docs.rs/imgfprint"
readme = "README.md"
keywords = [
    "image",
    "fingerprint",
    "perceptual-hash",
    "semantic",
    "deduplication",
]
categories = [
    "multimedia::images",
    "algorithms",
]
license = "MIT"
repository = "https://github.com/themankindproject/imgfprint-rs"

[features]
default = [
    "serde",
    "parallel",
]
local-embedding = ["dep:tract-onnx"]
parallel = ["dep:rayon"]
serde = ["dep:serde"]
tracing = ["dep:tracing"]
watermark = [
    "dep:rand_chacha",
    "dep:rand_core",
    "dep:hmac",
    "dep:sha2",
]

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

[dependencies.blake3]
version = "1.8"

[dependencies.bytemuck]
version = "1.18"
features = ["derive"]

[dependencies.exif]
version = "0.6"
package = "kamadak-exif"

[dependencies.fast_image_resize]
version = "6.0"
features = ["image"]

[dependencies.hmac]
version = "0.12.1"
optional = true

[dependencies.image]
version = "0.25"
features = [
    "png",
    "jpeg",
    "gif",
    "webp",
    "bmp",
]
default-features = false

[dependencies.rand_chacha]
version = "0.3.1"
optional = true

[dependencies.rand_core]
version = "0.6.4"
optional = true

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

[dependencies.realfft]
version = "3.4"

[dependencies.rustfft]
version = "6.2"

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

[dependencies.sha2]
version = "0.10.8"
optional = true

[dependencies.subtle]
version = "2.6"

[dependencies.thiserror]
version = "2.0"

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

[dependencies.tract-onnx]
version = "0.22.1"
optional = true

[dev-dependencies.bincode]
version = "1.3.3"

[dev-dependencies.criterion]
version = "0.8.2"
features = ["html_reports"]

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

[dev-dependencies.proptest]
version = "1.5"

[dev-dependencies.serde_json]
version = "1.0"

[profile.dev]
opt-level = 2

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