Cargo Features

nokhwa-core has no features set by default.

[dependencies]
nokhwa-core = { version = "0.1.2", features = ["serialize", "wgpu-types", "mjpeg", "opencv-mat", "docs-features", "test-fail-warnings"] }
serialize docs-features? = serde
wgpu-types docs-features? = wgpu

Affects traits::CaptureBackendTrait.frame_texture

mjpeg docs-features? = mozjpeg

Affects types::mjpeg_to_rgb, types::buf_mjpeg_to_rgb

opencv-mat = opencv
docs-features = mjpeg, serialize, wgpu-types
test-fail-warnings

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

mozjpeg mjpeg?

Enables mozjpeg ^0.9

opencv opencv-mat?

Enables opencv ^0.81

serde serialize?
wgpu wgpu-types?

Enables wgpu ^0.16