Cargo Features

[dependencies]
uiua-nokhwa = { version = "0.10.5", default-features = false, features = ["decoding", "input-avfoundation", "input-msmf", "input-v4l", "serialize", "input-native", "input-v4l-no-arena-buffer", "input-jscam", "input-opencv", "output-wgpu", "docs-features", "docs-nolink", "output-threaded", "test-fail-warning", "docs-only", "regex", "usb_enumeration", "v4l", "flume"] }
default = decoding, flume

These default features are set whenever uiua-nokhwa is added without default-features = false somewhere in the dependency tree.

decoding default

Enables mjpeg of uiua-nokhwa-core

input-avfoundation input-native? = uiua-nokhwa-bindings-macos
input-msmf input-native? = uiua-nokhwa-bindings-windows
input-v4l input-native? = uiua-nokhwa-bindings-linux
serialize docs-only? = serde

Enables serialize of uiua-nokhwa-core

input-native docs-only? = input-avfoundation, input-msmf, input-v4l

Disable arena buffer on v4l
This should fix crash on Raspberry Pi that have faulty v4l driver.
WARNING: This create a performance regression, half of the frames will be dropped You shouldn't enable this unless you have to.

input-v4l-no-arena-buffer

Enables no-arena-buffer of uiua-nokhwa-bindings-linux

uiua-nokhwa-bindings-linux:

Disable arena buffer of v4l2 for the crate to work on raspberry pi with faulty v4l2 driver https://github.com/l1npengtul/nokhwa/pull/121

input-jscam docs-only? = js-sys, wasm-bindgen, wasm-bindgen-futures, wasm-rs-async-executor, web-sys

Affects js_camera::JSCamera, uiua-nokhwa::js_camera

input-opencv docs-only? = opencv, rgb

Enables rgb and videoio of opencv ^0.81, opencv-mat of uiua-nokhwa-core

output-wgpu docs-only? = wgpu

Enables wgpu-types of uiua-nokhwa-core

docs-features

Enables docs-features of uiua-nokhwa-core

output-threaded docs-only? = parking_lot

Affects uiua-nokhwa::threaded

small-wasm test-fail-warning
docs-only = input-jscam, input-native, input-opencv, output-threaded, output-wgpu, serialize

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.

regex implicit feature
usb_enumeration implicit feature

Enables usb_enumeration

usb_enumeration:

A cross platform library that returns details of currently connected USB devices

v4l implicit feature

Enables v4l ^0.13

v4l:

Safe video4linux (v4l) bindings

flume default

Enables flume ^0.10

js-sys input-jscam?
opencv input-opencv?

Enables opencv ^0.81

parking_lot output-threaded?
rgb input-opencv?
serde serialize?
uiua-nokhwa-bindings-macos input-avfoundation?
uiua-nokhwa-bindings-windows input-msmf?
wasm-bindgen input-jscam?
wasm-bindgen-futures input-jscam?
wasm-rs-async-executor input-jscam?
web-sys input-jscam?
wgpu output-wgpu?

Enables wgpu ^0.16

uiua-nokhwa-bindings-linux input-v4l? input-v4l-no-arena-buffer?