[package]
name        = "nokhwa-core"
version     = "0.1.9"
authors     = [ "l1npengtul <l1npengtul@protonmail.com>" ]
edition     = "2021"
description = "Core type definitions for nokhwa"
keywords    = [ "camera", "webcam", "capture", "cross-platform" ]
license     = "Apache-2.0"
repository  = "https://github.com/l1npengtul/nokhwa"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[features]
default            = [  ]
serialize          = [ "serde" ]
wgpu-types         = [ "wgpu" ]
mjpeg              = [ "mozjpeg" ]
opencv-mat         = [ "opencv", "opencv/clang-runtime", "bytemuck" ]
docs-features      = [ "serialize", "wgpu-types", "mjpeg" ]
test-fail-warnings = [  ]


[dependencies]
thiserror = "2.0"
bytes     = "1.3"

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

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

[dependencies.wgpu]
version  = "27"
optional = true

[dependencies.opencv]
version  = "0.97"
optional = true

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

[dependencies.mozjpeg]
version  = "0.10"
optional = true

[package.metadata.docs.rs]
features = [ "docs-features" ]
