# 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 = "blazediff"
version = "4.0.0"
authors = ["Teimur Gasanov"]
build = "build.rs"
include = [
    "src/**/*",
    "build.rs",
    "vendor/**/*",
    "!vendor/**/bin/**",
    "Cargo.toml",
    "README.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "High-performance image diffing with block-based optimization and SIMD"
readme = "README.md"
keywords = [
    "image",
    "diff",
    "simd",
    "visual-regression",
    "screenshot",
]
categories = [
    "multimedia::images",
    "command-line-utilities",
]
license = "MIT"
repository = "https://github.com/teimurjan/blazediff"

[features]
default = []
napi = [
    "dep:napi",
    "dep:napi-derive",
]

[lib]
name = "blazediff"
crate-type = [
    "lib",
    "cdylib",
]
path = "src/lib.rs"

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

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

[dependencies.libc]
version = "0.2"

[dependencies.memmap2]
version = "0.9"

[dependencies.napi]
version = "2"
features = [
    "napi4",
    "serde-json",
]
optional = true

[dependencies.napi-derive]
version = "2"
optional = true

[dependencies.qoi]
version = "0.4"

[dependencies.rayon]
version = "1.10"

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

[dependencies.serde_json]
version = "1"

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

[build-dependencies.cc]
version = "1.2"

[build-dependencies.cmake]
version = "0.1.57"

[build-dependencies.napi-build]
version = "2"

[build-dependencies.pkg-config]
version = "0.3"

[profile.bench]
debug = 2
inherits = "release"

[profile.dev]
opt-level = 1
debug = 2

[profile.dev.package."*"]
opt-level = 3

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

[profile.release-fast]
lto = "thin"
codegen-units = 4
inherits = "release"
