termrenderer 0.0.1__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.
- termrenderer-0.0.1/Cargo.lock +512 -0
- termrenderer-0.0.1/Cargo.toml +24 -0
- termrenderer-0.0.1/LICENSE +21 -0
- termrenderer-0.0.1/PKG-INFO +234 -0
- termrenderer-0.0.1/README.md +208 -0
- termrenderer-0.0.1/build.rs +5 -0
- termrenderer-0.0.1/dist/termrenderer-0.0.1-cp39-abi3-macosx_11_0_arm64.whl +0 -0
- termrenderer-0.0.1/dist/termrenderer-0.0.1.tar.gz +0 -0
- termrenderer-0.0.1/media/raw_render.gif +0 -0
- termrenderer-0.0.1/media/raw_render.mov +0 -0
- termrenderer-0.0.1/media/textual_components.gif +0 -0
- termrenderer-0.0.1/media/textual_components.mov +0 -0
- termrenderer-0.0.1/poetry.lock +302 -0
- termrenderer-0.0.1/pyproject.toml +52 -0
- termrenderer-0.0.1/python/examples/poetry.lock +384 -0
- termrenderer-0.0.1/python/termrender/__init__.py +12 -0
- termrenderer-0.0.1/python/termrender/examples/__init__.py +0 -0
- termrenderer-0.0.1/python/termrender/examples/textual_preview.py +213 -0
- termrenderer-0.0.1/python/termrender/py.typed +0 -0
- termrenderer-0.0.1/python/termrender/renderer.py +35 -0
- termrenderer-0.0.1/python/termrender/textual.py +197 -0
- termrenderer-0.0.1/src/app.rs +283 -0
- termrenderer-0.0.1/src/kitty.rs +404 -0
- termrenderer-0.0.1/src/lib.rs +14 -0
- termrenderer-0.0.1/src/main.rs +5 -0
- termrenderer-0.0.1/src/math.rs +154 -0
- termrenderer-0.0.1/src/python.rs +247 -0
- termrenderer-0.0.1/src/raster.rs +243 -0
- termrenderer-0.0.1/src/stl.rs +294 -0
- termrenderer-0.0.1/src/surface.rs +154 -0
- termrenderer-0.0.1/src/viewport.rs +124 -0
|
@@ -0,0 +1,512 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "adler2"
|
|
7
|
+
version = "2.0.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "anyhow"
|
|
13
|
+
version = "1.0.102"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "autocfg"
|
|
19
|
+
version = "1.5.0"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "base64"
|
|
25
|
+
version = "0.22.1"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
|
28
|
+
|
|
29
|
+
[[package]]
|
|
30
|
+
name = "bitflags"
|
|
31
|
+
version = "2.11.0"
|
|
32
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
33
|
+
checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af"
|
|
34
|
+
|
|
35
|
+
[[package]]
|
|
36
|
+
name = "cfg-if"
|
|
37
|
+
version = "1.0.4"
|
|
38
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
40
|
+
|
|
41
|
+
[[package]]
|
|
42
|
+
name = "convert_case"
|
|
43
|
+
version = "0.10.0"
|
|
44
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
45
|
+
checksum = "633458d4ef8c78b72454de2d54fd6ab2e60f9e02be22f3c6104cdc8a4e0fceb9"
|
|
46
|
+
dependencies = [
|
|
47
|
+
"unicode-segmentation",
|
|
48
|
+
]
|
|
49
|
+
|
|
50
|
+
[[package]]
|
|
51
|
+
name = "crc32fast"
|
|
52
|
+
version = "1.5.0"
|
|
53
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
54
|
+
checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
|
|
55
|
+
dependencies = [
|
|
56
|
+
"cfg-if",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
[[package]]
|
|
60
|
+
name = "crossterm"
|
|
61
|
+
version = "0.29.0"
|
|
62
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
63
|
+
checksum = "d8b9f2e4c67f833b660cdb0a3523065869fb35570177239812ed4c905aeff87b"
|
|
64
|
+
dependencies = [
|
|
65
|
+
"bitflags",
|
|
66
|
+
"crossterm_winapi",
|
|
67
|
+
"derive_more",
|
|
68
|
+
"document-features",
|
|
69
|
+
"mio",
|
|
70
|
+
"parking_lot",
|
|
71
|
+
"rustix",
|
|
72
|
+
"signal-hook",
|
|
73
|
+
"signal-hook-mio",
|
|
74
|
+
"winapi",
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[[package]]
|
|
78
|
+
name = "crossterm_winapi"
|
|
79
|
+
version = "0.9.1"
|
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
81
|
+
checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
|
|
82
|
+
dependencies = [
|
|
83
|
+
"winapi",
|
|
84
|
+
]
|
|
85
|
+
|
|
86
|
+
[[package]]
|
|
87
|
+
name = "derive_more"
|
|
88
|
+
version = "2.1.1"
|
|
89
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
90
|
+
checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134"
|
|
91
|
+
dependencies = [
|
|
92
|
+
"derive_more-impl",
|
|
93
|
+
]
|
|
94
|
+
|
|
95
|
+
[[package]]
|
|
96
|
+
name = "derive_more-impl"
|
|
97
|
+
version = "2.1.1"
|
|
98
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
99
|
+
checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb"
|
|
100
|
+
dependencies = [
|
|
101
|
+
"convert_case",
|
|
102
|
+
"proc-macro2",
|
|
103
|
+
"quote",
|
|
104
|
+
"rustc_version",
|
|
105
|
+
"syn",
|
|
106
|
+
]
|
|
107
|
+
|
|
108
|
+
[[package]]
|
|
109
|
+
name = "document-features"
|
|
110
|
+
version = "0.2.12"
|
|
111
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
112
|
+
checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61"
|
|
113
|
+
dependencies = [
|
|
114
|
+
"litrs",
|
|
115
|
+
]
|
|
116
|
+
|
|
117
|
+
[[package]]
|
|
118
|
+
name = "errno"
|
|
119
|
+
version = "0.3.14"
|
|
120
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
121
|
+
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
|
122
|
+
dependencies = [
|
|
123
|
+
"libc",
|
|
124
|
+
"windows-sys",
|
|
125
|
+
]
|
|
126
|
+
|
|
127
|
+
[[package]]
|
|
128
|
+
name = "flate2"
|
|
129
|
+
version = "1.1.9"
|
|
130
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
131
|
+
checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
|
|
132
|
+
dependencies = [
|
|
133
|
+
"crc32fast",
|
|
134
|
+
"miniz_oxide",
|
|
135
|
+
]
|
|
136
|
+
|
|
137
|
+
[[package]]
|
|
138
|
+
name = "heck"
|
|
139
|
+
version = "0.5.0"
|
|
140
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
141
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
142
|
+
|
|
143
|
+
[[package]]
|
|
144
|
+
name = "indoc"
|
|
145
|
+
version = "2.0.7"
|
|
146
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
147
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
148
|
+
dependencies = [
|
|
149
|
+
"rustversion",
|
|
150
|
+
]
|
|
151
|
+
|
|
152
|
+
[[package]]
|
|
153
|
+
name = "libc"
|
|
154
|
+
version = "0.2.183"
|
|
155
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
156
|
+
checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d"
|
|
157
|
+
|
|
158
|
+
[[package]]
|
|
159
|
+
name = "linux-raw-sys"
|
|
160
|
+
version = "0.12.1"
|
|
161
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
162
|
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|
163
|
+
|
|
164
|
+
[[package]]
|
|
165
|
+
name = "litrs"
|
|
166
|
+
version = "1.0.0"
|
|
167
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
168
|
+
checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"
|
|
169
|
+
|
|
170
|
+
[[package]]
|
|
171
|
+
name = "lock_api"
|
|
172
|
+
version = "0.4.14"
|
|
173
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
174
|
+
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
|
175
|
+
dependencies = [
|
|
176
|
+
"scopeguard",
|
|
177
|
+
]
|
|
178
|
+
|
|
179
|
+
[[package]]
|
|
180
|
+
name = "log"
|
|
181
|
+
version = "0.4.29"
|
|
182
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
183
|
+
checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
|
184
|
+
|
|
185
|
+
[[package]]
|
|
186
|
+
name = "memoffset"
|
|
187
|
+
version = "0.9.1"
|
|
188
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
189
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
190
|
+
dependencies = [
|
|
191
|
+
"autocfg",
|
|
192
|
+
]
|
|
193
|
+
|
|
194
|
+
[[package]]
|
|
195
|
+
name = "miniz_oxide"
|
|
196
|
+
version = "0.8.9"
|
|
197
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
198
|
+
checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
|
|
199
|
+
dependencies = [
|
|
200
|
+
"adler2",
|
|
201
|
+
"simd-adler32",
|
|
202
|
+
]
|
|
203
|
+
|
|
204
|
+
[[package]]
|
|
205
|
+
name = "mio"
|
|
206
|
+
version = "1.2.0"
|
|
207
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
208
|
+
checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
|
|
209
|
+
dependencies = [
|
|
210
|
+
"libc",
|
|
211
|
+
"log",
|
|
212
|
+
"wasi",
|
|
213
|
+
"windows-sys",
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
[[package]]
|
|
217
|
+
name = "once_cell"
|
|
218
|
+
version = "1.21.4"
|
|
219
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
220
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
221
|
+
|
|
222
|
+
[[package]]
|
|
223
|
+
name = "parking_lot"
|
|
224
|
+
version = "0.12.5"
|
|
225
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
226
|
+
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
|
|
227
|
+
dependencies = [
|
|
228
|
+
"lock_api",
|
|
229
|
+
"parking_lot_core",
|
|
230
|
+
]
|
|
231
|
+
|
|
232
|
+
[[package]]
|
|
233
|
+
name = "parking_lot_core"
|
|
234
|
+
version = "0.9.12"
|
|
235
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
236
|
+
checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
|
|
237
|
+
dependencies = [
|
|
238
|
+
"cfg-if",
|
|
239
|
+
"libc",
|
|
240
|
+
"redox_syscall",
|
|
241
|
+
"smallvec",
|
|
242
|
+
"windows-link",
|
|
243
|
+
]
|
|
244
|
+
|
|
245
|
+
[[package]]
|
|
246
|
+
name = "portable-atomic"
|
|
247
|
+
version = "1.13.1"
|
|
248
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
249
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
250
|
+
|
|
251
|
+
[[package]]
|
|
252
|
+
name = "proc-macro2"
|
|
253
|
+
version = "1.0.106"
|
|
254
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
255
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
256
|
+
dependencies = [
|
|
257
|
+
"unicode-ident",
|
|
258
|
+
]
|
|
259
|
+
|
|
260
|
+
[[package]]
|
|
261
|
+
name = "pyo3"
|
|
262
|
+
version = "0.22.6"
|
|
263
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
264
|
+
checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
|
|
265
|
+
dependencies = [
|
|
266
|
+
"cfg-if",
|
|
267
|
+
"indoc",
|
|
268
|
+
"libc",
|
|
269
|
+
"memoffset",
|
|
270
|
+
"once_cell",
|
|
271
|
+
"portable-atomic",
|
|
272
|
+
"pyo3-build-config",
|
|
273
|
+
"pyo3-ffi",
|
|
274
|
+
"pyo3-macros",
|
|
275
|
+
"unindent",
|
|
276
|
+
]
|
|
277
|
+
|
|
278
|
+
[[package]]
|
|
279
|
+
name = "pyo3-build-config"
|
|
280
|
+
version = "0.22.6"
|
|
281
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
282
|
+
checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
|
|
283
|
+
dependencies = [
|
|
284
|
+
"once_cell",
|
|
285
|
+
"target-lexicon",
|
|
286
|
+
]
|
|
287
|
+
|
|
288
|
+
[[package]]
|
|
289
|
+
name = "pyo3-ffi"
|
|
290
|
+
version = "0.22.6"
|
|
291
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
292
|
+
checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
|
|
293
|
+
dependencies = [
|
|
294
|
+
"libc",
|
|
295
|
+
"pyo3-build-config",
|
|
296
|
+
]
|
|
297
|
+
|
|
298
|
+
[[package]]
|
|
299
|
+
name = "pyo3-macros"
|
|
300
|
+
version = "0.22.6"
|
|
301
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
302
|
+
checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
|
|
303
|
+
dependencies = [
|
|
304
|
+
"proc-macro2",
|
|
305
|
+
"pyo3-macros-backend",
|
|
306
|
+
"quote",
|
|
307
|
+
"syn",
|
|
308
|
+
]
|
|
309
|
+
|
|
310
|
+
[[package]]
|
|
311
|
+
name = "pyo3-macros-backend"
|
|
312
|
+
version = "0.22.6"
|
|
313
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
314
|
+
checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
|
|
315
|
+
dependencies = [
|
|
316
|
+
"heck",
|
|
317
|
+
"proc-macro2",
|
|
318
|
+
"pyo3-build-config",
|
|
319
|
+
"quote",
|
|
320
|
+
"syn",
|
|
321
|
+
]
|
|
322
|
+
|
|
323
|
+
[[package]]
|
|
324
|
+
name = "quote"
|
|
325
|
+
version = "1.0.45"
|
|
326
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
327
|
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
328
|
+
dependencies = [
|
|
329
|
+
"proc-macro2",
|
|
330
|
+
]
|
|
331
|
+
|
|
332
|
+
[[package]]
|
|
333
|
+
name = "redox_syscall"
|
|
334
|
+
version = "0.5.18"
|
|
335
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
336
|
+
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
|
|
337
|
+
dependencies = [
|
|
338
|
+
"bitflags",
|
|
339
|
+
]
|
|
340
|
+
|
|
341
|
+
[[package]]
|
|
342
|
+
name = "rustc_version"
|
|
343
|
+
version = "0.4.1"
|
|
344
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
345
|
+
checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
|
|
346
|
+
dependencies = [
|
|
347
|
+
"semver",
|
|
348
|
+
]
|
|
349
|
+
|
|
350
|
+
[[package]]
|
|
351
|
+
name = "rustix"
|
|
352
|
+
version = "1.1.4"
|
|
353
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
354
|
+
checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
|
|
355
|
+
dependencies = [
|
|
356
|
+
"bitflags",
|
|
357
|
+
"errno",
|
|
358
|
+
"libc",
|
|
359
|
+
"linux-raw-sys",
|
|
360
|
+
"windows-sys",
|
|
361
|
+
]
|
|
362
|
+
|
|
363
|
+
[[package]]
|
|
364
|
+
name = "rustversion"
|
|
365
|
+
version = "1.0.22"
|
|
366
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
367
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
368
|
+
|
|
369
|
+
[[package]]
|
|
370
|
+
name = "scopeguard"
|
|
371
|
+
version = "1.2.0"
|
|
372
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
373
|
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
|
374
|
+
|
|
375
|
+
[[package]]
|
|
376
|
+
name = "semver"
|
|
377
|
+
version = "1.0.27"
|
|
378
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
379
|
+
checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
|
|
380
|
+
|
|
381
|
+
[[package]]
|
|
382
|
+
name = "signal-hook"
|
|
383
|
+
version = "0.3.18"
|
|
384
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
385
|
+
checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2"
|
|
386
|
+
dependencies = [
|
|
387
|
+
"libc",
|
|
388
|
+
"signal-hook-registry",
|
|
389
|
+
]
|
|
390
|
+
|
|
391
|
+
[[package]]
|
|
392
|
+
name = "signal-hook-mio"
|
|
393
|
+
version = "0.2.5"
|
|
394
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
395
|
+
checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc"
|
|
396
|
+
dependencies = [
|
|
397
|
+
"libc",
|
|
398
|
+
"mio",
|
|
399
|
+
"signal-hook",
|
|
400
|
+
]
|
|
401
|
+
|
|
402
|
+
[[package]]
|
|
403
|
+
name = "signal-hook-registry"
|
|
404
|
+
version = "1.4.8"
|
|
405
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
406
|
+
checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
|
|
407
|
+
dependencies = [
|
|
408
|
+
"errno",
|
|
409
|
+
"libc",
|
|
410
|
+
]
|
|
411
|
+
|
|
412
|
+
[[package]]
|
|
413
|
+
name = "simd-adler32"
|
|
414
|
+
version = "0.3.9"
|
|
415
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
416
|
+
checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"
|
|
417
|
+
|
|
418
|
+
[[package]]
|
|
419
|
+
name = "smallvec"
|
|
420
|
+
version = "1.15.1"
|
|
421
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
422
|
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
|
423
|
+
|
|
424
|
+
[[package]]
|
|
425
|
+
name = "syn"
|
|
426
|
+
version = "2.0.117"
|
|
427
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
428
|
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
429
|
+
dependencies = [
|
|
430
|
+
"proc-macro2",
|
|
431
|
+
"quote",
|
|
432
|
+
"unicode-ident",
|
|
433
|
+
]
|
|
434
|
+
|
|
435
|
+
[[package]]
|
|
436
|
+
name = "target-lexicon"
|
|
437
|
+
version = "0.12.16"
|
|
438
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
439
|
+
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
|
440
|
+
|
|
441
|
+
[[package]]
|
|
442
|
+
name = "termrender"
|
|
443
|
+
version = "0.0.1"
|
|
444
|
+
dependencies = [
|
|
445
|
+
"anyhow",
|
|
446
|
+
"base64",
|
|
447
|
+
"crossterm",
|
|
448
|
+
"flate2",
|
|
449
|
+
"pyo3",
|
|
450
|
+
"pyo3-build-config",
|
|
451
|
+
]
|
|
452
|
+
|
|
453
|
+
[[package]]
|
|
454
|
+
name = "unicode-ident"
|
|
455
|
+
version = "1.0.24"
|
|
456
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
457
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
458
|
+
|
|
459
|
+
[[package]]
|
|
460
|
+
name = "unicode-segmentation"
|
|
461
|
+
version = "1.13.2"
|
|
462
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
463
|
+
checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c"
|
|
464
|
+
|
|
465
|
+
[[package]]
|
|
466
|
+
name = "unindent"
|
|
467
|
+
version = "0.2.4"
|
|
468
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
469
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
470
|
+
|
|
471
|
+
[[package]]
|
|
472
|
+
name = "wasi"
|
|
473
|
+
version = "0.11.1+wasi-snapshot-preview1"
|
|
474
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
475
|
+
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
|
476
|
+
|
|
477
|
+
[[package]]
|
|
478
|
+
name = "winapi"
|
|
479
|
+
version = "0.3.9"
|
|
480
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
481
|
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
482
|
+
dependencies = [
|
|
483
|
+
"winapi-i686-pc-windows-gnu",
|
|
484
|
+
"winapi-x86_64-pc-windows-gnu",
|
|
485
|
+
]
|
|
486
|
+
|
|
487
|
+
[[package]]
|
|
488
|
+
name = "winapi-i686-pc-windows-gnu"
|
|
489
|
+
version = "0.4.0"
|
|
490
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
491
|
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
492
|
+
|
|
493
|
+
[[package]]
|
|
494
|
+
name = "winapi-x86_64-pc-windows-gnu"
|
|
495
|
+
version = "0.4.0"
|
|
496
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
497
|
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|
498
|
+
|
|
499
|
+
[[package]]
|
|
500
|
+
name = "windows-link"
|
|
501
|
+
version = "0.2.1"
|
|
502
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
503
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
504
|
+
|
|
505
|
+
[[package]]
|
|
506
|
+
name = "windows-sys"
|
|
507
|
+
version = "0.61.2"
|
|
508
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
509
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
510
|
+
dependencies = [
|
|
511
|
+
"windows-link",
|
|
512
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "termrender"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
edition = "2024"
|
|
5
|
+
authors = ["Jingzhe Ni's OpenCode"]
|
|
6
|
+
readme = "README.md"
|
|
7
|
+
|
|
8
|
+
[lib]
|
|
9
|
+
crate-type = ["rlib", "cdylib"]
|
|
10
|
+
|
|
11
|
+
[features]
|
|
12
|
+
default = []
|
|
13
|
+
python = ["dep:pyo3"]
|
|
14
|
+
python-module = ["python", "pyo3/extension-module"]
|
|
15
|
+
|
|
16
|
+
[dependencies]
|
|
17
|
+
anyhow = "1.0"
|
|
18
|
+
base64 = "0.22"
|
|
19
|
+
crossterm = "0.29"
|
|
20
|
+
flate2 = "1.1"
|
|
21
|
+
pyo3 = { version = "0.22", optional = true, features = ["abi3-py39"] }
|
|
22
|
+
|
|
23
|
+
[build-dependencies]
|
|
24
|
+
pyo3-build-config = "0.22"
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Ni Jingzhe
|
|
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.
|