bencode-rs 0.1.0__cp314-cp314t-win_amd64.whl

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.
bencode_rs/__init__.py ADDED
@@ -0,0 +1,15 @@
1
+ from ._bencode import (
2
+ BencodeDecodeError,
3
+ BencodeEncodeError,
4
+ bdecode,
5
+ bdecode_relax,
6
+ bencode,
7
+ )
8
+
9
+ __all__ = [
10
+ "BencodeDecodeError",
11
+ "BencodeEncodeError",
12
+ "bdecode",
13
+ "bdecode_relax",
14
+ "bencode",
15
+ ]
@@ -0,0 +1,8 @@
1
+ from typing import Any
2
+
3
+ def bencode(v: Any, /) -> bytes: ...
4
+ def bdecode(b: bytes, /) -> Any: ...
5
+ def bdecode_relax(b: bytes, /) -> Any: ...
6
+
7
+ class BencodeEncodeError(Exception): ...
8
+ class BencodeDecodeError(Exception): ...
Binary file
bencode_rs/py.typed ADDED
File without changes
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.4
2
+ Name: bencode-rs
3
+ Version: 0.1.0
4
+ Classifier: Development Status :: 2 - Pre-Alpha
5
+ Classifier: License :: OSI Approved :: MIT License
6
+ Classifier: Programming Language :: Rust
7
+ Classifier: Programming Language :: Python
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3 :: Only
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Classifier: Programming Language :: Python :: Implementation :: CPython
16
+ License-File: LICENSE
17
+ Summary: a bencode parser build with pyo3
18
+ Keywords: bittorrent,bencode,p2p
19
+ Requires-Python: >=3.10
20
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
21
+ Project-URL: Homepage, https://github.com/trim21/bencode-rs
22
+
23
+ # A bencode serialize/deserialize library written in Rust with pyo3
24
+
25
+ ## install
26
+
27
+ ```shell
28
+ pip install bencode-rs
29
+ ```
30
+
31
+ ## basic usage
32
+
33
+ ```python
34
+ import bencode_rs
35
+
36
+ assert bencode_rs.bdecode(b"d4:spaml1:a1:bee") == {b"spam": [b"a", b"b"]}
37
+
38
+ assert bencode_rs.bencode({'hello': 'world'}) == b'd5:hello5:worlde'
39
+ ```
40
+
41
+ ## Notice
42
+
43
+ ### Decoding
44
+
45
+ | bencode type | python type |
46
+ | :----------: | :---------: |
47
+ | integer | `int` |
48
+ | string | `bytes` |
49
+ | array | `list` |
50
+ | dictionary | `dict` |
51
+
52
+ bencode has no string type, only bytes.
53
+ so we decode bencode bytes to python `bytes`, since it may not be a utf-8 string.
54
+
55
+ ### Encoding
56
+
57
+ | python type | bencode type |
58
+ | :-------------------------------: | :----------: |
59
+ | `bool` | integer 0/1 |
60
+ | `int`, `enum.IntEnum` | integer |
61
+ | `str`, `enum.StrEnum` | string |
62
+ | `bytes`, `bytearray`,`memoryview` | string |
63
+ | `list`, `tuple`, `NamedTuple` | array |
64
+ | `dict`, `OrderedDict` | dictionary |
65
+ | dataclasses | dictionary |
66
+
67
+ Also, we encode python `True` as int `1` and `False` as int 0.
68
+
69
+ ### Relaxed decoding
70
+
71
+ `bdecode` rejects dict keys that are not sorted or that are duplicated, as the spec requires.
72
+ Some trackers do not follow that rule, so `bdecode_relax` accepts such dicts:
73
+
74
+ ```python
75
+ import bencode_rs
76
+
77
+ # `complete` is not sorted after `peers`
78
+ bencode_rs.bdecode_relax(b"d5:peersi1e8:completei0ee") == {
79
+ b"peers": 1,
80
+ b"complete": 0,
81
+ }
82
+ # the last duplicated key wins
83
+ bencode_rs.bdecode_relax(b"d1:ai1e1:ai2ee") == {b"a": 2}
84
+ ```
85
+
86
+ Everything else is still validated, `bdecode_relax` only relaxes dict key ordering and uniqueness.
87
+ Don't use it to parse torrent files, duplicated keys make the info hash unstable.
88
+
@@ -0,0 +1,9 @@
1
+ bencode_rs/__init__.py,sha256=aDMKlvTRL0FdkdepDkcn28Q-88RMDaDSd6s9LHCDyfU,252
2
+ bencode_rs/__init__.pyi,sha256=Sa7OF5VL2LKvsSfXjJPwCVm07lnVdQfVWnpK6iJf9cg,232
3
+ bencode_rs/_bencode.cp314t-win_amd64.pyd,sha256=IhY5GahFXrEJVHAPdXrK-e2U0zTvTsROQk1MDxEcrNc,280064
4
+ bencode_rs/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ bencode_rs-0.1.0.dist-info/METADATA,sha256=MRGJwiZivdo8UpEm_mhm8b1Ts5pXFSQj-GxV70oQOuc,2825
6
+ bencode_rs-0.1.0.dist-info/WHEEL,sha256=SbTtN_bPP8YfsTf59i2qJSA42xqX1Bq-WO1dJBAAMuI,98
7
+ bencode_rs-0.1.0.dist-info/licenses/LICENSE,sha256=EEoYi1hvWZLRB6rUABEsjEdCJ56eZs_20XL8mJO-SfA,1106
8
+ bencode_rs-0.1.0.dist-info/sboms/bencode.cyclonedx.json,sha256=We6M467C5j1YR6dQT75hteHwfNyTN6HNGhWvvCyNPqE,28085
9
+ bencode_rs-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: cp314-cp314t-win_amd64
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 trim21 <trim21.me@gmail.com>
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.
@@ -0,0 +1,927 @@
1
+ {
2
+ "bomFormat": "CycloneDX",
3
+ "specVersion": "1.5",
4
+ "version": 1,
5
+ "serialNumber": "urn:uuid:5d8807cc-f317-484b-bd68-2e145ba43747",
6
+ "metadata": {
7
+ "timestamp": "2026-11-05T04:55:24.364141500Z",
8
+ "tools": [
9
+ {
10
+ "vendor": "CycloneDX",
11
+ "name": "cargo-cyclonedx",
12
+ "version": "0.5.9"
13
+ }
14
+ ],
15
+ "component": {
16
+ "type": "library",
17
+ "bom-ref": "path+file:///D:/a/bencode-rs/bencode-rs#bencode@0.0.0",
18
+ "name": "bencode",
19
+ "version": "0.0.0",
20
+ "scope": "required",
21
+ "purl": "pkg:cargo/bencode@0.0.0?download_url=file://.",
22
+ "components": [
23
+ {
24
+ "type": "library",
25
+ "bom-ref": "path+file:///D:/a/bencode-rs/bencode-rs#bencode@0.0.0 bin-target-0",
26
+ "name": "bencode",
27
+ "version": "0.0.0",
28
+ "purl": "pkg:cargo/bencode@0.0.0?download_url=file://.#src/lib.rs"
29
+ }
30
+ ]
31
+ },
32
+ "properties": [
33
+ {
34
+ "name": "cdx:rustc:sbom:target:all_targets",
35
+ "value": "true"
36
+ }
37
+ ]
38
+ },
39
+ "components": [
40
+ {
41
+ "type": "library",
42
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#autocfg@1.5.1",
43
+ "author": "Josh Stone <cuviper@gmail.com>",
44
+ "name": "autocfg",
45
+ "version": "1.5.1",
46
+ "description": "Automatic cfg for Rust compiler features",
47
+ "scope": "excluded",
48
+ "hashes": [
49
+ {
50
+ "alg": "SHA-256",
51
+ "content": "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
52
+ }
53
+ ],
54
+ "licenses": [
55
+ {
56
+ "expression": "Apache-2.0 OR MIT"
57
+ }
58
+ ],
59
+ "purl": "pkg:cargo/autocfg@1.5.1",
60
+ "externalReferences": [
61
+ {
62
+ "type": "documentation",
63
+ "url": "https://docs.rs/autocfg/"
64
+ },
65
+ {
66
+ "type": "vcs",
67
+ "url": "https://github.com/cuviper/autocfg"
68
+ }
69
+ ]
70
+ },
71
+ {
72
+ "type": "library",
73
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#bytes@1.12.1",
74
+ "author": "Carl Lerche <me@carllerche.com>, Sean McArthur <sean@seanmonstar.com>",
75
+ "name": "bytes",
76
+ "version": "1.12.1",
77
+ "description": "Types and traits for working with bytes",
78
+ "scope": "required",
79
+ "hashes": [
80
+ {
81
+ "alg": "SHA-256",
82
+ "content": "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
83
+ }
84
+ ],
85
+ "licenses": [
86
+ {
87
+ "expression": "MIT"
88
+ }
89
+ ],
90
+ "purl": "pkg:cargo/bytes@1.12.1",
91
+ "externalReferences": [
92
+ {
93
+ "type": "vcs",
94
+ "url": "https://github.com/tokio-rs/bytes"
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "type": "library",
100
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0",
101
+ "name": "heck",
102
+ "version": "0.5.0",
103
+ "description": "heck is a case conversion library.",
104
+ "scope": "required",
105
+ "hashes": [
106
+ {
107
+ "alg": "SHA-256",
108
+ "content": "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
109
+ }
110
+ ],
111
+ "licenses": [
112
+ {
113
+ "expression": "MIT OR Apache-2.0"
114
+ }
115
+ ],
116
+ "purl": "pkg:cargo/heck@0.5.0",
117
+ "externalReferences": [
118
+ {
119
+ "type": "vcs",
120
+ "url": "https://github.com/withoutboats/heck"
121
+ }
122
+ ]
123
+ },
124
+ {
125
+ "type": "library",
126
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
127
+ "name": "libc",
128
+ "version": "0.2.191",
129
+ "description": "Raw FFI bindings to platform libraries like libc.",
130
+ "scope": "required",
131
+ "hashes": [
132
+ {
133
+ "alg": "SHA-256",
134
+ "content": "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
135
+ }
136
+ ],
137
+ "licenses": [
138
+ {
139
+ "expression": "MIT OR Apache-2.0"
140
+ }
141
+ ],
142
+ "purl": "pkg:cargo/libc@0.2.191",
143
+ "externalReferences": [
144
+ {
145
+ "type": "vcs",
146
+ "url": "https://github.com/rust-lang/libc"
147
+ }
148
+ ]
149
+ },
150
+ {
151
+ "type": "library",
152
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-bigint@0.4.8",
153
+ "author": "The Rust Project Developers",
154
+ "name": "num-bigint",
155
+ "version": "0.4.8",
156
+ "description": "Big integer implementation for Rust",
157
+ "scope": "required",
158
+ "hashes": [
159
+ {
160
+ "alg": "SHA-256",
161
+ "content": "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
162
+ }
163
+ ],
164
+ "licenses": [
165
+ {
166
+ "expression": "MIT OR Apache-2.0"
167
+ }
168
+ ],
169
+ "purl": "pkg:cargo/num-bigint@0.4.8",
170
+ "externalReferences": [
171
+ {
172
+ "type": "documentation",
173
+ "url": "https://docs.rs/num-bigint"
174
+ },
175
+ {
176
+ "type": "website",
177
+ "url": "https://github.com/rust-num/num-bigint"
178
+ },
179
+ {
180
+ "type": "vcs",
181
+ "url": "https://github.com/rust-num/num-bigint"
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "type": "library",
187
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-complex@0.4.6",
188
+ "author": "The Rust Project Developers",
189
+ "name": "num-complex",
190
+ "version": "0.4.6",
191
+ "description": "Complex numbers implementation for Rust",
192
+ "scope": "required",
193
+ "hashes": [
194
+ {
195
+ "alg": "SHA-256",
196
+ "content": "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
197
+ }
198
+ ],
199
+ "licenses": [
200
+ {
201
+ "expression": "MIT OR Apache-2.0"
202
+ }
203
+ ],
204
+ "purl": "pkg:cargo/num-complex@0.4.6",
205
+ "externalReferences": [
206
+ {
207
+ "type": "documentation",
208
+ "url": "https://docs.rs/num-complex"
209
+ },
210
+ {
211
+ "type": "website",
212
+ "url": "https://github.com/rust-num/num-complex"
213
+ },
214
+ {
215
+ "type": "vcs",
216
+ "url": "https://github.com/rust-num/num-complex"
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "type": "library",
222
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-integer@0.1.47",
223
+ "author": "The Rust Project Developers",
224
+ "name": "num-integer",
225
+ "version": "0.1.47",
226
+ "description": "Integer traits and functions",
227
+ "scope": "required",
228
+ "hashes": [
229
+ {
230
+ "alg": "SHA-256",
231
+ "content": "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
232
+ }
233
+ ],
234
+ "licenses": [
235
+ {
236
+ "expression": "MIT OR Apache-2.0"
237
+ }
238
+ ],
239
+ "purl": "pkg:cargo/num-integer@0.1.47",
240
+ "externalReferences": [
241
+ {
242
+ "type": "documentation",
243
+ "url": "https://docs.rs/num-integer"
244
+ },
245
+ {
246
+ "type": "website",
247
+ "url": "https://github.com/rust-num/num-integer"
248
+ },
249
+ {
250
+ "type": "vcs",
251
+ "url": "https://github.com/rust-num/num-integer"
252
+ }
253
+ ]
254
+ },
255
+ {
256
+ "type": "library",
257
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-iter@0.1.46",
258
+ "author": "The Rust Project Developers",
259
+ "name": "num-iter",
260
+ "version": "0.1.46",
261
+ "description": "External iterators for generic mathematics",
262
+ "scope": "required",
263
+ "hashes": [
264
+ {
265
+ "alg": "SHA-256",
266
+ "content": "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b"
267
+ }
268
+ ],
269
+ "licenses": [
270
+ {
271
+ "expression": "MIT OR Apache-2.0"
272
+ }
273
+ ],
274
+ "purl": "pkg:cargo/num-iter@0.1.46",
275
+ "externalReferences": [
276
+ {
277
+ "type": "documentation",
278
+ "url": "https://docs.rs/num-iter"
279
+ },
280
+ {
281
+ "type": "website",
282
+ "url": "https://github.com/rust-num/num-iter"
283
+ },
284
+ {
285
+ "type": "vcs",
286
+ "url": "https://github.com/rust-num/num-iter"
287
+ }
288
+ ]
289
+ },
290
+ {
291
+ "type": "library",
292
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-rational@0.4.2",
293
+ "author": "The Rust Project Developers",
294
+ "name": "num-rational",
295
+ "version": "0.4.2",
296
+ "description": "Rational numbers implementation for Rust",
297
+ "scope": "required",
298
+ "hashes": [
299
+ {
300
+ "alg": "SHA-256",
301
+ "content": "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
302
+ }
303
+ ],
304
+ "licenses": [
305
+ {
306
+ "expression": "MIT OR Apache-2.0"
307
+ }
308
+ ],
309
+ "purl": "pkg:cargo/num-rational@0.4.2",
310
+ "externalReferences": [
311
+ {
312
+ "type": "documentation",
313
+ "url": "https://docs.rs/num-rational"
314
+ },
315
+ {
316
+ "type": "website",
317
+ "url": "https://github.com/rust-num/num-rational"
318
+ },
319
+ {
320
+ "type": "vcs",
321
+ "url": "https://github.com/rust-num/num-rational"
322
+ }
323
+ ]
324
+ },
325
+ {
326
+ "type": "library",
327
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19",
328
+ "author": "The Rust Project Developers",
329
+ "name": "num-traits",
330
+ "version": "0.2.19",
331
+ "description": "Numeric traits for generic mathematics",
332
+ "scope": "required",
333
+ "hashes": [
334
+ {
335
+ "alg": "SHA-256",
336
+ "content": "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
337
+ }
338
+ ],
339
+ "licenses": [
340
+ {
341
+ "expression": "MIT OR Apache-2.0"
342
+ }
343
+ ],
344
+ "purl": "pkg:cargo/num-traits@0.2.19",
345
+ "externalReferences": [
346
+ {
347
+ "type": "documentation",
348
+ "url": "https://docs.rs/num-traits"
349
+ },
350
+ {
351
+ "type": "website",
352
+ "url": "https://github.com/rust-num/num-traits"
353
+ },
354
+ {
355
+ "type": "vcs",
356
+ "url": "https://github.com/rust-num/num-traits"
357
+ }
358
+ ]
359
+ },
360
+ {
361
+ "type": "library",
362
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#num@0.4.3",
363
+ "author": "The Rust Project Developers",
364
+ "name": "num",
365
+ "version": "0.4.3",
366
+ "description": "A collection of numeric types and traits for Rust, including bigint, complex, rational, range iterators, generic integers, and more! ",
367
+ "scope": "required",
368
+ "hashes": [
369
+ {
370
+ "alg": "SHA-256",
371
+ "content": "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
372
+ }
373
+ ],
374
+ "licenses": [
375
+ {
376
+ "expression": "MIT OR Apache-2.0"
377
+ }
378
+ ],
379
+ "purl": "pkg:cargo/num@0.4.3",
380
+ "externalReferences": [
381
+ {
382
+ "type": "documentation",
383
+ "url": "https://docs.rs/num"
384
+ },
385
+ {
386
+ "type": "website",
387
+ "url": "https://github.com/rust-num/num"
388
+ },
389
+ {
390
+ "type": "vcs",
391
+ "url": "https://github.com/rust-num/num"
392
+ }
393
+ ]
394
+ },
395
+ {
396
+ "type": "library",
397
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4",
398
+ "author": "Aleksey Kladov <aleksey.kladov@gmail.com>",
399
+ "name": "once_cell",
400
+ "version": "1.21.4",
401
+ "description": "Single assignment cells and lazy values.",
402
+ "scope": "required",
403
+ "hashes": [
404
+ {
405
+ "alg": "SHA-256",
406
+ "content": "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
407
+ }
408
+ ],
409
+ "licenses": [
410
+ {
411
+ "expression": "MIT OR Apache-2.0"
412
+ }
413
+ ],
414
+ "purl": "pkg:cargo/once_cell@1.21.4",
415
+ "externalReferences": [
416
+ {
417
+ "type": "documentation",
418
+ "url": "https://docs.rs/once_cell"
419
+ },
420
+ {
421
+ "type": "vcs",
422
+ "url": "https://github.com/matklad/once_cell"
423
+ }
424
+ ]
425
+ },
426
+ {
427
+ "type": "library",
428
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
429
+ "author": "David Tolnay <dtolnay@gmail.com>, Alex Crichton <alex@alexcrichton.com>",
430
+ "name": "proc-macro2",
431
+ "version": "1.0.107",
432
+ "description": "A substitute implementation of the compiler's `proc_macro` API to decouple token-based libraries from the procedural macro use case.",
433
+ "scope": "required",
434
+ "hashes": [
435
+ {
436
+ "alg": "SHA-256",
437
+ "content": "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
438
+ }
439
+ ],
440
+ "licenses": [
441
+ {
442
+ "expression": "MIT OR Apache-2.0"
443
+ }
444
+ ],
445
+ "purl": "pkg:cargo/proc-macro2@1.0.107",
446
+ "externalReferences": [
447
+ {
448
+ "type": "documentation",
449
+ "url": "https://docs.rs/proc-macro2"
450
+ },
451
+ {
452
+ "type": "vcs",
453
+ "url": "https://github.com/dtolnay/proc-macro2"
454
+ }
455
+ ]
456
+ },
457
+ {
458
+ "type": "library",
459
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
460
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
461
+ "name": "pyo3-build-config",
462
+ "version": "0.30.1",
463
+ "description": "Build configuration for the PyO3 ecosystem",
464
+ "scope": "excluded",
465
+ "hashes": [
466
+ {
467
+ "alg": "SHA-256",
468
+ "content": "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700"
469
+ }
470
+ ],
471
+ "licenses": [
472
+ {
473
+ "expression": "MIT OR Apache-2.0"
474
+ }
475
+ ],
476
+ "purl": "pkg:cargo/pyo3-build-config@0.30.1",
477
+ "externalReferences": [
478
+ {
479
+ "type": "website",
480
+ "url": "https://pyo3.rs/"
481
+ },
482
+ {
483
+ "type": "vcs",
484
+ "url": "https://github.com/pyo3/pyo3"
485
+ }
486
+ ]
487
+ },
488
+ {
489
+ "type": "library",
490
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
491
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
492
+ "name": "pyo3-ffi",
493
+ "version": "0.30.1",
494
+ "description": "Python-API bindings for the PyO3 ecosystem",
495
+ "scope": "required",
496
+ "hashes": [
497
+ {
498
+ "alg": "SHA-256",
499
+ "content": "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4"
500
+ }
501
+ ],
502
+ "licenses": [
503
+ {
504
+ "expression": "MIT OR Apache-2.0"
505
+ }
506
+ ],
507
+ "purl": "pkg:cargo/pyo3-ffi@0.30.1",
508
+ "externalReferences": [
509
+ {
510
+ "type": "website",
511
+ "url": "https://pyo3.rs/"
512
+ },
513
+ {
514
+ "type": "other",
515
+ "url": "python"
516
+ },
517
+ {
518
+ "type": "vcs",
519
+ "url": "https://github.com/pyo3/pyo3"
520
+ }
521
+ ]
522
+ },
523
+ {
524
+ "type": "library",
525
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
526
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
527
+ "name": "pyo3-macros-backend",
528
+ "version": "0.30.1",
529
+ "description": "Code generation for PyO3 package",
530
+ "scope": "required",
531
+ "hashes": [
532
+ {
533
+ "alg": "SHA-256",
534
+ "content": "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b"
535
+ }
536
+ ],
537
+ "licenses": [
538
+ {
539
+ "expression": "MIT OR Apache-2.0"
540
+ }
541
+ ],
542
+ "purl": "pkg:cargo/pyo3-macros-backend@0.30.1",
543
+ "externalReferences": [
544
+ {
545
+ "type": "website",
546
+ "url": "https://pyo3.rs/"
547
+ },
548
+ {
549
+ "type": "vcs",
550
+ "url": "https://github.com/pyo3/pyo3"
551
+ }
552
+ ]
553
+ },
554
+ {
555
+ "type": "library",
556
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1",
557
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
558
+ "name": "pyo3-macros",
559
+ "version": "0.30.1",
560
+ "description": "Proc macros for PyO3 package",
561
+ "scope": "required",
562
+ "hashes": [
563
+ {
564
+ "alg": "SHA-256",
565
+ "content": "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60"
566
+ }
567
+ ],
568
+ "licenses": [
569
+ {
570
+ "expression": "MIT OR Apache-2.0"
571
+ }
572
+ ],
573
+ "purl": "pkg:cargo/pyo3-macros@0.30.1",
574
+ "externalReferences": [
575
+ {
576
+ "type": "website",
577
+ "url": "https://pyo3.rs/"
578
+ },
579
+ {
580
+ "type": "vcs",
581
+ "url": "https://github.com/pyo3/pyo3"
582
+ }
583
+ ]
584
+ },
585
+ {
586
+ "type": "library",
587
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
588
+ "author": "PyO3 Project and Contributors <https://github.com/PyO3>",
589
+ "name": "pyo3",
590
+ "version": "0.30.1",
591
+ "description": "Bindings to Python interpreter",
592
+ "scope": "required",
593
+ "hashes": [
594
+ {
595
+ "alg": "SHA-256",
596
+ "content": "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4"
597
+ }
598
+ ],
599
+ "licenses": [
600
+ {
601
+ "expression": "MIT OR Apache-2.0"
602
+ }
603
+ ],
604
+ "purl": "pkg:cargo/pyo3@0.30.1",
605
+ "externalReferences": [
606
+ {
607
+ "type": "documentation",
608
+ "url": "https://docs.rs/crate/pyo3/"
609
+ },
610
+ {
611
+ "type": "website",
612
+ "url": "https://pyo3.rs/"
613
+ },
614
+ {
615
+ "type": "other",
616
+ "url": "pyo3-python"
617
+ },
618
+ {
619
+ "type": "vcs",
620
+ "url": "https://github.com/pyo3/pyo3"
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "type": "library",
626
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
627
+ "author": "David Tolnay <dtolnay@gmail.com>",
628
+ "name": "quote",
629
+ "version": "1.0.47",
630
+ "description": "Quasi-quoting macro quote!(...)",
631
+ "scope": "required",
632
+ "hashes": [
633
+ {
634
+ "alg": "SHA-256",
635
+ "content": "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
636
+ }
637
+ ],
638
+ "licenses": [
639
+ {
640
+ "expression": "MIT OR Apache-2.0"
641
+ }
642
+ ],
643
+ "purl": "pkg:cargo/quote@1.0.47",
644
+ "externalReferences": [
645
+ {
646
+ "type": "documentation",
647
+ "url": "https://docs.rs/quote/"
648
+ },
649
+ {
650
+ "type": "vcs",
651
+ "url": "https://github.com/dtolnay/quote"
652
+ }
653
+ ]
654
+ },
655
+ {
656
+ "type": "library",
657
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#smallvec@1.16.4",
658
+ "author": "The Servo Project Developers",
659
+ "name": "smallvec",
660
+ "version": "1.16.4",
661
+ "description": "'Small vector' optimization: store up to a small number of items on the stack",
662
+ "scope": "required",
663
+ "hashes": [
664
+ {
665
+ "alg": "SHA-256",
666
+ "content": "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8"
667
+ }
668
+ ],
669
+ "licenses": [
670
+ {
671
+ "expression": "MIT OR Apache-2.0"
672
+ }
673
+ ],
674
+ "purl": "pkg:cargo/smallvec@1.16.4",
675
+ "externalReferences": [
676
+ {
677
+ "type": "documentation",
678
+ "url": "https://docs.rs/smallvec/"
679
+ },
680
+ {
681
+ "type": "vcs",
682
+ "url": "https://github.com/servo/rust-smallvec"
683
+ }
684
+ ]
685
+ },
686
+ {
687
+ "type": "library",
688
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.9",
689
+ "author": "David Tolnay <dtolnay@gmail.com>",
690
+ "name": "syn",
691
+ "version": "3.0.9",
692
+ "description": "Parser for Rust source code",
693
+ "scope": "required",
694
+ "hashes": [
695
+ {
696
+ "alg": "SHA-256",
697
+ "content": "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
698
+ }
699
+ ],
700
+ "licenses": [
701
+ {
702
+ "expression": "MIT OR Apache-2.0"
703
+ }
704
+ ],
705
+ "purl": "pkg:cargo/syn@3.0.9",
706
+ "externalReferences": [
707
+ {
708
+ "type": "documentation",
709
+ "url": "https://docs.rs/syn"
710
+ },
711
+ {
712
+ "type": "vcs",
713
+ "url": "https://github.com/dtolnay/syn"
714
+ }
715
+ ]
716
+ },
717
+ {
718
+ "type": "library",
719
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.5",
720
+ "author": "Dan Gohman <sunfish@mozilla.com>",
721
+ "name": "target-lexicon",
722
+ "version": "0.13.5",
723
+ "description": "LLVM target triple types",
724
+ "scope": "excluded",
725
+ "hashes": [
726
+ {
727
+ "alg": "SHA-256",
728
+ "content": "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
729
+ }
730
+ ],
731
+ "licenses": [
732
+ {
733
+ "expression": "Apache-2.0 WITH LLVM-exception"
734
+ }
735
+ ],
736
+ "purl": "pkg:cargo/target-lexicon@0.13.5",
737
+ "externalReferences": [
738
+ {
739
+ "type": "documentation",
740
+ "url": "https://docs.rs/target-lexicon/"
741
+ },
742
+ {
743
+ "type": "vcs",
744
+ "url": "https://github.com/bytecodealliance/target-lexicon"
745
+ }
746
+ ]
747
+ },
748
+ {
749
+ "type": "library",
750
+ "bom-ref": "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27",
751
+ "author": "David Tolnay <dtolnay@gmail.com>",
752
+ "name": "unicode-ident",
753
+ "version": "1.0.27",
754
+ "description": "Determine whether characters have the XID_Start or XID_Continue properties according to Unicode Standard Annex #31",
755
+ "scope": "required",
756
+ "hashes": [
757
+ {
758
+ "alg": "SHA-256",
759
+ "content": "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
760
+ }
761
+ ],
762
+ "licenses": [
763
+ {
764
+ "expression": "(MIT OR Apache-2.0) AND Unicode-3.0"
765
+ }
766
+ ],
767
+ "purl": "pkg:cargo/unicode-ident@1.0.27",
768
+ "externalReferences": [
769
+ {
770
+ "type": "documentation",
771
+ "url": "https://docs.rs/unicode-ident"
772
+ },
773
+ {
774
+ "type": "vcs",
775
+ "url": "https://github.com/dtolnay/unicode-ident"
776
+ }
777
+ ]
778
+ }
779
+ ],
780
+ "dependencies": [
781
+ {
782
+ "ref": "path+file:///D:/a/bencode-rs/bencode-rs#bencode@0.0.0",
783
+ "dependsOn": [
784
+ "registry+https://github.com/rust-lang/crates.io-index#bytes@1.12.1",
785
+ "registry+https://github.com/rust-lang/crates.io-index#num@0.4.3",
786
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
787
+ "registry+https://github.com/rust-lang/crates.io-index#smallvec@1.16.4"
788
+ ]
789
+ },
790
+ {
791
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#autocfg@1.5.1"
792
+ },
793
+ {
794
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#bytes@1.12.1"
795
+ },
796
+ {
797
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0"
798
+ },
799
+ {
800
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191"
801
+ },
802
+ {
803
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#num-bigint@0.4.8",
804
+ "dependsOn": [
805
+ "registry+https://github.com/rust-lang/crates.io-index#num-integer@0.1.47",
806
+ "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19"
807
+ ]
808
+ },
809
+ {
810
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#num-complex@0.4.6",
811
+ "dependsOn": [
812
+ "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19"
813
+ ]
814
+ },
815
+ {
816
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#num-integer@0.1.47",
817
+ "dependsOn": [
818
+ "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19"
819
+ ]
820
+ },
821
+ {
822
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#num-iter@0.1.46",
823
+ "dependsOn": [
824
+ "registry+https://github.com/rust-lang/crates.io-index#num-integer@0.1.47",
825
+ "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19"
826
+ ]
827
+ },
828
+ {
829
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#num-rational@0.4.2",
830
+ "dependsOn": [
831
+ "registry+https://github.com/rust-lang/crates.io-index#num-bigint@0.4.8",
832
+ "registry+https://github.com/rust-lang/crates.io-index#num-integer@0.1.47",
833
+ "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19"
834
+ ]
835
+ },
836
+ {
837
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19",
838
+ "dependsOn": [
839
+ "registry+https://github.com/rust-lang/crates.io-index#autocfg@1.5.1"
840
+ ]
841
+ },
842
+ {
843
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#num@0.4.3",
844
+ "dependsOn": [
845
+ "registry+https://github.com/rust-lang/crates.io-index#num-bigint@0.4.8",
846
+ "registry+https://github.com/rust-lang/crates.io-index#num-complex@0.4.6",
847
+ "registry+https://github.com/rust-lang/crates.io-index#num-integer@0.1.47",
848
+ "registry+https://github.com/rust-lang/crates.io-index#num-iter@0.1.46",
849
+ "registry+https://github.com/rust-lang/crates.io-index#num-rational@0.4.2",
850
+ "registry+https://github.com/rust-lang/crates.io-index#num-traits@0.2.19"
851
+ ]
852
+ },
853
+ {
854
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4"
855
+ },
856
+ {
857
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
858
+ "dependsOn": [
859
+ "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
860
+ ]
861
+ },
862
+ {
863
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
864
+ "dependsOn": [
865
+ "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.5"
866
+ ]
867
+ },
868
+ {
869
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
870
+ "dependsOn": [
871
+ "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
872
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1"
873
+ ]
874
+ },
875
+ {
876
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
877
+ "dependsOn": [
878
+ "registry+https://github.com/rust-lang/crates.io-index#heck@0.5.0",
879
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
880
+ "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
881
+ "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.9"
882
+ ]
883
+ },
884
+ {
885
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1",
886
+ "dependsOn": [
887
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
888
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros-backend@0.30.1",
889
+ "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
890
+ "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.9"
891
+ ]
892
+ },
893
+ {
894
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#pyo3@0.30.1",
895
+ "dependsOn": [
896
+ "registry+https://github.com/rust-lang/crates.io-index#libc@0.2.191",
897
+ "registry+https://github.com/rust-lang/crates.io-index#once_cell@1.21.4",
898
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-build-config@0.30.1",
899
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-ffi@0.30.1",
900
+ "registry+https://github.com/rust-lang/crates.io-index#pyo3-macros@0.30.1"
901
+ ]
902
+ },
903
+ {
904
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
905
+ "dependsOn": [
906
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107"
907
+ ]
908
+ },
909
+ {
910
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#smallvec@1.16.4"
911
+ },
912
+ {
913
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#syn@3.0.9",
914
+ "dependsOn": [
915
+ "registry+https://github.com/rust-lang/crates.io-index#proc-macro2@1.0.107",
916
+ "registry+https://github.com/rust-lang/crates.io-index#quote@1.0.47",
917
+ "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
918
+ ]
919
+ },
920
+ {
921
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#target-lexicon@0.13.5"
922
+ },
923
+ {
924
+ "ref": "registry+https://github.com/rust-lang/crates.io-index#unicode-ident@1.0.27"
925
+ }
926
+ ]
927
+ }