# 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 = "nokhwa" version = "0.10.5" authors = ["l1npengtul "] description = "A Simple-to-use, cross-platform Rust Webcam Capture Library" readme = "README.md" keywords = [ "camera", "webcam", "capture", "cross-platform", ] categories = [ "api-bindings", "multimedia", "os", "web-programming", ] license = "Apache-2.0" repository = "https://github.com/l1npengtul/nokhwa" [package.metadata.docs.rs] features = [ "docs-only", "docs-nolink", "docs-features", ] [lib] crate-type = [ "cdylib", "rlib", ] [dependencies.flume] version = "0.11" optional = true [dependencies.image] version = "0.25" default-features = false [dependencies.js-sys] version = "0.3" optional = true [dependencies.nokhwa-bindings-linux] version = "0.1" optional = true [dependencies.nokhwa-bindings-macos] version = "0.2" optional = true [dependencies.nokhwa-bindings-windows] version = "0.4" optional = true [dependencies.nokhwa-core] version = "0.1" [dependencies.opencv] version = "0.93" optional = true default-features = false [dependencies.parking_lot] version = "0.12" optional = true [dependencies.paste] version = "1.0" [dependencies.regex] version = "1.7" optional = true [dependencies.rgb] version = "0.8" optional = true [dependencies.serde] version = "1.0" optional = true [dependencies.thiserror] version = "1.0" [dependencies.usb_enumeration] version = "0.2" optional = true [dependencies.wasm-bindgen] version = "0.2" optional = true [dependencies.wasm-bindgen-futures] version = "0.4" optional = true [dependencies.wasm-rs-async-executor] version = "0.9" optional = true [dependencies.web-sys] version = "0.3" features = [ "console", "CanvasRenderingContext2d", "CssStyleDeclaration", "Document", "Element", "HtmlElement", "HtmlVideoElement", "HtmlCanvasElement", "ImageData", "MediaDevices", "MediaDeviceInfo", "MediaDeviceKind", "MediaStreamConstraints", "MediaTrackSupportedConstraints", "MediaStream", "MediaStreamTrack", "MediaTrackSettings", "MediaTrackConstraints", "MediaStreamTrackState", "MimeType", "MimeTypeArray", "Navigator", "Node", "Permissions", "PermissionDescriptor", "PermissionState", "PermissionStatus", "Plugin", "PluginArray", "Window", ] optional = true [dependencies.wgpu] version = "22" optional = true [features] camera-sync-impl = [] decoding = ["nokhwa-core/mjpeg"] default = [ "flume", "decoding", ] docs-features = [] docs-nolink = ["nokhwa-core/docs-features"] docs-only = [ "input-native", "input-opencv", "input-jscam", "output-wgpu", "output-threaded", "serialize", ] input-avfoundation = ["nokhwa-bindings-macos"] input-jscam = [ "web-sys", "js-sys", "wasm-bindgen-futures", "wasm-bindgen", "wasm-rs-async-executor", ] input-msmf = ["nokhwa-bindings-windows"] input-native = [ "input-avfoundation", "input-v4l", "input-msmf", ] input-opencv = [ "opencv", "opencv/videoio", "opencv/rgb", "rgb", "nokhwa-core/opencv-mat", ] input-v4l = ["nokhwa-bindings-linux"] input-v4l-no-arena-buffer = ["nokhwa-bindings-linux/no-arena-buffer"] output-threaded = [ "parking_lot", "camera-sync-impl", ] output-wgpu = [ "wgpu", "nokhwa-core/wgpu-types", ] serialize = [ "serde", "nokhwa-core/serialize", ] small-wasm = [] test-fail-warning = []