forked from l1npengtul/nokhwa
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCargo.toml
164 lines (139 loc) · 3.99 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[package]
authors = ["l1npengtul <[email protected]>"]
categories = ["api-bindings", "multimedia", "os", "web-programming"]
description = "A Simple-to-use, cross-platform Rust Webcam Capture Library"
edition = "2021"
keywords = ["camera", "webcam", "capture", "cross-platform"]
license = "Apache-2.0"
name = "uiua-nokhwa"
repository = "https://github.com/l1npengtul/nokhwa"
version = "0.10.5"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
exclude = ["examples/jscam"]
members = ["uiua-nokhwa-bindings-macos", "uiua-nokhwa-bindings-windows", "uiua-nokhwa-bindings-linux", "uiua-nokhwa-core"]
[lib]
crate-type = ["cdylib", "rlib"]
[features]
decoding = ["uiua-nokhwa-core/mjpeg"]
default = ["flume", "decoding"]
input-avfoundation = ["uiua-nokhwa-bindings-macos"]
input-msmf = ["uiua-nokhwa-bindings-windows"]
input-v4l = ["uiua-nokhwa-bindings-linux"]
serialize = ["serde", "uiua-nokhwa-core/serialize"]
# 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-native = ["input-avfoundation", "input-v4l", "input-msmf"]
input-v4l-no-arena-buffer = ["uiua-nokhwa-bindings-linux/no-arena-buffer"]
# Re-enable it once soundness has been proven + mozjpeg is updated to 0.9.x
# input-uvc = ["uvc", "uvc/vendor", "usb_enumeration", "lazy_static"]
input-jscam = ["web-sys", "js-sys", "wasm-bindgen-futures", "wasm-bindgen", "wasm-rs-async-executor"]
input-opencv = ["opencv", "opencv/videoio", "opencv/rgb", "rgb", "uiua-nokhwa-core/opencv-mat"]
output-wgpu = ["wgpu", "uiua-nokhwa-core/wgpu-types"]
#output-wasm = ["input-jscam"]
docs-features = []
docs-nolink = ["uiua-nokhwa-core/docs-features"]
docs-only = ["input-native", "input-opencv", "input-jscam", "output-wgpu", "output-threaded", "serialize"]
output-threaded = ["parking_lot"]
small-wasm = []
test-fail-warning = []
[dependencies]
paste = "1.0"
thiserror = "1.0"
[dependencies.uiua-nokhwa-core]
path = "uiua-nokhwa-core"
version = "0.1"
[dependencies.serde]
optional = true
version = "1.0"
[dependencies.flume]
optional = true
version = "0.10"
[dependencies.image]
default-features = false
version = "0.24"
[dependencies.v4l]
optional = true
version = "0.13"
[dependencies.usb_enumeration]
optional = true
version = "0.2"
[dependencies.wgpu]
optional = true
version = "0.16"
[dependencies.opencv]
default-features = false
optional = true
version = "0.81"
[dependencies.rgb]
optional = true
version = "0.8"
[dependencies.uiua-nokhwa-bindings-windows]
optional = true
path = "uiua-nokhwa-bindings-windows"
version = "0.4"
[dependencies.uiua-nokhwa-bindings-macos]
optional = true
path = "uiua-nokhwa-bindings-macos"
version = "0.2"
[dependencies.uiua-nokhwa-bindings-linux]
optional = true
path = "uiua-nokhwa-bindings-linux"
version = "0.1"
[dependencies.regex]
optional = true
version = "1.7"
[dependencies.parking_lot]
optional = true
version = "0.12"
[dependencies.web-sys]
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
version = "0.3"
[dependencies.js-sys]
optional = true
version = "0.3"
[dependencies.wasm-bindgen]
optional = true
version = "0.2"
[dependencies.wasm-bindgen-futures]
optional = true
version = "0.4"
[dependencies.wasm-rs-async-executor]
optional = true
version = "0.9"
[package.metadata.docs.rs]
features = ["docs-only", "docs-nolink", "docs-features"]