# 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 = "purecv"
version = "0.6.1"
authors = ["Walter Perdan <https://github.com/kalwalt>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure Rust, high-performance computer vision library focused on safety and portability."
readme = "README.md"
keywords = [
    "computer-vision",
    "image-processing",
    "opencv",
    "wasm",
    "simd",
]
categories = [
    "computer-vision",
    "science",
    "wasm",
]
license = "LGPL-2.1-or-later"
repository = "https://github.com/webarkit/purecv"

[features]
default = [
    "std",
    "parallel",
]
fft = [
    "dep:rustfft",
    "dep:num-complex",
]
ndarray = ["dep:ndarray"]
parallel = ["rayon"]
simd = ["dep:pulp"]
std = []
transforms = ["fft"]

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

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

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

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

[[example]]
name = "dft_example"
path = "examples/dft_example.rs"
required-features = ["fft"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "dft_bench"
path = "benches/dft_bench.rs"
harness = false
required-features = ["fft"]

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

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

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

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

[dependencies.log]
version = "0.4"

[dependencies.ndarray]
version = "0.17"
optional = true

[dependencies.num-complex]
version = "0.4"
optional = true

[dependencies.num-traits]
version = "0.2"

[dependencies.pulp]
version = "0.22"
optional = true

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

[dependencies.rustfft]
version = "6"
optional = true

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

[dev-dependencies.image]
version = "0.25"

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