bellbook 0.3.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.
- bellbook-0.3.0/.gitignore +7 -0
- bellbook-0.3.0/Cargo.lock +567 -0
- bellbook-0.3.0/Cargo.toml +44 -0
- bellbook-0.3.0/PKG-INFO +150 -0
- bellbook-0.3.0/README.md +128 -0
- bellbook-0.3.0/pyproject.toml +33 -0
- bellbook-0.3.0/src/lib.rs +800 -0
- bellbook-0.3.0/tests/test_read.py +71 -0
- bellbook-0.3.0/tests/test_validate.py +64 -0
- bellbook-0.3.0/tests/test_writer.py +267 -0
|
@@ -0,0 +1,567 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 3
|
|
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 = "base64ct"
|
|
13
|
+
version = "1.8.3"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "bellbook"
|
|
19
|
+
version = "0.3.0"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "dfde4f3518d497a90cbc3fef706b6269c60536fffa743d27482d785452ae9bd6"
|
|
22
|
+
dependencies = [
|
|
23
|
+
"ed25519-dalek",
|
|
24
|
+
"fs4",
|
|
25
|
+
"ryu-js",
|
|
26
|
+
"serde",
|
|
27
|
+
"serde_json",
|
|
28
|
+
"sha2",
|
|
29
|
+
]
|
|
30
|
+
|
|
31
|
+
[[package]]
|
|
32
|
+
name = "bellbook-python"
|
|
33
|
+
version = "0.3.0"
|
|
34
|
+
dependencies = [
|
|
35
|
+
"bellbook",
|
|
36
|
+
"pyo3",
|
|
37
|
+
"serde",
|
|
38
|
+
"serde_json",
|
|
39
|
+
]
|
|
40
|
+
|
|
41
|
+
[[package]]
|
|
42
|
+
name = "bitflags"
|
|
43
|
+
version = "2.13.1"
|
|
44
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
45
|
+
checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
|
|
46
|
+
|
|
47
|
+
[[package]]
|
|
48
|
+
name = "block-buffer"
|
|
49
|
+
version = "0.10.4"
|
|
50
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
51
|
+
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
|
52
|
+
dependencies = [
|
|
53
|
+
"generic-array",
|
|
54
|
+
]
|
|
55
|
+
|
|
56
|
+
[[package]]
|
|
57
|
+
name = "cfg-if"
|
|
58
|
+
version = "1.0.4"
|
|
59
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
60
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
61
|
+
|
|
62
|
+
[[package]]
|
|
63
|
+
name = "const-oid"
|
|
64
|
+
version = "0.9.6"
|
|
65
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
66
|
+
checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
|
|
67
|
+
|
|
68
|
+
[[package]]
|
|
69
|
+
name = "cpufeatures"
|
|
70
|
+
version = "0.2.17"
|
|
71
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
72
|
+
checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
|
|
73
|
+
dependencies = [
|
|
74
|
+
"libc",
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[[package]]
|
|
78
|
+
name = "crypto-common"
|
|
79
|
+
version = "0.1.7"
|
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
81
|
+
checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
|
|
82
|
+
dependencies = [
|
|
83
|
+
"generic-array",
|
|
84
|
+
"typenum",
|
|
85
|
+
]
|
|
86
|
+
|
|
87
|
+
[[package]]
|
|
88
|
+
name = "curve25519-dalek"
|
|
89
|
+
version = "4.1.3"
|
|
90
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
91
|
+
checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
|
|
92
|
+
dependencies = [
|
|
93
|
+
"cfg-if",
|
|
94
|
+
"cpufeatures",
|
|
95
|
+
"curve25519-dalek-derive",
|
|
96
|
+
"digest",
|
|
97
|
+
"fiat-crypto",
|
|
98
|
+
"rustc_version",
|
|
99
|
+
"subtle",
|
|
100
|
+
"zeroize",
|
|
101
|
+
]
|
|
102
|
+
|
|
103
|
+
[[package]]
|
|
104
|
+
name = "curve25519-dalek-derive"
|
|
105
|
+
version = "0.1.1"
|
|
106
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
107
|
+
checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
|
|
108
|
+
dependencies = [
|
|
109
|
+
"proc-macro2",
|
|
110
|
+
"quote",
|
|
111
|
+
"syn 2.0.119",
|
|
112
|
+
]
|
|
113
|
+
|
|
114
|
+
[[package]]
|
|
115
|
+
name = "der"
|
|
116
|
+
version = "0.7.10"
|
|
117
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
118
|
+
checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
|
|
119
|
+
dependencies = [
|
|
120
|
+
"const-oid",
|
|
121
|
+
"zeroize",
|
|
122
|
+
]
|
|
123
|
+
|
|
124
|
+
[[package]]
|
|
125
|
+
name = "digest"
|
|
126
|
+
version = "0.10.7"
|
|
127
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
128
|
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
|
129
|
+
dependencies = [
|
|
130
|
+
"block-buffer",
|
|
131
|
+
"crypto-common",
|
|
132
|
+
]
|
|
133
|
+
|
|
134
|
+
[[package]]
|
|
135
|
+
name = "ed25519"
|
|
136
|
+
version = "2.2.3"
|
|
137
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
+
checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
|
|
139
|
+
dependencies = [
|
|
140
|
+
"pkcs8",
|
|
141
|
+
"signature",
|
|
142
|
+
]
|
|
143
|
+
|
|
144
|
+
[[package]]
|
|
145
|
+
name = "ed25519-dalek"
|
|
146
|
+
version = "2.2.0"
|
|
147
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
148
|
+
checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9"
|
|
149
|
+
dependencies = [
|
|
150
|
+
"curve25519-dalek",
|
|
151
|
+
"ed25519",
|
|
152
|
+
"serde",
|
|
153
|
+
"sha2",
|
|
154
|
+
"subtle",
|
|
155
|
+
"zeroize",
|
|
156
|
+
]
|
|
157
|
+
|
|
158
|
+
[[package]]
|
|
159
|
+
name = "errno"
|
|
160
|
+
version = "0.3.14"
|
|
161
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
162
|
+
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
|
163
|
+
dependencies = [
|
|
164
|
+
"libc",
|
|
165
|
+
"windows-sys",
|
|
166
|
+
]
|
|
167
|
+
|
|
168
|
+
[[package]]
|
|
169
|
+
name = "fiat-crypto"
|
|
170
|
+
version = "0.2.9"
|
|
171
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
172
|
+
checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
|
|
173
|
+
|
|
174
|
+
[[package]]
|
|
175
|
+
name = "fs4"
|
|
176
|
+
version = "1.1.0"
|
|
177
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
178
|
+
checksum = "7e72ed92b67c146290f88e9c89d60ca163ea417a446f61ffd7b72df3e7f1dfd5"
|
|
179
|
+
dependencies = [
|
|
180
|
+
"rustix",
|
|
181
|
+
"windows-sys",
|
|
182
|
+
]
|
|
183
|
+
|
|
184
|
+
[[package]]
|
|
185
|
+
name = "generic-array"
|
|
186
|
+
version = "0.14.7"
|
|
187
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
188
|
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
|
189
|
+
dependencies = [
|
|
190
|
+
"typenum",
|
|
191
|
+
"version_check",
|
|
192
|
+
]
|
|
193
|
+
|
|
194
|
+
[[package]]
|
|
195
|
+
name = "getrandom"
|
|
196
|
+
version = "0.2.17"
|
|
197
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
198
|
+
checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
|
|
199
|
+
dependencies = [
|
|
200
|
+
"cfg-if",
|
|
201
|
+
"libc",
|
|
202
|
+
"wasi",
|
|
203
|
+
]
|
|
204
|
+
|
|
205
|
+
[[package]]
|
|
206
|
+
name = "heck"
|
|
207
|
+
version = "0.5.0"
|
|
208
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
209
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
210
|
+
|
|
211
|
+
[[package]]
|
|
212
|
+
name = "indoc"
|
|
213
|
+
version = "2.0.7"
|
|
214
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
215
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
216
|
+
dependencies = [
|
|
217
|
+
"rustversion",
|
|
218
|
+
]
|
|
219
|
+
|
|
220
|
+
[[package]]
|
|
221
|
+
name = "itoa"
|
|
222
|
+
version = "1.0.18"
|
|
223
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
224
|
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
|
225
|
+
|
|
226
|
+
[[package]]
|
|
227
|
+
name = "libc"
|
|
228
|
+
version = "0.2.189"
|
|
229
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
230
|
+
checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
|
|
231
|
+
|
|
232
|
+
[[package]]
|
|
233
|
+
name = "linux-raw-sys"
|
|
234
|
+
version = "0.12.1"
|
|
235
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
236
|
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
|
237
|
+
|
|
238
|
+
[[package]]
|
|
239
|
+
name = "memchr"
|
|
240
|
+
version = "2.8.3"
|
|
241
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
243
|
+
|
|
244
|
+
[[package]]
|
|
245
|
+
name = "memoffset"
|
|
246
|
+
version = "0.9.1"
|
|
247
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
248
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
249
|
+
dependencies = [
|
|
250
|
+
"autocfg",
|
|
251
|
+
]
|
|
252
|
+
|
|
253
|
+
[[package]]
|
|
254
|
+
name = "once_cell"
|
|
255
|
+
version = "1.21.4"
|
|
256
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
257
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
258
|
+
|
|
259
|
+
[[package]]
|
|
260
|
+
name = "pkcs8"
|
|
261
|
+
version = "0.10.2"
|
|
262
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
263
|
+
checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
|
|
264
|
+
dependencies = [
|
|
265
|
+
"der",
|
|
266
|
+
"spki",
|
|
267
|
+
]
|
|
268
|
+
|
|
269
|
+
[[package]]
|
|
270
|
+
name = "portable-atomic"
|
|
271
|
+
version = "1.15.0"
|
|
272
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
273
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
274
|
+
|
|
275
|
+
[[package]]
|
|
276
|
+
name = "proc-macro2"
|
|
277
|
+
version = "1.0.107"
|
|
278
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
279
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
280
|
+
dependencies = [
|
|
281
|
+
"unicode-ident",
|
|
282
|
+
]
|
|
283
|
+
|
|
284
|
+
[[package]]
|
|
285
|
+
name = "pyo3"
|
|
286
|
+
version = "0.22.6"
|
|
287
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
288
|
+
checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
|
|
289
|
+
dependencies = [
|
|
290
|
+
"cfg-if",
|
|
291
|
+
"indoc",
|
|
292
|
+
"libc",
|
|
293
|
+
"memoffset",
|
|
294
|
+
"once_cell",
|
|
295
|
+
"portable-atomic",
|
|
296
|
+
"pyo3-build-config",
|
|
297
|
+
"pyo3-ffi",
|
|
298
|
+
"pyo3-macros",
|
|
299
|
+
"unindent",
|
|
300
|
+
]
|
|
301
|
+
|
|
302
|
+
[[package]]
|
|
303
|
+
name = "pyo3-build-config"
|
|
304
|
+
version = "0.22.6"
|
|
305
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
306
|
+
checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
|
|
307
|
+
dependencies = [
|
|
308
|
+
"once_cell",
|
|
309
|
+
"target-lexicon",
|
|
310
|
+
]
|
|
311
|
+
|
|
312
|
+
[[package]]
|
|
313
|
+
name = "pyo3-ffi"
|
|
314
|
+
version = "0.22.6"
|
|
315
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
316
|
+
checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
|
|
317
|
+
dependencies = [
|
|
318
|
+
"libc",
|
|
319
|
+
"pyo3-build-config",
|
|
320
|
+
]
|
|
321
|
+
|
|
322
|
+
[[package]]
|
|
323
|
+
name = "pyo3-macros"
|
|
324
|
+
version = "0.22.6"
|
|
325
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
326
|
+
checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
|
|
327
|
+
dependencies = [
|
|
328
|
+
"proc-macro2",
|
|
329
|
+
"pyo3-macros-backend",
|
|
330
|
+
"quote",
|
|
331
|
+
"syn 2.0.119",
|
|
332
|
+
]
|
|
333
|
+
|
|
334
|
+
[[package]]
|
|
335
|
+
name = "pyo3-macros-backend"
|
|
336
|
+
version = "0.22.6"
|
|
337
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
338
|
+
checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
|
|
339
|
+
dependencies = [
|
|
340
|
+
"heck",
|
|
341
|
+
"proc-macro2",
|
|
342
|
+
"pyo3-build-config",
|
|
343
|
+
"quote",
|
|
344
|
+
"syn 2.0.119",
|
|
345
|
+
]
|
|
346
|
+
|
|
347
|
+
[[package]]
|
|
348
|
+
name = "quote"
|
|
349
|
+
version = "1.0.47"
|
|
350
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
351
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
352
|
+
dependencies = [
|
|
353
|
+
"proc-macro2",
|
|
354
|
+
]
|
|
355
|
+
|
|
356
|
+
[[package]]
|
|
357
|
+
name = "rand_core"
|
|
358
|
+
version = "0.6.4"
|
|
359
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
360
|
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
|
361
|
+
dependencies = [
|
|
362
|
+
"getrandom",
|
|
363
|
+
]
|
|
364
|
+
|
|
365
|
+
[[package]]
|
|
366
|
+
name = "rustc_version"
|
|
367
|
+
version = "0.4.1"
|
|
368
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
369
|
+
checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
|
|
370
|
+
dependencies = [
|
|
371
|
+
"semver",
|
|
372
|
+
]
|
|
373
|
+
|
|
374
|
+
[[package]]
|
|
375
|
+
name = "rustix"
|
|
376
|
+
version = "1.1.4"
|
|
377
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
378
|
+
checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
|
|
379
|
+
dependencies = [
|
|
380
|
+
"bitflags",
|
|
381
|
+
"errno",
|
|
382
|
+
"libc",
|
|
383
|
+
"linux-raw-sys",
|
|
384
|
+
"windows-sys",
|
|
385
|
+
]
|
|
386
|
+
|
|
387
|
+
[[package]]
|
|
388
|
+
name = "rustversion"
|
|
389
|
+
version = "1.0.23"
|
|
390
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
391
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
392
|
+
|
|
393
|
+
[[package]]
|
|
394
|
+
name = "ryu-js"
|
|
395
|
+
version = "1.0.3"
|
|
396
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
397
|
+
checksum = "04d056b875a9d2e6cb9a61d127afee9ac5999b9f87bcb32079d1318e505be714"
|
|
398
|
+
|
|
399
|
+
[[package]]
|
|
400
|
+
name = "semver"
|
|
401
|
+
version = "1.0.28"
|
|
402
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
403
|
+
checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
|
|
404
|
+
|
|
405
|
+
[[package]]
|
|
406
|
+
name = "serde"
|
|
407
|
+
version = "1.0.229"
|
|
408
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
409
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
410
|
+
dependencies = [
|
|
411
|
+
"serde_core",
|
|
412
|
+
"serde_derive",
|
|
413
|
+
]
|
|
414
|
+
|
|
415
|
+
[[package]]
|
|
416
|
+
name = "serde_core"
|
|
417
|
+
version = "1.0.229"
|
|
418
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
419
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
420
|
+
dependencies = [
|
|
421
|
+
"serde_derive",
|
|
422
|
+
]
|
|
423
|
+
|
|
424
|
+
[[package]]
|
|
425
|
+
name = "serde_derive"
|
|
426
|
+
version = "1.0.229"
|
|
427
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
428
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
429
|
+
dependencies = [
|
|
430
|
+
"proc-macro2",
|
|
431
|
+
"quote",
|
|
432
|
+
"syn 3.0.3",
|
|
433
|
+
]
|
|
434
|
+
|
|
435
|
+
[[package]]
|
|
436
|
+
name = "serde_json"
|
|
437
|
+
version = "1.0.151"
|
|
438
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
439
|
+
checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
|
|
440
|
+
dependencies = [
|
|
441
|
+
"itoa",
|
|
442
|
+
"memchr",
|
|
443
|
+
"serde",
|
|
444
|
+
"serde_core",
|
|
445
|
+
"zmij",
|
|
446
|
+
]
|
|
447
|
+
|
|
448
|
+
[[package]]
|
|
449
|
+
name = "sha2"
|
|
450
|
+
version = "0.10.9"
|
|
451
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
452
|
+
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
|
453
|
+
dependencies = [
|
|
454
|
+
"cfg-if",
|
|
455
|
+
"cpufeatures",
|
|
456
|
+
"digest",
|
|
457
|
+
]
|
|
458
|
+
|
|
459
|
+
[[package]]
|
|
460
|
+
name = "signature"
|
|
461
|
+
version = "2.2.0"
|
|
462
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
463
|
+
checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
|
|
464
|
+
dependencies = [
|
|
465
|
+
"rand_core",
|
|
466
|
+
]
|
|
467
|
+
|
|
468
|
+
[[package]]
|
|
469
|
+
name = "spki"
|
|
470
|
+
version = "0.7.3"
|
|
471
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
472
|
+
checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
|
|
473
|
+
dependencies = [
|
|
474
|
+
"base64ct",
|
|
475
|
+
"der",
|
|
476
|
+
]
|
|
477
|
+
|
|
478
|
+
[[package]]
|
|
479
|
+
name = "subtle"
|
|
480
|
+
version = "2.6.1"
|
|
481
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
482
|
+
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
|
483
|
+
|
|
484
|
+
[[package]]
|
|
485
|
+
name = "syn"
|
|
486
|
+
version = "2.0.119"
|
|
487
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
488
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
489
|
+
dependencies = [
|
|
490
|
+
"proc-macro2",
|
|
491
|
+
"quote",
|
|
492
|
+
"unicode-ident",
|
|
493
|
+
]
|
|
494
|
+
|
|
495
|
+
[[package]]
|
|
496
|
+
name = "syn"
|
|
497
|
+
version = "3.0.3"
|
|
498
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
499
|
+
checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
|
|
500
|
+
dependencies = [
|
|
501
|
+
"proc-macro2",
|
|
502
|
+
"quote",
|
|
503
|
+
"unicode-ident",
|
|
504
|
+
]
|
|
505
|
+
|
|
506
|
+
[[package]]
|
|
507
|
+
name = "target-lexicon"
|
|
508
|
+
version = "0.12.16"
|
|
509
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
510
|
+
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
|
511
|
+
|
|
512
|
+
[[package]]
|
|
513
|
+
name = "typenum"
|
|
514
|
+
version = "1.20.1"
|
|
515
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
516
|
+
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
|
|
517
|
+
|
|
518
|
+
[[package]]
|
|
519
|
+
name = "unicode-ident"
|
|
520
|
+
version = "1.0.24"
|
|
521
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
522
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
523
|
+
|
|
524
|
+
[[package]]
|
|
525
|
+
name = "unindent"
|
|
526
|
+
version = "0.2.4"
|
|
527
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
528
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
529
|
+
|
|
530
|
+
[[package]]
|
|
531
|
+
name = "version_check"
|
|
532
|
+
version = "0.9.5"
|
|
533
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
534
|
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
535
|
+
|
|
536
|
+
[[package]]
|
|
537
|
+
name = "wasi"
|
|
538
|
+
version = "0.11.1+wasi-snapshot-preview1"
|
|
539
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
540
|
+
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
|
541
|
+
|
|
542
|
+
[[package]]
|
|
543
|
+
name = "windows-link"
|
|
544
|
+
version = "0.2.1"
|
|
545
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
546
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
547
|
+
|
|
548
|
+
[[package]]
|
|
549
|
+
name = "windows-sys"
|
|
550
|
+
version = "0.61.2"
|
|
551
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
552
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
553
|
+
dependencies = [
|
|
554
|
+
"windows-link",
|
|
555
|
+
]
|
|
556
|
+
|
|
557
|
+
[[package]]
|
|
558
|
+
name = "zeroize"
|
|
559
|
+
version = "1.9.0"
|
|
560
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
561
|
+
checksum = "e13c156562582aa81c60cb29407084cdb54c4164760106ab78e6c5b0858cf64e"
|
|
562
|
+
|
|
563
|
+
[[package]]
|
|
564
|
+
name = "zmij"
|
|
565
|
+
version = "1.0.23"
|
|
566
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
567
|
+
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Python bindings for Bellbook (issue #13), Stage 1: validation-first.
|
|
2
|
+
#
|
|
3
|
+
# A thin PyO3 wrapper over the published `bellbook` crate, never a
|
|
4
|
+
# reimplementation - the crate stays the single source of truth. This is its
|
|
5
|
+
# own workspace so it never joins the library crate's build; the library's
|
|
6
|
+
# CI and `cargo package` are unaffected (the root crate excludes `bindings/`).
|
|
7
|
+
[package]
|
|
8
|
+
name = "bellbook-python"
|
|
9
|
+
version = "0.3.0"
|
|
10
|
+
edition = "2021"
|
|
11
|
+
rust-version = "1.75"
|
|
12
|
+
license = "MIT OR Apache-2.0"
|
|
13
|
+
description = "Python bindings for the Bellbook receipt validator."
|
|
14
|
+
repository = "https://github.com/bellbook-ai/bellbook"
|
|
15
|
+
publish = false
|
|
16
|
+
readme = "README.md"
|
|
17
|
+
|
|
18
|
+
[lib]
|
|
19
|
+
# The importable module is `bellbook`; a C dynamic library for CPython.
|
|
20
|
+
name = "bellbook"
|
|
21
|
+
crate-type = ["cdylib"]
|
|
22
|
+
|
|
23
|
+
[dependencies]
|
|
24
|
+
# Wraps the published crate (not a path dep), so the sdist and wheels are
|
|
25
|
+
# installable from PyPI, and the bindings track a released core rather than
|
|
26
|
+
# the working tree. Renamed to `bellbook_core` so it does not collide with
|
|
27
|
+
# this crate's own library name (`bellbook`, the importable Python module).
|
|
28
|
+
#
|
|
29
|
+
# The writer API (stage 4) records to a persistent, single-writer log, so the
|
|
30
|
+
# wheel now enables the crate's `persist` feature (cross-platform file locking
|
|
31
|
+
# via `fs4`, which builds on Linux, macOS, and Windows alike). Validation and
|
|
32
|
+
# reading remain feature-independent.
|
|
33
|
+
bellbook_core = { package = "bellbook", version = "0.3", default-features = false, features = [
|
|
34
|
+
"persist",
|
|
35
|
+
] }
|
|
36
|
+
pyo3 = { version = "0.22", features = ["extension-module", "abi3-py39"] }
|
|
37
|
+
# The writer takes verifier rules as a JSON string (the same object embedded in
|
|
38
|
+
# a receipt). serde_json parses it into the crate's `VerifierRules`; serde
|
|
39
|
+
# bounds the pre-commit encode/decode round-trip that checks payload invariants.
|
|
40
|
+
serde = "1"
|
|
41
|
+
serde_json = "1"
|
|
42
|
+
|
|
43
|
+
# Own workspace: keep this crate out of the library crate's workspace.
|
|
44
|
+
[workspace]
|