rustcam 0.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- rustcam-0.0.2/.github/workflows/wheels.yml +94 -0
- rustcam-0.0.2/Cargo.lock +455 -0
- rustcam-0.0.2/Cargo.toml +48 -0
- rustcam-0.0.2/LICENSE +21 -0
- rustcam-0.0.2/MANIFEST.in +9 -0
- rustcam-0.0.2/PKG-INFO +158 -0
- rustcam-0.0.2/README.md +131 -0
- rustcam-0.0.2/benches/compare_competitors.py +214 -0
- rustcam-0.0.2/docs/benchmark.png +0 -0
- rustcam-0.0.2/perf_lab/mover.py +43 -0
- rustcam-0.0.2/pyproject.toml +43 -0
- rustcam-0.0.2/python/rustcam/__init__.py +27 -0
- rustcam-0.0.2/python/rustcam/_rustcam.pyi +67 -0
- rustcam-0.0.2/python/rustcam/py.typed +0 -0
- rustcam-0.0.2/rust-toolchain.toml +5 -0
- rustcam-0.0.2/src/capture.rs +616 -0
- rustcam-0.0.2/src/convert.rs +98 -0
- rustcam-0.0.2/src/cursor.rs +70 -0
- rustcam-0.0.2/src/errors.rs +70 -0
- rustcam-0.0.2/src/lib.rs +30 -0
- rustcam-0.0.2/src/region.rs +76 -0
- rustcam-0.0.2/tests/api_smoke_test.py +54 -0
- rustcam-0.0.2/tests/conftest.py +39 -0
- rustcam-0.0.2/tests/ctx_test.py +25 -0
- rustcam-0.0.2/tests/grab_test.py +49 -0
- rustcam-0.0.2/tests/not_implemented_test.py +36 -0
- rustcam-0.0.2/tests/region_test.py +41 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
name: Build wheels
|
|
2
|
+
|
|
3
|
+
# The maintainer's local updater.py builds the sdist + Windows wheel via
|
|
4
|
+
# `maturin build --release` and uploads them via twine BEFORE pushing the tag
|
|
5
|
+
# that fires this workflow. This workflow exists as a clean-room
|
|
6
|
+
# reproducibility check + a fallback. `skip-existing: true` makes the
|
|
7
|
+
# upload idempotent against the local upload.
|
|
8
|
+
|
|
9
|
+
on:
|
|
10
|
+
push:
|
|
11
|
+
tags: ["v*"]
|
|
12
|
+
workflow_dispatch:
|
|
13
|
+
|
|
14
|
+
permissions:
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
windows-wheel:
|
|
19
|
+
name: Build Windows abi3 wheel
|
|
20
|
+
runs-on: windows-latest
|
|
21
|
+
steps:
|
|
22
|
+
- uses: actions/checkout@v4
|
|
23
|
+
|
|
24
|
+
- name: Set up Python (host interp + wheel-tag check)
|
|
25
|
+
uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: "3.12"
|
|
28
|
+
architecture: x64
|
|
29
|
+
|
|
30
|
+
- name: Build abi3 wheel
|
|
31
|
+
uses: PyO3/maturin-action@v1
|
|
32
|
+
with:
|
|
33
|
+
maturin-version: "1.14.0"
|
|
34
|
+
target: x64
|
|
35
|
+
args: --release --out dist --strip
|
|
36
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
|
|
37
|
+
rust-toolchain: stable
|
|
38
|
+
|
|
39
|
+
- name: Smoke-import the built wheel
|
|
40
|
+
shell: pwsh
|
|
41
|
+
run: |
|
|
42
|
+
python -m pip install --upgrade pip
|
|
43
|
+
$whl = Get-ChildItem dist\*.whl | Select-Object -First 1
|
|
44
|
+
python -m pip install $whl.FullName
|
|
45
|
+
python -c "import rustcam; print('rustcam', rustcam.__version__); print(rustcam.device_info())"
|
|
46
|
+
|
|
47
|
+
- uses: actions/upload-artifact@v4
|
|
48
|
+
with:
|
|
49
|
+
name: wheels-windows-x64
|
|
50
|
+
path: dist/*.whl
|
|
51
|
+
|
|
52
|
+
sdist:
|
|
53
|
+
name: Build sdist
|
|
54
|
+
runs-on: ubuntu-latest
|
|
55
|
+
steps:
|
|
56
|
+
- uses: actions/checkout@v4
|
|
57
|
+
|
|
58
|
+
- uses: actions/setup-python@v5
|
|
59
|
+
with:
|
|
60
|
+
python-version: "3.12"
|
|
61
|
+
|
|
62
|
+
- name: Build sdist
|
|
63
|
+
uses: PyO3/maturin-action@v1
|
|
64
|
+
with:
|
|
65
|
+
maturin-version: "1.14.0"
|
|
66
|
+
command: sdist
|
|
67
|
+
args: --out dist
|
|
68
|
+
|
|
69
|
+
- uses: actions/upload-artifact@v4
|
|
70
|
+
with:
|
|
71
|
+
name: wheels-sdist
|
|
72
|
+
path: dist/*.tar.gz
|
|
73
|
+
|
|
74
|
+
publish:
|
|
75
|
+
name: Publish to PyPI
|
|
76
|
+
needs: [windows-wheel, sdist]
|
|
77
|
+
runs-on: ubuntu-latest
|
|
78
|
+
if: startsWith(github.ref, 'refs/tags/v')
|
|
79
|
+
permissions:
|
|
80
|
+
contents: read
|
|
81
|
+
steps:
|
|
82
|
+
- uses: actions/download-artifact@v4
|
|
83
|
+
with:
|
|
84
|
+
path: dist
|
|
85
|
+
merge-multiple: true
|
|
86
|
+
|
|
87
|
+
- name: List artifacts being published
|
|
88
|
+
run: ls -lah dist
|
|
89
|
+
|
|
90
|
+
- uses: pypa/gh-action-pypi-publish@release/v1
|
|
91
|
+
with:
|
|
92
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
93
|
+
skip-existing: true
|
|
94
|
+
verbose: true
|
rustcam-0.0.2/Cargo.lock
ADDED
|
@@ -0,0 +1,455 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "bitflags"
|
|
13
|
+
version = "2.13.0"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "cc"
|
|
19
|
+
version = "1.2.63"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "556e016178bb5662a08681bbe0f00f8e17631781a4dfc8c45e466e4b185ec27f"
|
|
22
|
+
dependencies = [
|
|
23
|
+
"find-msvc-tools",
|
|
24
|
+
"shlex",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[[package]]
|
|
28
|
+
name = "cfg-if"
|
|
29
|
+
version = "1.0.4"
|
|
30
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
31
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
32
|
+
|
|
33
|
+
[[package]]
|
|
34
|
+
name = "crossbeam-channel"
|
|
35
|
+
version = "0.5.15"
|
|
36
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
37
|
+
checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2"
|
|
38
|
+
dependencies = [
|
|
39
|
+
"crossbeam-utils",
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[[package]]
|
|
43
|
+
name = "crossbeam-utils"
|
|
44
|
+
version = "0.8.21"
|
|
45
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
46
|
+
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
47
|
+
|
|
48
|
+
[[package]]
|
|
49
|
+
name = "find-msvc-tools"
|
|
50
|
+
version = "0.1.9"
|
|
51
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
+
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
|
53
|
+
|
|
54
|
+
[[package]]
|
|
55
|
+
name = "heck"
|
|
56
|
+
version = "0.5.0"
|
|
57
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
58
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
59
|
+
|
|
60
|
+
[[package]]
|
|
61
|
+
name = "libc"
|
|
62
|
+
version = "0.2.186"
|
|
63
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
64
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
65
|
+
|
|
66
|
+
[[package]]
|
|
67
|
+
name = "lock_api"
|
|
68
|
+
version = "0.4.14"
|
|
69
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
70
|
+
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
|
71
|
+
dependencies = [
|
|
72
|
+
"scopeguard",
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
[[package]]
|
|
76
|
+
name = "matrixmultiply"
|
|
77
|
+
version = "0.3.10"
|
|
78
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
79
|
+
checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
|
|
80
|
+
dependencies = [
|
|
81
|
+
"autocfg",
|
|
82
|
+
"rawpointer",
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
[[package]]
|
|
86
|
+
name = "ndarray"
|
|
87
|
+
version = "0.17.2"
|
|
88
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
89
|
+
checksum = "520080814a7a6b4a6e9070823bb24b4531daac8c4627e08ba5de8c5ef2f2752d"
|
|
90
|
+
dependencies = [
|
|
91
|
+
"matrixmultiply",
|
|
92
|
+
"num-complex",
|
|
93
|
+
"num-integer",
|
|
94
|
+
"num-traits",
|
|
95
|
+
"portable-atomic",
|
|
96
|
+
"portable-atomic-util",
|
|
97
|
+
"rawpointer",
|
|
98
|
+
]
|
|
99
|
+
|
|
100
|
+
[[package]]
|
|
101
|
+
name = "num-complex"
|
|
102
|
+
version = "0.4.6"
|
|
103
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
+
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
|
|
105
|
+
dependencies = [
|
|
106
|
+
"num-traits",
|
|
107
|
+
]
|
|
108
|
+
|
|
109
|
+
[[package]]
|
|
110
|
+
name = "num-integer"
|
|
111
|
+
version = "0.1.46"
|
|
112
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
113
|
+
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
|
114
|
+
dependencies = [
|
|
115
|
+
"num-traits",
|
|
116
|
+
]
|
|
117
|
+
|
|
118
|
+
[[package]]
|
|
119
|
+
name = "num-traits"
|
|
120
|
+
version = "0.2.19"
|
|
121
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
122
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
123
|
+
dependencies = [
|
|
124
|
+
"autocfg",
|
|
125
|
+
]
|
|
126
|
+
|
|
127
|
+
[[package]]
|
|
128
|
+
name = "numpy"
|
|
129
|
+
version = "0.28.0"
|
|
130
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
131
|
+
checksum = "778da78c64ddc928ebf5ad9df5edf0789410ff3bdbf3619aed51cd789a6af1e2"
|
|
132
|
+
dependencies = [
|
|
133
|
+
"libc",
|
|
134
|
+
"ndarray",
|
|
135
|
+
"num-complex",
|
|
136
|
+
"num-integer",
|
|
137
|
+
"num-traits",
|
|
138
|
+
"pyo3",
|
|
139
|
+
"pyo3-build-config",
|
|
140
|
+
"rustc-hash",
|
|
141
|
+
]
|
|
142
|
+
|
|
143
|
+
[[package]]
|
|
144
|
+
name = "once_cell"
|
|
145
|
+
version = "1.21.4"
|
|
146
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
147
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
148
|
+
|
|
149
|
+
[[package]]
|
|
150
|
+
name = "parking_lot"
|
|
151
|
+
version = "0.12.5"
|
|
152
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
153
|
+
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
|
|
154
|
+
dependencies = [
|
|
155
|
+
"lock_api",
|
|
156
|
+
"parking_lot_core",
|
|
157
|
+
]
|
|
158
|
+
|
|
159
|
+
[[package]]
|
|
160
|
+
name = "parking_lot_core"
|
|
161
|
+
version = "0.9.12"
|
|
162
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
163
|
+
checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
|
|
164
|
+
dependencies = [
|
|
165
|
+
"cfg-if",
|
|
166
|
+
"libc",
|
|
167
|
+
"redox_syscall",
|
|
168
|
+
"smallvec",
|
|
169
|
+
"windows-link",
|
|
170
|
+
]
|
|
171
|
+
|
|
172
|
+
[[package]]
|
|
173
|
+
name = "portable-atomic"
|
|
174
|
+
version = "1.13.1"
|
|
175
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
176
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
177
|
+
|
|
178
|
+
[[package]]
|
|
179
|
+
name = "portable-atomic-util"
|
|
180
|
+
version = "0.2.7"
|
|
181
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
182
|
+
checksum = "c2a106d1259c23fac8e543272398ae0e3c0b8d33c88ed73d0cc71b0f1d902618"
|
|
183
|
+
dependencies = [
|
|
184
|
+
"portable-atomic",
|
|
185
|
+
]
|
|
186
|
+
|
|
187
|
+
[[package]]
|
|
188
|
+
name = "proc-macro2"
|
|
189
|
+
version = "1.0.106"
|
|
190
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
191
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
192
|
+
dependencies = [
|
|
193
|
+
"unicode-ident",
|
|
194
|
+
]
|
|
195
|
+
|
|
196
|
+
[[package]]
|
|
197
|
+
name = "pyo3"
|
|
198
|
+
version = "0.28.3"
|
|
199
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
200
|
+
checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12"
|
|
201
|
+
dependencies = [
|
|
202
|
+
"libc",
|
|
203
|
+
"once_cell",
|
|
204
|
+
"portable-atomic",
|
|
205
|
+
"pyo3-build-config",
|
|
206
|
+
"pyo3-ffi",
|
|
207
|
+
"pyo3-macros",
|
|
208
|
+
]
|
|
209
|
+
|
|
210
|
+
[[package]]
|
|
211
|
+
name = "pyo3-build-config"
|
|
212
|
+
version = "0.28.3"
|
|
213
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e"
|
|
215
|
+
dependencies = [
|
|
216
|
+
"python3-dll-a",
|
|
217
|
+
"target-lexicon",
|
|
218
|
+
]
|
|
219
|
+
|
|
220
|
+
[[package]]
|
|
221
|
+
name = "pyo3-ffi"
|
|
222
|
+
version = "0.28.3"
|
|
223
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
224
|
+
checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e"
|
|
225
|
+
dependencies = [
|
|
226
|
+
"libc",
|
|
227
|
+
"pyo3-build-config",
|
|
228
|
+
]
|
|
229
|
+
|
|
230
|
+
[[package]]
|
|
231
|
+
name = "pyo3-macros"
|
|
232
|
+
version = "0.28.3"
|
|
233
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
234
|
+
checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813"
|
|
235
|
+
dependencies = [
|
|
236
|
+
"proc-macro2",
|
|
237
|
+
"pyo3-macros-backend",
|
|
238
|
+
"quote",
|
|
239
|
+
"syn",
|
|
240
|
+
]
|
|
241
|
+
|
|
242
|
+
[[package]]
|
|
243
|
+
name = "pyo3-macros-backend"
|
|
244
|
+
version = "0.28.3"
|
|
245
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
246
|
+
checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb"
|
|
247
|
+
dependencies = [
|
|
248
|
+
"heck",
|
|
249
|
+
"proc-macro2",
|
|
250
|
+
"pyo3-build-config",
|
|
251
|
+
"quote",
|
|
252
|
+
"syn",
|
|
253
|
+
]
|
|
254
|
+
|
|
255
|
+
[[package]]
|
|
256
|
+
name = "python3-dll-a"
|
|
257
|
+
version = "0.2.15"
|
|
258
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
259
|
+
checksum = "d80ba7540edb18890d444c5aa8e1f1f99b1bdf26fb26ae383135325f4a36042b"
|
|
260
|
+
dependencies = [
|
|
261
|
+
"cc",
|
|
262
|
+
]
|
|
263
|
+
|
|
264
|
+
[[package]]
|
|
265
|
+
name = "quote"
|
|
266
|
+
version = "1.0.45"
|
|
267
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
269
|
+
dependencies = [
|
|
270
|
+
"proc-macro2",
|
|
271
|
+
]
|
|
272
|
+
|
|
273
|
+
[[package]]
|
|
274
|
+
name = "rawpointer"
|
|
275
|
+
version = "0.2.1"
|
|
276
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
277
|
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
|
278
|
+
|
|
279
|
+
[[package]]
|
|
280
|
+
name = "redox_syscall"
|
|
281
|
+
version = "0.5.18"
|
|
282
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
283
|
+
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
|
|
284
|
+
dependencies = [
|
|
285
|
+
"bitflags",
|
|
286
|
+
]
|
|
287
|
+
|
|
288
|
+
[[package]]
|
|
289
|
+
name = "rustc-hash"
|
|
290
|
+
version = "2.1.2"
|
|
291
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
292
|
+
checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "rustcam"
|
|
296
|
+
version = "0.0.2"
|
|
297
|
+
dependencies = [
|
|
298
|
+
"crossbeam-channel",
|
|
299
|
+
"numpy",
|
|
300
|
+
"once_cell",
|
|
301
|
+
"parking_lot",
|
|
302
|
+
"pyo3",
|
|
303
|
+
"windows",
|
|
304
|
+
]
|
|
305
|
+
|
|
306
|
+
[[package]]
|
|
307
|
+
name = "scopeguard"
|
|
308
|
+
version = "1.2.0"
|
|
309
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
310
|
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
311
|
+
|
|
312
|
+
[[package]]
|
|
313
|
+
name = "shlex"
|
|
314
|
+
version = "2.0.1"
|
|
315
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
316
|
+
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
|
|
317
|
+
|
|
318
|
+
[[package]]
|
|
319
|
+
name = "smallvec"
|
|
320
|
+
version = "1.15.2"
|
|
321
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
322
|
+
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
|
|
323
|
+
|
|
324
|
+
[[package]]
|
|
325
|
+
name = "syn"
|
|
326
|
+
version = "2.0.117"
|
|
327
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
328
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
329
|
+
dependencies = [
|
|
330
|
+
"proc-macro2",
|
|
331
|
+
"quote",
|
|
332
|
+
"unicode-ident",
|
|
333
|
+
]
|
|
334
|
+
|
|
335
|
+
[[package]]
|
|
336
|
+
name = "target-lexicon"
|
|
337
|
+
version = "0.13.5"
|
|
338
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
339
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
340
|
+
|
|
341
|
+
[[package]]
|
|
342
|
+
name = "unicode-ident"
|
|
343
|
+
version = "1.0.24"
|
|
344
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
345
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
346
|
+
|
|
347
|
+
[[package]]
|
|
348
|
+
name = "windows"
|
|
349
|
+
version = "0.62.2"
|
|
350
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
351
|
+
checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"
|
|
352
|
+
dependencies = [
|
|
353
|
+
"windows-collections",
|
|
354
|
+
"windows-core",
|
|
355
|
+
"windows-future",
|
|
356
|
+
"windows-numerics",
|
|
357
|
+
]
|
|
358
|
+
|
|
359
|
+
[[package]]
|
|
360
|
+
name = "windows-collections"
|
|
361
|
+
version = "0.3.2"
|
|
362
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
363
|
+
checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610"
|
|
364
|
+
dependencies = [
|
|
365
|
+
"windows-core",
|
|
366
|
+
]
|
|
367
|
+
|
|
368
|
+
[[package]]
|
|
369
|
+
name = "windows-core"
|
|
370
|
+
version = "0.62.2"
|
|
371
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
372
|
+
checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
|
|
373
|
+
dependencies = [
|
|
374
|
+
"windows-implement",
|
|
375
|
+
"windows-interface",
|
|
376
|
+
"windows-link",
|
|
377
|
+
"windows-result",
|
|
378
|
+
"windows-strings",
|
|
379
|
+
]
|
|
380
|
+
|
|
381
|
+
[[package]]
|
|
382
|
+
name = "windows-future"
|
|
383
|
+
version = "0.3.2"
|
|
384
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
385
|
+
checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"
|
|
386
|
+
dependencies = [
|
|
387
|
+
"windows-core",
|
|
388
|
+
"windows-link",
|
|
389
|
+
"windows-threading",
|
|
390
|
+
]
|
|
391
|
+
|
|
392
|
+
[[package]]
|
|
393
|
+
name = "windows-implement"
|
|
394
|
+
version = "0.60.2"
|
|
395
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
396
|
+
checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
|
|
397
|
+
dependencies = [
|
|
398
|
+
"proc-macro2",
|
|
399
|
+
"quote",
|
|
400
|
+
"syn",
|
|
401
|
+
]
|
|
402
|
+
|
|
403
|
+
[[package]]
|
|
404
|
+
name = "windows-interface"
|
|
405
|
+
version = "0.59.3"
|
|
406
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
407
|
+
checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
|
|
408
|
+
dependencies = [
|
|
409
|
+
"proc-macro2",
|
|
410
|
+
"quote",
|
|
411
|
+
"syn",
|
|
412
|
+
]
|
|
413
|
+
|
|
414
|
+
[[package]]
|
|
415
|
+
name = "windows-link"
|
|
416
|
+
version = "0.2.1"
|
|
417
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
418
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
419
|
+
|
|
420
|
+
[[package]]
|
|
421
|
+
name = "windows-numerics"
|
|
422
|
+
version = "0.3.1"
|
|
423
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
424
|
+
checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"
|
|
425
|
+
dependencies = [
|
|
426
|
+
"windows-core",
|
|
427
|
+
"windows-link",
|
|
428
|
+
]
|
|
429
|
+
|
|
430
|
+
[[package]]
|
|
431
|
+
name = "windows-result"
|
|
432
|
+
version = "0.4.1"
|
|
433
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
434
|
+
checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
|
|
435
|
+
dependencies = [
|
|
436
|
+
"windows-link",
|
|
437
|
+
]
|
|
438
|
+
|
|
439
|
+
[[package]]
|
|
440
|
+
name = "windows-strings"
|
|
441
|
+
version = "0.5.1"
|
|
442
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
443
|
+
checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
|
|
444
|
+
dependencies = [
|
|
445
|
+
"windows-link",
|
|
446
|
+
]
|
|
447
|
+
|
|
448
|
+
[[package]]
|
|
449
|
+
name = "windows-threading"
|
|
450
|
+
version = "0.2.1"
|
|
451
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
452
|
+
checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37"
|
|
453
|
+
dependencies = [
|
|
454
|
+
"windows-link",
|
|
455
|
+
]
|
rustcam-0.0.2/Cargo.toml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "rustcam"
|
|
3
|
+
version = "0.0.2"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
rust-version = "1.83"
|
|
6
|
+
description = "Rust-backed Windows DXGI Desktop Duplication API screen capture for Python."
|
|
7
|
+
license = "MIT"
|
|
8
|
+
authors = ["zen-ham <again.really.plz@gmail.com>"]
|
|
9
|
+
repository = "https://github.com/zen-ham/rustcam"
|
|
10
|
+
readme = "README.md"
|
|
11
|
+
|
|
12
|
+
[lib]
|
|
13
|
+
name = "rustcam"
|
|
14
|
+
crate-type = ["cdylib", "rlib"]
|
|
15
|
+
|
|
16
|
+
[dependencies]
|
|
17
|
+
pyo3 = { version = "0.28", features = ["abi3-py39", "extension-module", "generate-import-lib"] }
|
|
18
|
+
numpy = "0.28"
|
|
19
|
+
parking_lot = "0.12"
|
|
20
|
+
crossbeam-channel = "0.5"
|
|
21
|
+
once_cell = "1"
|
|
22
|
+
|
|
23
|
+
[dependencies.windows]
|
|
24
|
+
version = "0.62"
|
|
25
|
+
features = [
|
|
26
|
+
"Win32_Foundation",
|
|
27
|
+
"Win32_System_Com",
|
|
28
|
+
"Win32_System_Threading",
|
|
29
|
+
"Win32_System_LibraryLoader",
|
|
30
|
+
"Win32_Graphics_Direct3D",
|
|
31
|
+
"Win32_Graphics_Direct3D11",
|
|
32
|
+
"Win32_Graphics_Dxgi",
|
|
33
|
+
"Win32_Graphics_Dxgi_Common",
|
|
34
|
+
"Win32_Graphics_Gdi",
|
|
35
|
+
"Win32_UI_HiDpi",
|
|
36
|
+
"Win32_UI_WindowsAndMessaging",
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
[profile.release]
|
|
40
|
+
opt-level = 3
|
|
41
|
+
lto = "fat"
|
|
42
|
+
codegen-units = 1
|
|
43
|
+
strip = "symbols"
|
|
44
|
+
panic = "abort"
|
|
45
|
+
|
|
46
|
+
[profile.dev]
|
|
47
|
+
opt-level = 1
|
|
48
|
+
debug = "line-tables-only"
|
rustcam-0.0.2/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 zen-ham
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|