Cargo Features
[dependencies]
nokhwa = { version = "0.10.10", default-features = false, features = ["serialize", "decoding", "input-avfoundation", "input-msmf", "input-v4l", "input-v4l-no-arena-buffer", "input-native", "input-opencv", "output-wgpu", "output-threaded", "camera-sync-impl", "docs-nolink", "docs-features", "docs-only", "js-sys", "regex", "rgb", "usb_enumeration", "wasm-bindgen", "wasm-bindgen-futures", "wasm-rs-async-executor", "web-sys"] }
- default = decoding
-
The
decodingfeature is set by default whenevernokhwais added withoutsomewhere in the dependency tree.default-features = false - serialize docs-only? = serde
-
Enables serialize of nokhwa-core
- decoding default
-
Enables mjpeg of nokhwa-core
- input-avfoundation input-native? = nokhwa-bindings-macos
- input-msmf input-native? = nokhwa-bindings-windows
- input-v4l input-native? = nokhwa-bindings-linux
- input-v4l-no-arena-buffer
-
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.Enables no-arena-buffer of nokhwa-bindings-linux
- input-native docs-only? = input-avfoundation, input-msmf, input-v4l
- input-opencv docs-only? = opencv
-
Enables opencv-mat of nokhwa-core, clang-runtime, rgb and videoio of opencv ^0.97
- output-wgpu docs-only? = wgpu
-
input-jscam = [
"web-sys",
"js-sys",
"wasm-bindgen-futures",
"wasm-bindgen",
"wasm-rs-async-executor",
]Enables wgpu-types of nokhwa-core
- output-threaded docs-only? = camera-sync-impl, parking_lot
-
Affects
nokhwa::threaded… - camera-sync-impl output-threaded?
- docs-nolink
-
Enables docs-features of nokhwa-core
- docs-features
- docs-only = 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.
- js-sys implicit feature
- regex implicit feature
- rgb implicit feature
- usb_enumeration implicit feature
-
Enables usb_enumeration
usb_enumeration:
A cross platform library that returns details of currently connected USB devices
- wasm-bindgen implicit feature
-
Enables wasm-bindgen
wasm-bindgen:
Easy support for interacting between JS and Rust
- wasm-bindgen-futures implicit feature
-
Enables wasm-bindgen-futures
wasm-bindgen-futures:
Bridging the gap between Rust Futures and JavaScript Promises
- wasm-rs-async-executor implicit feature
-
Enables wasm-rs-async-executor
wasm-rs-async-executor:
Async executor for WebAssembly
- web-sys implicit feature
-
Enables web-sys
web-sys:
Bindings for all Web APIs, a procedurally generated crate from WebIDL
- nokhwa-bindings-macos input-avfoundation?
- nokhwa-bindings-windows input-msmf?
- opencv input-opencv?
-
Enables opencv ^0.97
- parking_lot output-threaded?
- serde serialize?
- wgpu output-wgpu?
-
Enables wgpu ^27
- nokhwa-bindings-linux input-v4l? input-v4l-no-arena-buffer?