zopy 0.1.0__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.
- zopy-0.1.0/Cargo.lock +615 -0
- zopy-0.1.0/Cargo.toml +48 -0
- zopy-0.1.0/LICENSE +21 -0
- zopy-0.1.0/PKG-INFO +1001 -0
- zopy-0.1.0/README.md +976 -0
- zopy-0.1.0/packages/zopy/Cargo.toml +30 -0
- zopy-0.1.0/packages/zopy/LICENSE +21 -0
- zopy-0.1.0/packages/zopy/README.md +976 -0
- zopy-0.1.0/packages/zopy/build.rs +16 -0
- zopy-0.1.0/packages/zopy/src/formats.rs +469 -0
- zopy-0.1.0/packages/zopy/src/lib.rs +466 -0
- zopy-0.1.0/packages/zopy/src/messages.rs +287 -0
- zopy-0.1.0/packages/zopy/src/node.rs +595 -0
- zopy-0.1.0/packages/zopy/src/numeric.rs +59 -0
- zopy-0.1.0/packages/zopy/src/run.rs +1892 -0
- zopy-0.1.0/packages/zopy/tests/conftest.py +14 -0
- zopy-0.1.0/packages/zopy/tests/test_brand.py +55 -0
- zopy-0.1.0/packages/zopy/tests/test_codec_wire.py +80 -0
- zopy-0.1.0/packages/zopy/tests/test_composites.py +221 -0
- zopy-0.1.0/packages/zopy/tests/test_dates.py +172 -0
- zopy-0.1.0/packages/zopy/tests/test_declarative.py +280 -0
- zopy-0.1.0/packages/zopy/tests/test_effects.py +315 -0
- zopy-0.1.0/packages/zopy/tests/test_fast_path.py +121 -0
- zopy-0.1.0/packages/zopy/tests/test_fine_points.py +132 -0
- zopy-0.1.0/packages/zopy/tests/test_json_schema.py +224 -0
- zopy-0.1.0/packages/zopy/tests/test_lazy_error.py +44 -0
- zopy-0.1.0/packages/zopy/tests/test_plain_messages.py +111 -0
- zopy-0.1.0/packages/zopy/tests/test_primitives.py +236 -0
- zopy-0.1.0/packages/zopy/tests/test_readme.py +14 -0
- zopy-0.1.0/packages/zopy/tests/test_readonly.py +74 -0
- zopy-0.1.0/packages/zopy/tests/test_regex_engine.py +65 -0
- zopy-0.1.0/packages/zopy/tests/test_typing.py +21 -0
- zopy-0.1.0/packages/zopy/tests/test_v4_additions.py +205 -0
- zopy-0.1.0/packages/zopy/tests/typing/inference.py +165 -0
- zopy-0.1.0/packages/zopy/tests/typing/parse_results.py +151 -0
- zopy-0.1.0/pyproject.toml +37 -0
- zopy-0.1.0/python/zopy/__init__.py +1419 -0
- zopy-0.1.0/python/zopy/_compile.py +597 -0
- zopy-0.1.0/python/zopy/_core.pyi +56 -0
- zopy-0.1.0/python/zopy/_util.py +147 -0
- zopy-0.1.0/python/zopy/core.py +1042 -0
- zopy-0.1.0/python/zopy/declarative.py +438 -0
- zopy-0.1.0/python/zopy/errors.py +327 -0
- zopy-0.1.0/python/zopy/json_schema.py +468 -0
- zopy-0.1.0/python/zopy/locales.py +122 -0
- zopy-0.1.0/python/zopy/py.typed +0 -0
- zopy-0.1.0/python/zopy/regexes.py +162 -0
- zopy-0.1.0/python/zopy/registries.py +51 -0
- zopy-0.1.0/python/zopy/schemas.py +2558 -0
- zopy-0.1.0/python/zopy/z.py +6 -0
zopy-0.1.0/Cargo.lock
ADDED
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "1.1.5"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "autocfg"
|
|
16
|
+
version = "1.5.1"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "base64"
|
|
22
|
+
version = "0.22.1"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "bit-set"
|
|
28
|
+
version = "0.8.0"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
|
|
31
|
+
dependencies = [
|
|
32
|
+
"bit-vec",
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
[[package]]
|
|
36
|
+
name = "bit-vec"
|
|
37
|
+
version = "0.8.0"
|
|
38
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
39
|
+
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
|
|
40
|
+
|
|
41
|
+
[[package]]
|
|
42
|
+
name = "displaydoc"
|
|
43
|
+
version = "0.2.7"
|
|
44
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
45
|
+
checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
|
|
46
|
+
dependencies = [
|
|
47
|
+
"proc-macro2",
|
|
48
|
+
"quote",
|
|
49
|
+
"syn 3.0.9",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[[package]]
|
|
53
|
+
name = "fancy-regex"
|
|
54
|
+
version = "0.14.0"
|
|
55
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
56
|
+
checksum = "6e24cb5a94bcae1e5408b0effca5cd7172ea3c5755049c5f3af4cd283a165298"
|
|
57
|
+
dependencies = [
|
|
58
|
+
"bit-set",
|
|
59
|
+
"regex-automata",
|
|
60
|
+
"regex-syntax",
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
[[package]]
|
|
64
|
+
name = "form_urlencoded"
|
|
65
|
+
version = "1.2.2"
|
|
66
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
67
|
+
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
|
|
68
|
+
dependencies = [
|
|
69
|
+
"percent-encoding",
|
|
70
|
+
]
|
|
71
|
+
|
|
72
|
+
[[package]]
|
|
73
|
+
name = "heck"
|
|
74
|
+
version = "0.5.0"
|
|
75
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
76
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
77
|
+
|
|
78
|
+
[[package]]
|
|
79
|
+
name = "icu_collections"
|
|
80
|
+
version = "2.4.0"
|
|
81
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
82
|
+
checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd"
|
|
83
|
+
dependencies = [
|
|
84
|
+
"displaydoc",
|
|
85
|
+
"potential_utf",
|
|
86
|
+
"utf8_iter",
|
|
87
|
+
"yoke",
|
|
88
|
+
"zerofrom",
|
|
89
|
+
"zerovec",
|
|
90
|
+
]
|
|
91
|
+
|
|
92
|
+
[[package]]
|
|
93
|
+
name = "icu_locale_core"
|
|
94
|
+
version = "2.4.0"
|
|
95
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
96
|
+
checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0"
|
|
97
|
+
dependencies = [
|
|
98
|
+
"displaydoc",
|
|
99
|
+
"litemap",
|
|
100
|
+
"tinystr",
|
|
101
|
+
"writeable",
|
|
102
|
+
"zerovec",
|
|
103
|
+
]
|
|
104
|
+
|
|
105
|
+
[[package]]
|
|
106
|
+
name = "icu_normalizer"
|
|
107
|
+
version = "2.4.0"
|
|
108
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
109
|
+
checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599"
|
|
110
|
+
dependencies = [
|
|
111
|
+
"icu_collections",
|
|
112
|
+
"icu_normalizer_data",
|
|
113
|
+
"icu_properties",
|
|
114
|
+
"icu_provider",
|
|
115
|
+
"smallvec",
|
|
116
|
+
"zerovec",
|
|
117
|
+
]
|
|
118
|
+
|
|
119
|
+
[[package]]
|
|
120
|
+
name = "icu_normalizer_data"
|
|
121
|
+
version = "2.4.0"
|
|
122
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
123
|
+
checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc"
|
|
124
|
+
|
|
125
|
+
[[package]]
|
|
126
|
+
name = "icu_properties"
|
|
127
|
+
version = "2.4.0"
|
|
128
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
129
|
+
checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f"
|
|
130
|
+
dependencies = [
|
|
131
|
+
"displaydoc",
|
|
132
|
+
"icu_collections",
|
|
133
|
+
"icu_locale_core",
|
|
134
|
+
"icu_properties_data",
|
|
135
|
+
"icu_provider",
|
|
136
|
+
"zerotrie",
|
|
137
|
+
"zerovec",
|
|
138
|
+
]
|
|
139
|
+
|
|
140
|
+
[[package]]
|
|
141
|
+
name = "icu_properties_data"
|
|
142
|
+
version = "2.4.0"
|
|
143
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
144
|
+
checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf"
|
|
145
|
+
|
|
146
|
+
[[package]]
|
|
147
|
+
name = "icu_provider"
|
|
148
|
+
version = "2.4.0"
|
|
149
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
150
|
+
checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514"
|
|
151
|
+
dependencies = [
|
|
152
|
+
"displaydoc",
|
|
153
|
+
"icu_locale_core",
|
|
154
|
+
"writeable",
|
|
155
|
+
"yoke",
|
|
156
|
+
"zerofrom",
|
|
157
|
+
"zerotrie",
|
|
158
|
+
"zerovec",
|
|
159
|
+
]
|
|
160
|
+
|
|
161
|
+
[[package]]
|
|
162
|
+
name = "idna"
|
|
163
|
+
version = "1.1.0"
|
|
164
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
165
|
+
checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
|
|
166
|
+
dependencies = [
|
|
167
|
+
"idna_adapter",
|
|
168
|
+
"smallvec",
|
|
169
|
+
"utf8_iter",
|
|
170
|
+
]
|
|
171
|
+
|
|
172
|
+
[[package]]
|
|
173
|
+
name = "idna_adapter"
|
|
174
|
+
version = "1.2.2"
|
|
175
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
176
|
+
checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
|
|
177
|
+
dependencies = [
|
|
178
|
+
"icu_normalizer",
|
|
179
|
+
"icu_properties",
|
|
180
|
+
]
|
|
181
|
+
|
|
182
|
+
[[package]]
|
|
183
|
+
name = "indoc"
|
|
184
|
+
version = "2.0.8"
|
|
185
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
186
|
+
checksum = "a37b2691796cffeb8a8cd305ac66e65841559f147f4e63231d0eafa4db5384d1"
|
|
187
|
+
dependencies = [
|
|
188
|
+
"rustversion",
|
|
189
|
+
]
|
|
190
|
+
|
|
191
|
+
[[package]]
|
|
192
|
+
name = "itoa"
|
|
193
|
+
version = "1.0.18"
|
|
194
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
195
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
196
|
+
|
|
197
|
+
[[package]]
|
|
198
|
+
name = "libc"
|
|
199
|
+
version = "0.2.191"
|
|
200
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
201
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
202
|
+
|
|
203
|
+
[[package]]
|
|
204
|
+
name = "litemap"
|
|
205
|
+
version = "0.8.3"
|
|
206
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
207
|
+
checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
|
|
208
|
+
|
|
209
|
+
[[package]]
|
|
210
|
+
name = "memchr"
|
|
211
|
+
version = "2.8.3"
|
|
212
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
213
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
214
|
+
|
|
215
|
+
[[package]]
|
|
216
|
+
name = "memoffset"
|
|
217
|
+
version = "0.9.1"
|
|
218
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
219
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
220
|
+
dependencies = [
|
|
221
|
+
"autocfg",
|
|
222
|
+
]
|
|
223
|
+
|
|
224
|
+
[[package]]
|
|
225
|
+
name = "once_cell"
|
|
226
|
+
version = "1.21.4"
|
|
227
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
228
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
229
|
+
|
|
230
|
+
[[package]]
|
|
231
|
+
name = "percent-encoding"
|
|
232
|
+
version = "2.3.2"
|
|
233
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
234
|
+
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
|
235
|
+
|
|
236
|
+
[[package]]
|
|
237
|
+
name = "portable-atomic"
|
|
238
|
+
version = "1.15.0"
|
|
239
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
240
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
241
|
+
|
|
242
|
+
[[package]]
|
|
243
|
+
name = "potential_utf"
|
|
244
|
+
version = "0.1.6"
|
|
245
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
246
|
+
checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
|
|
247
|
+
dependencies = [
|
|
248
|
+
"zerovec",
|
|
249
|
+
]
|
|
250
|
+
|
|
251
|
+
[[package]]
|
|
252
|
+
name = "proc-macro2"
|
|
253
|
+
version = "1.0.107"
|
|
254
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
255
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
256
|
+
dependencies = [
|
|
257
|
+
"unicode-ident",
|
|
258
|
+
]
|
|
259
|
+
|
|
260
|
+
[[package]]
|
|
261
|
+
name = "pyo3"
|
|
262
|
+
version = "0.25.1"
|
|
263
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
264
|
+
checksum = "8970a78afe0628a3e3430376fc5fd76b6b45c4d43360ffd6cdd40bdde72b682a"
|
|
265
|
+
dependencies = [
|
|
266
|
+
"indoc",
|
|
267
|
+
"libc",
|
|
268
|
+
"memoffset",
|
|
269
|
+
"once_cell",
|
|
270
|
+
"portable-atomic",
|
|
271
|
+
"pyo3-build-config",
|
|
272
|
+
"pyo3-ffi",
|
|
273
|
+
"pyo3-macros",
|
|
274
|
+
"unindent",
|
|
275
|
+
]
|
|
276
|
+
|
|
277
|
+
[[package]]
|
|
278
|
+
name = "pyo3-build-config"
|
|
279
|
+
version = "0.25.1"
|
|
280
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
281
|
+
checksum = "458eb0c55e7ece017adeba38f2248ff3ac615e53660d7c71a238d7d2a01c7598"
|
|
282
|
+
dependencies = [
|
|
283
|
+
"once_cell",
|
|
284
|
+
"target-lexicon",
|
|
285
|
+
]
|
|
286
|
+
|
|
287
|
+
[[package]]
|
|
288
|
+
name = "pyo3-ffi"
|
|
289
|
+
version = "0.25.1"
|
|
290
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
291
|
+
checksum = "7114fe5457c61b276ab77c5055f206295b812608083644a5c5b2640c3102565c"
|
|
292
|
+
dependencies = [
|
|
293
|
+
"libc",
|
|
294
|
+
"pyo3-build-config",
|
|
295
|
+
]
|
|
296
|
+
|
|
297
|
+
[[package]]
|
|
298
|
+
name = "pyo3-macros"
|
|
299
|
+
version = "0.25.1"
|
|
300
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
301
|
+
checksum = "a8725c0a622b374d6cb051d11a0983786448f7785336139c3c94f5aa6bef7e50"
|
|
302
|
+
dependencies = [
|
|
303
|
+
"proc-macro2",
|
|
304
|
+
"pyo3-macros-backend",
|
|
305
|
+
"quote",
|
|
306
|
+
"syn 2.0.119",
|
|
307
|
+
]
|
|
308
|
+
|
|
309
|
+
[[package]]
|
|
310
|
+
name = "pyo3-macros-backend"
|
|
311
|
+
version = "0.25.1"
|
|
312
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
313
|
+
checksum = "4109984c22491085343c05b0dbc54ddc405c3cf7b4374fc533f5c3313a572ccc"
|
|
314
|
+
dependencies = [
|
|
315
|
+
"heck",
|
|
316
|
+
"proc-macro2",
|
|
317
|
+
"pyo3-build-config",
|
|
318
|
+
"quote",
|
|
319
|
+
"syn 2.0.119",
|
|
320
|
+
]
|
|
321
|
+
|
|
322
|
+
[[package]]
|
|
323
|
+
name = "quote"
|
|
324
|
+
version = "1.0.47"
|
|
325
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
326
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
327
|
+
dependencies = [
|
|
328
|
+
"proc-macro2",
|
|
329
|
+
]
|
|
330
|
+
|
|
331
|
+
[[package]]
|
|
332
|
+
name = "regex"
|
|
333
|
+
version = "1.13.1"
|
|
334
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
335
|
+
checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
|
|
336
|
+
dependencies = [
|
|
337
|
+
"aho-corasick",
|
|
338
|
+
"memchr",
|
|
339
|
+
"regex-automata",
|
|
340
|
+
"regex-syntax",
|
|
341
|
+
]
|
|
342
|
+
|
|
343
|
+
[[package]]
|
|
344
|
+
name = "regex-automata"
|
|
345
|
+
version = "0.4.18"
|
|
346
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
347
|
+
checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
|
|
348
|
+
dependencies = [
|
|
349
|
+
"aho-corasick",
|
|
350
|
+
"memchr",
|
|
351
|
+
"regex-syntax",
|
|
352
|
+
]
|
|
353
|
+
|
|
354
|
+
[[package]]
|
|
355
|
+
name = "regex-syntax"
|
|
356
|
+
version = "0.8.11"
|
|
357
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
358
|
+
checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
|
|
359
|
+
|
|
360
|
+
[[package]]
|
|
361
|
+
name = "rustversion"
|
|
362
|
+
version = "1.0.23"
|
|
363
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
364
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
365
|
+
|
|
366
|
+
[[package]]
|
|
367
|
+
name = "serde"
|
|
368
|
+
version = "1.0.229"
|
|
369
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
370
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
371
|
+
dependencies = [
|
|
372
|
+
"serde_core",
|
|
373
|
+
]
|
|
374
|
+
|
|
375
|
+
[[package]]
|
|
376
|
+
name = "serde_core"
|
|
377
|
+
version = "1.0.229"
|
|
378
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
379
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
380
|
+
dependencies = [
|
|
381
|
+
"serde_derive",
|
|
382
|
+
]
|
|
383
|
+
|
|
384
|
+
[[package]]
|
|
385
|
+
name = "serde_derive"
|
|
386
|
+
version = "1.0.229"
|
|
387
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
388
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
389
|
+
dependencies = [
|
|
390
|
+
"proc-macro2",
|
|
391
|
+
"quote",
|
|
392
|
+
"syn 3.0.9",
|
|
393
|
+
]
|
|
394
|
+
|
|
395
|
+
[[package]]
|
|
396
|
+
name = "serde_json"
|
|
397
|
+
version = "1.0.154"
|
|
398
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
399
|
+
checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
|
|
400
|
+
dependencies = [
|
|
401
|
+
"itoa",
|
|
402
|
+
"memchr",
|
|
403
|
+
"serde",
|
|
404
|
+
"serde_core",
|
|
405
|
+
"zmij",
|
|
406
|
+
]
|
|
407
|
+
|
|
408
|
+
[[package]]
|
|
409
|
+
name = "smallvec"
|
|
410
|
+
version = "1.16.4"
|
|
411
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
412
|
+
checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8"
|
|
413
|
+
|
|
414
|
+
[[package]]
|
|
415
|
+
name = "stable_deref_trait"
|
|
416
|
+
version = "1.2.1"
|
|
417
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
418
|
+
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
|
|
419
|
+
|
|
420
|
+
[[package]]
|
|
421
|
+
name = "syn"
|
|
422
|
+
version = "2.0.119"
|
|
423
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
424
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
425
|
+
dependencies = [
|
|
426
|
+
"proc-macro2",
|
|
427
|
+
"quote",
|
|
428
|
+
"unicode-ident",
|
|
429
|
+
]
|
|
430
|
+
|
|
431
|
+
[[package]]
|
|
432
|
+
name = "syn"
|
|
433
|
+
version = "3.0.9"
|
|
434
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
435
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
436
|
+
dependencies = [
|
|
437
|
+
"proc-macro2",
|
|
438
|
+
"quote",
|
|
439
|
+
"unicode-ident",
|
|
440
|
+
]
|
|
441
|
+
|
|
442
|
+
[[package]]
|
|
443
|
+
name = "synstructure"
|
|
444
|
+
version = "0.14.0"
|
|
445
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
446
|
+
checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
|
|
447
|
+
dependencies = [
|
|
448
|
+
"proc-macro2",
|
|
449
|
+
"quote",
|
|
450
|
+
"syn 3.0.9",
|
|
451
|
+
]
|
|
452
|
+
|
|
453
|
+
[[package]]
|
|
454
|
+
name = "target-lexicon"
|
|
455
|
+
version = "0.13.5"
|
|
456
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
457
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
458
|
+
|
|
459
|
+
[[package]]
|
|
460
|
+
name = "tinystr"
|
|
461
|
+
version = "0.8.5"
|
|
462
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
463
|
+
checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
|
|
464
|
+
dependencies = [
|
|
465
|
+
"displaydoc",
|
|
466
|
+
"zerovec",
|
|
467
|
+
]
|
|
468
|
+
|
|
469
|
+
[[package]]
|
|
470
|
+
name = "tinyvec"
|
|
471
|
+
version = "1.13.3"
|
|
472
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
473
|
+
checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
|
|
474
|
+
|
|
475
|
+
[[package]]
|
|
476
|
+
name = "unicode-ident"
|
|
477
|
+
version = "1.0.27"
|
|
478
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
479
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
480
|
+
|
|
481
|
+
[[package]]
|
|
482
|
+
name = "unicode-normalization"
|
|
483
|
+
version = "0.1.26"
|
|
484
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
485
|
+
checksum = "75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d"
|
|
486
|
+
dependencies = [
|
|
487
|
+
"tinyvec",
|
|
488
|
+
]
|
|
489
|
+
|
|
490
|
+
[[package]]
|
|
491
|
+
name = "unindent"
|
|
492
|
+
version = "0.2.4"
|
|
493
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
494
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
495
|
+
|
|
496
|
+
[[package]]
|
|
497
|
+
name = "url"
|
|
498
|
+
version = "2.5.8"
|
|
499
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
500
|
+
checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
|
|
501
|
+
dependencies = [
|
|
502
|
+
"form_urlencoded",
|
|
503
|
+
"idna",
|
|
504
|
+
"percent-encoding",
|
|
505
|
+
"serde",
|
|
506
|
+
]
|
|
507
|
+
|
|
508
|
+
[[package]]
|
|
509
|
+
name = "utf8_iter"
|
|
510
|
+
version = "1.0.4"
|
|
511
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
512
|
+
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
|
513
|
+
|
|
514
|
+
[[package]]
|
|
515
|
+
name = "writeable"
|
|
516
|
+
version = "0.6.4"
|
|
517
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
518
|
+
checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
|
|
519
|
+
|
|
520
|
+
[[package]]
|
|
521
|
+
name = "yoke"
|
|
522
|
+
version = "0.8.4"
|
|
523
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
524
|
+
checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
|
|
525
|
+
dependencies = [
|
|
526
|
+
"stable_deref_trait",
|
|
527
|
+
"yoke-derive",
|
|
528
|
+
"zerofrom",
|
|
529
|
+
]
|
|
530
|
+
|
|
531
|
+
[[package]]
|
|
532
|
+
name = "yoke-derive"
|
|
533
|
+
version = "0.8.4"
|
|
534
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
535
|
+
checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
|
|
536
|
+
dependencies = [
|
|
537
|
+
"proc-macro2",
|
|
538
|
+
"quote",
|
|
539
|
+
"syn 3.0.9",
|
|
540
|
+
"synstructure",
|
|
541
|
+
]
|
|
542
|
+
|
|
543
|
+
[[package]]
|
|
544
|
+
name = "zerofrom"
|
|
545
|
+
version = "0.1.8"
|
|
546
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
547
|
+
checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
|
|
548
|
+
dependencies = [
|
|
549
|
+
"zerofrom-derive",
|
|
550
|
+
]
|
|
551
|
+
|
|
552
|
+
[[package]]
|
|
553
|
+
name = "zerofrom-derive"
|
|
554
|
+
version = "0.1.8"
|
|
555
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
556
|
+
checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
|
|
557
|
+
dependencies = [
|
|
558
|
+
"proc-macro2",
|
|
559
|
+
"quote",
|
|
560
|
+
"syn 3.0.9",
|
|
561
|
+
"synstructure",
|
|
562
|
+
]
|
|
563
|
+
|
|
564
|
+
[[package]]
|
|
565
|
+
name = "zerotrie"
|
|
566
|
+
version = "0.2.5"
|
|
567
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
568
|
+
checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
|
|
569
|
+
dependencies = [
|
|
570
|
+
"displaydoc",
|
|
571
|
+
"yoke",
|
|
572
|
+
"zerofrom",
|
|
573
|
+
]
|
|
574
|
+
|
|
575
|
+
[[package]]
|
|
576
|
+
name = "zerovec"
|
|
577
|
+
version = "0.11.9"
|
|
578
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
579
|
+
checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
|
|
580
|
+
dependencies = [
|
|
581
|
+
"yoke",
|
|
582
|
+
"zerofrom",
|
|
583
|
+
"zerovec-derive",
|
|
584
|
+
]
|
|
585
|
+
|
|
586
|
+
[[package]]
|
|
587
|
+
name = "zerovec-derive"
|
|
588
|
+
version = "0.11.7"
|
|
589
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
590
|
+
checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
|
|
591
|
+
dependencies = [
|
|
592
|
+
"proc-macro2",
|
|
593
|
+
"quote",
|
|
594
|
+
"syn 3.0.9",
|
|
595
|
+
]
|
|
596
|
+
|
|
597
|
+
[[package]]
|
|
598
|
+
name = "zmij"
|
|
599
|
+
version = "1.0.23"
|
|
600
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
601
|
+
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
602
|
+
|
|
603
|
+
[[package]]
|
|
604
|
+
name = "zopy"
|
|
605
|
+
version = "0.1.0"
|
|
606
|
+
dependencies = [
|
|
607
|
+
"base64",
|
|
608
|
+
"fancy-regex",
|
|
609
|
+
"pyo3",
|
|
610
|
+
"pyo3-build-config",
|
|
611
|
+
"regex",
|
|
612
|
+
"serde_json",
|
|
613
|
+
"unicode-normalization",
|
|
614
|
+
"url",
|
|
615
|
+
]
|
zopy-0.1.0/Cargo.toml
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Cargo workspace. The Rust extension crate lives next to its pyproject.toml in
|
|
2
|
+
# packages/zopy, so that directory is both a uv and a Cargo workspace member.
|
|
3
|
+
[workspace]
|
|
4
|
+
resolver = "2"
|
|
5
|
+
members = ["packages/zopy"]
|
|
6
|
+
|
|
7
|
+
[workspace.package]
|
|
8
|
+
version = "0.1.0"
|
|
9
|
+
edition = "2021"
|
|
10
|
+
rust-version = "1.80"
|
|
11
|
+
license = "MIT"
|
|
12
|
+
repository = "https://github.com/nakita628/zopy"
|
|
13
|
+
|
|
14
|
+
[workspace.dependencies]
|
|
15
|
+
pyo3 = "0.25"
|
|
16
|
+
pyo3-build-config = { version = "0.25", features = ["resolve-config"] }
|
|
17
|
+
regex = "1.11"
|
|
18
|
+
fancy-regex = "0.14"
|
|
19
|
+
url = "2.5"
|
|
20
|
+
base64 = "0.22"
|
|
21
|
+
serde_json = "1.0"
|
|
22
|
+
unicode-normalization = "0.1"
|
|
23
|
+
|
|
24
|
+
[workspace.lints.rust]
|
|
25
|
+
unsafe_code = "forbid"
|
|
26
|
+
missing_debug_implementations = "warn"
|
|
27
|
+
unused_qualifications = "warn"
|
|
28
|
+
|
|
29
|
+
[workspace.lints.clippy]
|
|
30
|
+
all = { level = "warn", priority = -1 }
|
|
31
|
+
pedantic = { level = "warn", priority = -1 }
|
|
32
|
+
dbg_macro = "warn"
|
|
33
|
+
todo = "warn"
|
|
34
|
+
print_stdout = "warn"
|
|
35
|
+
module_name_repetitions = "allow"
|
|
36
|
+
must_use_candidate = "allow"
|
|
37
|
+
missing_errors_doc = "allow"
|
|
38
|
+
missing_panics_doc = "allow"
|
|
39
|
+
cast_possible_truncation = "allow"
|
|
40
|
+
cast_precision_loss = "allow"
|
|
41
|
+
cast_sign_loss = "allow"
|
|
42
|
+
too_many_lines = "allow"
|
|
43
|
+
struct_excessive_bools = "allow"
|
|
44
|
+
|
|
45
|
+
[profile.release]
|
|
46
|
+
lto = "fat"
|
|
47
|
+
codegen-units = 1
|
|
48
|
+
opt-level = 3
|
zopy-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 - present, zopy Contributors
|
|
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.
|