repositories / smith

smith

There are many coding harnesses - but this one is fast

owned by bugabinga

feat(prototypes): add prototype suite baseline

4a8cda6d81ab3db5a1d2b7a00b13ae9d934a4bb4

HallucyGenie Agent <agent@hallucygenie.local> ·

SSH signature · not checked

Browse filesCompare with HEAD

Changed files (55)

+15324 / −0 text lines · all files grouped into 32 bars

Diff layout

prototypes/.cargo/config.toml

Added
new file mode 100644

+4 / −0 text lines

1[build]
2rustflags = []
3[registries.crates-io]
4protocol = "sparse"

prototypes/p1-workspace/Cargo.lock

Added
new file mode 100644

+3399 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "ahash"
7version = "0.8.12"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
10dependencies = [
11 "cfg-if",
12 "getrandom 0.3.4",
13 "once_cell",
14 "serde",
15 "version_check",
16 "zerocopy",
17]
19[[package]]
20name = "aho-corasick"
21version = "1.1.4"
22source = "registry+https://github.com/rust-lang/crates.io-index"
23checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
24dependencies = [
25 "memchr",
26]
28[[package]]
29name = "allocator-api2"
30version = "0.2.21"
31source = "registry+https://github.com/rust-lang/crates.io-index"
32checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
34[[package]]
35name = "android_system_properties"
36version = "0.1.5"
37source = "registry+https://github.com/rust-lang/crates.io-index"
38checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
39dependencies = [
40 "libc",
41]
43[[package]]
44name = "anstream"
45version = "1.0.0"
46source = "registry+https://github.com/rust-lang/crates.io-index"
47checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
48dependencies = [
49 "anstyle",
50 "anstyle-parse",
51 "anstyle-query",
52 "anstyle-wincon",
53 "colorchoice",
54 "is_terminal_polyfill",
55 "utf8parse",
56]
58[[package]]
59name = "anstyle"
60version = "1.0.14"
61source = "registry+https://github.com/rust-lang/crates.io-index"
62checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
64[[package]]
65name = "anstyle-parse"
66version = "1.0.0"
67source = "registry+https://github.com/rust-lang/crates.io-index"
68checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
69dependencies = [
70 "utf8parse",
71]
73[[package]]
74name = "anstyle-query"
75version = "1.1.5"
76source = "registry+https://github.com/rust-lang/crates.io-index"
77checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
78dependencies = [
79 "windows-sys 0.61.2",
80]
82[[package]]
83name = "anstyle-wincon"
84version = "3.0.11"
85source = "registry+https://github.com/rust-lang/crates.io-index"
86checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
87dependencies = [
88 "anstyle",
89 "once_cell_polyfill",
90 "windows-sys 0.61.2",
91]
93[[package]]
94name = "anyhow"
95version = "1.0.102"
96source = "registry+https://github.com/rust-lang/crates.io-index"
97checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
99[[package]]
100name = "atomic-waker"
101version = "1.1.2"
102source = "registry+https://github.com/rust-lang/crates.io-index"
103checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
105[[package]]
106name = "autocfg"
107version = "1.5.1"
108source = "registry+https://github.com/rust-lang/crates.io-index"
109checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
111[[package]]
112name = "base64"
113version = "0.13.1"
114source = "registry+https://github.com/rust-lang/crates.io-index"
115checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8"
117[[package]]
118name = "base64"
119version = "0.21.7"
120source = "registry+https://github.com/rust-lang/crates.io-index"
121checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
123[[package]]
124name = "base64"
125version = "0.22.1"
126source = "registry+https://github.com/rust-lang/crates.io-index"
127checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
129[[package]]
130name = "bit-set"
131version = "0.8.0"
132source = "registry+https://github.com/rust-lang/crates.io-index"
133checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
134dependencies = [
135 "bit-vec",
136]
138[[package]]
139name = "bit-vec"
140version = "0.8.0"
141source = "registry+https://github.com/rust-lang/crates.io-index"
142checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
144[[package]]
145name = "bitflags"
146version = "1.3.2"
147source = "registry+https://github.com/rust-lang/crates.io-index"
148checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
150[[package]]
151name = "bitflags"
152version = "2.11.1"
153source = "registry+https://github.com/rust-lang/crates.io-index"
154checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
156[[package]]
157name = "block-buffer"
158version = "0.10.4"
159source = "registry+https://github.com/rust-lang/crates.io-index"
160checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
161dependencies = [
162 "generic-array",
163]
165[[package]]
166name = "borrow-or-share"
167version = "0.2.4"
168source = "registry+https://github.com/rust-lang/crates.io-index"
169checksum = "dc0b364ead1874514c8c2855ab558056ebfeb775653e7ae45ff72f28f8f3166c"
171[[package]]
172name = "bstr"
173version = "1.12.1"
174source = "registry+https://github.com/rust-lang/crates.io-index"
175checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"
176dependencies = [
177 "memchr",
178 "serde",
179]
181[[package]]
182name = "bumpalo"
183version = "3.20.3"
184source = "registry+https://github.com/rust-lang/crates.io-index"
185checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
187[[package]]
188name = "bytecount"
189version = "0.6.9"
190source = "registry+https://github.com/rust-lang/crates.io-index"
191checksum = "175812e0be2bccb6abe50bb8d566126198344f707e304f45c648fd8f2cc0365e"
193[[package]]
194name = "bytes"
195version = "1.11.1"
196source = "registry+https://github.com/rust-lang/crates.io-index"
197checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
199[[package]]
200name = "cassowary"
201version = "0.3.0"
202source = "registry+https://github.com/rust-lang/crates.io-index"
203checksum = "df8670b8c7b9dae1793364eafadf7239c40d669904660c5960d74cfd80b46a53"
205[[package]]
206name = "castaway"
207version = "0.2.4"
208source = "registry+https://github.com/rust-lang/crates.io-index"
209checksum = "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a"
210dependencies = [
211 "rustversion",
212]
214[[package]]
215name = "cc"
216version = "1.2.62"
217source = "registry+https://github.com/rust-lang/crates.io-index"
218checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
219dependencies = [
220 "find-msvc-tools",
221 "shlex",
222]
224[[package]]
225name = "cfg-if"
226version = "1.0.4"
227source = "registry+https://github.com/rust-lang/crates.io-index"
228checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
230[[package]]
231name = "chrono"
232version = "0.4.44"
233source = "registry+https://github.com/rust-lang/crates.io-index"
234checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0"
235dependencies = [
236 "iana-time-zone",
237 "js-sys",
238 "num-traits",
239 "serde",
240 "wasm-bindgen",
241 "windows-link",
242]
244[[package]]
245name = "clap"
246version = "4.6.1"
247source = "registry+https://github.com/rust-lang/crates.io-index"
248checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51"
249dependencies = [
250 "clap_builder",
251 "clap_derive",
252]
254[[package]]
255name = "clap_builder"
256version = "4.6.0"
257source = "registry+https://github.com/rust-lang/crates.io-index"
258checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f"
259dependencies = [
260 "anstream",
261 "anstyle",
262 "clap_lex",
263 "strsim",
264]
266[[package]]
267name = "clap_derive"
268version = "4.6.1"
269source = "registry+https://github.com/rust-lang/crates.io-index"
270checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9"
271dependencies = [
272 "heck",
273 "proc-macro2",
274 "quote",
275 "syn",
276]
278[[package]]
279name = "clap_lex"
280version = "1.1.0"
281source = "registry+https://github.com/rust-lang/crates.io-index"
282checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
284[[package]]
285name = "colorchoice"
286version = "1.0.5"
287source = "registry+https://github.com/rust-lang/crates.io-index"
288checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
290[[package]]
291name = "compact_str"
292version = "0.8.1"
293source = "registry+https://github.com/rust-lang/crates.io-index"
294checksum = "3b79c4069c6cad78e2e0cdfcbd26275770669fb39fd308a752dc110e83b9af32"
295dependencies = [
296 "castaway",
297 "cfg-if",
298 "itoa",
299 "rustversion",
300 "ryu",
301 "static_assertions",
302]
304[[package]]
305name = "core-foundation"
306version = "0.9.4"
307source = "registry+https://github.com/rust-lang/crates.io-index"
308checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
309dependencies = [
310 "core-foundation-sys",
311 "libc",
312]
314[[package]]
315name = "core-foundation"
316version = "0.10.1"
317source = "registry+https://github.com/rust-lang/crates.io-index"
318checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
319dependencies = [
320 "core-foundation-sys",
321 "libc",
322]
324[[package]]
325name = "core-foundation-sys"
326version = "0.8.7"
327source = "registry+https://github.com/rust-lang/crates.io-index"
328checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
330[[package]]
331name = "cpufeatures"
332version = "0.2.17"
333source = "registry+https://github.com/rust-lang/crates.io-index"
334checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
335dependencies = [
336 "libc",
337]
339[[package]]
340name = "crossterm"
341version = "0.28.1"
342source = "registry+https://github.com/rust-lang/crates.io-index"
343checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6"
344dependencies = [
345 "bitflags 2.11.1",
346 "crossterm_winapi",
347 "mio",
348 "parking_lot",
349 "rustix 0.38.44",
350 "signal-hook",
351 "signal-hook-mio",
352 "winapi",
353]
355[[package]]
356name = "crossterm_winapi"
357version = "0.9.1"
358source = "registry+https://github.com/rust-lang/crates.io-index"
359checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
360dependencies = [
361 "winapi",
362]
364[[package]]
365name = "crypto-common"
366version = "0.1.7"
367source = "registry+https://github.com/rust-lang/crates.io-index"
368checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
369dependencies = [
370 "generic-array",
371 "typenum",
372]
374[[package]]
375name = "darling"
376version = "0.20.11"
377source = "registry+https://github.com/rust-lang/crates.io-index"
378checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
379dependencies = [
380 "darling_core",
381 "darling_macro",
382]
384[[package]]
385name = "darling_core"
386version = "0.20.11"
387source = "registry+https://github.com/rust-lang/crates.io-index"
388checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
389dependencies = [
390 "fnv",
391 "ident_case",
392 "proc-macro2",
393 "quote",
394 "strsim",
395 "syn",
396]
398[[package]]
399name = "darling_macro"
400version = "0.20.11"
401source = "registry+https://github.com/rust-lang/crates.io-index"
402checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
403dependencies = [
404 "darling_core",
405 "quote",
406 "syn",
407]
409[[package]]
410name = "digest"
411version = "0.10.7"
412source = "registry+https://github.com/rust-lang/crates.io-index"
413checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
414dependencies = [
415 "block-buffer",
416 "crypto-common",
417]
419[[package]]
420name = "dirs"
421version = "5.0.1"
422source = "registry+https://github.com/rust-lang/crates.io-index"
423checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225"
424dependencies = [
425 "dirs-sys",
426]
428[[package]]
429name = "dirs-sys"
430version = "0.4.1"
431source = "registry+https://github.com/rust-lang/crates.io-index"
432checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c"
433dependencies = [
434 "libc",
435 "option-ext",
436 "redox_users",
437 "windows-sys 0.48.0",
438]
440[[package]]
441name = "displaydoc"
442version = "0.2.5"
443source = "registry+https://github.com/rust-lang/crates.io-index"
444checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
445dependencies = [
446 "proc-macro2",
447 "quote",
448 "syn",
449]
451[[package]]
452name = "either"
453version = "1.16.0"
454source = "registry+https://github.com/rust-lang/crates.io-index"
455checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
457[[package]]
458name = "email_address"
459version = "0.2.9"
460source = "registry+https://github.com/rust-lang/crates.io-index"
461checksum = "e079f19b08ca6239f47f8ba8509c11cf3ea30095831f7fed61441475edd8c449"
462dependencies = [
463 "serde",
464]
466[[package]]
467name = "encoding_rs"
468version = "0.8.35"
469source = "registry+https://github.com/rust-lang/crates.io-index"
470checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
471dependencies = [
472 "cfg-if",
473]
475[[package]]
476name = "env_home"
477version = "0.1.0"
478source = "registry+https://github.com/rust-lang/crates.io-index"
479checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe"
481[[package]]
482name = "equivalent"
483version = "1.0.2"
484source = "registry+https://github.com/rust-lang/crates.io-index"
485checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
487[[package]]
488name = "erased-serde"
489version = "0.4.10"
490source = "registry+https://github.com/rust-lang/crates.io-index"
491checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"
492dependencies = [
493 "serde",
494 "serde_core",
495 "typeid",
496]
498[[package]]
499name = "errno"
500version = "0.3.14"
501source = "registry+https://github.com/rust-lang/crates.io-index"
502checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
503dependencies = [
504 "libc",
505 "windows-sys 0.61.2",
506]
508[[package]]
509name = "fancy-regex"
510version = "0.14.0"
511source = "registry+https://github.com/rust-lang/crates.io-index"
512checksum = "6e24cb5a94bcae1e5408b0effca5cd7172ea3c5755049c5f3af4cd283a165298"
513dependencies = [
514 "bit-set",
515 "regex-automata",
516 "regex-syntax",
517]
519[[package]]
520name = "fastrand"
521version = "2.4.1"
522source = "registry+https://github.com/rust-lang/crates.io-index"
523checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
525[[package]]
526name = "find-msvc-tools"
527version = "0.1.9"
528source = "registry+https://github.com/rust-lang/crates.io-index"
529checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
531[[package]]
532name = "fluent-uri"
533version = "0.3.2"
534source = "registry+https://github.com/rust-lang/crates.io-index"
535checksum = "1918b65d96df47d3591bed19c5cca17e3fa5d0707318e4b5ef2eae01764df7e5"
536dependencies = [
537 "borrow-or-share",
538 "ref-cast",
539 "serde",
540]
542[[package]]
543name = "fnv"
544version = "1.0.7"
545source = "registry+https://github.com/rust-lang/crates.io-index"
546checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
548[[package]]
549name = "foldhash"
550version = "0.1.5"
551source = "registry+https://github.com/rust-lang/crates.io-index"
552checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
554[[package]]
555name = "foreign-types"
556version = "0.3.2"
557source = "registry+https://github.com/rust-lang/crates.io-index"
558checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
559dependencies = [
560 "foreign-types-shared",
561]
563[[package]]
564name = "foreign-types-shared"
565version = "0.1.1"
566source = "registry+https://github.com/rust-lang/crates.io-index"
567checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
569[[package]]
570name = "form_urlencoded"
571version = "1.2.2"
572source = "registry+https://github.com/rust-lang/crates.io-index"
573checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
574dependencies = [
575 "percent-encoding",
576]
578[[package]]
579name = "fraction"
580version = "0.15.4"
581source = "registry+https://github.com/rust-lang/crates.io-index"
582checksum = "e076045bb43dac435333ed5f04caf35c7463631d0dae2deb2638d94dd0a5b872"
583dependencies = [
584 "lazy_static",
585 "num",
586]
588[[package]]
589name = "futures"
590version = "0.3.32"
591source = "registry+https://github.com/rust-lang/crates.io-index"
592checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d"
593dependencies = [
594 "futures-channel",
595 "futures-core",
596 "futures-executor",
597 "futures-io",
598 "futures-sink",
599 "futures-task",
600 "futures-util",
601]
603[[package]]
604name = "futures-channel"
605version = "0.3.32"
606source = "registry+https://github.com/rust-lang/crates.io-index"
607checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"
608dependencies = [
609 "futures-core",
610 "futures-sink",
611]
613[[package]]
614name = "futures-core"
615version = "0.3.32"
616source = "registry+https://github.com/rust-lang/crates.io-index"
617checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
619[[package]]
620name = "futures-executor"
621version = "0.3.32"
622source = "registry+https://github.com/rust-lang/crates.io-index"
623checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d"
624dependencies = [
625 "futures-core",
626 "futures-task",
627 "futures-util",
628]
630[[package]]
631name = "futures-io"
632version = "0.3.32"
633source = "registry+https://github.com/rust-lang/crates.io-index"
634checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718"
636[[package]]
637name = "futures-macro"
638version = "0.3.32"
639source = "registry+https://github.com/rust-lang/crates.io-index"
640checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"
641dependencies = [
642 "proc-macro2",
643 "quote",
644 "syn",
645]
647[[package]]
648name = "futures-sink"
649version = "0.3.32"
650source = "registry+https://github.com/rust-lang/crates.io-index"
651checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893"
653[[package]]
654name = "futures-task"
655version = "0.3.32"
656source = "registry+https://github.com/rust-lang/crates.io-index"
657checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
659[[package]]
660name = "futures-util"
661version = "0.3.32"
662source = "registry+https://github.com/rust-lang/crates.io-index"
663checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
664dependencies = [
665 "futures-channel",
666 "futures-core",
667 "futures-io",
668 "futures-macro",
669 "futures-sink",
670 "futures-task",
671 "memchr",
672 "pin-project-lite",
673 "slab",
674]
676[[package]]
677name = "generic-array"
678version = "0.14.7"
679source = "registry+https://github.com/rust-lang/crates.io-index"
680checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
681dependencies = [
682 "typenum",
683 "version_check",
684]
686[[package]]
687name = "getrandom"
688version = "0.2.17"
689source = "registry+https://github.com/rust-lang/crates.io-index"
690checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
691dependencies = [
692 "cfg-if",
693 "js-sys",
694 "libc",
695 "wasi",
696 "wasm-bindgen",
697]
699[[package]]
700name = "getrandom"
701version = "0.3.4"
702source = "registry+https://github.com/rust-lang/crates.io-index"
703checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
704dependencies = [
705 "cfg-if",
706 "libc",
707 "r-efi 5.3.0",
708 "wasip2",
709]
711[[package]]
712name = "getrandom"
713version = "0.4.2"
714source = "registry+https://github.com/rust-lang/crates.io-index"
715checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"
716dependencies = [
717 "cfg-if",
718 "libc",
719 "r-efi 6.0.0",
720 "wasip2",
721 "wasip3",
722]
724[[package]]
725name = "h2"
726version = "0.3.27"
727source = "registry+https://github.com/rust-lang/crates.io-index"
728checksum = "0beca50380b1fc32983fc1cb4587bfa4bb9e78fc259aad4a0032d2080309222d"
729dependencies = [
730 "bytes",
731 "fnv",
732 "futures-core",
733 "futures-sink",
734 "futures-util",
735 "http 0.2.12",
736 "indexmap",
737 "slab",
738 "tokio",
739 "tokio-util",
740 "tracing",
741]
743[[package]]
744name = "h2"
745version = "0.4.14"
746source = "registry+https://github.com/rust-lang/crates.io-index"
747checksum = "171fefbc92fe4a4de27e0698d6a5b392d6a0e333506bc49133760b3bcf948733"
748dependencies = [
749 "atomic-waker",
750 "bytes",
751 "fnv",
752 "futures-core",
753 "futures-sink",
754 "http 1.4.0",
755 "indexmap",
756 "slab",
757 "tokio",
758 "tokio-util",
759 "tracing",
760]
762[[package]]
763name = "hashbrown"
764version = "0.15.5"
765source = "registry+https://github.com/rust-lang/crates.io-index"
766checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
767dependencies = [
768 "allocator-api2",
769 "equivalent",
770 "foldhash",
771]
773[[package]]
774name = "hashbrown"
775version = "0.17.1"
776source = "registry+https://github.com/rust-lang/crates.io-index"
777checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
779[[package]]
780name = "heck"
781version = "0.5.0"
782source = "registry+https://github.com/rust-lang/crates.io-index"
783checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
785[[package]]
786name = "http"
787version = "0.2.12"
788source = "registry+https://github.com/rust-lang/crates.io-index"
789checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1"
790dependencies = [
791 "bytes",
792 "fnv",
793 "itoa",
794]
796[[package]]
797name = "http"
798version = "1.4.0"
799source = "registry+https://github.com/rust-lang/crates.io-index"
800checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a"
801dependencies = [
802 "bytes",
803 "itoa",
804]
806[[package]]
807name = "http-body"
808version = "0.4.6"
809source = "registry+https://github.com/rust-lang/crates.io-index"
810checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2"
811dependencies = [
812 "bytes",
813 "http 0.2.12",
814 "pin-project-lite",
815]
817[[package]]
818name = "http-body"
819version = "1.0.1"
820source = "registry+https://github.com/rust-lang/crates.io-index"
821checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
822dependencies = [
823 "bytes",
824 "http 1.4.0",
825]
827[[package]]
828name = "http-body-util"
829version = "0.1.3"
830source = "registry+https://github.com/rust-lang/crates.io-index"
831checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
832dependencies = [
833 "bytes",
834 "futures-core",
835 "http 1.4.0",
836 "http-body 1.0.1",
837 "pin-project-lite",
838]
840[[package]]
841name = "httparse"
842version = "1.10.1"
843source = "registry+https://github.com/rust-lang/crates.io-index"
844checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
846[[package]]
847name = "httpdate"
848version = "1.0.3"
849source = "registry+https://github.com/rust-lang/crates.io-index"
850checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
852[[package]]
853name = "hyper"
854version = "0.14.32"
855source = "registry+https://github.com/rust-lang/crates.io-index"
856checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7"
857dependencies = [
858 "bytes",
859 "futures-channel",
860 "futures-core",
861 "futures-util",
862 "h2 0.3.27",
863 "http 0.2.12",
864 "http-body 0.4.6",
865 "httparse",
866 "httpdate",
867 "itoa",
868 "pin-project-lite",
869 "socket2 0.5.10",
870 "tokio",
871 "tower-service",
872 "tracing",
873 "want",
874]
876[[package]]
877name = "hyper"
878version = "1.9.0"
879source = "registry+https://github.com/rust-lang/crates.io-index"
880checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca"
881dependencies = [
882 "atomic-waker",
883 "bytes",
884 "futures-channel",
885 "futures-core",
886 "h2 0.4.14",
887 "http 1.4.0",
888 "http-body 1.0.1",
889 "httparse",
890 "itoa",
891 "pin-project-lite",
892 "smallvec",
893 "tokio",
894 "want",
895]
897[[package]]
898name = "hyper-rustls"
899version = "0.24.2"
900source = "registry+https://github.com/rust-lang/crates.io-index"
901checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590"
902dependencies = [
903 "futures-util",
904 "http 0.2.12",
905 "hyper 0.14.32",
906 "rustls 0.21.12",
907 "tokio",
908 "tokio-rustls 0.24.1",
909]
911[[package]]
912name = "hyper-rustls"
913version = "0.27.9"
914source = "registry+https://github.com/rust-lang/crates.io-index"
915checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
916dependencies = [
917 "http 1.4.0",
918 "hyper 1.9.0",
919 "hyper-util",
920 "rustls 0.23.40",
921 "tokio",
922 "tokio-rustls 0.26.4",
923 "tower-service",
924]
926[[package]]
927name = "hyper-tls"
928version = "0.6.0"
929source = "registry+https://github.com/rust-lang/crates.io-index"
930checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
931dependencies = [
932 "bytes",
933 "http-body-util",
934 "hyper 1.9.0",
935 "hyper-util",
936 "native-tls",
937 "tokio",
938 "tokio-native-tls",
939 "tower-service",
940]
942[[package]]
943name = "hyper-util"
944version = "0.1.20"
945source = "registry+https://github.com/rust-lang/crates.io-index"
946checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
947dependencies = [
948 "base64 0.22.1",
949 "bytes",
950 "futures-channel",
951 "futures-util",
952 "http 1.4.0",
953 "http-body 1.0.1",
954 "hyper 1.9.0",
955 "ipnet",
956 "libc",
957 "percent-encoding",
958 "pin-project-lite",
959 "socket2 0.6.3",
960 "system-configuration 0.7.0",
961 "tokio",
962 "tower-service",
963 "tracing",
964 "windows-registry",
965]
967[[package]]
968name = "iana-time-zone"
969version = "0.1.65"
970source = "registry+https://github.com/rust-lang/crates.io-index"
971checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
972dependencies = [
973 "android_system_properties",
974 "core-foundation-sys",
975 "iana-time-zone-haiku",
976 "js-sys",
977 "log",
978 "wasm-bindgen",
979 "windows-core",
980]
982[[package]]
983name = "iana-time-zone-haiku"
984version = "0.1.2"
985source = "registry+https://github.com/rust-lang/crates.io-index"
986checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
987dependencies = [
988 "cc",
989]
991[[package]]
992name = "icu_collections"
993version = "2.1.1"
994source = "registry+https://github.com/rust-lang/crates.io-index"
995checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43"
996dependencies = [
997 "displaydoc",
998 "potential_utf",
999 "yoke",
1000 "zerofrom",
1001 "zerovec",
1004[[package]]
1005name = "icu_locale_core"
1006version = "2.1.1"
1007source = "registry+https://github.com/rust-lang/crates.io-index"
1008checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6"
1009dependencies = [
1010 "displaydoc",
1011 "litemap",
1012 "tinystr",
1013 "writeable",
1014 "zerovec",
1017[[package]]
1018name = "icu_normalizer"
1019version = "2.1.1"
1020source = "registry+https://github.com/rust-lang/crates.io-index"
1021checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599"
1022dependencies = [
1023 "icu_collections",
1024 "icu_normalizer_data",
1025 "icu_properties",
1026 "icu_provider",
1027 "smallvec",
1028 "zerovec",
1031[[package]]
1032name = "icu_normalizer_data"
1033version = "2.1.1"
1034source = "registry+https://github.com/rust-lang/crates.io-index"
1035checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a"
1037[[package]]
1038name = "icu_properties"
1039version = "2.1.2"
1040source = "registry+https://github.com/rust-lang/crates.io-index"
1041checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec"
1042dependencies = [
1043 "icu_collections",
1044 "icu_locale_core",
1045 "icu_properties_data",
1046 "icu_provider",
1047 "zerotrie",
1048 "zerovec",
1051[[package]]
1052name = "icu_properties_data"
1053version = "2.1.2"
1054source = "registry+https://github.com/rust-lang/crates.io-index"
1055checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af"
1057[[package]]
1058name = "icu_provider"
1059version = "2.1.1"
1060source = "registry+https://github.com/rust-lang/crates.io-index"
1061checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614"
1062dependencies = [
1063 "displaydoc",
1064 "icu_locale_core",
1065 "writeable",
1066 "yoke",
1067 "zerofrom",
1068 "zerotrie",
1069 "zerovec",
1072[[package]]
1073name = "id-arena"
1074version = "2.3.0"
1075source = "registry+https://github.com/rust-lang/crates.io-index"
1076checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
1078[[package]]
1079name = "ident_case"
1080version = "1.0.1"
1081source = "registry+https://github.com/rust-lang/crates.io-index"
1082checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
1084[[package]]
1085name = "idna"
1086version = "1.1.0"
1087source = "registry+https://github.com/rust-lang/crates.io-index"
1088checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
1089dependencies = [
1090 "idna_adapter",
1091 "smallvec",
1092 "utf8_iter",
1095[[package]]
1096name = "idna_adapter"
1097version = "1.2.1"
1098source = "registry+https://github.com/rust-lang/crates.io-index"
1099checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"
1100dependencies = [
1101 "icu_normalizer",
1102 "icu_properties",
1105[[package]]
1106name = "indexmap"
1107version = "2.14.0"
1108source = "registry+https://github.com/rust-lang/crates.io-index"
1109checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
1110dependencies = [
1111 "equivalent",
1112 "hashbrown 0.17.1",
1113 "serde",
1114 "serde_core",
1117[[package]]
1118name = "indoc"
1119version = "2.0.7"
1120source = "registry+https://github.com/rust-lang/crates.io-index"
1121checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
1122dependencies = [
1123 "rustversion",
1126[[package]]
1127name = "instability"
1128version = "0.3.10"
1129source = "registry+https://github.com/rust-lang/crates.io-index"
1130checksum = "6778b0196eefee7df739db78758e5cf9b37412268bfa5650bfeed028aed20d9c"
1131dependencies = [
1132 "darling",
1133 "indoc",
1134 "proc-macro2",
1135 "quote",
1136 "syn",
1139[[package]]
1140name = "ipnet"
1141version = "2.12.0"
1142source = "registry+https://github.com/rust-lang/crates.io-index"
1143checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2"
1145[[package]]
1146name = "is_terminal_polyfill"
1147version = "1.70.2"
1148source = "registry+https://github.com/rust-lang/crates.io-index"
1149checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
1151[[package]]
1152name = "itertools"
1153version = "0.13.0"
1154source = "registry+https://github.com/rust-lang/crates.io-index"
1155checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
1156dependencies = [
1157 "either",
1160[[package]]
1161name = "itoa"
1162version = "1.0.18"
1163source = "registry+https://github.com/rust-lang/crates.io-index"
1164checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
1166[[package]]
1167name = "js-sys"
1168version = "0.3.98"
1169source = "registry+https://github.com/rust-lang/crates.io-index"
1170checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08"
1171dependencies = [
1172 "cfg-if",
1173 "futures-util",
1174 "once_cell",
1175 "wasm-bindgen",
1178[[package]]
1179name = "jsonschema"
1180version = "0.28.3"
1181source = "registry+https://github.com/rust-lang/crates.io-index"
1182checksum = "4b8f66fe41fa46a5c83ed1c717b7e0b4635988f427083108c8cf0a882cc13441"
1183dependencies = [
1184 "ahash",
1185 "base64 0.22.1",
1186 "bytecount",
1187 "email_address",
1188 "fancy-regex",
1189 "fraction",
1190 "idna",
1191 "itoa",
1192 "num-cmp",
1193 "once_cell",
1194 "percent-encoding",
1195 "referencing",
1196 "regex-syntax",
1197 "reqwest 0.12.28",
1198 "serde",
1199 "serde_json",
1200 "uuid-simd",
1203[[package]]
1204name = "lazy_static"
1205version = "1.5.0"
1206source = "registry+https://github.com/rust-lang/crates.io-index"
1207checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
1209[[package]]
1210name = "leb128fmt"
1211version = "0.1.0"
1212source = "registry+https://github.com/rust-lang/crates.io-index"
1213checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
1215[[package]]
1216name = "libc"
1217version = "0.2.186"
1218source = "registry+https://github.com/rust-lang/crates.io-index"
1219checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
1221[[package]]
1222name = "libredox"
1223version = "0.1.16"
1224source = "registry+https://github.com/rust-lang/crates.io-index"
1225checksum = "e02f3bb43d335493c96bf3fd3a321600bf6bd07ed34bc64118e9293bdffea46c"
1226dependencies = [
1227 "libc",
1230[[package]]
1231name = "linux-raw-sys"
1232version = "0.4.15"
1233source = "registry+https://github.com/rust-lang/crates.io-index"
1234checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
1236[[package]]
1237name = "linux-raw-sys"
1238version = "0.12.1"
1239source = "registry+https://github.com/rust-lang/crates.io-index"
1240checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
1242[[package]]
1243name = "litemap"
1244version = "0.8.2"
1245source = "registry+https://github.com/rust-lang/crates.io-index"
1246checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
1248[[package]]
1249name = "lock_api"
1250version = "0.4.14"
1251source = "registry+https://github.com/rust-lang/crates.io-index"
1252checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
1253dependencies = [
1254 "scopeguard",
1257[[package]]
1258name = "log"
1259version = "0.4.29"
1260source = "registry+https://github.com/rust-lang/crates.io-index"
1261checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
1263[[package]]
1264name = "lru"
1265version = "0.12.5"
1266source = "registry+https://github.com/rust-lang/crates.io-index"
1267checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38"
1268dependencies = [
1269 "hashbrown 0.15.5",
1272[[package]]
1273name = "lua-src"
1274version = "547.0.0"
1275source = "registry+https://github.com/rust-lang/crates.io-index"
1276checksum = "1edaf29e3517b49b8b746701e5648ccb5785cde1c119062cbabbc5d5cd115e42"
1277dependencies = [
1278 "cc",
1281[[package]]
1282name = "luajit-src"
1283version = "210.5.12+a4f56a4"
1284source = "registry+https://github.com/rust-lang/crates.io-index"
1285checksum = "b3a8e7962a5368d5f264d045a5a255e90f9aa3fc1941ae15a8d2940d42cac671"
1286dependencies = [
1287 "cc",
1288 "which",
1291[[package]]
1292name = "matchers"
1293version = "0.2.0"
1294source = "registry+https://github.com/rust-lang/crates.io-index"
1295checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
1296dependencies = [
1297 "regex-automata",
1300[[package]]
1301name = "memchr"
1302version = "2.8.0"
1303source = "registry+https://github.com/rust-lang/crates.io-index"
1304checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
1306[[package]]
1307name = "mime"
1308version = "0.3.17"
1309source = "registry+https://github.com/rust-lang/crates.io-index"
1310checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
1312[[package]]
1313name = "minicbor"
1314version = "0.25.1"
1315source = "registry+https://github.com/rust-lang/crates.io-index"
1316checksum = "c0452a60c1863c1f50b5f77cd295e8d2786849f35883f0b9e18e7e6e1b5691b0"
1317dependencies = [
1318 "minicbor-derive",
1321[[package]]
1322name = "minicbor-derive"
1323version = "0.15.3"
1324source = "registry+https://github.com/rust-lang/crates.io-index"
1325checksum = "bd2209fff77f705b00c737016a48e73733d7fbccb8b007194db148f03561fb70"
1326dependencies = [
1327 "proc-macro2",
1328 "quote",
1329 "syn",
1332[[package]]
1333name = "mio"
1334version = "1.2.0"
1335source = "registry+https://github.com/rust-lang/crates.io-index"
1336checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
1337dependencies = [
1338 "libc",
1339 "log",
1340 "wasi",
1341 "windows-sys 0.61.2",
1344[[package]]
1345name = "mlua"
1346version = "0.10.5"
1347source = "registry+https://github.com/rust-lang/crates.io-index"
1348checksum = "c1f5f8fbebc7db5f671671134b9321c4b9aa9adeafccfd9a8c020ae45c6a35d0"
1349dependencies = [
1350 "bstr",
1351 "either",
1352 "erased-serde",
1353 "mlua-sys",
1354 "num-traits",
1355 "parking_lot",
1356 "rustc-hash",
1357 "rustversion",
1358 "serde",
1359 "serde-value",
1362[[package]]
1363name = "mlua-sys"
1364version = "0.6.8"
1365source = "registry+https://github.com/rust-lang/crates.io-index"
1366checksum = "380c1f7e2099cafcf40e51d3a9f20a346977587aa4d012eae1f043149a728a93"
1367dependencies = [
1368 "cc",
1369 "cfg-if",
1370 "lua-src",
1371 "luajit-src",
1372 "pkg-config",
1375[[package]]
1376name = "native-tls"
1377version = "0.2.18"
1378source = "registry+https://github.com/rust-lang/crates.io-index"
1379checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2"
1380dependencies = [
1381 "libc",
1382 "log",
1383 "openssl",
1384 "openssl-probe",
1385 "openssl-sys",
1386 "schannel",
1387 "security-framework",
1388 "security-framework-sys",
1389 "tempfile",
1392[[package]]
1393name = "nu-ansi-term"
1394version = "0.50.3"
1395source = "registry+https://github.com/rust-lang/crates.io-index"
1396checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
1397dependencies = [
1398 "windows-sys 0.61.2",
1401[[package]]
1402name = "num"
1403version = "0.4.3"
1404source = "registry+https://github.com/rust-lang/crates.io-index"
1405checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
1406dependencies = [
1407 "num-bigint",
1408 "num-complex",
1409 "num-integer",
1410 "num-iter",
1411 "num-rational",
1412 "num-traits",
1415[[package]]
1416name = "num-bigint"
1417version = "0.4.6"
1418source = "registry+https://github.com/rust-lang/crates.io-index"
1419checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
1420dependencies = [
1421 "num-integer",
1422 "num-traits",
1425[[package]]
1426name = "num-cmp"
1427version = "0.1.0"
1428source = "registry+https://github.com/rust-lang/crates.io-index"
1429checksum = "63335b2e2c34fae2fb0aa2cecfd9f0832a1e24b3b32ecec612c3426d46dc8aaa"
1431[[package]]
1432name = "num-complex"
1433version = "0.4.6"
1434source = "registry+https://github.com/rust-lang/crates.io-index"
1435checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
1436dependencies = [
1437 "num-traits",
1440[[package]]
1441name = "num-integer"
1442version = "0.1.46"
1443source = "registry+https://github.com/rust-lang/crates.io-index"
1444checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
1445dependencies = [
1446 "num-traits",
1449[[package]]
1450name = "num-iter"
1451version = "0.1.45"
1452source = "registry+https://github.com/rust-lang/crates.io-index"
1453checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf"
1454dependencies = [
1455 "autocfg",
1456 "num-integer",
1457 "num-traits",
1460[[package]]
1461name = "num-rational"
1462version = "0.4.2"
1463source = "registry+https://github.com/rust-lang/crates.io-index"
1464checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
1465dependencies = [
1466 "num-bigint",
1467 "num-integer",
1468 "num-traits",
1471[[package]]
1472name = "num-traits"
1473version = "0.2.19"
1474source = "registry+https://github.com/rust-lang/crates.io-index"
1475checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
1476dependencies = [
1477 "autocfg",
1480[[package]]
1481name = "oauth2"
1482version = "4.4.2"
1483source = "registry+https://github.com/rust-lang/crates.io-index"
1484checksum = "c38841cdd844847e3e7c8d29cef9dcfed8877f8f56f9071f77843ecf3baf937f"
1485dependencies = [
1486 "base64 0.13.1",
1487 "chrono",
1488 "getrandom 0.2.17",
1489 "http 0.2.12",
1490 "rand",
1491 "reqwest 0.11.27",
1492 "serde",
1493 "serde_json",
1494 "serde_path_to_error",
1495 "sha2",
1496 "thiserror 1.0.69",
1497 "url",
1500[[package]]
1501name = "once_cell"
1502version = "1.21.4"
1503source = "registry+https://github.com/rust-lang/crates.io-index"
1504checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
1506[[package]]
1507name = "once_cell_polyfill"
1508version = "1.70.2"
1509source = "registry+https://github.com/rust-lang/crates.io-index"
1510checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
1512[[package]]
1513name = "openssl"
1514version = "0.10.80"
1515source = "registry+https://github.com/rust-lang/crates.io-index"
1516checksum = "a45fa2aa886c42762255da344f0a0d313e254066c46aad76f300c3d3da62d967"
1517dependencies = [
1518 "bitflags 2.11.1",
1519 "cfg-if",
1520 "foreign-types",
1521 "libc",
1522 "openssl-macros",
1523 "openssl-sys",
1526[[package]]
1527name = "openssl-macros"
1528version = "0.1.1"
1529source = "registry+https://github.com/rust-lang/crates.io-index"
1530checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
1531dependencies = [
1532 "proc-macro2",
1533 "quote",
1534 "syn",
1537[[package]]
1538name = "openssl-probe"
1539version = "0.2.1"
1540source = "registry+https://github.com/rust-lang/crates.io-index"
1541checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
1543[[package]]
1544name = "openssl-sys"
1545version = "0.9.116"
1546source = "registry+https://github.com/rust-lang/crates.io-index"
1547checksum = "f28a22dc7140cda5f096e5e7724a6962ca81a7f8bfd2979f9b18c11af56318c4"
1548dependencies = [
1549 "cc",
1550 "libc",
1551 "pkg-config",
1552 "vcpkg",
1555[[package]]
1556name = "option-ext"
1557version = "0.2.0"
1558source = "registry+https://github.com/rust-lang/crates.io-index"
1559checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
1561[[package]]
1562name = "ordered-float"
1563version = "2.10.1"
1564source = "registry+https://github.com/rust-lang/crates.io-index"
1565checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c"
1566dependencies = [
1567 "num-traits",
1570[[package]]
1571name = "outref"
1572version = "0.5.2"
1573source = "registry+https://github.com/rust-lang/crates.io-index"
1574checksum = "1a80800c0488c3a21695ea981a54918fbb37abf04f4d0720c453632255e2ff0e"
1576[[package]]
1577name = "p1-workspace"
1578version = "0.1.0"
1579dependencies = [
1580 "clap",
1581 "crossterm",
1582 "dirs",
1583 "futures",
1584 "jsonschema",
1585 "minicbor",
1586 "mlua",
1587 "oauth2",
1588 "ratatui",
1589 "reqwest 0.12.28",
1590 "serde",
1591 "serde_json",
1592 "thiserror 2.0.18",
1593 "tokio",
1594 "tracing",
1595 "tracing-subscriber",
1596 "unicode-segmentation",
1597 "unicode-width 0.2.0",
1598 "url",
1599 "uuid",
1602[[package]]
1603name = "parking_lot"
1604version = "0.12.5"
1605source = "registry+https://github.com/rust-lang/crates.io-index"
1606checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
1607dependencies = [
1608 "lock_api",
1609 "parking_lot_core",
1612[[package]]
1613name = "parking_lot_core"
1614version = "0.9.12"
1615source = "registry+https://github.com/rust-lang/crates.io-index"
1616checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
1617dependencies = [
1618 "cfg-if",
1619 "libc",
1620 "redox_syscall",
1621 "smallvec",
1622 "windows-link",
1625[[package]]
1626name = "paste"
1627version = "1.0.15"
1628source = "registry+https://github.com/rust-lang/crates.io-index"
1629checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
1631[[package]]
1632name = "percent-encoding"
1633version = "2.3.2"
1634source = "registry+https://github.com/rust-lang/crates.io-index"
1635checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
1637[[package]]
1638name = "pin-project-lite"
1639version = "0.2.17"
1640source = "registry+https://github.com/rust-lang/crates.io-index"
1641checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
1643[[package]]
1644name = "pkg-config"
1645version = "0.3.33"
1646source = "registry+https://github.com/rust-lang/crates.io-index"
1647checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
1649[[package]]
1650name = "potential_utf"
1651version = "0.1.5"
1652source = "registry+https://github.com/rust-lang/crates.io-index"
1653checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
1654dependencies = [
1655 "zerovec",
1658[[package]]
1659name = "ppv-lite86"
1660version = "0.2.21"
1661source = "registry+https://github.com/rust-lang/crates.io-index"
1662checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
1663dependencies = [
1664 "zerocopy",
1667[[package]]
1668name = "prettyplease"
1669version = "0.2.37"
1670source = "registry+https://github.com/rust-lang/crates.io-index"
1671checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
1672dependencies = [
1673 "proc-macro2",
1674 "syn",
1677[[package]]
1678name = "proc-macro2"
1679version = "1.0.106"
1680source = "registry+https://github.com/rust-lang/crates.io-index"
1681checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
1682dependencies = [
1683 "unicode-ident",
1686[[package]]
1687name = "quote"
1688version = "1.0.45"
1689source = "registry+https://github.com/rust-lang/crates.io-index"
1690checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
1691dependencies = [
1692 "proc-macro2",
1695[[package]]
1696name = "r-efi"
1697version = "5.3.0"
1698source = "registry+https://github.com/rust-lang/crates.io-index"
1699checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
1701[[package]]
1702name = "r-efi"
1703version = "6.0.0"
1704source = "registry+https://github.com/rust-lang/crates.io-index"
1705checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
1707[[package]]
1708name = "rand"
1709version = "0.8.6"
1710source = "registry+https://github.com/rust-lang/crates.io-index"
1711checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a"
1712dependencies = [
1713 "libc",
1714 "rand_chacha",
1715 "rand_core",
1718[[package]]
1719name = "rand_chacha"
1720version = "0.3.1"
1721source = "registry+https://github.com/rust-lang/crates.io-index"
1722checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
1723dependencies = [
1724 "ppv-lite86",
1725 "rand_core",
1728[[package]]
1729name = "rand_core"
1730version = "0.6.4"
1731source = "registry+https://github.com/rust-lang/crates.io-index"
1732checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
1733dependencies = [
1734 "getrandom 0.2.17",
1737[[package]]
1738name = "ratatui"
1739version = "0.29.0"
1740source = "registry+https://github.com/rust-lang/crates.io-index"
1741checksum = "eabd94c2f37801c20583fc49dd5cd6b0ba68c716787c2dd6ed18571e1e63117b"
1742dependencies = [
1743 "bitflags 2.11.1",
1744 "cassowary",
1745 "compact_str",
1746 "crossterm",
1747 "indoc",
1748 "instability",
1749 "itertools",
1750 "lru",
1751 "paste",
1752 "strum",
1753 "unicode-segmentation",
1754 "unicode-truncate",
1755 "unicode-width 0.2.0",
1758[[package]]
1759name = "redox_syscall"
1760version = "0.5.18"
1761source = "registry+https://github.com/rust-lang/crates.io-index"
1762checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
1763dependencies = [
1764 "bitflags 2.11.1",
1767[[package]]
1768name = "redox_users"
1769version = "0.4.6"
1770source = "registry+https://github.com/rust-lang/crates.io-index"
1771checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
1772dependencies = [
1773 "getrandom 0.2.17",
1774 "libredox",
1775 "thiserror 1.0.69",
1778[[package]]
1779name = "ref-cast"
1780version = "1.0.25"
1781source = "registry+https://github.com/rust-lang/crates.io-index"
1782checksum = "f354300ae66f76f1c85c5f84693f0ce81d747e2c3f21a45fef496d89c960bf7d"
1783dependencies = [
1784 "ref-cast-impl",
1787[[package]]
1788name = "ref-cast-impl"
1789version = "1.0.25"
1790source = "registry+https://github.com/rust-lang/crates.io-index"
1791checksum = "b7186006dcb21920990093f30e3dea63b7d6e977bf1256be20c3563a5db070da"
1792dependencies = [
1793 "proc-macro2",
1794 "quote",
1795 "syn",
1798[[package]]
1799name = "referencing"
1800version = "0.28.3"
1801source = "registry+https://github.com/rust-lang/crates.io-index"
1802checksum = "d0dcb5ab28989ad7c91eb1b9531a37a1a137cc69a0499aee4117cae4a107c464"
1803dependencies = [
1804 "ahash",
1805 "fluent-uri",
1806 "once_cell",
1807 "percent-encoding",
1808 "serde_json",
1811[[package]]
1812name = "regex-automata"
1813version = "0.4.14"
1814source = "registry+https://github.com/rust-lang/crates.io-index"
1815checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f"
1816dependencies = [
1817 "aho-corasick",
1818 "memchr",
1819 "regex-syntax",
1822[[package]]
1823name = "regex-syntax"
1824version = "0.8.10"
1825source = "registry+https://github.com/rust-lang/crates.io-index"
1826checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a"
1828[[package]]
1829name = "reqwest"
1830version = "0.11.27"
1831source = "registry+https://github.com/rust-lang/crates.io-index"
1832checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62"
1833dependencies = [
1834 "base64 0.21.7",
1835 "bytes",
1836 "encoding_rs",
1837 "futures-core",
1838 "futures-util",
1839 "h2 0.3.27",
1840 "http 0.2.12",
1841 "http-body 0.4.6",
1842 "hyper 0.14.32",
1843 "hyper-rustls 0.24.2",
1844 "ipnet",
1845 "js-sys",
1846 "log",
1847 "mime",
1848 "once_cell",
1849 "percent-encoding",
1850 "pin-project-lite",
1851 "rustls 0.21.12",
1852 "rustls-pemfile",
1853 "serde",
1854 "serde_json",
1855 "serde_urlencoded",
1856 "sync_wrapper 0.1.2",
1857 "system-configuration 0.5.1",
1858 "tokio",
1859 "tokio-rustls 0.24.1",
1860 "tower-service",
1861 "url",
1862 "wasm-bindgen",
1863 "wasm-bindgen-futures",
1864 "web-sys",
1865 "webpki-roots",
1866 "winreg",
1869[[package]]
1870name = "reqwest"
1871version = "0.12.28"
1872source = "registry+https://github.com/rust-lang/crates.io-index"
1873checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"
1874dependencies = [
1875 "base64 0.22.1",
1876 "bytes",
1877 "encoding_rs",
1878 "futures-channel",
1879 "futures-core",
1880 "futures-util",
1881 "h2 0.4.14",
1882 "http 1.4.0",
1883 "http-body 1.0.1",
1884 "http-body-util",
1885 "hyper 1.9.0",
1886 "hyper-rustls 0.27.9",
1887 "hyper-tls",
1888 "hyper-util",
1889 "js-sys",
1890 "log",
1891 "mime",
1892 "native-tls",
1893 "percent-encoding",
1894 "pin-project-lite",
1895 "rustls-pki-types",
1896 "serde",
1897 "serde_json",
1898 "serde_urlencoded",
1899 "sync_wrapper 1.0.2",
1900 "tokio",
1901 "tokio-native-tls",
1902 "tokio-util",
1903 "tower",
1904 "tower-http",
1905 "tower-service",
1906 "url",
1907 "wasm-bindgen",
1908 "wasm-bindgen-futures",
1909 "wasm-streams",
1910 "web-sys",
1913[[package]]
1914name = "ring"
1915version = "0.17.14"
1916source = "registry+https://github.com/rust-lang/crates.io-index"
1917checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
1918dependencies = [
1919 "cc",
1920 "cfg-if",
1921 "getrandom 0.2.17",
1922 "libc",
1923 "untrusted",
1924 "windows-sys 0.52.0",
1927[[package]]
1928name = "rustc-hash"
1929version = "2.1.2"
1930source = "registry+https://github.com/rust-lang/crates.io-index"
1931checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
1933[[package]]
1934name = "rustix"
1935version = "0.38.44"
1936source = "registry+https://github.com/rust-lang/crates.io-index"
1937checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
1938dependencies = [
1939 "bitflags 2.11.1",
1940 "errno",
1941 "libc",
1942 "linux-raw-sys 0.4.15",
1943 "windows-sys 0.59.0",
1946[[package]]
1947name = "rustix"
1948version = "1.1.4"
1949source = "registry+https://github.com/rust-lang/crates.io-index"
1950checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
1951dependencies = [
1952 "bitflags 2.11.1",
1953 "errno",
1954 "libc",
1955 "linux-raw-sys 0.12.1",
1956 "windows-sys 0.61.2",
1959[[package]]
1960name = "rustls"
1961version = "0.21.12"
1962source = "registry+https://github.com/rust-lang/crates.io-index"
1963checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e"
1964dependencies = [
1965 "log",
1966 "ring",
1967 "rustls-webpki 0.101.7",
1968 "sct",
1971[[package]]
1972name = "rustls"
1973version = "0.23.40"
1974source = "registry+https://github.com/rust-lang/crates.io-index"
1975checksum = "ef86cd5876211988985292b91c96a8f2d298df24e75989a43a3c73f2d4d8168b"
1976dependencies = [
1977 "once_cell",
1978 "rustls-pki-types",
1979 "rustls-webpki 0.103.13",
1980 "subtle",
1981 "zeroize",
1984[[package]]
1985name = "rustls-pemfile"
1986version = "1.0.4"
1987source = "registry+https://github.com/rust-lang/crates.io-index"
1988checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c"
1989dependencies = [
1990 "base64 0.21.7",
1993[[package]]
1994name = "rustls-pki-types"
1995version = "1.14.1"
1996source = "registry+https://github.com/rust-lang/crates.io-index"
1997checksum = "30a7197ae7eb376e574fe940d068c30fe0462554a3ddbe4eca7838e049c937a9"
1998dependencies = [
1999 "zeroize",
2002[[package]]
2003name = "rustls-webpki"
2004version = "0.101.7"
2005source = "registry+https://github.com/rust-lang/crates.io-index"
2006checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765"
2007dependencies = [
2008 "ring",
2009 "untrusted",
2012[[package]]
2013name = "rustls-webpki"
2014version = "0.103.13"
2015source = "registry+https://github.com/rust-lang/crates.io-index"
2016checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
2017dependencies = [
2018 "ring",
2019 "rustls-pki-types",
2020 "untrusted",
2023[[package]]
2024name = "rustversion"
2025version = "1.0.22"
2026source = "registry+https://github.com/rust-lang/crates.io-index"
2027checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
2029[[package]]
2030name = "ryu"
2031version = "1.0.23"
2032source = "registry+https://github.com/rust-lang/crates.io-index"
2033checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
2035[[package]]
2036name = "schannel"
2037version = "0.1.29"
2038source = "registry+https://github.com/rust-lang/crates.io-index"
2039checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
2040dependencies = [
2041 "windows-sys 0.61.2",
2044[[package]]
2045name = "scopeguard"
2046version = "1.2.0"
2047source = "registry+https://github.com/rust-lang/crates.io-index"
2048checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
2050[[package]]
2051name = "sct"
2052version = "0.7.1"
2053source = "registry+https://github.com/rust-lang/crates.io-index"
2054checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414"
2055dependencies = [
2056 "ring",
2057 "untrusted",
2060[[package]]
2061name = "security-framework"
2062version = "3.7.0"
2063source = "registry+https://github.com/rust-lang/crates.io-index"
2064checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
2065dependencies = [
2066 "bitflags 2.11.1",
2067 "core-foundation 0.10.1",
2068 "core-foundation-sys",
2069 "libc",
2070 "security-framework-sys",
2073[[package]]
2074name = "security-framework-sys"
2075version = "2.17.0"
2076source = "registry+https://github.com/rust-lang/crates.io-index"
2077checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
2078dependencies = [
2079 "core-foundation-sys",
2080 "libc",
2083[[package]]
2084name = "semver"
2085version = "1.0.28"
2086source = "registry+https://github.com/rust-lang/crates.io-index"
2087checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
2089[[package]]
2090name = "serde"
2091version = "1.0.228"
2092source = "registry+https://github.com/rust-lang/crates.io-index"
2093checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
2094dependencies = [
2095 "serde_core",
2096 "serde_derive",
2099[[package]]
2100name = "serde-value"
2101version = "0.7.0"
2102source = "registry+https://github.com/rust-lang/crates.io-index"
2103checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c"
2104dependencies = [
2105 "ordered-float",
2106 "serde",
2109[[package]]
2110name = "serde_core"
2111version = "1.0.228"
2112source = "registry+https://github.com/rust-lang/crates.io-index"
2113checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
2114dependencies = [
2115 "serde_derive",
2118[[package]]
2119name = "serde_derive"
2120version = "1.0.228"
2121source = "registry+https://github.com/rust-lang/crates.io-index"
2122checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
2123dependencies = [
2124 "proc-macro2",
2125 "quote",
2126 "syn",
2129[[package]]
2130name = "serde_json"
2131version = "1.0.150"
2132source = "registry+https://github.com/rust-lang/crates.io-index"
2133checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
2134dependencies = [
2135 "itoa",
2136 "memchr",
2137 "serde",
2138 "serde_core",
2139 "zmij",
2142[[package]]
2143name = "serde_path_to_error"
2144version = "0.1.20"
2145source = "registry+https://github.com/rust-lang/crates.io-index"
2146checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457"
2147dependencies = [
2148 "itoa",
2149 "serde",
2150 "serde_core",
2153[[package]]
2154name = "serde_urlencoded"
2155version = "0.7.1"
2156source = "registry+https://github.com/rust-lang/crates.io-index"
2157checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
2158dependencies = [
2159 "form_urlencoded",
2160 "itoa",
2161 "ryu",
2162 "serde",
2165[[package]]
2166name = "sha2"
2167version = "0.10.9"
2168source = "registry+https://github.com/rust-lang/crates.io-index"
2169checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
2170dependencies = [
2171 "cfg-if",
2172 "cpufeatures",
2173 "digest",
2176[[package]]
2177name = "sharded-slab"
2178version = "0.1.7"
2179source = "registry+https://github.com/rust-lang/crates.io-index"
2180checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
2181dependencies = [
2182 "lazy_static",
2185[[package]]
2186name = "shlex"
2187version = "1.3.0"
2188source = "registry+https://github.com/rust-lang/crates.io-index"
2189checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
2191[[package]]
2192name = "signal-hook"
2193version = "0.3.18"
2194source = "registry+https://github.com/rust-lang/crates.io-index"
2195checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2"
2196dependencies = [
2197 "libc",
2198 "signal-hook-registry",
2201[[package]]
2202name = "signal-hook-mio"
2203version = "0.2.5"
2204source = "registry+https://github.com/rust-lang/crates.io-index"
2205checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc"
2206dependencies = [
2207 "libc",
2208 "mio",
2209 "signal-hook",
2212[[package]]
2213name = "signal-hook-registry"
2214version = "1.4.8"
2215source = "registry+https://github.com/rust-lang/crates.io-index"
2216checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
2217dependencies = [
2218 "errno",
2219 "libc",
2222[[package]]
2223name = "slab"
2224version = "0.4.12"
2225source = "registry+https://github.com/rust-lang/crates.io-index"
2226checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
2228[[package]]
2229name = "smallvec"
2230version = "1.15.1"
2231source = "registry+https://github.com/rust-lang/crates.io-index"
2232checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
2234[[package]]
2235name = "socket2"
2236version = "0.5.10"
2237source = "registry+https://github.com/rust-lang/crates.io-index"
2238checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"
2239dependencies = [
2240 "libc",
2241 "windows-sys 0.52.0",
2244[[package]]
2245name = "socket2"
2246version = "0.6.3"
2247source = "registry+https://github.com/rust-lang/crates.io-index"
2248checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
2249dependencies = [
2250 "libc",
2251 "windows-sys 0.61.2",
2254[[package]]
2255name = "stable_deref_trait"
2256version = "1.2.1"
2257source = "registry+https://github.com/rust-lang/crates.io-index"
2258checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
2260[[package]]
2261name = "static_assertions"
2262version = "1.1.0"
2263source = "registry+https://github.com/rust-lang/crates.io-index"
2264checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
2266[[package]]
2267name = "strsim"
2268version = "0.11.1"
2269source = "registry+https://github.com/rust-lang/crates.io-index"
2270checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
2272[[package]]
2273name = "strum"
2274version = "0.26.3"
2275source = "registry+https://github.com/rust-lang/crates.io-index"
2276checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
2277dependencies = [
2278 "strum_macros",
2281[[package]]
2282name = "strum_macros"
2283version = "0.26.4"
2284source = "registry+https://github.com/rust-lang/crates.io-index"
2285checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
2286dependencies = [
2287 "heck",
2288 "proc-macro2",
2289 "quote",
2290 "rustversion",
2291 "syn",
2294[[package]]
2295name = "subtle"
2296version = "2.6.1"
2297source = "registry+https://github.com/rust-lang/crates.io-index"
2298checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
2300[[package]]
2301name = "syn"
2302version = "2.0.117"
2303source = "registry+https://github.com/rust-lang/crates.io-index"
2304checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
2305dependencies = [
2306 "proc-macro2",
2307 "quote",
2308 "unicode-ident",
2311[[package]]
2312name = "sync_wrapper"
2313version = "0.1.2"
2314source = "registry+https://github.com/rust-lang/crates.io-index"
2315checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
2317[[package]]
2318name = "sync_wrapper"
2319version = "1.0.2"
2320source = "registry+https://github.com/rust-lang/crates.io-index"
2321checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
2322dependencies = [
2323 "futures-core",
2326[[package]]
2327name = "synstructure"
2328version = "0.13.2"
2329source = "registry+https://github.com/rust-lang/crates.io-index"
2330checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
2331dependencies = [
2332 "proc-macro2",
2333 "quote",
2334 "syn",
2337[[package]]
2338name = "system-configuration"
2339version = "0.5.1"
2340source = "registry+https://github.com/rust-lang/crates.io-index"
2341checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7"
2342dependencies = [
2343 "bitflags 1.3.2",
2344 "core-foundation 0.9.4",
2345 "system-configuration-sys 0.5.0",
2348[[package]]
2349name = "system-configuration"
2350version = "0.7.0"
2351source = "registry+https://github.com/rust-lang/crates.io-index"
2352checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"
2353dependencies = [
2354 "bitflags 2.11.1",
2355 "core-foundation 0.9.4",
2356 "system-configuration-sys 0.6.0",
2359[[package]]
2360name = "system-configuration-sys"
2361version = "0.5.0"
2362source = "registry+https://github.com/rust-lang/crates.io-index"
2363checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9"
2364dependencies = [
2365 "core-foundation-sys",
2366 "libc",
2369[[package]]
2370name = "system-configuration-sys"
2371version = "0.6.0"
2372source = "registry+https://github.com/rust-lang/crates.io-index"
2373checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
2374dependencies = [
2375 "core-foundation-sys",
2376 "libc",
2379[[package]]
2380name = "tempfile"
2381version = "3.27.0"
2382source = "registry+https://github.com/rust-lang/crates.io-index"
2383checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
2384dependencies = [
2385 "fastrand",
2386 "getrandom 0.4.2",
2387 "once_cell",
2388 "rustix 1.1.4",
2389 "windows-sys 0.61.2",
2392[[package]]
2393name = "thiserror"
2394version = "1.0.69"
2395source = "registry+https://github.com/rust-lang/crates.io-index"
2396checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
2397dependencies = [
2398 "thiserror-impl 1.0.69",
2401[[package]]
2402name = "thiserror"
2403version = "2.0.18"
2404source = "registry+https://github.com/rust-lang/crates.io-index"
2405checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
2406dependencies = [
2407 "thiserror-impl 2.0.18",
2410[[package]]
2411name = "thiserror-impl"
2412version = "1.0.69"
2413source = "registry+https://github.com/rust-lang/crates.io-index"
2414checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
2415dependencies = [
2416 "proc-macro2",
2417 "quote",
2418 "syn",
2421[[package]]
2422name = "thiserror-impl"
2423version = "2.0.18"
2424source = "registry+https://github.com/rust-lang/crates.io-index"
2425checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
2426dependencies = [
2427 "proc-macro2",
2428 "quote",
2429 "syn",
2432[[package]]
2433name = "thread_local"
2434version = "1.1.9"
2435source = "registry+https://github.com/rust-lang/crates.io-index"
2436checksum = "f60246a4944f24f6e018aa17cdeffb7818b76356965d03b07d6a9886e8962185"
2437dependencies = [
2438 "cfg-if",
2441[[package]]
2442name = "tinystr"
2443version = "0.8.3"
2444source = "registry+https://github.com/rust-lang/crates.io-index"
2445checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
2446dependencies = [
2447 "displaydoc",
2448 "zerovec",
2451[[package]]
2452name = "tokio"
2453version = "1.52.3"
2454source = "registry+https://github.com/rust-lang/crates.io-index"
2455checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"
2456dependencies = [
2457 "bytes",
2458 "libc",
2459 "mio",
2460 "parking_lot",
2461 "pin-project-lite",
2462 "signal-hook-registry",
2463 "socket2 0.6.3",
2464 "tokio-macros",
2465 "windows-sys 0.61.2",
2468[[package]]
2469name = "tokio-macros"
2470version = "2.7.0"
2471source = "registry+https://github.com/rust-lang/crates.io-index"
2472checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
2473dependencies = [
2474 "proc-macro2",
2475 "quote",
2476 "syn",
2479[[package]]
2480name = "tokio-native-tls"
2481version = "0.3.1"
2482source = "registry+https://github.com/rust-lang/crates.io-index"
2483checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
2484dependencies = [
2485 "native-tls",
2486 "tokio",
2489[[package]]
2490name = "tokio-rustls"
2491version = "0.24.1"
2492source = "registry+https://github.com/rust-lang/crates.io-index"
2493checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081"
2494dependencies = [
2495 "rustls 0.21.12",
2496 "tokio",
2499[[package]]
2500name = "tokio-rustls"
2501version = "0.26.4"
2502source = "registry+https://github.com/rust-lang/crates.io-index"
2503checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"
2504dependencies = [
2505 "rustls 0.23.40",
2506 "tokio",
2509[[package]]
2510name = "tokio-util"
2511version = "0.7.18"
2512source = "registry+https://github.com/rust-lang/crates.io-index"
2513checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"
2514dependencies = [
2515 "bytes",
2516 "futures-core",
2517 "futures-sink",
2518 "pin-project-lite",
2519 "tokio",
2522[[package]]
2523name = "tower"
2524version = "0.5.3"
2525source = "registry+https://github.com/rust-lang/crates.io-index"
2526checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
2527dependencies = [
2528 "futures-core",
2529 "futures-util",
2530 "pin-project-lite",
2531 "sync_wrapper 1.0.2",
2532 "tokio",
2533 "tower-layer",
2534 "tower-service",
2537[[package]]
2538name = "tower-http"
2539version = "0.6.11"
2540source = "registry+https://github.com/rust-lang/crates.io-index"
2541checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
2542dependencies = [
2543 "bitflags 2.11.1",
2544 "bytes",
2545 "futures-util",
2546 "http 1.4.0",
2547 "http-body 1.0.1",
2548 "pin-project-lite",
2549 "tower",
2550 "tower-layer",
2551 "tower-service",
2552 "url",
2555[[package]]
2556name = "tower-layer"
2557version = "0.3.3"
2558source = "registry+https://github.com/rust-lang/crates.io-index"
2559checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
2561[[package]]
2562name = "tower-service"
2563version = "0.3.3"
2564source = "registry+https://github.com/rust-lang/crates.io-index"
2565checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
2567[[package]]
2568name = "tracing"
2569version = "0.1.44"
2570source = "registry+https://github.com/rust-lang/crates.io-index"
2571checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
2572dependencies = [
2573 "pin-project-lite",
2574 "tracing-attributes",
2575 "tracing-core",
2578[[package]]
2579name = "tracing-attributes"
2580version = "0.1.31"
2581source = "registry+https://github.com/rust-lang/crates.io-index"
2582checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
2583dependencies = [
2584 "proc-macro2",
2585 "quote",
2586 "syn",
2589[[package]]
2590name = "tracing-core"
2591version = "0.1.36"
2592source = "registry+https://github.com/rust-lang/crates.io-index"
2593checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
2594dependencies = [
2595 "once_cell",
2596 "valuable",
2599[[package]]
2600name = "tracing-log"
2601version = "0.2.0"
2602source = "registry+https://github.com/rust-lang/crates.io-index"
2603checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
2604dependencies = [
2605 "log",
2606 "once_cell",
2607 "tracing-core",
2610[[package]]
2611name = "tracing-subscriber"
2612version = "0.3.23"
2613source = "registry+https://github.com/rust-lang/crates.io-index"
2614checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
2615dependencies = [
2616 "matchers",
2617 "nu-ansi-term",
2618 "once_cell",
2619 "regex-automata",
2620 "sharded-slab",
2621 "smallvec",
2622 "thread_local",
2623 "tracing",
2624 "tracing-core",
2625 "tracing-log",
2628[[package]]
2629name = "try-lock"
2630version = "0.2.5"
2631source = "registry+https://github.com/rust-lang/crates.io-index"
2632checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
2634[[package]]
2635name = "typeid"
2636version = "1.0.3"
2637source = "registry+https://github.com/rust-lang/crates.io-index"
2638checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
2640[[package]]
2641name = "typenum"
2642version = "1.20.0"
2643source = "registry+https://github.com/rust-lang/crates.io-index"
2644checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de"
2646[[package]]
2647name = "unicode-ident"
2648version = "1.0.24"
2649source = "registry+https://github.com/rust-lang/crates.io-index"
2650checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
2652[[package]]
2653name = "unicode-segmentation"
2654version = "1.13.2"
2655source = "registry+https://github.com/rust-lang/crates.io-index"
2656checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c"
2658[[package]]
2659name = "unicode-truncate"
2660version = "1.1.0"
2661source = "registry+https://github.com/rust-lang/crates.io-index"
2662checksum = "b3644627a5af5fa321c95b9b235a72fd24cd29c648c2c379431e6628655627bf"
2663dependencies = [
2664 "itertools",
2665 "unicode-segmentation",
2666 "unicode-width 0.1.14",
2669[[package]]
2670name = "unicode-width"
2671version = "0.1.14"
2672source = "registry+https://github.com/rust-lang/crates.io-index"
2673checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
2675[[package]]
2676name = "unicode-width"
2677version = "0.2.0"
2678source = "registry+https://github.com/rust-lang/crates.io-index"
2679checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd"
2681[[package]]
2682name = "unicode-xid"
2683version = "0.2.6"
2684source = "registry+https://github.com/rust-lang/crates.io-index"
2685checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
2687[[package]]
2688name = "untrusted"
2689version = "0.9.0"
2690source = "registry+https://github.com/rust-lang/crates.io-index"
2691checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
2693[[package]]
2694name = "url"
2695version = "2.5.8"
2696source = "registry+https://github.com/rust-lang/crates.io-index"
2697checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
2698dependencies = [
2699 "form_urlencoded",
2700 "idna",
2701 "percent-encoding",
2702 "serde",
2703 "serde_derive",
2706[[package]]
2707name = "utf8_iter"
2708version = "1.0.4"
2709source = "registry+https://github.com/rust-lang/crates.io-index"
2710checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
2712[[package]]
2713name = "utf8parse"
2714version = "0.2.2"
2715source = "registry+https://github.com/rust-lang/crates.io-index"
2716checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
2718[[package]]
2719name = "uuid"
2720version = "1.23.1"
2721source = "registry+https://github.com/rust-lang/crates.io-index"
2722checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76"
2723dependencies = [
2724 "getrandom 0.4.2",
2725 "js-sys",
2726 "wasm-bindgen",
2729[[package]]
2730name = "uuid-simd"
2731version = "0.8.0"
2732source = "registry+https://github.com/rust-lang/crates.io-index"
2733checksum = "23b082222b4f6619906941c17eb2297fff4c2fb96cb60164170522942a200bd8"
2734dependencies = [
2735 "outref",
2736 "uuid",
2737 "vsimd",
2740[[package]]
2741name = "valuable"
2742version = "0.1.1"
2743source = "registry+https://github.com/rust-lang/crates.io-index"
2744checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
2746[[package]]
2747name = "vcpkg"
2748version = "0.2.15"
2749source = "registry+https://github.com/rust-lang/crates.io-index"
2750checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
2752[[package]]
2753name = "version_check"
2754version = "0.9.5"
2755source = "registry+https://github.com/rust-lang/crates.io-index"
2756checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
2758[[package]]
2759name = "vsimd"
2760version = "0.8.0"
2761source = "registry+https://github.com/rust-lang/crates.io-index"
2762checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64"
2764[[package]]
2765name = "want"
2766version = "0.3.1"
2767source = "registry+https://github.com/rust-lang/crates.io-index"
2768checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
2769dependencies = [
2770 "try-lock",
2773[[package]]
2774name = "wasi"
2775version = "0.11.1+wasi-snapshot-preview1"
2776source = "registry+https://github.com/rust-lang/crates.io-index"
2777checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
2779[[package]]
2780name = "wasip2"
2781version = "1.0.1+wasi-0.2.4"
2782source = "registry+https://github.com/rust-lang/crates.io-index"
2783checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7"
2784dependencies = [
2785 "wit-bindgen 0.46.0",
2788[[package]]
2789name = "wasip3"
2790version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
2791source = "registry+https://github.com/rust-lang/crates.io-index"
2792checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
2793dependencies = [
2794 "wit-bindgen 0.51.0",
2797[[package]]
2798name = "wasm-bindgen"
2799version = "0.2.121"
2800source = "registry+https://github.com/rust-lang/crates.io-index"
2801checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790"
2802dependencies = [
2803 "cfg-if",
2804 "once_cell",
2805 "rustversion",
2806 "wasm-bindgen-macro",
2807 "wasm-bindgen-shared",
2810[[package]]
2811name = "wasm-bindgen-futures"
2812version = "0.4.71"
2813source = "registry+https://github.com/rust-lang/crates.io-index"
2814checksum = "96492d0d3ffba25305a7dc88720d250b1401d7edca02cc3bcd50633b424673b8"
2815dependencies = [
2816 "js-sys",
2817 "wasm-bindgen",
2820[[package]]
2821name = "wasm-bindgen-macro"
2822version = "0.2.121"
2823source = "registry+https://github.com/rust-lang/crates.io-index"
2824checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578"
2825dependencies = [
2826 "quote",
2827 "wasm-bindgen-macro-support",
2830[[package]]
2831name = "wasm-bindgen-macro-support"
2832version = "0.2.121"
2833source = "registry+https://github.com/rust-lang/crates.io-index"
2834checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2"
2835dependencies = [
2836 "bumpalo",
2837 "proc-macro2",
2838 "quote",
2839 "syn",
2840 "wasm-bindgen-shared",
2843[[package]]
2844name = "wasm-bindgen-shared"
2845version = "0.2.121"
2846source = "registry+https://github.com/rust-lang/crates.io-index"
2847checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441"
2848dependencies = [
2849 "unicode-ident",
2852[[package]]
2853name = "wasm-encoder"
2854version = "0.244.0"
2855source = "registry+https://github.com/rust-lang/crates.io-index"
2856checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
2857dependencies = [
2858 "leb128fmt",
2859 "wasmparser",
2862[[package]]
2863name = "wasm-metadata"
2864version = "0.244.0"
2865source = "registry+https://github.com/rust-lang/crates.io-index"
2866checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
2867dependencies = [
2868 "anyhow",
2869 "indexmap",
2870 "wasm-encoder",
2871 "wasmparser",
2874[[package]]
2875name = "wasm-streams"
2876version = "0.4.2"
2877source = "registry+https://github.com/rust-lang/crates.io-index"
2878checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65"
2879dependencies = [
2880 "futures-util",
2881 "js-sys",
2882 "wasm-bindgen",
2883 "wasm-bindgen-futures",
2884 "web-sys",
2887[[package]]
2888name = "wasmparser"
2889version = "0.244.0"
2890source = "registry+https://github.com/rust-lang/crates.io-index"
2891checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
2892dependencies = [
2893 "bitflags 2.11.1",
2894 "hashbrown 0.15.5",
2895 "indexmap",
2896 "semver",
2899[[package]]
2900name = "web-sys"
2901version = "0.3.98"
2902source = "registry+https://github.com/rust-lang/crates.io-index"
2903checksum = "4b572dff8bcf38bad0fa19729c89bb5748b2b9b1d8be70cf90df697e3a8f32aa"
2904dependencies = [
2905 "js-sys",
2906 "wasm-bindgen",
2909[[package]]
2910name = "webpki-roots"
2911version = "0.25.4"
2912source = "registry+https://github.com/rust-lang/crates.io-index"
2913checksum = "5f20c57d8d7db6d3b86154206ae5d8fba62dd39573114de97c2cb0578251f8e1"
2915[[package]]
2916name = "which"
2917version = "7.0.3"
2918source = "registry+https://github.com/rust-lang/crates.io-index"
2919checksum = "24d643ce3fd3e5b54854602a080f34fb10ab75e0b813ee32d00ca2b44fa74762"
2920dependencies = [
2921 "either",
2922 "env_home",
2923 "rustix 1.1.4",
2924 "winsafe",
2927[[package]]
2928name = "winapi"
2929version = "0.3.9"
2930source = "registry+https://github.com/rust-lang/crates.io-index"
2931checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
2932dependencies = [
2933 "winapi-i686-pc-windows-gnu",
2934 "winapi-x86_64-pc-windows-gnu",
2937[[package]]
2938name = "winapi-i686-pc-windows-gnu"
2939version = "0.4.0"
2940source = "registry+https://github.com/rust-lang/crates.io-index"
2941checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
2943[[package]]
2944name = "winapi-x86_64-pc-windows-gnu"
2945version = "0.4.0"
2946source = "registry+https://github.com/rust-lang/crates.io-index"
2947checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
2949[[package]]
2950name = "windows-core"
2951version = "0.62.2"
2952source = "registry+https://github.com/rust-lang/crates.io-index"
2953checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
2954dependencies = [
2955 "windows-implement",
2956 "windows-interface",
2957 "windows-link",
2958 "windows-result",
2959 "windows-strings",
2962[[package]]
2963name = "windows-implement"
2964version = "0.60.2"
2965source = "registry+https://github.com/rust-lang/crates.io-index"
2966checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
2967dependencies = [
2968 "proc-macro2",
2969 "quote",
2970 "syn",
2973[[package]]
2974name = "windows-interface"
2975version = "0.59.3"
2976source = "registry+https://github.com/rust-lang/crates.io-index"
2977checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
2978dependencies = [
2979 "proc-macro2",
2980 "quote",
2981 "syn",
2984[[package]]
2985name = "windows-link"
2986version = "0.2.1"
2987source = "registry+https://github.com/rust-lang/crates.io-index"
2988checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
2990[[package]]
2991name = "windows-registry"
2992version = "0.6.1"
2993source = "registry+https://github.com/rust-lang/crates.io-index"
2994checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"
2995dependencies = [
2996 "windows-link",
2997 "windows-result",
2998 "windows-strings",
3001[[package]]
3002name = "windows-result"
3003version = "0.4.1"
3004source = "registry+https://github.com/rust-lang/crates.io-index"
3005checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
3006dependencies = [
3007 "windows-link",
3010[[package]]
3011name = "windows-strings"
3012version = "0.5.1"
3013source = "registry+https://github.com/rust-lang/crates.io-index"
3014checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
3015dependencies = [
3016 "windows-link",
3019[[package]]
3020name = "windows-sys"
3021version = "0.48.0"
3022source = "registry+https://github.com/rust-lang/crates.io-index"
3023checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
3024dependencies = [
3025 "windows-targets 0.48.5",
3028[[package]]
3029name = "windows-sys"
3030version = "0.52.0"
3031source = "registry+https://github.com/rust-lang/crates.io-index"
3032checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
3033dependencies = [
3034 "windows-targets 0.52.6",
3037[[package]]
3038name = "windows-sys"
3039version = "0.59.0"
3040source = "registry+https://github.com/rust-lang/crates.io-index"
3041checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
3042dependencies = [
3043 "windows-targets 0.52.6",
3046[[package]]
3047name = "windows-sys"
3048version = "0.61.2"
3049source = "registry+https://github.com/rust-lang/crates.io-index"
3050checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
3051dependencies = [
3052 "windows-link",
3055[[package]]
3056name = "windows-targets"
3057version = "0.48.5"
3058source = "registry+https://github.com/rust-lang/crates.io-index"
3059checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
3060dependencies = [
3061 "windows_aarch64_gnullvm 0.48.5",
3062 "windows_aarch64_msvc 0.48.5",
3063 "windows_i686_gnu 0.48.5",
3064 "windows_i686_msvc 0.48.5",
3065 "windows_x86_64_gnu 0.48.5",
3066 "windows_x86_64_gnullvm 0.48.5",
3067 "windows_x86_64_msvc 0.48.5",
3070[[package]]
3071name = "windows-targets"
3072version = "0.52.6"
3073source = "registry+https://github.com/rust-lang/crates.io-index"
3074checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
3075dependencies = [
3076 "windows_aarch64_gnullvm 0.52.6",
3077 "windows_aarch64_msvc 0.52.6",
3078 "windows_i686_gnu 0.52.6",
3079 "windows_i686_gnullvm",
3080 "windows_i686_msvc 0.52.6",
3081 "windows_x86_64_gnu 0.52.6",
3082 "windows_x86_64_gnullvm 0.52.6",
3083 "windows_x86_64_msvc 0.52.6",
3086[[package]]
3087name = "windows_aarch64_gnullvm"
3088version = "0.48.5"
3089source = "registry+https://github.com/rust-lang/crates.io-index"
3090checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
3092[[package]]
3093name = "windows_aarch64_gnullvm"
3094version = "0.52.6"
3095source = "registry+https://github.com/rust-lang/crates.io-index"
3096checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
3098[[package]]
3099name = "windows_aarch64_msvc"
3100version = "0.48.5"
3101source = "registry+https://github.com/rust-lang/crates.io-index"
3102checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
3104[[package]]
3105name = "windows_aarch64_msvc"
3106version = "0.52.6"
3107source = "registry+https://github.com/rust-lang/crates.io-index"
3108checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
3110[[package]]
3111name = "windows_i686_gnu"
3112version = "0.48.5"
3113source = "registry+https://github.com/rust-lang/crates.io-index"
3114checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
3116[[package]]
3117name = "windows_i686_gnu"
3118version = "0.52.6"
3119source = "registry+https://github.com/rust-lang/crates.io-index"
3120checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
3122[[package]]
3123name = "windows_i686_gnullvm"
3124version = "0.52.6"
3125source = "registry+https://github.com/rust-lang/crates.io-index"
3126checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
3128[[package]]
3129name = "windows_i686_msvc"
3130version = "0.48.5"
3131source = "registry+https://github.com/rust-lang/crates.io-index"
3132checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
3134[[package]]
3135name = "windows_i686_msvc"
3136version = "0.52.6"
3137source = "registry+https://github.com/rust-lang/crates.io-index"
3138checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
3140[[package]]
3141name = "windows_x86_64_gnu"
3142version = "0.48.5"
3143source = "registry+https://github.com/rust-lang/crates.io-index"
3144checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
3146[[package]]
3147name = "windows_x86_64_gnu"
3148version = "0.52.6"
3149source = "registry+https://github.com/rust-lang/crates.io-index"
3150checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
3152[[package]]
3153name = "windows_x86_64_gnullvm"
3154version = "0.48.5"
3155source = "registry+https://github.com/rust-lang/crates.io-index"
3156checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
3158[[package]]
3159name = "windows_x86_64_gnullvm"
3160version = "0.52.6"
3161source = "registry+https://github.com/rust-lang/crates.io-index"
3162checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
3164[[package]]
3165name = "windows_x86_64_msvc"
3166version = "0.48.5"
3167source = "registry+https://github.com/rust-lang/crates.io-index"
3168checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
3170[[package]]
3171name = "windows_x86_64_msvc"
3172version = "0.52.6"
3173source = "registry+https://github.com/rust-lang/crates.io-index"
3174checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
3176[[package]]
3177name = "winreg"
3178version = "0.50.0"
3179source = "registry+https://github.com/rust-lang/crates.io-index"
3180checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1"
3181dependencies = [
3182 "cfg-if",
3183 "windows-sys 0.48.0",
3186[[package]]
3187name = "winsafe"
3188version = "0.0.19"
3189source = "registry+https://github.com/rust-lang/crates.io-index"
3190checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"
3192[[package]]
3193name = "wit-bindgen"
3194version = "0.46.0"
3195source = "registry+https://github.com/rust-lang/crates.io-index"
3196checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59"
3198[[package]]
3199name = "wit-bindgen"
3200version = "0.51.0"
3201source = "registry+https://github.com/rust-lang/crates.io-index"
3202checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
3203dependencies = [
3204 "wit-bindgen-rust-macro",
3207[[package]]
3208name = "wit-bindgen-core"
3209version = "0.51.0"
3210source = "registry+https://github.com/rust-lang/crates.io-index"
3211checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
3212dependencies = [
3213 "anyhow",
3214 "heck",
3215 "wit-parser",
3218[[package]]
3219name = "wit-bindgen-rust"
3220version = "0.51.0"
3221source = "registry+https://github.com/rust-lang/crates.io-index"
3222checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
3223dependencies = [
3224 "anyhow",
3225 "heck",
3226 "indexmap",
3227 "prettyplease",
3228 "syn",
3229 "wasm-metadata",
3230 "wit-bindgen-core",
3231 "wit-component",
3234[[package]]
3235name = "wit-bindgen-rust-macro"
3236version = "0.51.0"
3237source = "registry+https://github.com/rust-lang/crates.io-index"
3238checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
3239dependencies = [
3240 "anyhow",
3241 "prettyplease",
3242 "proc-macro2",
3243 "quote",
3244 "syn",
3245 "wit-bindgen-core",
3246 "wit-bindgen-rust",
3249[[package]]
3250name = "wit-component"
3251version = "0.244.0"
3252source = "registry+https://github.com/rust-lang/crates.io-index"
3253checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
3254dependencies = [
3255 "anyhow",
3256 "bitflags 2.11.1",
3257 "indexmap",
3258 "log",
3259 "serde",
3260 "serde_derive",
3261 "serde_json",
3262 "wasm-encoder",
3263 "wasm-metadata",
3264 "wasmparser",
3265 "wit-parser",
3268[[package]]
3269name = "wit-parser"
3270version = "0.244.0"
3271source = "registry+https://github.com/rust-lang/crates.io-index"
3272checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
3273dependencies = [
3274 "anyhow",
3275 "id-arena",
3276 "indexmap",
3277 "log",
3278 "semver",
3279 "serde",
3280 "serde_derive",
3281 "serde_json",
3282 "unicode-xid",
3283 "wasmparser",
3286[[package]]
3287name = "writeable"
3288version = "0.6.3"
3289source = "registry+https://github.com/rust-lang/crates.io-index"
3290checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
3292[[package]]
3293name = "yoke"
3294version = "0.8.2"
3295source = "registry+https://github.com/rust-lang/crates.io-index"
3296checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca"
3297dependencies = [
3298 "stable_deref_trait",
3299 "yoke-derive",
3300 "zerofrom",
3303[[package]]
3304name = "yoke-derive"
3305version = "0.8.2"
3306source = "registry+https://github.com/rust-lang/crates.io-index"
3307checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
3308dependencies = [
3309 "proc-macro2",
3310 "quote",
3311 "syn",
3312 "synstructure",
3315[[package]]
3316name = "zerocopy"
3317version = "0.8.48"
3318source = "registry+https://github.com/rust-lang/crates.io-index"
3319checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
3320dependencies = [
3321 "zerocopy-derive",
3324[[package]]
3325name = "zerocopy-derive"
3326version = "0.8.48"
3327source = "registry+https://github.com/rust-lang/crates.io-index"
3328checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
3329dependencies = [
3330 "proc-macro2",
3331 "quote",
3332 "syn",
3335[[package]]
3336name = "zerofrom"
3337version = "0.1.8"
3338source = "registry+https://github.com/rust-lang/crates.io-index"
3339checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
3340dependencies = [
3341 "zerofrom-derive",
3344[[package]]
3345name = "zerofrom-derive"
3346version = "0.1.7"
3347source = "registry+https://github.com/rust-lang/crates.io-index"
3348checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
3349dependencies = [
3350 "proc-macro2",
3351 "quote",
3352 "syn",
3353 "synstructure",
3356[[package]]
3357name = "zeroize"
3358version = "1.8.2"
3359source = "registry+https://github.com/rust-lang/crates.io-index"
3360checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
3362[[package]]
3363name = "zerotrie"
3364version = "0.2.4"
3365source = "registry+https://github.com/rust-lang/crates.io-index"
3366checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
3367dependencies = [
3368 "displaydoc",
3369 "yoke",
3370 "zerofrom",
3373[[package]]
3374name = "zerovec"
3375version = "0.11.6"
3376source = "registry+https://github.com/rust-lang/crates.io-index"
3377checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
3378dependencies = [
3379 "yoke",
3380 "zerofrom",
3381 "zerovec-derive",
3384[[package]]
3385name = "zerovec-derive"
3386version = "0.11.3"
3387source = "registry+https://github.com/rust-lang/crates.io-index"
3388checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
3389dependencies = [
3390 "proc-macro2",
3391 "quote",
3392 "syn",
3395[[package]]
3396name = "zmij"
3397version = "1.0.21"
3398source = "registry+https://github.com/rust-lang/crates.io-index"
3399checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"

prototypes/p1-workspace/Cargo.toml

Added
new file mode 100644

+33 / −0 text lines

1[package]
2name = "p1-workspace"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7mlua = { version = "0.10", features = ["luajit", "vendored", "serialize"] }
8serde = { version = "1", features = ["derive"] }
9serde_json = "1"
10minicbor = { version = "0.25", features = ["std", "derive"] }
11tokio = { version = "1", features = ["full"] }
12futures = "0.3"
13reqwest = { version = "0.12", features = ["json", "stream"] }
14clap = { version = "4", features = ["derive"] }
15crossterm = "0.28"
16ratatui = "0.29"
17unicode-width = "0.2"
18unicode-segmentation = "1"
19oauth2 = "4"
20url = "2"
21uuid = { version = "1", features = ["v7"] }
22thiserror = "2"
23tracing = "0.1"
24tracing-subscriber = { version = "0.3", features = ["env-filter"] }
25dirs = "5"
26jsonschema = "0.28"
28[profile.release]
29opt-level = 3
30lto = "thin"
31codegen-units = 1
32strip = "symbols"
33panic = "abort"

prototypes/p1-workspace/src/main.rs

Added
new file mode 100644

+4 / −0 text lines

1#![allow(missing_docs)]
2fn main() {
3 println!("All deps compile");
4}

prototypes/p10-xtask/Cargo.lock

Added
new file mode 100644

+379 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "adler2"
7version = "2.0.1"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
11[[package]]
12name = "arbitrary"
13version = "1.4.2"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
16dependencies = [
17 "derive_arbitrary",
18]
20[[package]]
21name = "bitflags"
22version = "2.11.1"
23source = "registry+https://github.com/rust-lang/crates.io-index"
24checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
26[[package]]
27name = "block-buffer"
28version = "0.10.4"
29source = "registry+https://github.com/rust-lang/crates.io-index"
30checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
31dependencies = [
32 "generic-array",
33]
35[[package]]
36name = "bumpalo"
37version = "3.20.3"
38source = "registry+https://github.com/rust-lang/crates.io-index"
39checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
41[[package]]
42name = "cfg-if"
43version = "1.0.4"
44source = "registry+https://github.com/rust-lang/crates.io-index"
45checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
47[[package]]
48name = "cpufeatures"
49version = "0.2.17"
50source = "registry+https://github.com/rust-lang/crates.io-index"
51checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
52dependencies = [
53 "libc",
54]
56[[package]]
57name = "crc32fast"
58version = "1.5.0"
59source = "registry+https://github.com/rust-lang/crates.io-index"
60checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
61dependencies = [
62 "cfg-if",
63]
65[[package]]
66name = "crossbeam-utils"
67version = "0.8.21"
68source = "registry+https://github.com/rust-lang/crates.io-index"
69checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
71[[package]]
72name = "crypto-common"
73version = "0.1.7"
74source = "registry+https://github.com/rust-lang/crates.io-index"
75checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
76dependencies = [
77 "generic-array",
78 "typenum",
79]
81[[package]]
82name = "derive_arbitrary"
83version = "1.4.2"
84source = "registry+https://github.com/rust-lang/crates.io-index"
85checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a"
86dependencies = [
87 "proc-macro2",
88 "quote",
89 "syn",
90]
92[[package]]
93name = "digest"
94version = "0.10.7"
95source = "registry+https://github.com/rust-lang/crates.io-index"
96checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
97dependencies = [
98 "block-buffer",
99 "crypto-common",
100]
102[[package]]
103name = "displaydoc"
104version = "0.2.5"
105source = "registry+https://github.com/rust-lang/crates.io-index"
106checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
107dependencies = [
108 "proc-macro2",
109 "quote",
110 "syn",
111]
113[[package]]
114name = "equivalent"
115version = "1.0.2"
116source = "registry+https://github.com/rust-lang/crates.io-index"
117checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
119[[package]]
120name = "errno"
121version = "0.3.14"
122source = "registry+https://github.com/rust-lang/crates.io-index"
123checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
124dependencies = [
125 "libc",
126 "windows-sys",
127]
129[[package]]
130name = "filetime"
131version = "0.2.29"
132source = "registry+https://github.com/rust-lang/crates.io-index"
133checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759"
134dependencies = [
135 "cfg-if",
136 "libc",
137]
139[[package]]
140name = "flate2"
141version = "1.1.9"
142source = "registry+https://github.com/rust-lang/crates.io-index"
143checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
144dependencies = [
145 "crc32fast",
146 "miniz_oxide",
147]
149[[package]]
150name = "generic-array"
151version = "0.14.7"
152source = "registry+https://github.com/rust-lang/crates.io-index"
153checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
154dependencies = [
155 "typenum",
156 "version_check",
157]
159[[package]]
160name = "hashbrown"
161version = "0.17.1"
162source = "registry+https://github.com/rust-lang/crates.io-index"
163checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
165[[package]]
166name = "indexmap"
167version = "2.14.0"
168source = "registry+https://github.com/rust-lang/crates.io-index"
169checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
170dependencies = [
171 "equivalent",
172 "hashbrown",
173]
175[[package]]
176name = "libc"
177version = "0.2.186"
178source = "registry+https://github.com/rust-lang/crates.io-index"
179checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
181[[package]]
182name = "linux-raw-sys"
183version = "0.12.1"
184source = "registry+https://github.com/rust-lang/crates.io-index"
185checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
187[[package]]
188name = "log"
189version = "0.4.29"
190source = "registry+https://github.com/rust-lang/crates.io-index"
191checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
193[[package]]
194name = "memchr"
195version = "2.8.0"
196source = "registry+https://github.com/rust-lang/crates.io-index"
197checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
199[[package]]
200name = "miniz_oxide"
201version = "0.8.9"
202source = "registry+https://github.com/rust-lang/crates.io-index"
203checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
204dependencies = [
205 "adler2",
206 "simd-adler32",
207]
209[[package]]
210name = "p10-xtask"
211version = "0.1.0"
212dependencies = [
213 "flate2",
214 "sha2",
215 "tar",
216 "zip",
217]
219[[package]]
220name = "proc-macro2"
221version = "1.0.106"
222source = "registry+https://github.com/rust-lang/crates.io-index"
223checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
224dependencies = [
225 "unicode-ident",
226]
228[[package]]
229name = "quote"
230version = "1.0.45"
231source = "registry+https://github.com/rust-lang/crates.io-index"
232checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
233dependencies = [
234 "proc-macro2",
235]
237[[package]]
238name = "rustix"
239version = "1.1.4"
240source = "registry+https://github.com/rust-lang/crates.io-index"
241checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
242dependencies = [
243 "bitflags",
244 "errno",
245 "libc",
246 "linux-raw-sys",
247 "windows-sys",
248]
250[[package]]
251name = "sha2"
252version = "0.10.9"
253source = "registry+https://github.com/rust-lang/crates.io-index"
254checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
255dependencies = [
256 "cfg-if",
257 "cpufeatures",
258 "digest",
259]
261[[package]]
262name = "simd-adler32"
263version = "0.3.9"
264source = "registry+https://github.com/rust-lang/crates.io-index"
265checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"
267[[package]]
268name = "syn"
269version = "2.0.117"
270source = "registry+https://github.com/rust-lang/crates.io-index"
271checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
272dependencies = [
273 "proc-macro2",
274 "quote",
275 "unicode-ident",
276]
278[[package]]
279name = "tar"
280version = "0.4.46"
281source = "registry+https://github.com/rust-lang/crates.io-index"
282checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840"
283dependencies = [
284 "filetime",
285 "libc",
286 "xattr",
287]
289[[package]]
290name = "thiserror"
291version = "2.0.18"
292source = "registry+https://github.com/rust-lang/crates.io-index"
293checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
294dependencies = [
295 "thiserror-impl",
296]
298[[package]]
299name = "thiserror-impl"
300version = "2.0.18"
301source = "registry+https://github.com/rust-lang/crates.io-index"
302checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
303dependencies = [
304 "proc-macro2",
305 "quote",
306 "syn",
307]
309[[package]]
310name = "typenum"
311version = "1.20.0"
312source = "registry+https://github.com/rust-lang/crates.io-index"
313checksum = "40ce102ab67701b8526c123c1bab5cbe42d7040ccfd0f64af1a385808d2f43de"
315[[package]]
316name = "unicode-ident"
317version = "1.0.24"
318source = "registry+https://github.com/rust-lang/crates.io-index"
319checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
321[[package]]
322name = "version_check"
323version = "0.9.5"
324source = "registry+https://github.com/rust-lang/crates.io-index"
325checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
327[[package]]
328name = "windows-link"
329version = "0.2.1"
330source = "registry+https://github.com/rust-lang/crates.io-index"
331checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
333[[package]]
334name = "windows-sys"
335version = "0.61.2"
336source = "registry+https://github.com/rust-lang/crates.io-index"
337checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
338dependencies = [
339 "windows-link",
340]
342[[package]]
343name = "xattr"
344version = "1.6.1"
345source = "registry+https://github.com/rust-lang/crates.io-index"
346checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"
347dependencies = [
348 "libc",
349 "rustix",
350]
352[[package]]
353name = "zip"
354version = "2.4.2"
355source = "registry+https://github.com/rust-lang/crates.io-index"
356checksum = "fabe6324e908f85a1c52063ce7aa26b68dcb7eb6dbc83a2d148403c9bc3eba50"
357dependencies = [
358 "arbitrary",
359 "crc32fast",
360 "crossbeam-utils",
361 "displaydoc",
362 "flate2",
363 "indexmap",
364 "memchr",
365 "thiserror",
366 "zopfli",
367]
369[[package]]
370name = "zopfli"
371version = "0.8.3"
372source = "registry+https://github.com/rust-lang/crates.io-index"
373checksum = "f05cd8797d63865425ff89b5c4a48804f35ba0ce8d125800027ad6017d2b5249"
374dependencies = [
375 "bumpalo",
376 "crc32fast",
377 "log",
378 "simd-adler32",
379]

prototypes/p10-xtask/Cargo.toml

Added
new file mode 100644

+10 / −0 text lines

1[package]
2name = "p10-xtask"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7sha2 = "0.10"
8zip = { version = "2", default-features = false, features = ["deflate"] }
9flate2 = "1"
10tar = "0.4"

prototypes/p10-xtask/src/main.rs

Added
new file mode 100644

+75 / −0 text lines

1//! Prototype: xtask release — build archive + checksum (SM-003/SM-011).
2
3use sha2::{Sha256, Digest};
4use std::path::Path;
5use std::fs;
6
7fn main() {
8 let out = Path::new("target/dist/p10-test");
9 let _ = fs::remove_dir_all(out);
10 fs::create_dir_all(out).unwrap();
12 // Create a fake binary
13 let bin_path = out.join("smith");
14 fs::write(&bin_path, b"#!/bin/sh\necho I am smith\n").unwrap();
16 // Test tar.gz creation
17 let tar_gz = out.join("smith-aarch64-unknown-linux-v0.1.0.tar.gz");
18 create_tar_gz(out, &tar_gz, &["smith"]);
19 assert!(tar_gz.exists());
20 println!("tar.gz created: {} bytes", fs::metadata(&tar_gz).unwrap().len());
22 // Test zip creation
23 let zip_path = out.join("smith-x86_64-pc-windows-v0.1.0.zip");
24 create_zip(out, &zip_path, &["smith"]);
25 assert!(zip_path.exists());
26 println!("zip created: {} bytes", fs::metadata(&zip_path).unwrap().len());
28 // Test checksum generation
29 let checksums = generate_checksums(out);
30 assert!(!checksums.is_empty());
31 println!("Checksums:\n{}", checksums);
33 println!("xtask release prototype OK");
34}
36fn create_tar_gz(dir: &Path, out_path: &Path, files: &[&str]) {
37 let file = fs::File::create(out_path).unwrap();
38 let gz = flate2::GzBuilder::new().write(file, flate2::Compression::default());
39 let mut tar = tar::Builder::new(gz);
40 for f in files {
41 tar.append_path_with_name(dir.join(f), f).unwrap();
42 }
43 let _ = tar.finish();
44}
46fn create_zip(dir: &Path, out_path: &Path, files: &[&str]) {
47 let file = fs::File::create(out_path).unwrap();
48 let mut zip = zip::ZipWriter::new(file);
49 for f in files {
50 let data = fs::read(dir.join(f)).unwrap();
51 zip.start_file(f, zip::write::SimpleFileOptions::default()).unwrap();
52 zip.write_all(&data).unwrap();
53 }
54 zip.finish().unwrap();
55}
57use std::io::Write;
59fn generate_checksums(dir: &Path) -> String {
60 let mut lines = String::new();
61 for entry in fs::read_dir(dir).unwrap() {
62 let entry = entry.unwrap();
63 let path = entry.path();
64 if !path.is_file() { continue; }
65 let ext = path.extension().and_then(|e| e.to_str()).unwrap_or("");
66 if !ext.is_empty() && ext != "txt" {
67 let data = fs::read(&path).unwrap();
68 let hash = format!("{:x}", Sha256::digest(&data));
69 lines.push_str(&format!("{} {}\n", hash, path.file_name().unwrap().to_str().unwrap()));
70 }
71 }
72 let ck_path = dir.join("checksums-sha256.txt");
73 fs::write(&ck_path, &lines).unwrap();
74 lines
75}

prototypes/p11-trace-roundtrip/Cargo.lock

Added
new file mode 100644

+286 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "cc"
7version = "1.2.62"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
10dependencies = [
11 "find-msvc-tools",
12 "jobserver",
13 "libc",
14 "shlex",
15]
17[[package]]
18name = "cfg-if"
19version = "1.0.4"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
23[[package]]
24name = "ciborium"
25version = "0.2.2"
26source = "registry+https://github.com/rust-lang/crates.io-index"
27checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e"
28dependencies = [
29 "ciborium-io",
30 "ciborium-ll",
31 "serde",
32]
34[[package]]
35name = "ciborium-io"
36version = "0.2.2"
37source = "registry+https://github.com/rust-lang/crates.io-index"
38checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757"
40[[package]]
41name = "ciborium-ll"
42version = "0.2.2"
43source = "registry+https://github.com/rust-lang/crates.io-index"
44checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9"
45dependencies = [
46 "ciborium-io",
47 "half",
48]
50[[package]]
51name = "crunchy"
52version = "0.2.4"
53source = "registry+https://github.com/rust-lang/crates.io-index"
54checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
56[[package]]
57name = "find-msvc-tools"
58version = "0.1.9"
59source = "registry+https://github.com/rust-lang/crates.io-index"
60checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
62[[package]]
63name = "getrandom"
64version = "0.3.4"
65source = "registry+https://github.com/rust-lang/crates.io-index"
66checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
67dependencies = [
68 "cfg-if",
69 "libc",
70 "r-efi",
71 "wasip2",
72]
74[[package]]
75name = "half"
76version = "2.7.1"
77source = "registry+https://github.com/rust-lang/crates.io-index"
78checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
79dependencies = [
80 "cfg-if",
81 "crunchy",
82 "zerocopy",
83]
85[[package]]
86name = "itoa"
87version = "1.0.18"
88source = "registry+https://github.com/rust-lang/crates.io-index"
89checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
91[[package]]
92name = "jobserver"
93version = "0.1.34"
94source = "registry+https://github.com/rust-lang/crates.io-index"
95checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
96dependencies = [
97 "getrandom",
98 "libc",
99]
101[[package]]
102name = "libc"
103version = "0.2.186"
104source = "registry+https://github.com/rust-lang/crates.io-index"
105checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
107[[package]]
108name = "memchr"
109version = "2.8.0"
110source = "registry+https://github.com/rust-lang/crates.io-index"
111checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
113[[package]]
114name = "p11-trace-roundtrip"
115version = "0.1.0"
116dependencies = [
117 "ciborium",
118 "serde",
119 "serde_json",
120 "zstd",
121]
123[[package]]
124name = "pkg-config"
125version = "0.3.33"
126source = "registry+https://github.com/rust-lang/crates.io-index"
127checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
129[[package]]
130name = "proc-macro2"
131version = "1.0.106"
132source = "registry+https://github.com/rust-lang/crates.io-index"
133checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
134dependencies = [
135 "unicode-ident",
136]
138[[package]]
139name = "quote"
140version = "1.0.45"
141source = "registry+https://github.com/rust-lang/crates.io-index"
142checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
143dependencies = [
144 "proc-macro2",
145]
147[[package]]
148name = "r-efi"
149version = "5.3.0"
150source = "registry+https://github.com/rust-lang/crates.io-index"
151checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
153[[package]]
154name = "serde"
155version = "1.0.228"
156source = "registry+https://github.com/rust-lang/crates.io-index"
157checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
158dependencies = [
159 "serde_core",
160 "serde_derive",
161]
163[[package]]
164name = "serde_core"
165version = "1.0.228"
166source = "registry+https://github.com/rust-lang/crates.io-index"
167checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
168dependencies = [
169 "serde_derive",
170]
172[[package]]
173name = "serde_derive"
174version = "1.0.228"
175source = "registry+https://github.com/rust-lang/crates.io-index"
176checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
177dependencies = [
178 "proc-macro2",
179 "quote",
180 "syn",
181]
183[[package]]
184name = "serde_json"
185version = "1.0.150"
186source = "registry+https://github.com/rust-lang/crates.io-index"
187checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
188dependencies = [
189 "itoa",
190 "memchr",
191 "serde",
192 "serde_core",
193 "zmij",
194]
196[[package]]
197name = "shlex"
198version = "1.3.0"
199source = "registry+https://github.com/rust-lang/crates.io-index"
200checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
202[[package]]
203name = "syn"
204version = "2.0.117"
205source = "registry+https://github.com/rust-lang/crates.io-index"
206checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
207dependencies = [
208 "proc-macro2",
209 "quote",
210 "unicode-ident",
211]
213[[package]]
214name = "unicode-ident"
215version = "1.0.24"
216source = "registry+https://github.com/rust-lang/crates.io-index"
217checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
219[[package]]
220name = "wasip2"
221version = "1.0.3+wasi-0.2.9"
222source = "registry+https://github.com/rust-lang/crates.io-index"
223checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
224dependencies = [
225 "wit-bindgen",
226]
228[[package]]
229name = "wit-bindgen"
230version = "0.57.1"
231source = "registry+https://github.com/rust-lang/crates.io-index"
232checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
234[[package]]
235name = "zerocopy"
236version = "0.8.48"
237source = "registry+https://github.com/rust-lang/crates.io-index"
238checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
239dependencies = [
240 "zerocopy-derive",
241]
243[[package]]
244name = "zerocopy-derive"
245version = "0.8.48"
246source = "registry+https://github.com/rust-lang/crates.io-index"
247checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
248dependencies = [
249 "proc-macro2",
250 "quote",
251 "syn",
252]
254[[package]]
255name = "zmij"
256version = "1.0.21"
257source = "registry+https://github.com/rust-lang/crates.io-index"
258checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
260[[package]]
261name = "zstd"
262version = "0.13.3"
263source = "registry+https://github.com/rust-lang/crates.io-index"
264checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a"
265dependencies = [
266 "zstd-safe",
267]
269[[package]]
270name = "zstd-safe"
271version = "7.2.4"
272source = "registry+https://github.com/rust-lang/crates.io-index"
273checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d"
274dependencies = [
275 "zstd-sys",
276]
278[[package]]
279name = "zstd-sys"
280version = "2.0.16+zstd.1.5.7"
281source = "registry+https://github.com/rust-lang/crates.io-index"
282checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748"
283dependencies = [
284 "cc",
285 "pkg-config",
286]

prototypes/p11-trace-roundtrip/Cargo.toml

Added
new file mode 100644

+10 / −0 text lines

1[package]
2name = "p11-trace-roundtrip"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7ciborium = "0.2"
8serde = { version = "1", features = ["derive"] }
9zstd = "0.13"
10serde_json = "1"

prototypes/p11-trace-roundtrip/src/main.rs

Added
new file mode 100644

+282 / −0 text lines

1//! Integration prototype: Session + Trace CBOR-seq with zstd roundtrip.
2#![allow(missing_docs)]
3//! Tests SM-005 shared types + SM-006 core TraceCodec + TraceFileHeader.
4//!
5//! Validates:
6//! 1. SessionEntry enum (all variants) encode/decode via ciborium
7//! 2. TraceEntry enum (nested) encode/decode via ciborium
8//! 3. CBOR-seq concatenation + sequential decode
9//! 4. zstd compress/decompress roundtrip on CBOR-seq
10//! 5. Length-prefixed encoding matching spec TraceCodec layout
11//! 6. TraceFileHeader binary write/read (64 bytes)
13use serde::{Deserialize, Serialize};
14use std::io::{Cursor, Read, Write};
16// === SM-005 Shared Types (subset) ===
18#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)]
19pub struct EntryId(pub String);
21#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
22pub enum Role { System, User, Assistant, Tool }
24#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
25pub enum StopReason { EndTurn, ToolUse, OverMaxTokens, Aborted, StopSequence, Error }
27#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
28pub enum ContentBlock {
29 Text(String),
30 ToolCall { id: String, name: String, arguments: String },
31 ToolResult { id: String, result: String, is_error: bool },
32 Thinking { content: String },
33}
35#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
36pub struct ProviderUsage {
37 pub input_tokens: u64,
38 pub output_tokens: u64,
39 pub cache_read_tokens: Option<u64>,
40 pub cache_write_tokens: Option<u64>,
41 pub total_tokens: Option<u64>,
42}
44#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
45pub struct Message {
46 pub role: Role,
47 pub content: Vec<ContentBlock>,
48}
50// === SM-006 SessionEntry (all variants) ===
52#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
53pub enum SessionEntry {
54 Session { version: u32, created: u64 },
55 User { id: EntryId, parent_id: Option<EntryId>, content: Vec<ContentBlock>, timestamp: u64 },
56 Assistant { id: EntryId, parent_id: Option<EntryId>, content: Vec<ContentBlock>, usage: ProviderUsage, provider: String, model: String, stop_reason: StopReason, timestamp: u64 },
57 ToolResult { id: EntryId, parent_id: Option<EntryId>, tool_call_id: String, tool_name: String, content: Vec<ContentBlock>, is_error: bool, timestamp: u64 },
58 Compaction { id: EntryId, parent_id: Option<EntryId>, summary: String, first_kept_id: EntryId, tokens_before: u64, read_files: Vec<String>, modified_files: Vec<String>, timestamp: u64 },
59 Unknown { id: EntryId, data: Vec<u8>, timestamp: u64 },
60}
62// === SM-006 TraceEntry (subset) ===
64#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
65pub enum TraceEntry {
66 AgentEvent { timestamp_ns: u64, event: String },
67 ToolStart { timestamp_ns: u64, tool_call_id: String, tool_name: String, args_json: String },
68 ToolEnd { timestamp_ns: u64, tool_call_id: String, tool_name: String, result_hash: String, is_error: bool },
69 EnvSnapshot { timestamp_ns: u64, cwd: String, env_vars: Vec<(String, String)> },
70}
72// === SM-006 TraceFileHeader ===
74#[derive(Clone, Debug)]
75pub struct TraceFileHeader {
76 pub magic: [u8; 4],
77 pub version: u16,
78 pub flags: u16,
79 pub session_id: [u8; 16],
80 pub start_timestamp_ns: u64,
81 pub reserved: [u8; 32],
82}
84impl TraceFileHeader {
85 pub const MAGIC: [u8; 4] = *b"SMTH";
86 pub const VERSION: u16 = 1;
87 pub const FLAG_COMPRESSED: u16 = 0x01;
88 pub const SIZE: usize = 64;
90 pub fn new(session_id: [u8; 16], start_ts: u64, compressed: bool) -> Self {
91 Self {
92 magic: Self::MAGIC,
93 version: Self::VERSION,
94 flags: if compressed { Self::FLAG_COMPRESSED } else { 0 },
95 session_id,
96 start_timestamp_ns: start_ts,
97 reserved: [0u8; 32],
98 }
99 }
101 pub fn write(&self, w: &mut impl Write) -> std::io::Result<()> {
102 w.write_all(&self.magic)?;
103 w.write_all(&self.version.to_be_bytes())?;
104 w.write_all(&self.flags.to_be_bytes())?;
105 w.write_all(&self.session_id)?;
106 w.write_all(&self.start_timestamp_ns.to_be_bytes())?;
107 w.write_all(&self.reserved)?;
108 Ok(())
109 }
111 pub fn read(r: &mut impl Read) -> std::io::Result<Self> {
112 let mut magic = [0u8; 4]; r.read_exact(&mut magic)?;
113 if magic != Self::MAGIC { return Err(std::io::Error::new(std::io::ErrorKind::InvalidData, "bad magic")); }
114 let mut version_buf = [0u8; 2]; r.read_exact(&mut version_buf)?;
115 let version = u16::from_be_bytes(version_buf);
116 if version != Self::VERSION { return Err(std::io::Error::new(std::io::ErrorKind::InvalidData, "bad version")); }
117 let mut flags_buf = [0u8; 2]; r.read_exact(&mut flags_buf)?;
118 let mut session_id = [0u8; 16]; r.read_exact(&mut session_id)?;
119 let mut ts_buf = [0u8; 8]; r.read_exact(&mut ts_buf)?;
120 let mut reserved = [0u8; 32]; r.read_exact(&mut reserved)?;
121 Ok(Self { magic, version, flags: u16::from_be_bytes(flags_buf), session_id, start_timestamp_ns: u64::from_be_bytes(ts_buf), reserved })
122 }
123}
125// === TraceCodec (simplified spec impl) ===
127fn encode_cbor_seq<T: Serialize>(entries: &[T]) -> Vec<u8> {
128 let mut buf = Vec::new();
129 for e in entries { ciborium::ser::into_writer(e, &mut buf).unwrap(); }
130 buf
131}
133fn decode_cbor_seq<T: for<'de> Deserialize<'de>>(data: &[u8]) -> Vec<T> {
134 let mut cursor = &data[..];
135 let mut out = Vec::new();
136 while !cursor.is_empty() {
137 let entry: T = ciborium::de::from_reader(&mut cursor).unwrap();
138 out.push(entry);
139 }
140 out
141}
143fn encode_length_prefixed<T: Serialize>(entries: &[T], compressed: bool) -> Vec<u8> {
144 let mut buf = Vec::new();
145 for e in entries {
146 let mut cbor = Vec::new();
147 ciborium::ser::into_writer(e, &mut cbor).unwrap();
148 let payload = if compressed {
149 zstd::encode_all(&cbor[..], 3).unwrap()
150 } else {
151 cbor
152 };
153 buf.extend_from_slice(&(payload.len() as u32).to_be_bytes());
154 buf.extend_from_slice(&payload);
155 }
156 buf
157}
159fn decode_length_prefixed<T: for<'de> Deserialize<'de>>(data: &[u8]) -> Vec<T> {
160 let mut cursor = &data[..];
161 let mut out = Vec::new();
162 while !cursor.is_empty() {
163 let mut len_buf = [0u8; 4];
164 cursor.read_exact(&mut len_buf).unwrap();
165 let len = u32::from_be_bytes(len_buf) as usize;
166 // Try decompress; if fails, assume raw CBOR
167 let entry: T = match zstd::decode_all(&cursor[..len]) {
168 Ok(decompressed) => ciborium::de::from_reader(&decompressed[..]).unwrap(),
169 Err(_) => ciborium::de::from_reader(&mut &cursor[..len]).unwrap(),
170 };
171 out.push(entry);
172 cursor = &cursor[len..];
173 }
174 out
175}
177fn main() {
178 // === Test 1: SessionEntry all variants CBOR roundtrip ===
179 let session_entries = vec![
180 SessionEntry::Session { version: 1, created: 1715000000 },
181 SessionEntry::User {
182 id: EntryId("e1".into()), parent_id: None,
183 content: vec![ContentBlock::Text("Hello".into())],
184 timestamp: 1715000001,
185 },
186 SessionEntry::Assistant {
187 id: EntryId("e2".into()), parent_id: Some(EntryId("e1".into())),
188 content: vec![ContentBlock::Text("Hi there".into()), ContentBlock::Thinking { content: "hmm".into() }],
189 usage: ProviderUsage { input_tokens: 50, output_tokens: 10, cache_read_tokens: Some(5), cache_write_tokens: None, total_tokens: Some(60) },
190 provider: "openai".into(), model: "gpt-4".into(), stop_reason: StopReason::EndTurn,
191 timestamp: 1715000002,
192 },
193 SessionEntry::ToolResult {
194 id: EntryId("e3".into()), parent_id: Some(EntryId("e2".into())),
195 tool_call_id: "c1".into(), tool_name: "bash".into(),
196 content: vec![ContentBlock::ToolResult { id: "c1".into(), result: "file.txt\nfile2.txt".into(), is_error: false }],
197 is_error: false, timestamp: 1715000003,
198 },
199 SessionEntry::Compaction {
200 id: EntryId("e4".into()), parent_id: Some(EntryId("e3".into())),
201 summary: "Summarized".into(), first_kept_id: EntryId("e3".into()),
202 tokens_before: 1000, read_files: vec!["a.rs".into()], modified_files: vec!["b.rs".into()],
203 timestamp: 1715000004,
204 },
205 SessionEntry::Unknown { id: EntryId("e5".into()), data: vec![0xDE, 0xAD], timestamp: 1715000005 },
206 ];
208 let cbor = encode_cbor_seq(&session_entries);
209 let decoded: Vec<SessionEntry> = decode_cbor_seq(&cbor);
210 assert_eq!(decoded.len(), session_entries.len());
211 for (i, (a, b)) in session_entries.iter().zip(decoded.iter()).enumerate() {
212 assert_eq!(a, b, "SessionEntry mismatch at index {}", i);
213 }
214 eprintln!("[OK] SessionEntry CBOR-seq roundtrip: {} entries, {} bytes", session_entries.len(), cbor.len());
216 // === Test 2: TraceEntry CBOR roundtrip ===
217 let trace_entries = vec![
218 TraceEntry::AgentEvent { timestamp_ns: 1715000000_000_000, event: "AgentStart".into() },
219 TraceEntry::ToolStart { timestamp_ns: 1715000001_000_000, tool_call_id: "c1".into(), tool_name: "bash".into(), args_json: r#"{"cmd":"ls"}"#.into() },
220 TraceEntry::ToolEnd { timestamp_ns: 1715000002_000_000, tool_call_id: "c1".into(), tool_name: "bash".into(), result_hash: "abc123".into(), is_error: false },
221 TraceEntry::EnvSnapshot { timestamp_ns: 1715000003_000_000, cwd: "/home/user/project".into(), env_vars: vec![("HOME".into(), "/home/user".into()), ("SHELL".into(), "/bin/bash".into())] },
222 ];
224 let trace_cbor = encode_cbor_seq(&trace_entries);
225 let trace_decoded: Vec<TraceEntry> = decode_cbor_seq(&trace_cbor);
226 assert_eq!(trace_decoded, trace_entries);
227 eprintln!("[OK] TraceEntry CBOR-seq roundtrip: {} entries, {} bytes", trace_entries.len(), trace_cbor.len());
229 // === Test 3: zstd compress/decompress on CBOR-seq ===
230 let compressed = zstd::encode_all(&trace_cbor[..], 3).expect("compress");
231 let decompressed = zstd::decode_all(&compressed[..]).expect("decompress");
232 assert_eq!(decompressed, trace_cbor);
233 eprintln!("[OK] zstd roundtrip: {} -> {} -> {} bytes ({:.1}% ratio)",
234 trace_cbor.len(), compressed.len(), decompressed.len(),
235 compressed.len() as f64 / trace_cbor.len() as f64 * 100.0);
237 // === Test 4: Length-prefixed encoding (uncompressed) ===
238 let lp_uncompressed = encode_length_prefixed(&trace_entries, false);
239 let lp_decoded: Vec<TraceEntry> = decode_length_prefixed(&lp_uncompressed);
240 assert_eq!(lp_decoded, trace_entries);
241 eprintln!("[OK] Length-prefixed (uncompressed): {} bytes", lp_uncompressed.len());
243 // === Test 5: Length-prefixed encoding (compressed, per-entry) ===
244 let lp_compressed = encode_length_prefixed(&trace_entries, true);
245 let lp_compressed_decoded: Vec<TraceEntry> = decode_length_prefixed(&lp_compressed);
246 assert_eq!(lp_compressed_decoded, trace_entries);
247 eprintln!("[OK] Length-prefixed (zstd per-entry): {} bytes ({:.1}% of raw CBOR)",
248 lp_compressed.len(), lp_compressed.len() as f64 / trace_cbor.len() as f64 * 100.0);
250 // === Test 6: TraceFileHeader binary write/read ===
251 let header = TraceFileHeader::new([0x01; 16], 1715000000_000_000, true);
252 assert_eq!(std::mem::size_of_val(&header.magic) + 2 + 2 + 16 + 8 + 32, TraceFileHeader::SIZE);
253 let mut header_bytes = Vec::new();
254 header.write(&mut header_bytes).unwrap();
255 assert_eq!(header_bytes.len(), TraceFileHeader::SIZE);
256 let mut cursor = Cursor::new(&header_bytes[..]);
257 let header_read = TraceFileHeader::read(&mut cursor).unwrap();
258 assert_eq!(header_read.magic, TraceFileHeader::MAGIC);
259 assert_eq!(header_read.version, 1);
260 assert_eq!(header_read.flags, TraceFileHeader::FLAG_COMPRESSED);
261 assert_eq!(header_read.session_id, [0x01; 16]);
262 assert_eq!(header_read.start_timestamp_ns, 1715000000_000_000);
263 eprintln!("[OK] TraceFileHeader: {} bytes, magic={:?}, version={}, flags=0x{:04x}",
264 TraceFileHeader::SIZE, &header_read.magic[..], header_read.version, header_read.flags);
266 // === Test 7: Full trace file roundtrip (header + length-prefixed compressed body) ===
267 let mut full_file = Vec::new();
268 header.write(&mut full_file).unwrap();
269 let body = encode_length_prefixed(&trace_entries, true);
270 full_file.extend_from_slice(&body);
272 let mut file_cursor = Cursor::new(&full_file[..]);
273 let read_header = TraceFileHeader::read(&mut file_cursor).unwrap();
274 assert!(read_header.flags & TraceFileHeader::FLAG_COMPRESSED != 0);
275 let remaining = &full_file[TraceFileHeader::SIZE..];
276 let file_entries: Vec<TraceEntry> = decode_length_prefixed(remaining);
277 assert_eq!(file_entries, trace_entries);
278 eprintln!("[OK] Full trace file roundtrip: {} header + {} body = {} bytes, {} entries recovered",
279 TraceFileHeader::SIZE, body.len(), full_file.len(), file_entries.len());
281 eprintln!("\n=== ALL P11 INTEGRATION TESTS PASSED ===");
282}

prototypes/p12-real-streaming/Cargo.lock

Added
new file mode 100644

+1774 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "anyhow"
7version = "1.0.102"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
11[[package]]
12name = "atomic-waker"
13version = "1.1.2"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
17[[package]]
18name = "base64"
19version = "0.22.1"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
23[[package]]
24name = "bitflags"
25version = "2.11.1"
26source = "registry+https://github.com/rust-lang/crates.io-index"
27checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
29[[package]]
30name = "bumpalo"
31version = "3.20.3"
32source = "registry+https://github.com/rust-lang/crates.io-index"
33checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
35[[package]]
36name = "bytes"
37version = "1.11.1"
38source = "registry+https://github.com/rust-lang/crates.io-index"
39checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
41[[package]]
42name = "cc"
43version = "1.2.62"
44source = "registry+https://github.com/rust-lang/crates.io-index"
45checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
46dependencies = [
47 "find-msvc-tools",
48 "shlex",
49]
51[[package]]
52name = "cfg-if"
53version = "1.0.4"
54source = "registry+https://github.com/rust-lang/crates.io-index"
55checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
57[[package]]
58name = "core-foundation"
59version = "0.9.4"
60source = "registry+https://github.com/rust-lang/crates.io-index"
61checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
62dependencies = [
63 "core-foundation-sys",
64 "libc",
65]
67[[package]]
68name = "core-foundation"
69version = "0.10.1"
70source = "registry+https://github.com/rust-lang/crates.io-index"
71checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
72dependencies = [
73 "core-foundation-sys",
74 "libc",
75]
77[[package]]
78name = "core-foundation-sys"
79version = "0.8.7"
80source = "registry+https://github.com/rust-lang/crates.io-index"
81checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
83[[package]]
84name = "displaydoc"
85version = "0.2.5"
86source = "registry+https://github.com/rust-lang/crates.io-index"
87checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
88dependencies = [
89 "proc-macro2",
90 "quote",
91 "syn",
92]
94[[package]]
95name = "encoding_rs"
96version = "0.8.35"
97source = "registry+https://github.com/rust-lang/crates.io-index"
98checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
99dependencies = [
100 "cfg-if",
101]
103[[package]]
104name = "equivalent"
105version = "1.0.2"
106source = "registry+https://github.com/rust-lang/crates.io-index"
107checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
109[[package]]
110name = "errno"
111version = "0.3.14"
112source = "registry+https://github.com/rust-lang/crates.io-index"
113checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
114dependencies = [
115 "libc",
116 "windows-sys 0.61.2",
117]
119[[package]]
120name = "fastrand"
121version = "2.4.1"
122source = "registry+https://github.com/rust-lang/crates.io-index"
123checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
125[[package]]
126name = "find-msvc-tools"
127version = "0.1.9"
128source = "registry+https://github.com/rust-lang/crates.io-index"
129checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
131[[package]]
132name = "fnv"
133version = "1.0.7"
134source = "registry+https://github.com/rust-lang/crates.io-index"
135checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
137[[package]]
138name = "foldhash"
139version = "0.1.5"
140source = "registry+https://github.com/rust-lang/crates.io-index"
141checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
143[[package]]
144name = "foreign-types"
145version = "0.3.2"
146source = "registry+https://github.com/rust-lang/crates.io-index"
147checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
148dependencies = [
149 "foreign-types-shared",
150]
152[[package]]
153name = "foreign-types-shared"
154version = "0.1.1"
155source = "registry+https://github.com/rust-lang/crates.io-index"
156checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
158[[package]]
159name = "form_urlencoded"
160version = "1.2.2"
161source = "registry+https://github.com/rust-lang/crates.io-index"
162checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
163dependencies = [
164 "percent-encoding",
165]
167[[package]]
168name = "futures"
169version = "0.3.32"
170source = "registry+https://github.com/rust-lang/crates.io-index"
171checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d"
172dependencies = [
173 "futures-channel",
174 "futures-core",
175 "futures-executor",
176 "futures-io",
177 "futures-sink",
178 "futures-task",
179 "futures-util",
180]
182[[package]]
183name = "futures-channel"
184version = "0.3.32"
185source = "registry+https://github.com/rust-lang/crates.io-index"
186checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"
187dependencies = [
188 "futures-core",
189 "futures-sink",
190]
192[[package]]
193name = "futures-core"
194version = "0.3.32"
195source = "registry+https://github.com/rust-lang/crates.io-index"
196checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
198[[package]]
199name = "futures-executor"
200version = "0.3.32"
201source = "registry+https://github.com/rust-lang/crates.io-index"
202checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d"
203dependencies = [
204 "futures-core",
205 "futures-task",
206 "futures-util",
207]
209[[package]]
210name = "futures-io"
211version = "0.3.32"
212source = "registry+https://github.com/rust-lang/crates.io-index"
213checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718"
215[[package]]
216name = "futures-macro"
217version = "0.3.32"
218source = "registry+https://github.com/rust-lang/crates.io-index"
219checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"
220dependencies = [
221 "proc-macro2",
222 "quote",
223 "syn",
224]
226[[package]]
227name = "futures-sink"
228version = "0.3.32"
229source = "registry+https://github.com/rust-lang/crates.io-index"
230checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893"
232[[package]]
233name = "futures-task"
234version = "0.3.32"
235source = "registry+https://github.com/rust-lang/crates.io-index"
236checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
238[[package]]
239name = "futures-util"
240version = "0.3.32"
241source = "registry+https://github.com/rust-lang/crates.io-index"
242checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
243dependencies = [
244 "futures-channel",
245 "futures-core",
246 "futures-io",
247 "futures-macro",
248 "futures-sink",
249 "futures-task",
250 "memchr",
251 "pin-project-lite",
252 "slab",
253]
255[[package]]
256name = "getrandom"
257version = "0.2.17"
258source = "registry+https://github.com/rust-lang/crates.io-index"
259checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
260dependencies = [
261 "cfg-if",
262 "libc",
263 "wasi",
264]
266[[package]]
267name = "getrandom"
268version = "0.4.2"
269source = "registry+https://github.com/rust-lang/crates.io-index"
270checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"
271dependencies = [
272 "cfg-if",
273 "libc",
274 "r-efi",
275 "wasip2",
276 "wasip3",
277]
279[[package]]
280name = "h2"
281version = "0.4.14"
282source = "registry+https://github.com/rust-lang/crates.io-index"
283checksum = "171fefbc92fe4a4de27e0698d6a5b392d6a0e333506bc49133760b3bcf948733"
284dependencies = [
285 "atomic-waker",
286 "bytes",
287 "fnv",
288 "futures-core",
289 "futures-sink",
290 "http",
291 "indexmap",
292 "slab",
293 "tokio",
294 "tokio-util",
295 "tracing",
296]
298[[package]]
299name = "hashbrown"
300version = "0.15.5"
301source = "registry+https://github.com/rust-lang/crates.io-index"
302checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
303dependencies = [
304 "foldhash",
305]
307[[package]]
308name = "hashbrown"
309version = "0.17.1"
310source = "registry+https://github.com/rust-lang/crates.io-index"
311checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
313[[package]]
314name = "heck"
315version = "0.5.0"
316source = "registry+https://github.com/rust-lang/crates.io-index"
317checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
319[[package]]
320name = "http"
321version = "1.4.0"
322source = "registry+https://github.com/rust-lang/crates.io-index"
323checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a"
324dependencies = [
325 "bytes",
326 "itoa",
327]
329[[package]]
330name = "http-body"
331version = "1.0.1"
332source = "registry+https://github.com/rust-lang/crates.io-index"
333checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
334dependencies = [
335 "bytes",
336 "http",
337]
339[[package]]
340name = "http-body-util"
341version = "0.1.3"
342source = "registry+https://github.com/rust-lang/crates.io-index"
343checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
344dependencies = [
345 "bytes",
346 "futures-core",
347 "http",
348 "http-body",
349 "pin-project-lite",
350]
352[[package]]
353name = "httparse"
354version = "1.10.1"
355source = "registry+https://github.com/rust-lang/crates.io-index"
356checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
358[[package]]
359name = "hyper"
360version = "1.9.0"
361source = "registry+https://github.com/rust-lang/crates.io-index"
362checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca"
363dependencies = [
364 "atomic-waker",
365 "bytes",
366 "futures-channel",
367 "futures-core",
368 "h2",
369 "http",
370 "http-body",
371 "httparse",
372 "itoa",
373 "pin-project-lite",
374 "smallvec",
375 "tokio",
376 "want",
377]
379[[package]]
380name = "hyper-rustls"
381version = "0.27.9"
382source = "registry+https://github.com/rust-lang/crates.io-index"
383checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
384dependencies = [
385 "http",
386 "hyper",
387 "hyper-util",
388 "rustls",
389 "tokio",
390 "tokio-rustls",
391 "tower-service",
392]
394[[package]]
395name = "hyper-tls"
396version = "0.6.0"
397source = "registry+https://github.com/rust-lang/crates.io-index"
398checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
399dependencies = [
400 "bytes",
401 "http-body-util",
402 "hyper",
403 "hyper-util",
404 "native-tls",
405 "tokio",
406 "tokio-native-tls",
407 "tower-service",
408]
410[[package]]
411name = "hyper-util"
412version = "0.1.20"
413source = "registry+https://github.com/rust-lang/crates.io-index"
414checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
415dependencies = [
416 "base64",
417 "bytes",
418 "futures-channel",
419 "futures-util",
420 "http",
421 "http-body",
422 "hyper",
423 "ipnet",
424 "libc",
425 "percent-encoding",
426 "pin-project-lite",
427 "socket2",
428 "system-configuration",
429 "tokio",
430 "tower-service",
431 "tracing",
432 "windows-registry",
433]
435[[package]]
436name = "icu_collections"
437version = "2.2.0"
438source = "registry+https://github.com/rust-lang/crates.io-index"
439checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
440dependencies = [
441 "displaydoc",
442 "potential_utf",
443 "utf8_iter",
444 "yoke",
445 "zerofrom",
446 "zerovec",
447]
449[[package]]
450name = "icu_locale_core"
451version = "2.2.0"
452source = "registry+https://github.com/rust-lang/crates.io-index"
453checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
454dependencies = [
455 "displaydoc",
456 "litemap",
457 "tinystr",
458 "writeable",
459 "zerovec",
460]
462[[package]]
463name = "icu_normalizer"
464version = "2.2.0"
465source = "registry+https://github.com/rust-lang/crates.io-index"
466checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
467dependencies = [
468 "icu_collections",
469 "icu_normalizer_data",
470 "icu_properties",
471 "icu_provider",
472 "smallvec",
473 "zerovec",
474]
476[[package]]
477name = "icu_normalizer_data"
478version = "2.2.0"
479source = "registry+https://github.com/rust-lang/crates.io-index"
480checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
482[[package]]
483name = "icu_properties"
484version = "2.2.0"
485source = "registry+https://github.com/rust-lang/crates.io-index"
486checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
487dependencies = [
488 "icu_collections",
489 "icu_locale_core",
490 "icu_properties_data",
491 "icu_provider",
492 "zerotrie",
493 "zerovec",
494]
496[[package]]
497name = "icu_properties_data"
498version = "2.2.0"
499source = "registry+https://github.com/rust-lang/crates.io-index"
500checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
502[[package]]
503name = "icu_provider"
504version = "2.2.0"
505source = "registry+https://github.com/rust-lang/crates.io-index"
506checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
507dependencies = [
508 "displaydoc",
509 "icu_locale_core",
510 "writeable",
511 "yoke",
512 "zerofrom",
513 "zerotrie",
514 "zerovec",
515]
517[[package]]
518name = "id-arena"
519version = "2.3.0"
520source = "registry+https://github.com/rust-lang/crates.io-index"
521checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
523[[package]]
524name = "idna"
525version = "1.1.0"
526source = "registry+https://github.com/rust-lang/crates.io-index"
527checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
528dependencies = [
529 "idna_adapter",
530 "smallvec",
531 "utf8_iter",
532]
534[[package]]
535name = "idna_adapter"
536version = "1.2.2"
537source = "registry+https://github.com/rust-lang/crates.io-index"
538checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
539dependencies = [
540 "icu_normalizer",
541 "icu_properties",
542]
544[[package]]
545name = "indexmap"
546version = "2.14.0"
547source = "registry+https://github.com/rust-lang/crates.io-index"
548checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
549dependencies = [
550 "equivalent",
551 "hashbrown 0.17.1",
552 "serde",
553 "serde_core",
554]
556[[package]]
557name = "ipnet"
558version = "2.12.0"
559source = "registry+https://github.com/rust-lang/crates.io-index"
560checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2"
562[[package]]
563name = "itoa"
564version = "1.0.18"
565source = "registry+https://github.com/rust-lang/crates.io-index"
566checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
568[[package]]
569name = "js-sys"
570version = "0.3.99"
571source = "registry+https://github.com/rust-lang/crates.io-index"
572checksum = "142bc4740e452c1e57ade0cbc129f139c9093e354346f0872ef985f4f5cf5f11"
573dependencies = [
574 "cfg-if",
575 "futures-util",
576 "once_cell",
577 "wasm-bindgen",
578]
580[[package]]
581name = "leb128fmt"
582version = "0.1.0"
583source = "registry+https://github.com/rust-lang/crates.io-index"
584checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
586[[package]]
587name = "libc"
588version = "0.2.186"
589source = "registry+https://github.com/rust-lang/crates.io-index"
590checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
592[[package]]
593name = "linux-raw-sys"
594version = "0.12.1"
595source = "registry+https://github.com/rust-lang/crates.io-index"
596checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
598[[package]]
599name = "litemap"
600version = "0.8.2"
601source = "registry+https://github.com/rust-lang/crates.io-index"
602checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
604[[package]]
605name = "lock_api"
606version = "0.4.14"
607source = "registry+https://github.com/rust-lang/crates.io-index"
608checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
609dependencies = [
610 "scopeguard",
611]
613[[package]]
614name = "log"
615version = "0.4.29"
616source = "registry+https://github.com/rust-lang/crates.io-index"
617checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
619[[package]]
620name = "memchr"
621version = "2.8.0"
622source = "registry+https://github.com/rust-lang/crates.io-index"
623checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
625[[package]]
626name = "mime"
627version = "0.3.17"
628source = "registry+https://github.com/rust-lang/crates.io-index"
629checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
631[[package]]
632name = "mio"
633version = "1.2.0"
634source = "registry+https://github.com/rust-lang/crates.io-index"
635checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
636dependencies = [
637 "libc",
638 "wasi",
639 "windows-sys 0.61.2",
640]
642[[package]]
643name = "native-tls"
644version = "0.2.18"
645source = "registry+https://github.com/rust-lang/crates.io-index"
646checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2"
647dependencies = [
648 "libc",
649 "log",
650 "openssl",
651 "openssl-probe",
652 "openssl-sys",
653 "schannel",
654 "security-framework",
655 "security-framework-sys",
656 "tempfile",
657]
659[[package]]
660name = "once_cell"
661version = "1.21.4"
662source = "registry+https://github.com/rust-lang/crates.io-index"
663checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
665[[package]]
666name = "openssl"
667version = "0.10.80"
668source = "registry+https://github.com/rust-lang/crates.io-index"
669checksum = "a45fa2aa886c42762255da344f0a0d313e254066c46aad76f300c3d3da62d967"
670dependencies = [
671 "bitflags",
672 "cfg-if",
673 "foreign-types",
674 "libc",
675 "openssl-macros",
676 "openssl-sys",
677]
679[[package]]
680name = "openssl-macros"
681version = "0.1.1"
682source = "registry+https://github.com/rust-lang/crates.io-index"
683checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
684dependencies = [
685 "proc-macro2",
686 "quote",
687 "syn",
688]
690[[package]]
691name = "openssl-probe"
692version = "0.2.1"
693source = "registry+https://github.com/rust-lang/crates.io-index"
694checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
696[[package]]
697name = "openssl-sys"
698version = "0.9.116"
699source = "registry+https://github.com/rust-lang/crates.io-index"
700checksum = "f28a22dc7140cda5f096e5e7724a6962ca81a7f8bfd2979f9b18c11af56318c4"
701dependencies = [
702 "cc",
703 "libc",
704 "pkg-config",
705 "vcpkg",
706]
708[[package]]
709name = "p12-real-streaming"
710version = "0.1.0"
711dependencies = [
712 "bytes",
713 "futures",
714 "reqwest",
715 "serde",
716 "serde_json",
717 "tokio",
718]
720[[package]]
721name = "parking_lot"
722version = "0.12.5"
723source = "registry+https://github.com/rust-lang/crates.io-index"
724checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
725dependencies = [
726 "lock_api",
727 "parking_lot_core",
728]
730[[package]]
731name = "parking_lot_core"
732version = "0.9.12"
733source = "registry+https://github.com/rust-lang/crates.io-index"
734checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
735dependencies = [
736 "cfg-if",
737 "libc",
738 "redox_syscall",
739 "smallvec",
740 "windows-link",
741]
743[[package]]
744name = "percent-encoding"
745version = "2.3.2"
746source = "registry+https://github.com/rust-lang/crates.io-index"
747checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
749[[package]]
750name = "pin-project-lite"
751version = "0.2.17"
752source = "registry+https://github.com/rust-lang/crates.io-index"
753checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
755[[package]]
756name = "pkg-config"
757version = "0.3.33"
758source = "registry+https://github.com/rust-lang/crates.io-index"
759checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
761[[package]]
762name = "potential_utf"
763version = "0.1.5"
764source = "registry+https://github.com/rust-lang/crates.io-index"
765checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
766dependencies = [
767 "zerovec",
768]
770[[package]]
771name = "prettyplease"
772version = "0.2.37"
773source = "registry+https://github.com/rust-lang/crates.io-index"
774checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
775dependencies = [
776 "proc-macro2",
777 "syn",
778]
780[[package]]
781name = "proc-macro2"
782version = "1.0.106"
783source = "registry+https://github.com/rust-lang/crates.io-index"
784checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
785dependencies = [
786 "unicode-ident",
787]
789[[package]]
790name = "quote"
791version = "1.0.45"
792source = "registry+https://github.com/rust-lang/crates.io-index"
793checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
794dependencies = [
795 "proc-macro2",
796]
798[[package]]
799name = "r-efi"
800version = "6.0.0"
801source = "registry+https://github.com/rust-lang/crates.io-index"
802checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
804[[package]]
805name = "redox_syscall"
806version = "0.5.18"
807source = "registry+https://github.com/rust-lang/crates.io-index"
808checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
809dependencies = [
810 "bitflags",
811]
813[[package]]
814name = "reqwest"
815version = "0.12.28"
816source = "registry+https://github.com/rust-lang/crates.io-index"
817checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"
818dependencies = [
819 "base64",
820 "bytes",
821 "encoding_rs",
822 "futures-core",
823 "futures-util",
824 "h2",
825 "http",
826 "http-body",
827 "http-body-util",
828 "hyper",
829 "hyper-rustls",
830 "hyper-tls",
831 "hyper-util",
832 "js-sys",
833 "log",
834 "mime",
835 "native-tls",
836 "percent-encoding",
837 "pin-project-lite",
838 "rustls-pki-types",
839 "serde",
840 "serde_json",
841 "serde_urlencoded",
842 "sync_wrapper",
843 "tokio",
844 "tokio-native-tls",
845 "tokio-util",
846 "tower",
847 "tower-http",
848 "tower-service",
849 "url",
850 "wasm-bindgen",
851 "wasm-bindgen-futures",
852 "wasm-streams",
853 "web-sys",
854]
856[[package]]
857name = "ring"
858version = "0.17.14"
859source = "registry+https://github.com/rust-lang/crates.io-index"
860checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
861dependencies = [
862 "cc",
863 "cfg-if",
864 "getrandom 0.2.17",
865 "libc",
866 "untrusted",
867 "windows-sys 0.52.0",
868]
870[[package]]
871name = "rustix"
872version = "1.1.4"
873source = "registry+https://github.com/rust-lang/crates.io-index"
874checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
875dependencies = [
876 "bitflags",
877 "errno",
878 "libc",
879 "linux-raw-sys",
880 "windows-sys 0.61.2",
881]
883[[package]]
884name = "rustls"
885version = "0.23.40"
886source = "registry+https://github.com/rust-lang/crates.io-index"
887checksum = "ef86cd5876211988985292b91c96a8f2d298df24e75989a43a3c73f2d4d8168b"
888dependencies = [
889 "once_cell",
890 "rustls-pki-types",
891 "rustls-webpki",
892 "subtle",
893 "zeroize",
894]
896[[package]]
897name = "rustls-pki-types"
898version = "1.14.1"
899source = "registry+https://github.com/rust-lang/crates.io-index"
900checksum = "30a7197ae7eb376e574fe940d068c30fe0462554a3ddbe4eca7838e049c937a9"
901dependencies = [
902 "zeroize",
903]
905[[package]]
906name = "rustls-webpki"
907version = "0.103.13"
908source = "registry+https://github.com/rust-lang/crates.io-index"
909checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
910dependencies = [
911 "ring",
912 "rustls-pki-types",
913 "untrusted",
914]
916[[package]]
917name = "rustversion"
918version = "1.0.22"
919source = "registry+https://github.com/rust-lang/crates.io-index"
920checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
922[[package]]
923name = "ryu"
924version = "1.0.23"
925source = "registry+https://github.com/rust-lang/crates.io-index"
926checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
928[[package]]
929name = "schannel"
930version = "0.1.29"
931source = "registry+https://github.com/rust-lang/crates.io-index"
932checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
933dependencies = [
934 "windows-sys 0.61.2",
935]
937[[package]]
938name = "scopeguard"
939version = "1.2.0"
940source = "registry+https://github.com/rust-lang/crates.io-index"
941checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
943[[package]]
944name = "security-framework"
945version = "3.7.0"
946source = "registry+https://github.com/rust-lang/crates.io-index"
947checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
948dependencies = [
949 "bitflags",
950 "core-foundation 0.10.1",
951 "core-foundation-sys",
952 "libc",
953 "security-framework-sys",
954]
956[[package]]
957name = "security-framework-sys"
958version = "2.17.0"
959source = "registry+https://github.com/rust-lang/crates.io-index"
960checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
961dependencies = [
962 "core-foundation-sys",
963 "libc",
964]
966[[package]]
967name = "semver"
968version = "1.0.28"
969source = "registry+https://github.com/rust-lang/crates.io-index"
970checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
972[[package]]
973name = "serde"
974version = "1.0.228"
975source = "registry+https://github.com/rust-lang/crates.io-index"
976checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
977dependencies = [
978 "serde_core",
979 "serde_derive",
980]
982[[package]]
983name = "serde_core"
984version = "1.0.228"
985source = "registry+https://github.com/rust-lang/crates.io-index"
986checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
987dependencies = [
988 "serde_derive",
989]
991[[package]]
992name = "serde_derive"
993version = "1.0.228"
994source = "registry+https://github.com/rust-lang/crates.io-index"
995checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
996dependencies = [
997 "proc-macro2",
998 "quote",
999 "syn",
1002[[package]]
1003name = "serde_json"
1004version = "1.0.150"
1005source = "registry+https://github.com/rust-lang/crates.io-index"
1006checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
1007dependencies = [
1008 "itoa",
1009 "memchr",
1010 "serde",
1011 "serde_core",
1012 "zmij",
1015[[package]]
1016name = "serde_urlencoded"
1017version = "0.7.1"
1018source = "registry+https://github.com/rust-lang/crates.io-index"
1019checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
1020dependencies = [
1021 "form_urlencoded",
1022 "itoa",
1023 "ryu",
1024 "serde",
1027[[package]]
1028name = "shlex"
1029version = "1.3.0"
1030source = "registry+https://github.com/rust-lang/crates.io-index"
1031checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
1033[[package]]
1034name = "signal-hook-registry"
1035version = "1.4.8"
1036source = "registry+https://github.com/rust-lang/crates.io-index"
1037checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
1038dependencies = [
1039 "errno",
1040 "libc",
1043[[package]]
1044name = "slab"
1045version = "0.4.12"
1046source = "registry+https://github.com/rust-lang/crates.io-index"
1047checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
1049[[package]]
1050name = "smallvec"
1051version = "1.15.1"
1052source = "registry+https://github.com/rust-lang/crates.io-index"
1053checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
1055[[package]]
1056name = "socket2"
1057version = "0.6.3"
1058source = "registry+https://github.com/rust-lang/crates.io-index"
1059checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
1060dependencies = [
1061 "libc",
1062 "windows-sys 0.61.2",
1065[[package]]
1066name = "stable_deref_trait"
1067version = "1.2.1"
1068source = "registry+https://github.com/rust-lang/crates.io-index"
1069checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
1071[[package]]
1072name = "subtle"
1073version = "2.6.1"
1074source = "registry+https://github.com/rust-lang/crates.io-index"
1075checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
1077[[package]]
1078name = "syn"
1079version = "2.0.117"
1080source = "registry+https://github.com/rust-lang/crates.io-index"
1081checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
1082dependencies = [
1083 "proc-macro2",
1084 "quote",
1085 "unicode-ident",
1088[[package]]
1089name = "sync_wrapper"
1090version = "1.0.2"
1091source = "registry+https://github.com/rust-lang/crates.io-index"
1092checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
1093dependencies = [
1094 "futures-core",
1097[[package]]
1098name = "synstructure"
1099version = "0.13.2"
1100source = "registry+https://github.com/rust-lang/crates.io-index"
1101checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
1102dependencies = [
1103 "proc-macro2",
1104 "quote",
1105 "syn",
1108[[package]]
1109name = "system-configuration"
1110version = "0.7.0"
1111source = "registry+https://github.com/rust-lang/crates.io-index"
1112checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"
1113dependencies = [
1114 "bitflags",
1115 "core-foundation 0.9.4",
1116 "system-configuration-sys",
1119[[package]]
1120name = "system-configuration-sys"
1121version = "0.6.0"
1122source = "registry+https://github.com/rust-lang/crates.io-index"
1123checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
1124dependencies = [
1125 "core-foundation-sys",
1126 "libc",
1129[[package]]
1130name = "tempfile"
1131version = "3.27.0"
1132source = "registry+https://github.com/rust-lang/crates.io-index"
1133checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
1134dependencies = [
1135 "fastrand",
1136 "getrandom 0.4.2",
1137 "once_cell",
1138 "rustix",
1139 "windows-sys 0.61.2",
1142[[package]]
1143name = "tinystr"
1144version = "0.8.3"
1145source = "registry+https://github.com/rust-lang/crates.io-index"
1146checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
1147dependencies = [
1148 "displaydoc",
1149 "zerovec",
1152[[package]]
1153name = "tokio"
1154version = "1.52.3"
1155source = "registry+https://github.com/rust-lang/crates.io-index"
1156checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"
1157dependencies = [
1158 "bytes",
1159 "libc",
1160 "mio",
1161 "parking_lot",
1162 "pin-project-lite",
1163 "signal-hook-registry",
1164 "socket2",
1165 "tokio-macros",
1166 "windows-sys 0.61.2",
1169[[package]]
1170name = "tokio-macros"
1171version = "2.7.0"
1172source = "registry+https://github.com/rust-lang/crates.io-index"
1173checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
1174dependencies = [
1175 "proc-macro2",
1176 "quote",
1177 "syn",
1180[[package]]
1181name = "tokio-native-tls"
1182version = "0.3.1"
1183source = "registry+https://github.com/rust-lang/crates.io-index"
1184checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
1185dependencies = [
1186 "native-tls",
1187 "tokio",
1190[[package]]
1191name = "tokio-rustls"
1192version = "0.26.4"
1193source = "registry+https://github.com/rust-lang/crates.io-index"
1194checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"
1195dependencies = [
1196 "rustls",
1197 "tokio",
1200[[package]]
1201name = "tokio-util"
1202version = "0.7.18"
1203source = "registry+https://github.com/rust-lang/crates.io-index"
1204checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"
1205dependencies = [
1206 "bytes",
1207 "futures-core",
1208 "futures-sink",
1209 "pin-project-lite",
1210 "tokio",
1213[[package]]
1214name = "tower"
1215version = "0.5.3"
1216source = "registry+https://github.com/rust-lang/crates.io-index"
1217checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
1218dependencies = [
1219 "futures-core",
1220 "futures-util",
1221 "pin-project-lite",
1222 "sync_wrapper",
1223 "tokio",
1224 "tower-layer",
1225 "tower-service",
1228[[package]]
1229name = "tower-http"
1230version = "0.6.11"
1231source = "registry+https://github.com/rust-lang/crates.io-index"
1232checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
1233dependencies = [
1234 "bitflags",
1235 "bytes",
1236 "futures-util",
1237 "http",
1238 "http-body",
1239 "pin-project-lite",
1240 "tower",
1241 "tower-layer",
1242 "tower-service",
1243 "url",
1246[[package]]
1247name = "tower-layer"
1248version = "0.3.3"
1249source = "registry+https://github.com/rust-lang/crates.io-index"
1250checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
1252[[package]]
1253name = "tower-service"
1254version = "0.3.3"
1255source = "registry+https://github.com/rust-lang/crates.io-index"
1256checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
1258[[package]]
1259name = "tracing"
1260version = "0.1.44"
1261source = "registry+https://github.com/rust-lang/crates.io-index"
1262checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
1263dependencies = [
1264 "pin-project-lite",
1265 "tracing-core",
1268[[package]]
1269name = "tracing-core"
1270version = "0.1.36"
1271source = "registry+https://github.com/rust-lang/crates.io-index"
1272checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
1273dependencies = [
1274 "once_cell",
1277[[package]]
1278name = "try-lock"
1279version = "0.2.5"
1280source = "registry+https://github.com/rust-lang/crates.io-index"
1281checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
1283[[package]]
1284name = "unicode-ident"
1285version = "1.0.24"
1286source = "registry+https://github.com/rust-lang/crates.io-index"
1287checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
1289[[package]]
1290name = "unicode-xid"
1291version = "0.2.6"
1292source = "registry+https://github.com/rust-lang/crates.io-index"
1293checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
1295[[package]]
1296name = "untrusted"
1297version = "0.9.0"
1298source = "registry+https://github.com/rust-lang/crates.io-index"
1299checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
1301[[package]]
1302name = "url"
1303version = "2.5.8"
1304source = "registry+https://github.com/rust-lang/crates.io-index"
1305checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
1306dependencies = [
1307 "form_urlencoded",
1308 "idna",
1309 "percent-encoding",
1310 "serde",
1313[[package]]
1314name = "utf8_iter"
1315version = "1.0.4"
1316source = "registry+https://github.com/rust-lang/crates.io-index"
1317checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
1319[[package]]
1320name = "vcpkg"
1321version = "0.2.15"
1322source = "registry+https://github.com/rust-lang/crates.io-index"
1323checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
1325[[package]]
1326name = "want"
1327version = "0.3.1"
1328source = "registry+https://github.com/rust-lang/crates.io-index"
1329checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
1330dependencies = [
1331 "try-lock",
1334[[package]]
1335name = "wasi"
1336version = "0.11.1+wasi-snapshot-preview1"
1337source = "registry+https://github.com/rust-lang/crates.io-index"
1338checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
1340[[package]]
1341name = "wasip2"
1342version = "1.0.3+wasi-0.2.9"
1343source = "registry+https://github.com/rust-lang/crates.io-index"
1344checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
1345dependencies = [
1346 "wit-bindgen 0.57.1",
1349[[package]]
1350name = "wasip3"
1351version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
1352source = "registry+https://github.com/rust-lang/crates.io-index"
1353checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
1354dependencies = [
1355 "wit-bindgen 0.51.0",
1358[[package]]
1359name = "wasm-bindgen"
1360version = "0.2.122"
1361source = "registry+https://github.com/rust-lang/crates.io-index"
1362checksum = "3ed04576f974d2b2fba0f38c51dbc5518011e38c36bf1143164be765528fd409"
1363dependencies = [
1364 "cfg-if",
1365 "once_cell",
1366 "rustversion",
1367 "wasm-bindgen-macro",
1368 "wasm-bindgen-shared",
1371[[package]]
1372name = "wasm-bindgen-futures"
1373version = "0.4.72"
1374source = "registry+https://github.com/rust-lang/crates.io-index"
1375checksum = "9473dbd2991ae90b6291c3c32c30c6187ac49aa32f9905d1cce280ec1e110b0f"
1376dependencies = [
1377 "js-sys",
1378 "wasm-bindgen",
1381[[package]]
1382name = "wasm-bindgen-macro"
1383version = "0.2.122"
1384source = "registry+https://github.com/rust-lang/crates.io-index"
1385checksum = "916151b09da36bd82f6615cbf3a419e2f0ba23a03c6160e8e92eb6bd4aa1dec6"
1386dependencies = [
1387 "quote",
1388 "wasm-bindgen-macro-support",
1391[[package]]
1392name = "wasm-bindgen-macro-support"
1393version = "0.2.122"
1394source = "registry+https://github.com/rust-lang/crates.io-index"
1395checksum = "299047362ccbfce148b67ab7e73349f77748e00c8296f9542adfad2ad82c5c5e"
1396dependencies = [
1397 "bumpalo",
1398 "proc-macro2",
1399 "quote",
1400 "syn",
1401 "wasm-bindgen-shared",
1404[[package]]
1405name = "wasm-bindgen-shared"
1406version = "0.2.122"
1407source = "registry+https://github.com/rust-lang/crates.io-index"
1408checksum = "9a929b2c61f11ba3e9bc35b50c1f25cb38e0e892c0c231ae2b8cf78d5dad4437"
1409dependencies = [
1410 "unicode-ident",
1413[[package]]
1414name = "wasm-encoder"
1415version = "0.244.0"
1416source = "registry+https://github.com/rust-lang/crates.io-index"
1417checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
1418dependencies = [
1419 "leb128fmt",
1420 "wasmparser",
1423[[package]]
1424name = "wasm-metadata"
1425version = "0.244.0"
1426source = "registry+https://github.com/rust-lang/crates.io-index"
1427checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
1428dependencies = [
1429 "anyhow",
1430 "indexmap",
1431 "wasm-encoder",
1432 "wasmparser",
1435[[package]]
1436name = "wasm-streams"
1437version = "0.4.2"
1438source = "registry+https://github.com/rust-lang/crates.io-index"
1439checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65"
1440dependencies = [
1441 "futures-util",
1442 "js-sys",
1443 "wasm-bindgen",
1444 "wasm-bindgen-futures",
1445 "web-sys",
1448[[package]]
1449name = "wasmparser"
1450version = "0.244.0"
1451source = "registry+https://github.com/rust-lang/crates.io-index"
1452checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
1453dependencies = [
1454 "bitflags",
1455 "hashbrown 0.15.5",
1456 "indexmap",
1457 "semver",
1460[[package]]
1461name = "web-sys"
1462version = "0.3.99"
1463source = "registry+https://github.com/rust-lang/crates.io-index"
1464checksum = "6d621441cfc37b84979402712047321980c178f299193a3589d05b99e8763436"
1465dependencies = [
1466 "js-sys",
1467 "wasm-bindgen",
1470[[package]]
1471name = "windows-link"
1472version = "0.2.1"
1473source = "registry+https://github.com/rust-lang/crates.io-index"
1474checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
1476[[package]]
1477name = "windows-registry"
1478version = "0.6.1"
1479source = "registry+https://github.com/rust-lang/crates.io-index"
1480checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"
1481dependencies = [
1482 "windows-link",
1483 "windows-result",
1484 "windows-strings",
1487[[package]]
1488name = "windows-result"
1489version = "0.4.1"
1490source = "registry+https://github.com/rust-lang/crates.io-index"
1491checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
1492dependencies = [
1493 "windows-link",
1496[[package]]
1497name = "windows-strings"
1498version = "0.5.1"
1499source = "registry+https://github.com/rust-lang/crates.io-index"
1500checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
1501dependencies = [
1502 "windows-link",
1505[[package]]
1506name = "windows-sys"
1507version = "0.52.0"
1508source = "registry+https://github.com/rust-lang/crates.io-index"
1509checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
1510dependencies = [
1511 "windows-targets",
1514[[package]]
1515name = "windows-sys"
1516version = "0.61.2"
1517source = "registry+https://github.com/rust-lang/crates.io-index"
1518checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
1519dependencies = [
1520 "windows-link",
1523[[package]]
1524name = "windows-targets"
1525version = "0.52.6"
1526source = "registry+https://github.com/rust-lang/crates.io-index"
1527checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1528dependencies = [
1529 "windows_aarch64_gnullvm",
1530 "windows_aarch64_msvc",
1531 "windows_i686_gnu",
1532 "windows_i686_gnullvm",
1533 "windows_i686_msvc",
1534 "windows_x86_64_gnu",
1535 "windows_x86_64_gnullvm",
1536 "windows_x86_64_msvc",
1539[[package]]
1540name = "windows_aarch64_gnullvm"
1541version = "0.52.6"
1542source = "registry+https://github.com/rust-lang/crates.io-index"
1543checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1545[[package]]
1546name = "windows_aarch64_msvc"
1547version = "0.52.6"
1548source = "registry+https://github.com/rust-lang/crates.io-index"
1549checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1551[[package]]
1552name = "windows_i686_gnu"
1553version = "0.52.6"
1554source = "registry+https://github.com/rust-lang/crates.io-index"
1555checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1557[[package]]
1558name = "windows_i686_gnullvm"
1559version = "0.52.6"
1560source = "registry+https://github.com/rust-lang/crates.io-index"
1561checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1563[[package]]
1564name = "windows_i686_msvc"
1565version = "0.52.6"
1566source = "registry+https://github.com/rust-lang/crates.io-index"
1567checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1569[[package]]
1570name = "windows_x86_64_gnu"
1571version = "0.52.6"
1572source = "registry+https://github.com/rust-lang/crates.io-index"
1573checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1575[[package]]
1576name = "windows_x86_64_gnullvm"
1577version = "0.52.6"
1578source = "registry+https://github.com/rust-lang/crates.io-index"
1579checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1581[[package]]
1582name = "windows_x86_64_msvc"
1583version = "0.52.6"
1584source = "registry+https://github.com/rust-lang/crates.io-index"
1585checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1587[[package]]
1588name = "wit-bindgen"
1589version = "0.51.0"
1590source = "registry+https://github.com/rust-lang/crates.io-index"
1591checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
1592dependencies = [
1593 "wit-bindgen-rust-macro",
1596[[package]]
1597name = "wit-bindgen"
1598version = "0.57.1"
1599source = "registry+https://github.com/rust-lang/crates.io-index"
1600checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
1602[[package]]
1603name = "wit-bindgen-core"
1604version = "0.51.0"
1605source = "registry+https://github.com/rust-lang/crates.io-index"
1606checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
1607dependencies = [
1608 "anyhow",
1609 "heck",
1610 "wit-parser",
1613[[package]]
1614name = "wit-bindgen-rust"
1615version = "0.51.0"
1616source = "registry+https://github.com/rust-lang/crates.io-index"
1617checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
1618dependencies = [
1619 "anyhow",
1620 "heck",
1621 "indexmap",
1622 "prettyplease",
1623 "syn",
1624 "wasm-metadata",
1625 "wit-bindgen-core",
1626 "wit-component",
1629[[package]]
1630name = "wit-bindgen-rust-macro"
1631version = "0.51.0"
1632source = "registry+https://github.com/rust-lang/crates.io-index"
1633checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
1634dependencies = [
1635 "anyhow",
1636 "prettyplease",
1637 "proc-macro2",
1638 "quote",
1639 "syn",
1640 "wit-bindgen-core",
1641 "wit-bindgen-rust",
1644[[package]]
1645name = "wit-component"
1646version = "0.244.0"
1647source = "registry+https://github.com/rust-lang/crates.io-index"
1648checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
1649dependencies = [
1650 "anyhow",
1651 "bitflags",
1652 "indexmap",
1653 "log",
1654 "serde",
1655 "serde_derive",
1656 "serde_json",
1657 "wasm-encoder",
1658 "wasm-metadata",
1659 "wasmparser",
1660 "wit-parser",
1663[[package]]
1664name = "wit-parser"
1665version = "0.244.0"
1666source = "registry+https://github.com/rust-lang/crates.io-index"
1667checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
1668dependencies = [
1669 "anyhow",
1670 "id-arena",
1671 "indexmap",
1672 "log",
1673 "semver",
1674 "serde",
1675 "serde_derive",
1676 "serde_json",
1677 "unicode-xid",
1678 "wasmparser",
1681[[package]]
1682name = "writeable"
1683version = "0.6.3"
1684source = "registry+https://github.com/rust-lang/crates.io-index"
1685checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
1687[[package]]
1688name = "yoke"
1689version = "0.8.2"
1690source = "registry+https://github.com/rust-lang/crates.io-index"
1691checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca"
1692dependencies = [
1693 "stable_deref_trait",
1694 "yoke-derive",
1695 "zerofrom",
1698[[package]]
1699name = "yoke-derive"
1700version = "0.8.2"
1701source = "registry+https://github.com/rust-lang/crates.io-index"
1702checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
1703dependencies = [
1704 "proc-macro2",
1705 "quote",
1706 "syn",
1707 "synstructure",
1710[[package]]
1711name = "zerofrom"
1712version = "0.1.8"
1713source = "registry+https://github.com/rust-lang/crates.io-index"
1714checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
1715dependencies = [
1716 "zerofrom-derive",
1719[[package]]
1720name = "zerofrom-derive"
1721version = "0.1.7"
1722source = "registry+https://github.com/rust-lang/crates.io-index"
1723checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
1724dependencies = [
1725 "proc-macro2",
1726 "quote",
1727 "syn",
1728 "synstructure",
1731[[package]]
1732name = "zeroize"
1733version = "1.8.2"
1734source = "registry+https://github.com/rust-lang/crates.io-index"
1735checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
1737[[package]]
1738name = "zerotrie"
1739version = "0.2.4"
1740source = "registry+https://github.com/rust-lang/crates.io-index"
1741checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
1742dependencies = [
1743 "displaydoc",
1744 "yoke",
1745 "zerofrom",
1748[[package]]
1749name = "zerovec"
1750version = "0.11.6"
1751source = "registry+https://github.com/rust-lang/crates.io-index"
1752checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
1753dependencies = [
1754 "yoke",
1755 "zerofrom",
1756 "zerovec-derive",
1759[[package]]
1760name = "zerovec-derive"
1761version = "0.11.3"
1762source = "registry+https://github.com/rust-lang/crates.io-index"
1763checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
1764dependencies = [
1765 "proc-macro2",
1766 "quote",
1767 "syn",
1770[[package]]
1771name = "zmij"
1772version = "1.0.21"
1773source = "registry+https://github.com/rust-lang/crates.io-index"
1774checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"

prototypes/p12-real-streaming/Cargo.toml

Added
new file mode 100644

+12 / −0 text lines

1[package]
2name = "p12-real-streaming"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7tokio = { version = "1", features = ["full"] }
8futures = "0.3"
9reqwest = { version = "0.12", features = ["json", "stream"] }
10bytes = "1"
11serde = { version = "1", features = ["derive"] }
12serde_json = "1"

prototypes/p12-real-streaming/src/main.rs

Added
new file mode 100644

+494 / −0 text lines

1//! Comprehensive MiniMax Token Plan API test suite.
2//!
3//! Tests:
4//! 1. Streaming with full completion (high max_tokens)
5//! 2. Non-streaming mode
6//! 3. MiniMax-M2.7-highspeed model
7//! 4. Multi-turn conversation
8//! 5. Error cases (invalid model, empty messages)
9//! 6. Token usage measurement from response
10//!
11//! NEVER prints API key. Requires MINIMAX_API_KEY env var for live tests.
13#![allow(dead_code)]
14use serde::Deserialize;
15use std::env;
17const URL: &str = "https://api.minimax.io/v1/chat/completions";
19// --- Response types ---
21#[derive(Debug, Deserialize)]
22struct ChatResponse {
23 choices: Vec<Choice>,
24 usage: Option<Usage>,
25}
27#[derive(Debug, Deserialize)]
28struct Choice {
29 #[serde(default)]
30 delta: Delta,
31 message: Option<Message>,
32 finish_reason: Option<String>,
33}
35#[derive(Debug, Deserialize, Default)]
36struct Delta {
37 role: Option<String>,
38 content: Option<String>,
39}
41#[derive(Debug, Deserialize, Default)]
42struct Message {
43 role: Option<String>,
44 content: Option<String>,
45}
47#[derive(Debug, Deserialize)]
48struct Usage {
49 prompt_tokens: u32,
50 completion_tokens: u32,
51 total_tokens: u32,
52}
54// --- SSE parsing ---
56fn parse_sse_lines(text: &str) -> Vec<(String, String)> {
57 let mut out = Vec::new();
58 for line in text.lines() {
59 if let Some((k, v)) = parse_sse_line(line) {
60 out.push((k, v));
61 }
62 }
63 out
64}
66fn parse_sse_line(line: &str) -> Option<(String, String)> {
67 let l = line.trim();
68 if l.is_empty() { return None; }
69 if let Some(e) = l.strip_prefix("event:") { return Some(("event".into(), e.trim().to_string())); }
70 if let Some(d) = l.strip_prefix("data:") { return Some(("data".into(), d.trim().to_string())); }
71 None
72}
74// --- Helpers ---
76fn get_api_key() -> Option<String> {
77 match env::var("MINIMAX_API_KEY") {
78 Ok(k) if !k.is_empty() => Some(k),
79 _ => None,
80 }
81}
83async fn do_request(
84 client: &reqwest::Client,
85 api_key: &str,
86 body: serde_json::Value,
87) -> (reqwest::StatusCode, String) {
88 let resp = client
89 .post(URL)
90 .header("Authorization", format!("Bearer {}", api_key))
91 .header("Content-Type", "application/json")
92 .json(&body)
93 .send()
94 .await;
95 match resp {
96 Ok(r) => {
97 let status = r.status();
98 let text = r.text().await.unwrap_or_default();
99 (status, text)
100 }
101 Err(e) => (reqwest::StatusCode::SERVICE_UNAVAILABLE, format!("Request error: {}", e)),
102 }
103}
105/// Parse raw text as SSE stream. Returns (content, finish_reason, chunk_count, usage).
106async fn parse_stream_text(_status: reqwest::StatusCode, text: String) -> Result<(String, Option<String>, u32, Option<Usage>), String> {
107 // Reconstruct a response for streaming — use a fake response that we manually parse
108 // Since we already have the full text, parse it directly as SSE lines.
109 let mut full_content = String::new();
110 let mut chunk_count = 0u32;
111 let mut finish_reason = None;
112 let mut usage = None;
114 let events = parse_sse_lines(&text);
115 for (kind, val) in &events {
116 if kind == "data" && val != "[DONE]" {
117 if let Ok(resp) = serde_json::from_str::<ChatResponse>(val) {
118 chunk_count += 1;
119 for choice in &resp.choices {
120 if let Some(ref c) = choice.delta.content {
121 full_content.push_str(c);
122 }
123 if choice.finish_reason.is_some() {
124 finish_reason = choice.finish_reason.clone();
125 }
126 }
127 if resp.usage.is_some() {
128 usage = resp.usage;
129 }
130 }
131 }
132 }
133 Ok((full_content, finish_reason, chunk_count, usage))
134}
136// --- Individual tests ---
138/// Test 1: Streaming with full completion (high max_tokens).
139async fn test_streaming_full(client: &reqwest::Client, api_key: &str) -> Result<(), String> {
140 eprintln!("\n=== TEST 1: Streaming (full completion, max_tokens=256) ===");
141 let body = serde_json::json!({
142 "model": "MiniMax-M2.7",
143 "messages": [{ "role": "user", "content": "Explain what a closure is in Rust, in 2-3 sentences." }],
144 "stream": true,
145 "max_tokens": 256
146 });
147 let (status, text) = do_request(client, api_key, body).await;
148 eprintln!(" Status: {}", status);
149 if !status.is_success() {
150 return Err(format!("Expected 200, got {}: {}", status, &text[..text.len().min(200)]));
151 }
153 let (content, finish, chunks, usage) = parse_stream_text(status, text).await?;
154 eprintln!(" Chunks: {}, Finish: {:?}", chunks, finish);
155 eprintln!(" Content ({} chars): {}", content.len(),
156 if content.len() > 200 { format!("{}...", &content[..200]) } else { content.clone() });
157 if let Some(u) = &usage {
158 eprintln!(" Usage: prompt={}, completion={}, total={}",
159 u.prompt_tokens, u.completion_tokens, u.total_tokens);
160 }
162 if chunks == 0 { return Err("Expected streaming chunks".into()); }
163 if content.is_empty() { return Err("Expected non-empty content".into()); }
164 if finish.is_none() { return Err("Expected finish_reason".into()); }
165 if finish.as_deref() == Some("length") {
166 eprintln!(" [WARN] finish_reason=length (content may be truncated)");
167 }
168 eprintln!(" [OK] Streaming full completion passed");
169 Ok(())
170}
172/// Test 2: Non-streaming mode.
173async fn test_non_streaming(client: &reqwest::Client, api_key: &str) -> Result<(), String> {
174 eprintln!("\n=== TEST 2: Non-streaming ===");
175 let body = serde_json::json!({
176 "model": "MiniMax-M2.7",
177 "messages": [{ "role": "user", "content": "Say exactly: Hello world. Nothing else." }],
178 "stream": false,
179 "max_tokens": 50
180 });
181 let (status, text) = do_request(client, api_key, body).await;
182 eprintln!(" Status: {}", status);
183 if !status.is_success() {
184 return Err(format!("Expected 200, got {}: {}", status, &text[..text.len().min(200)]));
185 }
187 let resp: ChatResponse = serde_json::from_str(&text)
188 .map_err(|e| format!("JSON parse failed: {} -- body: {}", e, &text[..text.len().min(300)]))?;
190 let content = resp.choices.first()
191 .and_then(|c| c.message.as_ref())
192 .and_then(|m| m.content.as_ref())
193 .map(|s| s.as_str())
194 .unwrap_or("");
195 let finish = resp.choices.first().and_then(|c| c.finish_reason.as_ref());
196 eprintln!(" Content: {:?}", content);
197 eprintln!(" Finish: {:?}", finish);
198 if let Some(u) = &resp.usage {
199 eprintln!(" Usage: prompt={}, completion={}, total={}",
200 u.prompt_tokens, u.completion_tokens, u.total_tokens);
201 }
203 if resp.choices.is_empty() { return Err("Expected at least 1 choice".into()); }
204 if content.is_empty() { return Err("Expected non-empty content".into()); }
205 if finish.is_none() { return Err("Expected finish_reason".into()); }
206 if resp.usage.is_none() { return Err("Expected usage field".into()); }
207 eprintln!(" [OK] Non-streaming passed");
208 Ok(())
209}
211/// Test 3: MiniMax-M2.7-highspeed model.
212async fn test_highspeed_model(client: &reqwest::Client, api_key: &str) -> Result<(), String> {
213 eprintln!("\n=== TEST 3: MiniMax-M2.7-highspeed ===");
214 let body = serde_json::json!({
215 "model": "MiniMax-M2.7-highspeed",
216 "messages": [{ "role": "user", "content": "Reply with just the number 42. No explanation." }],
217 "stream": true,
218 "max_tokens": 50
219 });
220 let (status, text) = do_request(client, api_key, body).await;
221 eprintln!(" Status: {}", status);
222 // highspeed model may not be available for this plan
223 if !status.is_success() {
224 eprintln!(" [INFO] Model not available (expected for some plans): {}", status);
225 eprintln!(" Response: {}", &text[..text.len().min(300)]);
226 eprintln!(" [OK] Error response correctly detected");
227 return Ok(());
228 }
230 let (content, finish, chunks, _usage) = parse_stream_text(status, text).await?;
231 eprintln!(" Chunks: {}, Finish: {:?}", chunks, finish);
232 eprintln!(" Content: {:?}", content);
233 if chunks == 0 { return Err("Expected streaming chunks".into()); }
234 if content.is_empty() { return Err("Expected non-empty content".into()); }
235 if finish.is_none() { return Err("Expected finish_reason".into()); }
236 eprintln!(" [OK] Highspeed model passed");
237 Ok(())
238}
240/// Test 4: Multi-turn conversation.
241async fn test_multi_turn(client: &reqwest::Client, api_key: &str) -> Result<(), String> {
242 eprintln!("\n=== TEST 4: Multi-turn conversation ===");
243 let body = serde_json::json!({
244 "model": "MiniMax-M2.7",
245 "messages": [
246 { "role": "system", "content": "You are a helpful assistant who gives very short answers." },
247 { "role": "user", "content": "My name is Smith." },
248 { "role": "assistant", "content": "Hello Smith! How can I help you?" },
249 { "role": "user", "content": "What is my name? Reply with just the name." }
250 ],
251 "stream": false,
252 "max_tokens": 50
253 });
254 let (status, text) = do_request(client, api_key, body).await;
255 eprintln!(" Status: {}", status);
256 if !status.is_success() {
257 return Err(format!("Expected 200, got {}: {}", status, &text[..text.len().min(200)]));
258 }
260 let resp: ChatResponse = serde_json::from_str(&text)
261 .map_err(|e| format!("JSON parse failed: {}", e))?;
262 let content = resp.choices.first()
263 .and_then(|c| c.message.as_ref())
264 .and_then(|m| m.content.as_ref())
265 .map(|s| s.as_str())
266 .unwrap_or("");
267 eprintln!(" Content: {:?}", content);
268 if let Some(u) = &resp.usage {
269 eprintln!(" Usage: prompt={}, completion={}, total={}",
270 u.prompt_tokens, u.completion_tokens, u.total_tokens);
271 if u.prompt_tokens <= 5 {
272 return Err(format!("Expected multi-turn prompt_tokens > 5, got {}", u.prompt_tokens));
273 }
274 }
276 if content.is_empty() { return Err("Expected non-empty content".into()); }
277 eprintln!(" [OK] Multi-turn passed");
278 Ok(())
279}
281/// Test 5: Error cases.
282async fn test_errors(client: &reqwest::Client, api_key: &str) -> Result<(), String> {
283 eprintln!("\n=== TEST 5: Error cases ===");
285 // 5a: Invalid model
286 {
287 let body = serde_json::json!({
288 "model": "does-not-exist-999",
289 "messages": [{ "role": "user", "content": "Hi" }],
290 "stream": false,
291 "max_tokens": 10
292 });
293 let (status, text) = do_request(client, api_key, body).await;
294 eprintln!(" [5a] Invalid model -> Status: {}", status);
295 eprintln!(" Response: {}", &text[..text.len().min(200)]);
296 if status.is_success() {
297 return Err("Expected error for invalid model".into());
298 }
299 eprintln!(" [OK] Invalid model correctly rejected");
300 }
302 // 5b: Empty messages array
303 {
304 let body = serde_json::json!({
305 "model": "MiniMax-M2.7",
306 "messages": [],
307 "stream": false,
308 "max_tokens": 10
309 });
310 let (status, text) = do_request(client, api_key, body).await;
311 eprintln!(" [5b] Empty messages -> Status: {}", status);
312 eprintln!(" Response: {}", &text[..text.len().min(200)]);
313 if status.is_success() {
314 eprintln!(" [INFO] Empty messages accepted (API default behavior)");
315 } else {
316 eprintln!(" [OK] Empty messages correctly rejected");
317 }
318 }
320 // 5c: No API key (empty Bearer)
321 {
322 let body = serde_json::json!({
323 "model": "MiniMax-M2.7",
324 "messages": [{ "role": "user", "content": "Hi" }],
325 "stream": false,
326 "max_tokens": 10
327 });
328 let resp = client.post(URL)
329 .header("Authorization", "Bearer ")
330 .header("Content-Type", "application/json")
331 .json(&body)
332 .send().await;
333 match resp {
334 Ok(r) => {
335 eprintln!(" [5c] No API key -> Status: {}", r.status());
336 if r.status().is_success() {
337 return Err("Expected auth failure with empty key".into());
338 }
339 }
340 Err(e) => { eprintln!(" [5c] No API key -> Request error: {}", e); }
341 }
342 eprintln!(" [OK] Empty key correctly rejected");
343 }
344 Ok(())
345}
347/// Test 6: Token usage measurement.
348async fn test_token_usage(client: &reqwest::Client, api_key: &str) -> Result<(), String> {
349 eprintln!("\n=== TEST 6: Token usage measurement ===");
350 let body = serde_json::json!({
351 "model": "MiniMax-M2.7",
352 "messages": [{ "role": "user", "content": "Count from 1 to 5, one number per line." }],
353 "stream": true,
354 "max_tokens": 100,
355 "stream_options": { "include_usage": true }
356 });
357 let (status, text) = do_request(client, api_key, body).await;
358 eprintln!(" Status: {}", status);
359 if !status.is_success() {
360 return Err(format!("Expected 200, got {}: {}", status, &text[..text.len().min(200)]));
361 }
363 let (_content, finish, chunks, usage) = parse_stream_text(status, text).await?;
364 eprintln!(" Chunks: {}, Finish: {:?}", chunks, finish);
366 if let Some(u) = &usage {
367 eprintln!(" Usage: prompt={}, completion={}, total={}",
368 u.prompt_tokens, u.completion_tokens, u.total_tokens);
369 if u.total_tokens != u.prompt_tokens + u.completion_tokens {
370 return Err(format!("total_tokens {} != prompt {} + completion {}",
371 u.total_tokens, u.prompt_tokens, u.completion_tokens));
372 }
373 if u.completion_tokens == 0 {
374 return Err("Expected completion_tokens > 0".into());
375 }
376 eprintln!(" [OK] Token usage from stream: all fields valid");
377 return Ok(());
378 }
380 // Fallback: non-streaming for usage
381 eprintln!(" [WARN] No usage in stream (stream_options.include_usage may not be supported)");
382 eprintln!(" Falling back to non-streaming for usage...");
383 let body2 = serde_json::json!({
384 "model": "MiniMax-M2.7",
385 "messages": [{ "role": "user", "content": "Count from 1 to 5." }],
386 "stream": false,
387 "max_tokens": 100
388 });
389 let (status2, text2) = do_request(client, api_key, body2).await;
390 if !status2.is_success() {
391 return Err(format!("Fallback request failed: {}", status2));
392 }
393 let resp2: ChatResponse = serde_json::from_str(&text2)
394 .map_err(|e| format!("Fallback JSON parse failed: {}", e))?;
395 if let Some(u2) = &resp2.usage {
396 eprintln!(" Usage (non-stream): prompt={}, completion={}, total={}",
397 u2.prompt_tokens, u2.completion_tokens, u2.total_tokens);
398 if u2.total_tokens != u2.prompt_tokens + u2.completion_tokens {
399 return Err(format!("total_tokens mismatch: {} != {} + {}",
400 u2.total_tokens, u2.prompt_tokens, u2.completion_tokens));
401 }
402 if u2.completion_tokens == 0 {
403 return Err("Expected completion_tokens > 0".into());
404 }
405 eprintln!(" [OK] Token usage from non-stream: all fields valid");
406 } else {
407 eprintln!(" [WARN] No usage field even in non-streaming response");
408 }
409 Ok(())
410}
412// --- Mock SSE test (always runs, no network) ---
414fn test_mock_sse() {
415 eprintln!("\n--- Mock SSE Test (no network) ---");
416 let mock_sse = concat!(
417 "event: ping\n\n",
418 "data: {\"choices\":[{\"delta\":{\"role\":\"assistant\"}}]}\n\n",
419 "data: {\"choices\":[{\"delta\":{\"content\":\"Hello\"}}]}\n\n",
420 "data: {\"choices\":[{\"delta\":{\"content\":\" world\"}}]}\n\n",
421 "data: {\"choices\":[{\"delta\":{},\"finish_reason\":\"stop\"}]}\n\n",
422 "data: [DONE]\n\n",
423 );
424 let mock_events = parse_sse_lines(mock_sse);
425 let mut mock_content = String::new();
426 let mut mock_chunks = 0u32;
427 let mut mock_finish = None;
428 for (kind, val) in &mock_events {
429 if kind == "data" && val != "[DONE]" {
430 if let Ok(resp) = serde_json::from_str::<ChatResponse>(val) {
431 mock_chunks += 1;
432 for c in &resp.choices {
433 if let Some(ref content) = c.delta.content { mock_content.push_str(content); }
434 if c.finish_reason.is_some() { mock_finish = c.finish_reason.clone(); }
435 }
436 }
437 }
438 }
439 assert_eq!(mock_content, "Hello world");
440 assert_eq!(mock_finish.as_deref(), Some("stop"));
441 assert_eq!(mock_chunks, 4); // role + "Hello" + " world" + finish
442 eprintln!(" [OK] Mock SSE: {} chunks, content={:?}, finish={:?}", mock_chunks, mock_content, mock_finish);
443}
445// --- Main ---
447macro_rules! run_test {
448 ($name:expr, $fn:expr, $client:expr, $key:expr) => {
449 match $fn($client, $key).await {
450 Ok(()) => ($name, true),
451 Err(e) => { eprintln!(" [FAIL] {}: {}", $name, e); ($name, false) }
452 }
453 };
454}
456#[tokio::main]
457async fn main() {
458 // Mock test always runs
459 test_mock_sse();
461 // Live tests need API key
462 let api_key = match get_api_key() {
463 Some(k) => k,
464 None => {
465 eprintln!("\n[SKIP] MINIMAX_API_KEY not set. Only mock tests ran.");
466 eprintln!(" Set: export MINIMAX_API_KEY=your-key");
467 return;
468 }
469 };
470 eprintln!("[INFO] MINIMAX_API_KEY: set ({} chars)", api_key.len());
472 let client = reqwest::Client::new();
473 let mut results: Vec<(&str, bool)> = Vec::new();
475 results.push(run_test!("T1 streaming_full", test_streaming_full, &client, &api_key));
476 results.push(run_test!("T2 non_streaming", test_non_streaming, &client, &api_key));
477 results.push(run_test!("T3 highspeed_model", test_highspeed_model, &client, &api_key));
478 results.push(run_test!("T4 multi_turn", test_multi_turn, &client, &api_key));
479 results.push(run_test!("T5 error_cases", test_errors, &client, &api_key));
480 results.push(run_test!("T6 token_usage", test_token_usage, &client, &api_key));
482 eprintln!();
483 let passed = results.iter().filter(|(_, ok)| *ok).count();
484 let total = results.len();
485 eprintln!("=== SUMMARY: {}/{} tests passed ===", passed, total);
486 for (name, ok) in &results {
487 eprintln!(" {} {}", if *ok { "[OK]" } else { "[FAIL]" }, name);
488 }
489 if passed < total {
490 eprintln!(" {} test(s) FAILED", total - passed);
491 } else {
492 eprintln!("\n ALL TESTS PASSED");
493 }
494}

prototypes/p13-harness-reload/Cargo.lock

Added
new file mode 100644

+547 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "autocfg"
7version = "1.5.1"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
11[[package]]
12name = "bitflags"
13version = "2.11.1"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
17[[package]]
18name = "bstr"
19version = "1.12.1"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"
22dependencies = [
23 "memchr",
24 "serde",
25]
27[[package]]
28name = "bytes"
29version = "1.11.1"
30source = "registry+https://github.com/rust-lang/crates.io-index"
31checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
33[[package]]
34name = "cc"
35version = "1.2.62"
36source = "registry+https://github.com/rust-lang/crates.io-index"
37checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
38dependencies = [
39 "find-msvc-tools",
40 "shlex",
41]
43[[package]]
44name = "cfg-if"
45version = "1.0.4"
46source = "registry+https://github.com/rust-lang/crates.io-index"
47checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
49[[package]]
50name = "ciborium"
51version = "0.2.2"
52source = "registry+https://github.com/rust-lang/crates.io-index"
53checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e"
54dependencies = [
55 "ciborium-io",
56 "ciborium-ll",
57 "serde",
58]
60[[package]]
61name = "ciborium-io"
62version = "0.2.2"
63source = "registry+https://github.com/rust-lang/crates.io-index"
64checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757"
66[[package]]
67name = "ciborium-ll"
68version = "0.2.2"
69source = "registry+https://github.com/rust-lang/crates.io-index"
70checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9"
71dependencies = [
72 "ciborium-io",
73 "half",
74]
76[[package]]
77name = "crunchy"
78version = "0.2.4"
79source = "registry+https://github.com/rust-lang/crates.io-index"
80checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
82[[package]]
83name = "either"
84version = "1.16.0"
85source = "registry+https://github.com/rust-lang/crates.io-index"
86checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
88[[package]]
89name = "env_home"
90version = "0.1.0"
91source = "registry+https://github.com/rust-lang/crates.io-index"
92checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe"
94[[package]]
95name = "erased-serde"
96version = "0.4.10"
97source = "registry+https://github.com/rust-lang/crates.io-index"
98checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"
99dependencies = [
100 "serde",
101 "serde_core",
102 "typeid",
103]
105[[package]]
106name = "errno"
107version = "0.3.14"
108source = "registry+https://github.com/rust-lang/crates.io-index"
109checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
110dependencies = [
111 "libc",
112 "windows-sys",
113]
115[[package]]
116name = "find-msvc-tools"
117version = "0.1.9"
118source = "registry+https://github.com/rust-lang/crates.io-index"
119checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
121[[package]]
122name = "half"
123version = "2.7.1"
124source = "registry+https://github.com/rust-lang/crates.io-index"
125checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
126dependencies = [
127 "cfg-if",
128 "crunchy",
129 "zerocopy",
130]
132[[package]]
133name = "itoa"
134version = "1.0.18"
135source = "registry+https://github.com/rust-lang/crates.io-index"
136checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
138[[package]]
139name = "libc"
140version = "0.2.186"
141source = "registry+https://github.com/rust-lang/crates.io-index"
142checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
144[[package]]
145name = "linux-raw-sys"
146version = "0.12.1"
147source = "registry+https://github.com/rust-lang/crates.io-index"
148checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
150[[package]]
151name = "lock_api"
152version = "0.4.14"
153source = "registry+https://github.com/rust-lang/crates.io-index"
154checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
155dependencies = [
156 "scopeguard",
157]
159[[package]]
160name = "lua-src"
161version = "547.0.0"
162source = "registry+https://github.com/rust-lang/crates.io-index"
163checksum = "1edaf29e3517b49b8b746701e5648ccb5785cde1c119062cbabbc5d5cd115e42"
164dependencies = [
165 "cc",
166]
168[[package]]
169name = "luajit-src"
170version = "210.5.12+a4f56a4"
171source = "registry+https://github.com/rust-lang/crates.io-index"
172checksum = "b3a8e7962a5368d5f264d045a5a255e90f9aa3fc1941ae15a8d2940d42cac671"
173dependencies = [
174 "cc",
175 "which",
176]
178[[package]]
179name = "memchr"
180version = "2.8.0"
181source = "registry+https://github.com/rust-lang/crates.io-index"
182checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
184[[package]]
185name = "mio"
186version = "1.2.0"
187source = "registry+https://github.com/rust-lang/crates.io-index"
188checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
189dependencies = [
190 "libc",
191 "wasi",
192 "windows-sys",
193]
195[[package]]
196name = "mlua"
197version = "0.10.5"
198source = "registry+https://github.com/rust-lang/crates.io-index"
199checksum = "c1f5f8fbebc7db5f671671134b9321c4b9aa9adeafccfd9a8c020ae45c6a35d0"
200dependencies = [
201 "bstr",
202 "either",
203 "erased-serde",
204 "mlua-sys",
205 "num-traits",
206 "parking_lot",
207 "rustc-hash",
208 "rustversion",
209 "serde",
210 "serde-value",
211]
213[[package]]
214name = "mlua-sys"
215version = "0.6.8"
216source = "registry+https://github.com/rust-lang/crates.io-index"
217checksum = "380c1f7e2099cafcf40e51d3a9f20a346977587aa4d012eae1f043149a728a93"
218dependencies = [
219 "cc",
220 "cfg-if",
221 "lua-src",
222 "luajit-src",
223 "pkg-config",
224]
226[[package]]
227name = "num-traits"
228version = "0.2.19"
229source = "registry+https://github.com/rust-lang/crates.io-index"
230checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
231dependencies = [
232 "autocfg",
233]
235[[package]]
236name = "ordered-float"
237version = "2.10.1"
238source = "registry+https://github.com/rust-lang/crates.io-index"
239checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c"
240dependencies = [
241 "num-traits",
242]
244[[package]]
245name = "p13-harness-reload"
246version = "0.1.0"
247dependencies = [
248 "ciborium",
249 "mlua",
250 "serde",
251 "serde_json",
252 "tokio",
253]
255[[package]]
256name = "parking_lot"
257version = "0.12.5"
258source = "registry+https://github.com/rust-lang/crates.io-index"
259checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
260dependencies = [
261 "lock_api",
262 "parking_lot_core",
263]
265[[package]]
266name = "parking_lot_core"
267version = "0.9.12"
268source = "registry+https://github.com/rust-lang/crates.io-index"
269checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
270dependencies = [
271 "cfg-if",
272 "libc",
273 "redox_syscall",
274 "smallvec",
275 "windows-link",
276]
278[[package]]
279name = "pin-project-lite"
280version = "0.2.17"
281source = "registry+https://github.com/rust-lang/crates.io-index"
282checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
284[[package]]
285name = "pkg-config"
286version = "0.3.33"
287source = "registry+https://github.com/rust-lang/crates.io-index"
288checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
290[[package]]
291name = "proc-macro2"
292version = "1.0.106"
293source = "registry+https://github.com/rust-lang/crates.io-index"
294checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
295dependencies = [
296 "unicode-ident",
297]
299[[package]]
300name = "quote"
301version = "1.0.45"
302source = "registry+https://github.com/rust-lang/crates.io-index"
303checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
304dependencies = [
305 "proc-macro2",
306]
308[[package]]
309name = "redox_syscall"
310version = "0.5.18"
311source = "registry+https://github.com/rust-lang/crates.io-index"
312checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
313dependencies = [
314 "bitflags",
315]
317[[package]]
318name = "rustc-hash"
319version = "2.1.2"
320source = "registry+https://github.com/rust-lang/crates.io-index"
321checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
323[[package]]
324name = "rustix"
325version = "1.1.4"
326source = "registry+https://github.com/rust-lang/crates.io-index"
327checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
328dependencies = [
329 "bitflags",
330 "errno",
331 "libc",
332 "linux-raw-sys",
333 "windows-sys",
334]
336[[package]]
337name = "rustversion"
338version = "1.0.22"
339source = "registry+https://github.com/rust-lang/crates.io-index"
340checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
342[[package]]
343name = "scopeguard"
344version = "1.2.0"
345source = "registry+https://github.com/rust-lang/crates.io-index"
346checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
348[[package]]
349name = "serde"
350version = "1.0.228"
351source = "registry+https://github.com/rust-lang/crates.io-index"
352checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
353dependencies = [
354 "serde_core",
355 "serde_derive",
356]
358[[package]]
359name = "serde-value"
360version = "0.7.0"
361source = "registry+https://github.com/rust-lang/crates.io-index"
362checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c"
363dependencies = [
364 "ordered-float",
365 "serde",
366]
368[[package]]
369name = "serde_core"
370version = "1.0.228"
371source = "registry+https://github.com/rust-lang/crates.io-index"
372checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
373dependencies = [
374 "serde_derive",
375]
377[[package]]
378name = "serde_derive"
379version = "1.0.228"
380source = "registry+https://github.com/rust-lang/crates.io-index"
381checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
382dependencies = [
383 "proc-macro2",
384 "quote",
385 "syn",
386]
388[[package]]
389name = "serde_json"
390version = "1.0.150"
391source = "registry+https://github.com/rust-lang/crates.io-index"
392checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
393dependencies = [
394 "itoa",
395 "memchr",
396 "serde",
397 "serde_core",
398 "zmij",
399]
401[[package]]
402name = "shlex"
403version = "1.3.0"
404source = "registry+https://github.com/rust-lang/crates.io-index"
405checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
407[[package]]
408name = "signal-hook-registry"
409version = "1.4.8"
410source = "registry+https://github.com/rust-lang/crates.io-index"
411checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
412dependencies = [
413 "errno",
414 "libc",
415]
417[[package]]
418name = "smallvec"
419version = "1.15.1"
420source = "registry+https://github.com/rust-lang/crates.io-index"
421checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
423[[package]]
424name = "socket2"
425version = "0.6.3"
426source = "registry+https://github.com/rust-lang/crates.io-index"
427checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
428dependencies = [
429 "libc",
430 "windows-sys",
431]
433[[package]]
434name = "syn"
435version = "2.0.117"
436source = "registry+https://github.com/rust-lang/crates.io-index"
437checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
438dependencies = [
439 "proc-macro2",
440 "quote",
441 "unicode-ident",
442]
444[[package]]
445name = "tokio"
446version = "1.52.3"
447source = "registry+https://github.com/rust-lang/crates.io-index"
448checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"
449dependencies = [
450 "bytes",
451 "libc",
452 "mio",
453 "parking_lot",
454 "pin-project-lite",
455 "signal-hook-registry",
456 "socket2",
457 "tokio-macros",
458 "windows-sys",
459]
461[[package]]
462name = "tokio-macros"
463version = "2.7.0"
464source = "registry+https://github.com/rust-lang/crates.io-index"
465checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
466dependencies = [
467 "proc-macro2",
468 "quote",
469 "syn",
470]
472[[package]]
473name = "typeid"
474version = "1.0.3"
475source = "registry+https://github.com/rust-lang/crates.io-index"
476checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
478[[package]]
479name = "unicode-ident"
480version = "1.0.24"
481source = "registry+https://github.com/rust-lang/crates.io-index"
482checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
484[[package]]
485name = "wasi"
486version = "0.11.1+wasi-snapshot-preview1"
487source = "registry+https://github.com/rust-lang/crates.io-index"
488checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
490[[package]]
491name = "which"
492version = "7.0.3"
493source = "registry+https://github.com/rust-lang/crates.io-index"
494checksum = "24d643ce3fd3e5b54854602a080f34fb10ab75e0b813ee32d00ca2b44fa74762"
495dependencies = [
496 "either",
497 "env_home",
498 "rustix",
499 "winsafe",
500]
502[[package]]
503name = "windows-link"
504version = "0.2.1"
505source = "registry+https://github.com/rust-lang/crates.io-index"
506checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
508[[package]]
509name = "windows-sys"
510version = "0.61.2"
511source = "registry+https://github.com/rust-lang/crates.io-index"
512checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
513dependencies = [
514 "windows-link",
515]
517[[package]]
518name = "winsafe"
519version = "0.0.19"
520source = "registry+https://github.com/rust-lang/crates.io-index"
521checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"
523[[package]]
524name = "zerocopy"
525version = "0.8.48"
526source = "registry+https://github.com/rust-lang/crates.io-index"
527checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
528dependencies = [
529 "zerocopy-derive",
530]
532[[package]]
533name = "zerocopy-derive"
534version = "0.8.48"
535source = "registry+https://github.com/rust-lang/crates.io-index"
536checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
537dependencies = [
538 "proc-macro2",
539 "quote",
540 "syn",
541]
543[[package]]
544name = "zmij"
545version = "1.0.21"
546source = "registry+https://github.com/rust-lang/crates.io-index"
547checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"

prototypes/p13-harness-reload/Cargo.toml

Added
new file mode 100644

+11 / −0 text lines

1[package]
2name = "p13-harness-reload"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7mlua = { version = "0.10", features = ["vendored", "serialize", "lua54"] }
8ciborium = "0.2"
9serde = { version = "1", features = ["derive"] }
10serde_json = "1"
11tokio = { version = "1", features = ["full"] }

prototypes/p13-harness-reload/src/main.rs

Added
new file mode 100644

+234 / −0 text lines

1//! Prototype P13: Harness reload timing.
2//! Validates SM-009 harness integration — measures time to init/teardown/reinit
3//! the core subsystems (Lua runtime, CBOR codec, config, provider pool).
4//!
5//! Tests:
6//! 1. Single harness init timing
7//! 2. Harness teardown timing
8//! 3. Full reload cycle (teardown + init) timing
9//! 4. N consecutive reload cycles — proves sub-second reload
10//! 5. Lua state survives reload boundary (fresh each cycle)
11//! 6. Config CBOR roundtrip within harness context
13use std::time::Instant;
14use mlua::Lua;
17/// Simulated harness — contains all the heavy subsystems.
18struct Harness {
19 lua: Lua,
20 config: AppConfig,
21 codec_state: CodecState,
22 provider_registry: ProviderRegistry,
23}
25#[derive(serde::Serialize, serde::Deserialize, Clone)]
26struct AppConfig {
27 model: String,
28 max_tokens: u32,
29 temperature: f64,
30 workspace: String,
31 plugins: Vec<String>,
32}
34struct CodecState {
35 entry_count: usize,
36 buffer: Vec<u8>,
37}
39struct ProviderRegistry {
40 providers: Vec<String>,
41 active: usize,
42}
44impl Harness {
45 fn new() -> Self {
46 Harness {
47 lua: Lua::new(),
48 config: AppConfig {
49 model: "MiniMax-M2.7".into(),
50 max_tokens: 4096,
51 temperature: 0.7,
52 workspace: "/tmp/smith".into(),
53 plugins: vec!["formatter.lua".into(), "linter.lua".into()],
54 },
55 codec_state: CodecState {
56 entry_count: 0,
57 buffer: Vec::with_capacity(64 * 1024),
58 },
59 provider_registry: ProviderRegistry {
60 providers: vec!["minimax".into(), "openai".into(), "anthropic".into()],
61 active: 0,
62 },
63 }
64 }
66 /// Warm up the harness: load Lua plugins, init codec, register providers.
67 fn warmup(&mut self) {
68 // Load sandbox
69 self.lua.load(r#"
70 local raw_os = os
71 os = setmetatable({}, {
72 __index = function(_, k)
73 if k == "execute" or k == "exit" then return nil end
74 return raw_os[k]
75 end
76 })
77 "#).exec().expect("sandbox setup");
79 // Load plugin stubs
80 for plugin in &self.config.plugins {
81 let code = format!(r#"
82 plugins = plugins or {{}}
83 plugins["{name}"] = {{ version = "1.0", hooks = {{}} }}
84 "#, name = plugin);
85 self.lua.load(&code).exec().expect("plugin load");
86 }
88 // Init codec state
89 let mut buf = Vec::new();
90 ciborium::ser::into_writer(&self.config, &mut buf).expect("CBOR encode");
91 self.codec_state.buffer = buf;
92 self.codec_state.entry_count = 1;
94 // Register providers
95 self.provider_registry.active = 0;
96 }
98 /// Verify harness is operational.
99 fn verify(&self) {
100 // Lua works
101 let val: i32 = self.lua.load("return 1 + 1").eval().expect("lua eval");
102 assert_eq!(val, 2, "Lua not operational after reload");
104 // Config accessible
105 assert_eq!(self.config.model, "MiniMax-M2.7");
106 assert_eq!(self.config.plugins.len(), 2);
108 // Codec state valid
109 assert!(self.codec_state.entry_count > 0);
110 assert!(!self.codec_state.buffer.is_empty());
112 // Providers registered
113 assert_eq!(self.provider_registry.providers.len(), 3);
114 }
115}
117fn fmt_ns(d: std::time::Duration) -> String {
118 format!("{:.1}ms", d.as_secs_f64() * 1000.0)
119}
121fn main() {
122 eprintln!("=== P13: Harness Reload Timing ===");
123 eprintln!();
125 // --- Test 1: Single harness init ---
126 eprintln!("--- Test 1: Single harness init ---");
127 let t = Instant::now();
128 let mut h = Harness::new();
129 let init_time = t.elapsed();
130 eprintln!("[OK] Harness::new() took {}", fmt_ns(init_time));
132 // --- Test 2: Warmup (load plugins, codec, providers) ---
133 eprintln!("--- Test 2: Warmup ---");
134 let t = Instant::now();
135 h.warmup();
136 let warmup_time = t.elapsed();
137 eprintln!("[OK] warmup() took {}", fmt_ns(warmup_time));
139 // --- Test 3: Verify operational ---
140 eprintln!("--- Test 3: Verify operational ---");
141 h.verify();
142 eprintln!("[OK] verify passed");
144 // --- Test 4: Teardown ---
145 eprintln!("--- Test 4: Teardown ---");
146 let t = Instant::now();
147 drop(h);
148 let teardown_time = t.elapsed();
149 eprintln!("[OK] drop(harness) took {}", fmt_ns(teardown_time));
151 // --- Test 5: N consecutive reload cycles ---
152 let n = 100;
153 eprintln!();
154 eprintln!("--- Test 5: {} reload cycles ---", n);
156 let mut init_times = Vec::with_capacity(n);
157 let mut warmup_times = Vec::with_capacity(n);
158 let mut cycle_times = Vec::with_capacity(n);
160 let total_start = Instant::now();
162 for i in 0..n {
163 // Init
164 let t0 = Instant::now();
165 let mut harness = Harness::new();
166 let init = t0.elapsed();
168 // Warmup
169 let t1 = Instant::now();
170 harness.warmup();
171 let warmup = t1.elapsed();
173 // Verify
174 harness.verify();
176 // Teardown (implicit drop)
177 let t2 = Instant::now();
178 drop(harness);
179 let teardown = t2.elapsed();
181 let cycle = init + warmup + teardown;
182 init_times.push(init);
183 warmup_times.push(warmup);
184 cycle_times.push(cycle);
186 if (i + 1) % 25 == 0 {
187 eprintln!(" cycle {}/{}: init={} warmup={} drop={} total={}",
188 i + 1, n, fmt_ns(init), fmt_ns(warmup), fmt_ns(teardown), fmt_ns(cycle));
189 }
190 }
192 let total = total_start.elapsed();
194 // --- Test 6: Statistics ---
195 eprintln!();
196 eprintln!("--- Test 6: Statistics ---");
198 cycle_times.sort_by(|a, b| a.partial_cmp(b).unwrap());
199 init_times.sort_by(|a, b| a.partial_cmp(b).unwrap());
200 warmup_times.sort_by(|a, b| a.partial_cmp(b).unwrap());
202 let p50 = cycle_times[cycle_times.len() / 2];
203 let p95 = cycle_times[cycle_times.len() * 95 / 100];
204 let p99 = cycle_times[cycle_times.len() * 99 / 100];
205 let fastest = cycle_times[0];
206 let slowest = cycle_times[cycle_times.len() - 1];
207 let avg = cycle_times.iter().sum::<std::time::Duration>() / cycle_times.len() as u32;
209 eprintln!(" Cycles: {}", n);
210 eprintln!(" Total time: {}", fmt_ns(total));
211 eprintln!(" Throughput: {:.0} reloads/sec", n as f64 / total.as_secs_f64());
212 eprintln!(" Fastest: {}", fmt_ns(fastest));
213 eprintln!(" P50 (median): {}", fmt_ns(p50));
214 eprintln!(" P95: {}", fmt_ns(p95));
215 eprintln!(" P99: {}", fmt_ns(p99));
216 eprintln!(" Slowest: {}", fmt_ns(slowest));
217 eprintln!(" Average: {}", fmt_ns(avg));
219 let init_p50 = init_times[init_times.len() / 2];
220 let warmup_p50 = warmup_times[warmup_times.len() / 2];
221 eprintln!(" Init P50: {}", fmt_ns(init_p50));
222 eprintln!(" Warmup P50: {}", fmt_ns(warmup_p50));
224 // --- Assertions ---
225 assert!(p50.as_secs_f64() < 0.1,
226 "P50 reload must be < 100ms, got {}", fmt_ns(p50));
227 assert!(p99.as_secs_f64() < 1.0,
228 "P99 reload must be < 1s, got {}", fmt_ns(p99));
230 eprintln!();
231 eprintln!("=== ALL P13 TESTS PASSED ===");
232 eprintln!(" Sub-100ms P50 reload: CONFIRMED");
233 eprintln!(" Sub-1s P99 reload: CONFIRMED");
234}

prototypes/p17-vcs-sdk/Cargo.lock

Added
new file mode 100644

+404 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "autocfg"
7version = "1.5.1"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
11[[package]]
12name = "bitflags"
13version = "2.11.1"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
17[[package]]
18name = "bstr"
19version = "1.12.1"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"
22dependencies = [
23 "memchr",
24 "serde",
25]
27[[package]]
28name = "cc"
29version = "1.2.62"
30source = "registry+https://github.com/rust-lang/crates.io-index"
31checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
32dependencies = [
33 "find-msvc-tools",
34 "shlex",
35]
37[[package]]
38name = "cfg-if"
39version = "1.0.4"
40source = "registry+https://github.com/rust-lang/crates.io-index"
41checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
43[[package]]
44name = "either"
45version = "1.16.0"
46source = "registry+https://github.com/rust-lang/crates.io-index"
47checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
49[[package]]
50name = "env_home"
51version = "0.1.0"
52source = "registry+https://github.com/rust-lang/crates.io-index"
53checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe"
55[[package]]
56name = "erased-serde"
57version = "0.4.10"
58source = "registry+https://github.com/rust-lang/crates.io-index"
59checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"
60dependencies = [
61 "serde",
62 "serde_core",
63 "typeid",
64]
66[[package]]
67name = "errno"
68version = "0.3.14"
69source = "registry+https://github.com/rust-lang/crates.io-index"
70checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
71dependencies = [
72 "libc",
73 "windows-sys",
74]
76[[package]]
77name = "find-msvc-tools"
78version = "0.1.9"
79source = "registry+https://github.com/rust-lang/crates.io-index"
80checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
82[[package]]
83name = "itoa"
84version = "1.0.18"
85source = "registry+https://github.com/rust-lang/crates.io-index"
86checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
88[[package]]
89name = "libc"
90version = "0.2.186"
91source = "registry+https://github.com/rust-lang/crates.io-index"
92checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
94[[package]]
95name = "linux-raw-sys"
96version = "0.12.1"
97source = "registry+https://github.com/rust-lang/crates.io-index"
98checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
100[[package]]
101name = "lock_api"
102version = "0.4.14"
103source = "registry+https://github.com/rust-lang/crates.io-index"
104checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
105dependencies = [
106 "scopeguard",
107]
109[[package]]
110name = "lua-src"
111version = "547.0.0"
112source = "registry+https://github.com/rust-lang/crates.io-index"
113checksum = "1edaf29e3517b49b8b746701e5648ccb5785cde1c119062cbabbc5d5cd115e42"
114dependencies = [
115 "cc",
116]
118[[package]]
119name = "luajit-src"
120version = "210.5.12+a4f56a4"
121source = "registry+https://github.com/rust-lang/crates.io-index"
122checksum = "b3a8e7962a5368d5f264d045a5a255e90f9aa3fc1941ae15a8d2940d42cac671"
123dependencies = [
124 "cc",
125 "which",
126]
128[[package]]
129name = "memchr"
130version = "2.8.0"
131source = "registry+https://github.com/rust-lang/crates.io-index"
132checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
134[[package]]
135name = "mlua"
136version = "0.10.5"
137source = "registry+https://github.com/rust-lang/crates.io-index"
138checksum = "c1f5f8fbebc7db5f671671134b9321c4b9aa9adeafccfd9a8c020ae45c6a35d0"
139dependencies = [
140 "bstr",
141 "either",
142 "erased-serde",
143 "mlua-sys",
144 "num-traits",
145 "parking_lot",
146 "rustc-hash",
147 "rustversion",
148 "serde",
149 "serde-value",
150]
152[[package]]
153name = "mlua-sys"
154version = "0.6.8"
155source = "registry+https://github.com/rust-lang/crates.io-index"
156checksum = "380c1f7e2099cafcf40e51d3a9f20a346977587aa4d012eae1f043149a728a93"
157dependencies = [
158 "cc",
159 "cfg-if",
160 "lua-src",
161 "luajit-src",
162 "pkg-config",
163]
165[[package]]
166name = "num-traits"
167version = "0.2.19"
168source = "registry+https://github.com/rust-lang/crates.io-index"
169checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
170dependencies = [
171 "autocfg",
172]
174[[package]]
175name = "ordered-float"
176version = "2.10.1"
177source = "registry+https://github.com/rust-lang/crates.io-index"
178checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c"
179dependencies = [
180 "num-traits",
181]
183[[package]]
184name = "p17-vcs-sdk"
185version = "0.1.0"
186dependencies = [
187 "mlua",
188 "serde",
189 "serde_json",
190]
192[[package]]
193name = "parking_lot"
194version = "0.12.5"
195source = "registry+https://github.com/rust-lang/crates.io-index"
196checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
197dependencies = [
198 "lock_api",
199 "parking_lot_core",
200]
202[[package]]
203name = "parking_lot_core"
204version = "0.9.12"
205source = "registry+https://github.com/rust-lang/crates.io-index"
206checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
207dependencies = [
208 "cfg-if",
209 "libc",
210 "redox_syscall",
211 "smallvec",
212 "windows-link",
213]
215[[package]]
216name = "pkg-config"
217version = "0.3.33"
218source = "registry+https://github.com/rust-lang/crates.io-index"
219checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
221[[package]]
222name = "proc-macro2"
223version = "1.0.106"
224source = "registry+https://github.com/rust-lang/crates.io-index"
225checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
226dependencies = [
227 "unicode-ident",
228]
230[[package]]
231name = "quote"
232version = "1.0.45"
233source = "registry+https://github.com/rust-lang/crates.io-index"
234checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
235dependencies = [
236 "proc-macro2",
237]
239[[package]]
240name = "redox_syscall"
241version = "0.5.18"
242source = "registry+https://github.com/rust-lang/crates.io-index"
243checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
244dependencies = [
245 "bitflags",
246]
248[[package]]
249name = "rustc-hash"
250version = "2.1.2"
251source = "registry+https://github.com/rust-lang/crates.io-index"
252checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
254[[package]]
255name = "rustix"
256version = "1.1.4"
257source = "registry+https://github.com/rust-lang/crates.io-index"
258checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
259dependencies = [
260 "bitflags",
261 "errno",
262 "libc",
263 "linux-raw-sys",
264 "windows-sys",
265]
267[[package]]
268name = "rustversion"
269version = "1.0.22"
270source = "registry+https://github.com/rust-lang/crates.io-index"
271checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
273[[package]]
274name = "scopeguard"
275version = "1.2.0"
276source = "registry+https://github.com/rust-lang/crates.io-index"
277checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
279[[package]]
280name = "serde"
281version = "1.0.228"
282source = "registry+https://github.com/rust-lang/crates.io-index"
283checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
284dependencies = [
285 "serde_core",
286 "serde_derive",
287]
289[[package]]
290name = "serde-value"
291version = "0.7.0"
292source = "registry+https://github.com/rust-lang/crates.io-index"
293checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c"
294dependencies = [
295 "ordered-float",
296 "serde",
297]
299[[package]]
300name = "serde_core"
301version = "1.0.228"
302source = "registry+https://github.com/rust-lang/crates.io-index"
303checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
304dependencies = [
305 "serde_derive",
306]
308[[package]]
309name = "serde_derive"
310version = "1.0.228"
311source = "registry+https://github.com/rust-lang/crates.io-index"
312checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
313dependencies = [
314 "proc-macro2",
315 "quote",
316 "syn",
317]
319[[package]]
320name = "serde_json"
321version = "1.0.150"
322source = "registry+https://github.com/rust-lang/crates.io-index"
323checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
324dependencies = [
325 "itoa",
326 "memchr",
327 "serde",
328 "serde_core",
329 "zmij",
330]
332[[package]]
333name = "shlex"
334version = "1.3.0"
335source = "registry+https://github.com/rust-lang/crates.io-index"
336checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
338[[package]]
339name = "smallvec"
340version = "1.15.1"
341source = "registry+https://github.com/rust-lang/crates.io-index"
342checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
344[[package]]
345name = "syn"
346version = "2.0.117"
347source = "registry+https://github.com/rust-lang/crates.io-index"
348checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
349dependencies = [
350 "proc-macro2",
351 "quote",
352 "unicode-ident",
353]
355[[package]]
356name = "typeid"
357version = "1.0.3"
358source = "registry+https://github.com/rust-lang/crates.io-index"
359checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
361[[package]]
362name = "unicode-ident"
363version = "1.0.24"
364source = "registry+https://github.com/rust-lang/crates.io-index"
365checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
367[[package]]
368name = "which"
369version = "7.0.3"
370source = "registry+https://github.com/rust-lang/crates.io-index"
371checksum = "24d643ce3fd3e5b54854602a080f34fb10ab75e0b813ee32d00ca2b44fa74762"
372dependencies = [
373 "either",
374 "env_home",
375 "rustix",
376 "winsafe",
377]
379[[package]]
380name = "windows-link"
381version = "0.2.1"
382source = "registry+https://github.com/rust-lang/crates.io-index"
383checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
385[[package]]
386name = "windows-sys"
387version = "0.61.2"
388source = "registry+https://github.com/rust-lang/crates.io-index"
389checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
390dependencies = [
391 "windows-link",
392]
394[[package]]
395name = "winsafe"
396version = "0.0.19"
397source = "registry+https://github.com/rust-lang/crates.io-index"
398checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"
400[[package]]
401name = "zmij"
402version = "1.0.21"
403source = "registry+https://github.com/rust-lang/crates.io-index"
404checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"

prototypes/p17-vcs-sdk/Cargo.toml

Added
new file mode 100644

+13 / −0 text lines

1[package]
2name = "p17-vcs-sdk"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7mlua = { version = "0.10", features = ["luajit", "serialize"] }
8serde = { version = "1", features = ["derive"] }
9serde_json = "1"
11[features]
12default = []
13with-vendored-luajit = ["mlua/vendored"]

prototypes/p17-vcs-sdk/plugins/commands.lua

Added
new file mode 100644

+65 / −0 text lines

1-- commands.lua: slash-command-like actions composed entirely in Lua
2-- Rust does not implement command logic; it only exposes smith.vcs.* primitives.
3
4local commands = {}
5
6function commands.undo(self)
7 return smith.vcs.undo()
8end
9
10function commands.redo(self)
11 return smith.vcs.redo()
12end
14function commands.history(self, limit)
15 local n = limit and tonumber(limit) or 10
16 local result = smith.vcs.op_log(n)
17 if not result.success then
18 return { success = false, error = result.error }
19 end
21 local ops = result.entries or {}
22 local lines = {}
23 for i, op in ipairs(ops) do
24 table.insert(lines, string.format("#%d [%s] %s", i, op.id, op.description))
25 end
26 return {
27 success = true,
28 output = table.concat(lines, "\n"),
29 total = #ops,
30 }
31end
33function commands.restore_file(self, path)
34 if not path or path == "" then
35 return { success = false, error = "path required" }
36 end
37 return smith.vcs.restore_paths({ path })
38end
40function commands.undo_n(self, n)
41 local count = tonumber(n) or 0
42 if count < 1 then
43 return { success = false, error = "n must be >= 1" }
44 end
46 local done = 0
47 for i = 1, count do
48 local r = smith.vcs.undo()
49 if not r.success then
50 return { success = false, error = "undo failed at step " .. i, message = r.message }
51 end
52 done = done + 1
53 end
55 return { success = true, undos = done }
56end
58function commands.undo_file(self, path)
59 if not path or path == "" then
60 return { success = false, error = "path required" }
61 end
62 return smith.vcs.restore_paths({ path })
63end
65return commands

prototypes/p17-vcs-sdk/plugins/time-travel.lua

Added
new file mode 100644

+194 / −0 text lines

1-- time-travel.lua: all timeline/time-travel UX is Lua composition.
2-- Rust only provides smith.vcs.* + smith.shortcut.register table.
3
4local M = {}
5
6M.state = {
7 keybinds_registered = false,
8}
9
10local function detect_type(desc)
11 if not desc then return "op" end
12 if desc:find("^edit:") then return "edit"
13 elseif desc:find("^create:") then return "create"
14 elseif desc:find("^delete:") then return "delete"
15 elseif desc:find("^commit") then return "commit"
16 elseif desc:find("snapshot") then return "snapshot"
17 else return "unknown" end
18end
20local KEYBINDS = {
21 { key = "Alt+t", mode = "timeline", action = "toggle_timeline" },
22 { key = "Alt+i", mode = "timeline", action = "inspect_selected" },
23 { key = "Alt+d", mode = "timeline", action = "diff_selected" },
24 { key = "Alt+u", mode = "timeline", action = "undo_to_selected" },
25 { key = "Alt+r", mode = "timeline", action = "diff_vs_prev" },
26 { key = "Alt+b", mode = "timeline", action = "branch_from_here" },
27}
29local function register_keybinds()
30 if M.state.keybinds_registered then
31 return { success = true, registered = true }
32 end
34 if not smith or not smith.shortcut or not smith.shortcut.register then
35 return { success = false, error = "smith.shortcut.register unavailable" }
36 end
38 for _, b in ipairs(KEYBINDS) do
39 smith.shortcut.register(b.key, { mode = b.mode, action = b.action }, function() end)
40 end
42 M.state.keybinds_registered = true
43 return { success = true, registered = #KEYBINDS }
44end
46-- Timeline data from jj log (commit change IDs) not op_log (operation IDs).
47-- op_log returns operation IDs which are only valid for op restore/show,
48-- not for diff -r which expects commit/change IDs.
49local function pick_ops(limit)
50 local history = smith.vcs.op_log(limit or 50)
51 if not history or not history.success then
52 return nil, history and history.error or "op_log failed"
53 end
54 return history.entries or {}, nil
55end
57function M.timeline(self, limit)
58 local limit_n = tonumber(limit or 50) or 50
59 local entries, err = pick_ops(limit_n)
60 if not entries then
61 return { success = false, error = err }
62 end
64 local timeline = {}
65 for i, op in ipairs(entries) do
66 timeline[i] = {
67 index = i,
68 id = op.id,
69 description = op.description,
70 timestamp = op.timestamp,
71 op_type = detect_type(op.description),
72 }
73 end
75 return {
76 success = true,
77 total = #timeline,
78 timeline = timeline,
79 keymap = KEYBINDS,
80 }
81end
83local function resolve_entry(ops, index)
84 local i = tonumber(index or 1) or 1
85 if i < 1 then return nil end
86 return ops[i]
87end
89function M.inspect(self, op_index)
90 local ops, err = pick_ops(math.max(1, tonumber(op_index or 1) or 1) + 1)
91 if not ops then
92 return { success = false, error = err }
93 end
95 local op = resolve_entry(ops, tonumber(op_index or 1) or 1)
96 if not op then
97 return { success = false, error = "no operation at index " .. tostring(op_index) }
98 end
100 local show = smith.vcs.op_show(op.id)
101 local status = smith.vcs.status()
102 return {
103 success = true,
104 operation = op,
105 op_show = show,
106 current_status = status,
107 }
108end
110function M.diff_view(self, op_index)
111 -- diff_view: show diff between a past state and current.
112 -- Uses @- revset chain. jj @- = first parent, @-- = second parent, etc.
113 -- Note: jj inserts snapshot commits between user commits, so the @- chain
114 -- may not correspond 1:1 to op_log entries. We diff @ (current) vs nothing
115 -- for index=1 (last commit's changes), and fall back gracefully.
116 local idx = tonumber(op_index or 1) or 1
117 if idx < 1 then
118 return { success = false, error = "invalid index" }
119 end
121 -- For index 1, diff just the last commit: @ vs @-
122 local rev = "@-"
123 if idx > 1 then
124 -- For deeper history, use parents() revset function
125 rev = string.format("latest(ancestors(@, %d))", idx)
126 end
127 local diff = smith.vcs.diff_revs(rev, "@")
128 if not diff.success then
129 return { success = false, error = diff.error }
130 end
132 return {
133 success = true,
134 target = { index = idx },
135 diff = diff,
136 }
137end
139function M.compare_previous(self, op_index)
140 local idx = tonumber(op_index or 1) or 1
141 local ops, err = pick_ops(idx + 1)
142 if not ops then
143 return { success = false, error = err }
144 end
145 if idx < 1 or idx >= #ops then
146 return { success = false, error = "need a previous operation to compare" }
147 end
149 local op = resolve_entry(ops, idx)
150 local prev = resolve_entry(ops, idx + 1)
151 if not (op and prev) then
152 return { success = false, error = "missing operation pair" }
153 end
155 -- Use ancestors() revset for reliable comparison across snapshot commits
156 local rev_current = string.format("latest(ancestors(@, %d))", idx)
157 local rev_prev = string.format("latest(ancestors(@, %d))", idx + 1)
158 local diff = smith.vcs.diff_revs(rev_prev, rev_current)
159 if not diff.success then
160 return { success = false, error = diff.error }
161 end
163 return {
164 success = true,
165 current = op,
166 previous = prev,
167 diff = diff,
168 }
169end
171function M.undo_to(self, op_index)
172 local ops, err = pick_ops(math.max(1, tonumber(op_index or 1) or 1))
173 if not ops then
174 return { success = false, error = err }
175 end
177 local op = resolve_entry(ops, tonumber(op_index or 1) or 1)
178 if not op then
179 return { success = false, error = "no operation at index " .. tostring(op_index) }
180 end
182 return smith.vcs.op_restore(op.id)
183end
185function M.registered_shortcuts(self)
186 if not smith or not smith.shortcut or not smith.shortcut.registered then
187 return { success = false, error = "smith.shortcut.registered unavailable" }
188 end
189 return smith.shortcut.registered()
190end
192register_keybinds()
194return M

prototypes/p17-vcs-sdk/plugins/vcs-tools.lua

Added
new file mode 100644

+59 / −0 text lines

1-- vcs-tools.lua: agent tools that are pure Lua compositions over smith.vcs.*
2
3local tools = {}
4
5tools.vcs_status = {
6 description = "Show working copy status",
7 execute = function(self, params)
8 return smith.vcs.status()
9 end,
10}
12tools.vcs_diff = {
13 description = "Show working-copy diff",
14 execute = function(self, params)
15 local rev = params and params.rev
16 return smith.vcs.diff(rev)
17 end,
18}
20tools.vcs_diff_revs = {
21 description = "Diff between two revisions",
22 execute = function(self, params)
23 local from = params and params.from
24 local to = params and params.to
25 if not from or from == "" or not to or to == "" then
26 return { success = false, error = "from and to required" }
27 end
28 return smith.vcs.diff_revs(from, to)
29 end,
30}
32tools.vcs_log = {
33 description = "Show operation log",
34 execute = function(self, params)
35 local limit = params and params.limit and tonumber(params.limit) or 10
36 return smith.vcs.op_log(limit)
37 end,
38}
40tools.vcs_commit = {
41 description = "Create a commit",
42 execute = function(self, params)
43 local msg = params and params.message or "auto commit"
44 return smith.vcs.commit(msg)
45 end,
46}
48tools.vcs_annotate = {
49 description = "Annotate file with line history",
50 execute = function(self, params)
51 local path = params and params.path
52 if not path then
53 return { success = false, error = "path required" }
54 end
55 return smith.vcs.annotate(path)
56 end,
57}
59return tools

prototypes/p17-vcs-sdk/src/main.rs

Added
new file mode 100644

+907 / −0 text lines

1//! P17: smith.vcs primitives + Lua plugin composition.
2//!
3//! Scope:
4//! - Rust exposes primitives only: `smith.vcs.*` + `smith.shortcut.*`.
5//! - Features (timeline, /undo, tools, diff views) are implemented as Lua plugins.
6
7#![allow(missing_docs, unused_variables, dead_code)]
8
9use std::fs;
10use std::path::PathBuf;
11use std::process::Command;
12use std::sync::{Arc, Mutex};
14use mlua::{Function, Lua, ObjectLike, Table};
16type LuaResult<T> = mlua::Result<T>;
18type PathVec = Vec<String>;
20#[derive(Clone, Debug)]
21struct ShortcutBinding {
22 key: String,
23 mode: String,
24 action: String,
25}
27#[derive(Clone)]
28struct VcsSdk {
29 repo_path: PathBuf,
30}
32impl VcsSdk {
33 fn new(repo_path: PathBuf) -> Self {
34 Self { repo_path }
35 }
37 fn jj(&self, args: &[&str]) -> Result<(String, String), String> {
38 let output = Command::new("jj")
39 .args(args)
40 .current_dir(&self.repo_path)
41 .output()
42 .map_err(|e| format!("jj exec: {e}"))?;
44 let stdout = String::from_utf8_lossy(&output.stdout).to_string();
45 let stderr = String::from_utf8_lossy(&output.stderr).to_string();
47 if !output.status.success() {
48 return Err(stderr.trim().to_string());
49 }
51 Ok((stdout, stderr))
52 }
54 fn status_parsed(&self) -> Result<(PathVec, PathVec, PathVec), String> {
55 let (out, _) = self.jj(&["status"])?;
56 let mut modified = Vec::new();
57 let mut added = Vec::new();
58 let mut deleted = Vec::new();
60 for line in out.lines() {
61 let line = line.trim();
62 if line.is_empty() { continue; }
63 if line.starts_with("M ") || line.starts_with("MM") {
64 modified.push(line.get(2..).unwrap_or("").trim().to_string());
65 } else if line.starts_with("A ") {
66 added.push(line.get(2..).unwrap_or("").trim().to_string());
67 } else if line.starts_with("D ") {
68 deleted.push(line.get(2..).unwrap_or("").trim().to_string());
69 }
70 }
72 Ok((modified, added, deleted))
73 }
75 fn diff_parsed(&self, from: Option<&str>, to: Option<&str>) -> Result<String, String> {
76 let args = match (from, to) {
77 (Some(a), Some(b)) => vec!["diff", "-r", a, "-r", b],
78 (Some(a), None) => vec!["diff", "-r", a],
79 (None, None) => vec!["diff"],
80 (None, Some(_)) => vec!["diff"],
81 };
82 let (out, _) = self.jj(&args)?;
83 Ok(out)
84 }
86 fn commit(&self, msg: &str) -> Result<(), String> {
87 let (_out, _) = self.jj(&["commit", "-m", msg])?;
88 Ok(())
89 }
91 fn op_log_parsed(&self, limit: usize) -> Result<Vec<(String, String, String)>, String> {
92 let tpl = "id.short(12) ++ \"\t\" ++ coalesce(description.first_line(), \"(no desc)\") ++ \"\t\" ++ time.start() ++ \"\\n\"";
93 let (out, _) = self.jj(&["op", "log", "--no-graph", &format!("-n{limit}"), &format!("-T{tpl}")])?;
95 Ok(out
96 .lines()
97 .take(limit)
98 .filter_map(|line| {
99 let mut parts = line.splitn(3, '\t').collect::<Vec<_>>();
100 if parts.len() < 3 {
101 return None;
102 }
103 let id = parts.remove(0).trim().to_string();
104 let desc = parts.remove(0).trim().to_string();
105 let ts = parts.remove(0).trim().to_string();
106 Some((id, desc, ts))
107 })
108 .collect())
109 }
111 fn op_show_parsed(&self, id: &str) -> Result<(String, String, String), String> {
112 let (out, _) = self.jj(&["op", "show", "-p", id])?;
113 let mut desc = String::new();
114 let mut diff = String::new();
115 let mut in_body = false;
117 for line in out.lines() {
118 if line.starts_with('#') {
119 if let Some(rest) = line.strip_prefix("# Description:") {
120 desc = rest.trim().to_string();
121 }
122 continue;
123 }
124 if !in_body {
125 if line.trim().is_empty() {
126 continue;
127 }
128 in_body = true;
129 }
130 diff.push_str(line);
131 diff.push('\n');
132 }
134 Ok((id.to_string(), desc, diff))
135 }
137 fn annotate_parsed(&self, path: &str) -> Result<Vec<String>, String> {
138 validate_path(path)?;
139 let (out, _) = self.jj(&["file", "annotate", path])?;
140 Ok(out.lines().map(|l| l.trim_end().to_string()).collect())
141 }
143 fn restore_paths_parsed(&self, paths: &PathVec) -> Result<(), String> {
144 if paths.is_empty() {
145 return Err("paths is empty".to_string());
146 }
147 let mut args: Vec<&str> = vec!["restore"];
148 for p in paths {
149 validate_path(p)?;
150 args.push(p.as_str());
151 }
152 let (_out, _) = self.jj(&args)?;
153 Ok(())
154 }
155}
157fn ok_table(lua: &Lua) -> LuaResult<Table> {
158 let t = lua.create_table()?;
159 t.set("success", true)?;
160 Ok(t)
161}
163fn err_table(lua: &Lua, msg: &str) -> LuaResult<Table> {
164 let t = lua.create_table()?;
165 t.set("success", false)?;
166 t.set("error", msg.to_string())?;
167 Ok(t)
168}
170fn str_vec_to_table(lua: &Lua, values: &[String]) -> LuaResult<Table> {
171 let table = lua.create_table()?;
172 for (i, value) in values.iter().enumerate() {
173 table.set(i + 1, value.as_str())?;
174 }
175 Ok(table)
176}
178fn table_to_vec(table: Table) -> LuaResult<PathVec> {
179 let mut out = Vec::new();
180 for value in table.sequence_values::<String>() {
181 out.push(value?);
182 }
183 Ok(out)
184}
186fn validate_op_id(id: &str) -> Result<(), String> {
187 let id = id.trim();
188 if id.len() < 6 || id.len() > 40 || !id.chars().all(|c| c.is_ascii_hexdigit()) {
189 return Err(format!("invalid op id: {id}"));
190 }
191 Ok(())
192}
194fn validate_commit_msg(msg: &str) -> Result<(), String> {
195 let msg = msg.trim();
196 if msg.is_empty() {
197 return Err("commit message required".to_string());
198 }
199 if msg.starts_with('-') {
200 return Err("commit message must not start with '-'".to_string());
201 }
202 if msg.contains("--") {
203 return Err("commit message must not contain '--'".to_string());
204 }
205 if msg.contains('\n') || msg.contains('\r') || msg.contains('\0') {
206 return Err("commit message contains invalid control characters".to_string());
207 }
208 if msg.len() > 4096 {
209 return Err("commit message too long".to_string());
210 }
211 Ok(())
212}
214fn validate_path(path: &str) -> Result<(), String> {
215 let path = path.trim();
216 if path.is_empty() {
217 return Err("path required".to_string());
218 }
219 if path.starts_with('-') {
220 return Err("path must not be option-like".to_string());
221 }
222 if path.contains('\0') || path.contains('\n') || path.contains('\r') {
223 return Err("path contains invalid control characters".to_string());
224 }
225 Ok(())
226}
228fn register_smith_shortcuts(
229 lua: &Lua,
230 regs: Arc<Mutex<Vec<ShortcutBinding>>>,
231) -> LuaResult<Table> {
232 let shortcuts = lua.create_table()?;
234 let reg_store = regs.clone();
235 shortcuts.set(
236 "register",
237 lua.create_function(move |_lua, (key, opts, cb): (String, Option<Table>, Option<Function>)| {
238 if key.is_empty() {
239 return Err(mlua::Error::runtime("key must not be empty"));
240 }
242 let mode = opts
243 .as_ref()
244 .and_then(|o| o.get::<String>("mode").ok())
245 .filter(|s| !s.is_empty())
246 .unwrap_or_else(|| "normal".to_string());
247 let action = opts
248 .as_ref()
249 .and_then(|o| o.get::<String>("action").ok())
250 .filter(|s| !s.is_empty())
251 .unwrap_or_else(|| "callback".to_string());
253 if cb.is_none() {
254 return Err(mlua::Error::runtime("shortcut requires callback"));
255 }
257 let mut entries = reg_store.lock().unwrap();
258 if entries
259 .iter()
260 .any(|entry| entry.key == key && entry.mode == mode && entry.action == action)
261 {
262 return Ok(());
263 }
265 entries.push(ShortcutBinding { key, mode, action });
266 Ok(())
267 })?,
268 )?;
270 let reg_store = regs.clone();
271 shortcuts.set(
272 "registered",
273 lua.create_function(move |lua, ()| {
274 let entries = reg_store.lock().unwrap();
275 let arr = lua.create_table()?;
277 for (i, e) in entries.iter().enumerate() {
278 let item = lua.create_table()?;
279 item.set("key", e.key.clone())?;
280 item.set("mode", e.mode.clone())?;
281 item.set("action", e.action.clone())?;
282 arr.set(i + 1, item)?;
283 }
285 let t = ok_table(lua)?;
286 t.set("bindings", arr)?;
287 Ok(t)
288 })?,
289 )?;
291 Ok(shortcuts)
292}
294fn register_smith_vcs(lua: &Lua, sdk: Arc<Mutex<VcsSdk>>) -> LuaResult<()> {
295 let smith = lua.create_table()?;
296 let vcs = lua.create_table()?;
298 {
299 let s = sdk.clone();
300 vcs.set(
301 "status",
302 lua.create_function(move |lua, ()| {
303 let sdk = s.lock().unwrap();
304 let (modified, added, deleted) = match sdk.status_parsed() {
305 Ok(parts) => parts,
306 Err(e) => return err_table(lua, &e),
307 };
309 let t = ok_table(lua)?;
310 t.set("modified", str_vec_to_table(lua, &modified)?)?;
311 t.set("added", str_vec_to_table(lua, &added)?)?;
312 t.set("deleted", str_vec_to_table(lua, &deleted)?)?;
313 Ok(t)
314 })?,
315 )?;
316 }
318 {
319 let s = sdk.clone();
320 vcs.set(
321 "diff",
322 lua.create_function(move |lua, rev: Option<String>| {
323 let sdk = s.lock().unwrap();
324 let out = match rev {
325 Some(r) => sdk.diff_parsed(Some(r.trim()), None),
326 None => sdk.diff_parsed(None, None),
327 };
329 match out {
330 Ok(diff) => {
331 let t = ok_table(lua)?;
332 t.set("diff", diff.trim())?;
333 Ok(t)
334 }
335 Err(e) => err_table(lua, &e),
336 }
337 })?,
338 )?;
339 }
341 {
342 let s = sdk.clone();
343 vcs.set(
344 "diff_revs",
345 lua.create_function(move |lua, (from, to): (String, String)| {
346 let sdk = s.lock().unwrap();
347 if from.trim().is_empty() || to.trim().is_empty() {
348 return err_table(lua, "from and to required");
349 }
350 match sdk.diff_parsed(Some(from.trim()), Some(to.trim())) {
351 Ok(diff) => {
352 let t = ok_table(lua)?;
353 t.set("from", from.trim())?;
354 t.set("to", to.trim())?;
355 t.set("diff", diff.trim())?;
356 Ok(t)
357 }
358 Err(e) => err_table(lua, &e),
359 }
360 })?,
361 )?;
362 }
364 {
365 let s = sdk.clone();
366 vcs.set(
367 "commit",
368 lua.create_function(move |lua, msg: String| {
369 if let Err(e) = validate_commit_msg(&msg) {
370 return err_table(lua, &e);
371 }
372 let sdk = s.lock().unwrap();
373 match sdk.commit(&msg) {
374 Ok(()) => ok_table(lua),
375 Err(e) => err_table(lua, &e),
376 }
377 })?,
378 )?;
379 }
381 {
382 let s = sdk.clone();
383 vcs.set(
384 "op_log",
385 lua.create_function(move |lua, limit: Option<usize>| {
386 let sdk = s.lock().unwrap();
387 let limit = limit.unwrap_or(20);
389 let parsed = match sdk.op_log_parsed(limit) {
390 Ok(list) => list,
391 Err(e) => return err_table(lua, &e),
392 };
394 let t = ok_table(lua)?;
395 let arr = lua.create_table()?;
396 for (i, (id, desc, ts)) in parsed.iter().enumerate() {
397 let row = lua.create_table()?;
398 row.set("id", id.as_str())?;
399 row.set("description", desc.as_str())?;
400 row.set("timestamp", ts.as_str())?;
401 arr.set(i + 1, row)?;
402 }
403 t.set("entries", arr)?;
404 t.set("total", parsed.len())?;
405 Ok(t)
406 })?,
407 )?;
408 }
410 {
411 let s = sdk.clone();
412 vcs.set(
413 "undo",
414 lua.create_function(move |lua, ()| {
415 let sdk = s.lock().unwrap();
416 match sdk.jj(&["undo"]) {
417 Ok((out, _)) => {
418 let t = ok_table(lua)?;
419 t.set("message", out.trim())?;
420 Ok(t)
421 }
422 Err(e) => err_table(lua, &e),
423 }
424 })?,
425 )?;
426 }
428 {
429 let s = sdk.clone();
430 vcs.set(
431 "redo",
432 lua.create_function(move |lua, ()| {
433 let sdk = s.lock().unwrap();
434 match sdk.jj(&["redo"]) {
435 Ok((out, _)) => {
436 let t = ok_table(lua)?;
437 t.set("message", out.trim())?;
438 Ok(t)
439 }
440 Err(e) => err_table(lua, &e),
441 }
442 })?,
443 )?;
444 }
446 {
447 let s = sdk.clone();
448 vcs.set(
449 "op_restore",
450 lua.create_function(move |lua, id: String| {
451 if let Err(e) = validate_op_id(&id) {
452 return err_table(lua, &e);
453 }
454 let sdk = s.lock().unwrap();
455 match sdk.jj(&["op", "restore", id.trim()]) {
456 Ok((out, _)) => {
457 let t = ok_table(lua)?;
458 t.set("message", out.trim())?;
459 Ok(t)
460 }
461 Err(e) => err_table(lua, &e),
462 }
463 })?,
464 )?;
465 }
467 {
468 let s = sdk.clone();
469 vcs.set(
470 "op_show",
471 lua.create_function(move |lua, id: String| {
472 let id = id.trim();
473 if let Err(e) = validate_op_id(id) {
474 return err_table(lua, &e);
475 }
477 let sdk = s.lock().unwrap();
478 let (op_id, desc, diff) = match sdk.op_show_parsed(id) {
479 Ok(parts) => parts,
480 Err(e) => return err_table(lua, &e),
481 };
483 let t = ok_table(lua)?;
484 t.set("id", op_id)?;
485 t.set("description", desc)?;
486 t.set("diff", diff.trim())?;
487 Ok(t)
488 })?,
489 )?;
490 }
492 {
493 let s = sdk.clone();
494 vcs.set(
495 "restore_paths",
496 lua.create_function(move |lua, paths: Table| {
497 let sdk = s.lock().unwrap();
498 let values = match table_to_vec(paths) {
499 Ok(v) => v,
500 Err(e) => return err_table(lua, &e.to_string()),
501 };
502 match sdk.restore_paths_parsed(&values) {
503 Ok(()) => ok_table(lua),
504 Err(e) => err_table(lua, &e),
505 }
506 })?,
507 )?;
508 }
510 {
511 let s = sdk.clone();
512 vcs.set(
513 "annotate",
514 lua.create_function(move |lua, path: String| {
515 let sdk = s.lock().unwrap();
516 let path = path.trim();
517 if path.is_empty() {
518 return err_table(lua, "path required");
519 }
520 if let Err(e) = validate_path(path) {
521 return err_table(lua, &e);
522 }
524 match sdk.annotate_parsed(path) {
525 Ok(lines) => {
526 let t = ok_table(lua)?;
527 let arr = lua.create_table()?;
528 for (i, line) in lines.iter().enumerate() {
529 let item = lua.create_table()?;
530 item.set("text", line.as_str())?;
531 arr.set(i + 1, item)?;
532 }
533 t.set("lines", arr)?;
534 t.set("total", lines.len())?;
535 Ok(t)
536 }
537 Err(e) => err_table(lua, &e),
538 }
539 })?,
540 )?;
541 }
543 smith.set("vcs", vcs)?;
545 let reg_store: Arc<Mutex<Vec<ShortcutBinding>>> = Arc::new(Mutex::new(Vec::new()));
546 let shortcuts = register_smith_shortcuts(lua, reg_store)?;
547 smith.set("shortcut", shortcuts)?;
549 lua.globals().set("smith", smith)?;
550 Ok(())
551}
553fn setup_test_repo() -> PathBuf {
554 let dir = std::env::temp_dir().join("p17-vcs-test");
555 let _ = fs::remove_dir_all(&dir);
556 fs::create_dir_all(&dir).unwrap();
558 fs::write(dir.join("file1.rs"), "fn main() { println!(\"hello\"); }\n").unwrap();
559 fs::write(dir.join("file2.rs"), "fn add(a: i32, b: i32) -> i32 { a + b }\n").unwrap();
561 jj_raw(&dir, &["git", "init"]);
562 jj_raw(&dir, &["describe", "-m", "initial commit"]);
564 fs::write(dir.join("file1.rs"), "fn main() { println!(\"world\"); }\n").unwrap();
565 jj_raw(&dir, &["commit", "-m", "edit: file1.rs (turn 1)"]);
567 fs::write(dir.join("file2.rs"), "fn add(a: i32, b: i32) -> i32 { a + b }\nfn sub(a: i32, b: i32) -> i32 { a - b }\n").unwrap();
568 jj_raw(&dir, &["commit", "-m", "edit: file2.rs (turn 1)"]);
570 fs::write(dir.join("file3.rs"), "// new file\nfn helper() {}\n").unwrap();
571 jj_raw(&dir, &["commit", "-m", "create: file3.rs (turn 2)"]);
573 fs::write(dir.join("file1.rs"), "fn run() { println!(\"running\"); }\n").unwrap();
574 jj_raw(&dir, &["commit", "-m", "edit: file1.rs (turn 3)"]);
576 dir
577}
579fn jj_raw(dir: &PathBuf, args: &[&str]) {
580 let output = Command::new("jj")
581 .args(args)
582 .current_dir(dir)
583 .output()
584 .unwrap_or_else(|e| panic!("jj exec: {e}"));
585 if !output.status.success() {
586 panic!("jj {:?}: {}", args, String::from_utf8_lossy(&output.stderr));
587 }
588}
590fn get_bool(t: &Table, key: &str) -> bool {
591 t.get(key).unwrap_or(false)
592}
594fn get_str(t: &Table, key: &str) -> String {
595 t.get(key).unwrap_or_default()
596}
598fn get_table(t: &Table, key: &str) -> Table {
599 t.get(key).unwrap_or_else(|_| panic!("missing key {key}"))
600}
602fn count_history_lines(raw: &str) -> usize {
603 raw.lines().filter(|line| !line.trim().is_empty()).count()
604}
606fn load_plugin(lua: &Lua, name: &str, code: &str) -> Table {
607 lua.load(code).set_name(name).eval().unwrap_or_else(|e| panic!("{name}: {e}"))
608}
610fn load_plugins(lua: &Lua) {
611 lua.load(include_str!("../plugins/commands.lua"))
612 .set_name("commands.lua")
613 .exec()
614 .expect("load commands.lua");
616 lua.load(include_str!("../plugins/vcs-tools.lua"))
617 .set_name("vcs-tools.lua")
618 .exec()
619 .expect("load vcs-tools.lua");
621 lua.load(include_str!("../plugins/time-travel.lua"))
622 .set_name("time-travel.lua")
623 .exec()
624 .expect("load time-travel.lua");
625}
627fn test_vcs_tools(lua: &Lua, repo: &PathBuf) -> LuaResult<()> {
628 println!("\n=== T1: vcs-tools plugin ===");
629 let tools = load_plugin(lua, "vcs-tools", include_str!("../plugins/vcs-tools.lua"));
630 fs::write(repo.join("file1.rs"), "fn edited() {}\n").unwrap();
632 let status_tool: Table = tools.get("vcs_status")?;
633 let status: Table = status_tool.call_method("execute", lua.create_table()?)?;
634 assert!(get_bool(&status, "success"), "vcs_status failed");
635 let modified: Table = get_table(&status, "modified");
636 assert!(modified.len().unwrap_or(0) > 0, "expected modified files");
638 let diff_tool: Table = tools.get("vcs_diff")?;
639 let diff: Table = diff_tool.call_method("execute", lua.create_table()?)?;
640 assert!(get_bool(&diff, "success"), "vcs_diff failed");
641 assert!(!get_str(&diff, "diff").is_empty(), "diff should not be empty");
643 let log_tool: Table = tools.get("vcs_log")?;
644 let limit = lua.create_table()?;
645 limit.set("limit", 5)?;
646 let log: Table = log_tool.call_method("execute", limit)?;
647 assert!(get_bool(&log, "success"), "vcs_log failed");
648 assert!(get_table(&log, "entries").len().unwrap_or(0) >= 5, "expected >=5 log entries");
650 let diff_rev_tool: Table = tools.get("vcs_diff_revs")?;
651 let dr_params = {
652 let t = lua.create_table()?;
653 t.set("from", "@")?;
654 t.set("to", "@-")?;
655 t
656 };
657 let dr: Table = diff_rev_tool.call_method("execute", dr_params)?;
658 assert!(get_bool(&dr, "success"), "vcs_diff_revs failed");
659 assert!(!get_str(&dr, "diff").is_empty(), "diff_revs should return diff");
661 let ann_tool: Table = tools.get("vcs_annotate")?;
662 let ann_params = lua.create_table()?;
663 ann_params.set("path", "file2.rs")?;
664 let ann: Table = ann_tool.call_method("execute", ann_params)?;
665 assert!(get_bool(&ann, "success"), "vcs_annotate failed");
666 let ann_lines: Table = get_table(&ann, "lines");
667 assert!(ann_lines.len().unwrap_or(0) >= 1, "annotate should contain at least one line");
669 // cleanup for next tests
670 jj_raw(repo, &["restore", "file1.rs"]);
672 let count = modified.len().unwrap_or(0);
673 println!(" vcs_status => {count} modified");
674 println!(" vcs_diff => {} chars", get_str(&diff, "diff").len());
675 println!(" vcs_log => {} entries", get_table(&log, "entries").len().unwrap_or(0));
676 println!(" vcs_diff_revs => {} chars", get_str(&dr, "diff").len());
677 println!(" vcs_annotate => {} lines", ann_lines.len().unwrap_or(0));
678 Ok(())
679}
681fn test_commands(lua: &Lua) -> LuaResult<()> {
682 println!("\n=== T2: commands plugin ===");
683 let commands = load_plugin(lua, "commands", include_str!("../plugins/commands.lua"));
685 let r: Table = commands.call_method("undo", ())?;
686 assert!(get_bool(&r, "success"), "undo failed");
688 let r: Table = commands.call_method("redo", ())?;
689 assert!(get_bool(&r, "success"), "redo failed");
691 let r: Table = commands.call_method("history", "5")?;
692 assert!(get_bool(&r, "success"), "history failed");
693 assert!(!get_str(&r, "output").is_empty(), "history output empty");
695 let r: Table = commands.call_method("undo_n", "2")?;
696 assert!(get_bool(&r, "success"), "undo_n failed");
698 let redo_ok: Table = commands.call_method("redo", ())?;
699 assert!(get_bool(&redo_ok, "success"), "redo after undo_n failed");
701 // restore_file on clean file may succeed or fail — just check response is well-formed.
702 let restore: Table = commands.call_method("restore_file", "file1.rs")?;
703 assert!(restore.get::<bool>("success").is_ok() || restore.get::<String>("error").is_ok(), "restore_file response malformed");
705 println!(" undo/history/undo_n/redo/restore_file => pass");
706 Ok(())
707}
709fn test_time_travel(lua: &Lua) -> LuaResult<()> {
710 println!("\n=== T3: time-travel plugin ===");
711 let tt = load_plugin(lua, "time-travel", include_str!("../plugins/time-travel.lua"));
713 let registered: Table = tt.call_method("registered_shortcuts", ())?;
714 assert!(get_bool(&registered, "success"), "registered_shortcuts failed");
715 let bindings: Table = get_table(&registered, "bindings");
716 let binding_count = bindings.len().unwrap_or(0);
717 assert!(binding_count >= 6, "expected >=6 keybinds, got {binding_count}");
718 if binding_count > 0 {
719 let sample: Table = bindings.get::<Table>(1)?;
720 let key: String = sample.get("key")?;
721 assert!(key.starts_with("Alt+"), "expected Alt+ keybind, got {key}");
722 }
724 let timeline: Table = tt.call_method("timeline", 20)?;
725 assert!(get_bool(&timeline, "success"), "timeline failed");
726 let total: usize = timeline.get("total")?; // table field read by index fallback
728 let list: Table = get_table(&timeline, "timeline");
729 assert!(list.len().unwrap_or(0) >= 5, "expected at least 5 timeline ops");
731 let first: Table = list.get(1)?;
732 let op_type: String = first.get("op_type").unwrap_or_else(|_| "unknown".to_string());
733 assert!(!op_type.is_empty(), "op_type should not be empty");
735 let inspect: Table = tt.call_method("inspect", 3)?;
736 assert!(get_bool(&inspect, "success"), "inspect failed");
738 let diff_view: Table = tt.call_method("diff_view", 3)?;
739 let dv_ok = get_bool(&diff_view, "success");
740 if !dv_ok {
741 eprintln!(" diff_view error: {}", get_str(&diff_view, "error"));
742 }
743 assert!(dv_ok, "diff_view failed");
745 // undo_to is a mutation - tested in T4 (round-trip). Skip here.
746 let compare: Table = tt.call_method("compare_previous", 2)?;
747 assert!(get_bool(&compare, "success"), "compare_previous failed");
749 // No redo needed since we didn't undo_to above.
751 println!(" keybinds={}, timeline={}, op_type={}, total={}", binding_count, list.len().unwrap_or(0), op_type, total);
752 Ok(())
753}
755fn test_round_trip(lua: &Lua, repo: &PathBuf) -> LuaResult<()> {
756 println!("\n=== T4: Round-trip (commit + undo + redo via plugin) ===");
757 let tools = load_plugin(lua, "vcs-tools", include_str!("../plugins/vcs-tools.lua"));
758 let commands = load_plugin(lua, "commands", include_str!("../plugins/commands.lua"));
760 let edited = "fn changed() {}\n";
761 let before_history = commands.call_method("history", "100")?;
762 assert!(get_bool(&before_history, "success"), "history before roundtrip failed");
763 let before_count = count_history_lines(&get_str(&before_history, "output"));
765 fs::write(repo.join("file1.rs"), edited).unwrap();
767 let commit_tool: Table = tools.get("vcs_commit")?;
768 let commit_params = lua.create_table()?;
769 commit_params.set("message", "edit: file1.rs (roundtrip)")?;
770 let r = commit_tool.call_method("execute", commit_params)?;
771 assert!(get_bool(&r, "success"), "commit via plugin failed");
773 let after_commit_history = commands.call_method("history", "100")?;
774 assert!(get_bool(&after_commit_history, "success"), "history after commit failed");
775 assert_eq!(
776 count_history_lines(&get_str(&after_commit_history, "output")),
777 before_count + 2,
778 "commit should add 2 history entries (snapshot + commit)"
779 );
781 let u = commands.call_method("undo", ())?;
782 assert!(get_bool(&u, "success"), "undo via plugin failed");
784 let after_undo_history = commands.call_method("history", "100")?;
785 assert!(get_bool(&after_undo_history, "success"), "history after undo failed");
786 assert_eq!(
787 count_history_lines(&get_str(&after_undo_history, "output")),
788 before_count + 3,
789 "undo should add 1 history entry (snapshot+commit+undo)"
790 );
792 let rr: Table = commands.call_method("redo", ())?;
793 assert!(get_bool(&rr, "success"), "redo via plugin failed");
795 let after_redo_history = commands.call_method("history", "100")?;
796 assert!(get_bool(&after_redo_history, "success"), "history after redo failed");
797 assert_eq!(
798 count_history_lines(&get_str(&after_redo_history, "output")),
799 before_count + 4,
800 "redo should add 1 history entry (snapshot+commit+undo+redo)"
801 );
803 let final_file = fs::read_to_string(repo.join("file1.rs")).unwrap();
804 assert_eq!(final_file, edited, "final redo should retain edited content");
806 println!(" roundtrip => pass");
807 Ok(())
808}
810fn test_edge_cases(lua: &Lua, repo: &PathBuf) -> LuaResult<()> {
811 println!("\n=== T5: Edge cases ===");
812 let commands = load_plugin(lua, "commands", include_str!("../plugins/commands.lua"));
814 let mut undo_count = 0;
815 loop {
816 let r: Table = commands.call_method("undo", ())?;
817 if !get_bool(&r, "success") {
818 break;
819 }
820 undo_count += 1;
821 if undo_count > 32 {
822 panic!("undo exceeded expected bound");
823 }
824 }
826 for _ in 0..undo_count {
827 let rr: Table = commands.call_method("redo", ())?;
828 assert!(get_bool(&rr, "success"), "redo should restore state");
829 }
831 // status should still work after full rewind/restore
832 let tools = load_plugin(lua, "vcs-tools", include_str!("../plugins/vcs-tools.lua"));
833 let status_tool: Table = tools.get("vcs_status")?;
834 let status: Table = status_tool.call_method("execute", lua.create_table()?)?;
835 assert!(get_bool(&status, "success"), "empty status failed");
837 let restore: Table = commands.call_method("restore_file", "file1.rs")?;
838 assert!(restore.get::<bool>("success").is_ok() || restore.get::<String>("error").is_ok(), "restore_file response malformed");
840 println!(" undo_count={undo_count}, status={}", get_bool(&status, "success"));
841 let _ = repo;
842 Ok(())
843}
845fn main() {
846 println!("P17: VCS SDK + Lua plugins\n");
848 let repo = setup_test_repo();
849 println!("Test repo: {}", repo.display());
851 let lua = Lua::new();
852 let sdk = Arc::new(Mutex::new(VcsSdk::new(repo.clone())));
853 register_smith_vcs(&lua, sdk).expect("register smith.*");
855 load_plugins(&lua);
856 println!("Plugins loaded: commands.lua, vcs-tools.lua, time-travel.lua");
858 let mut passed = 0;
859 let mut failed = 0;
861 // Run read-only tests first (T1, T3), then mutating tests (T2, T4, T5)
862 match test_vcs_tools(&lua, &repo) {
863 Ok(()) => passed += 1,
864 Err(e) => {
865 failed += 1;
866 eprintln!("T1 FAIL: {e}");
867 }
868 }
870 match test_time_travel(&lua) {
871 Ok(()) => passed += 1,
872 Err(e) => {
873 failed += 1;
874 eprintln!("T3 FAIL: {e}");
875 }
876 }
878 match test_commands(&lua) {
879 Ok(()) => passed += 1,
880 Err(e) => {
881 failed += 1;
882 eprintln!("T2 FAIL: {e}");
883 }
884 }
886 match test_round_trip(&lua, &repo) {
887 Ok(()) => passed += 1,
888 Err(e) => {
889 failed += 1;
890 eprintln!("T4 FAIL: {e}");
891 }
892 }
894 match test_edge_cases(&lua, &repo) {
895 Ok(()) => passed += 1,
896 Err(e) => {
897 failed += 1;
898 eprintln!("T5 FAIL: {e}");
899 }
900 }
902 println!("\n==================================================");
903 println!("P17: {}/{} tests passed", passed, passed + failed);
904 if failed > 0 {
905 std::process::exit(1);
906 }
907}

prototypes/p2-lua/Cargo.lock

Added
new file mode 100644

+376 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "autocfg"
7version = "1.5.1"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
11[[package]]
12name = "bitflags"
13version = "2.11.1"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
17[[package]]
18name = "bstr"
19version = "1.12.1"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"
22dependencies = [
23 "memchr",
24 "serde",
25]
27[[package]]
28name = "cc"
29version = "1.2.62"
30source = "registry+https://github.com/rust-lang/crates.io-index"
31checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
32dependencies = [
33 "find-msvc-tools",
34 "shlex",
35]
37[[package]]
38name = "cfg-if"
39version = "1.0.4"
40source = "registry+https://github.com/rust-lang/crates.io-index"
41checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
43[[package]]
44name = "either"
45version = "1.16.0"
46source = "registry+https://github.com/rust-lang/crates.io-index"
47checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
49[[package]]
50name = "env_home"
51version = "0.1.0"
52source = "registry+https://github.com/rust-lang/crates.io-index"
53checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe"
55[[package]]
56name = "erased-serde"
57version = "0.4.10"
58source = "registry+https://github.com/rust-lang/crates.io-index"
59checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"
60dependencies = [
61 "serde",
62 "serde_core",
63 "typeid",
64]
66[[package]]
67name = "errno"
68version = "0.3.14"
69source = "registry+https://github.com/rust-lang/crates.io-index"
70checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
71dependencies = [
72 "libc",
73 "windows-sys",
74]
76[[package]]
77name = "find-msvc-tools"
78version = "0.1.9"
79source = "registry+https://github.com/rust-lang/crates.io-index"
80checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
82[[package]]
83name = "libc"
84version = "0.2.186"
85source = "registry+https://github.com/rust-lang/crates.io-index"
86checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
88[[package]]
89name = "linux-raw-sys"
90version = "0.12.1"
91source = "registry+https://github.com/rust-lang/crates.io-index"
92checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
94[[package]]
95name = "lock_api"
96version = "0.4.14"
97source = "registry+https://github.com/rust-lang/crates.io-index"
98checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
99dependencies = [
100 "scopeguard",
101]
103[[package]]
104name = "lua-src"
105version = "547.0.0"
106source = "registry+https://github.com/rust-lang/crates.io-index"
107checksum = "1edaf29e3517b49b8b746701e5648ccb5785cde1c119062cbabbc5d5cd115e42"
108dependencies = [
109 "cc",
110]
112[[package]]
113name = "luajit-src"
114version = "210.5.12+a4f56a4"
115source = "registry+https://github.com/rust-lang/crates.io-index"
116checksum = "b3a8e7962a5368d5f264d045a5a255e90f9aa3fc1941ae15a8d2940d42cac671"
117dependencies = [
118 "cc",
119 "which",
120]
122[[package]]
123name = "memchr"
124version = "2.8.0"
125source = "registry+https://github.com/rust-lang/crates.io-index"
126checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
128[[package]]
129name = "mlua"
130version = "0.10.5"
131source = "registry+https://github.com/rust-lang/crates.io-index"
132checksum = "c1f5f8fbebc7db5f671671134b9321c4b9aa9adeafccfd9a8c020ae45c6a35d0"
133dependencies = [
134 "bstr",
135 "either",
136 "erased-serde",
137 "mlua-sys",
138 "num-traits",
139 "parking_lot",
140 "rustc-hash",
141 "rustversion",
142 "serde",
143 "serde-value",
144]
146[[package]]
147name = "mlua-sys"
148version = "0.6.8"
149source = "registry+https://github.com/rust-lang/crates.io-index"
150checksum = "380c1f7e2099cafcf40e51d3a9f20a346977587aa4d012eae1f043149a728a93"
151dependencies = [
152 "cc",
153 "cfg-if",
154 "lua-src",
155 "luajit-src",
156 "pkg-config",
157]
159[[package]]
160name = "num-traits"
161version = "0.2.19"
162source = "registry+https://github.com/rust-lang/crates.io-index"
163checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
164dependencies = [
165 "autocfg",
166]
168[[package]]
169name = "ordered-float"
170version = "2.10.1"
171source = "registry+https://github.com/rust-lang/crates.io-index"
172checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c"
173dependencies = [
174 "num-traits",
175]
177[[package]]
178name = "p2-lua"
179version = "0.1.0"
180dependencies = [
181 "mlua",
182]
184[[package]]
185name = "parking_lot"
186version = "0.12.5"
187source = "registry+https://github.com/rust-lang/crates.io-index"
188checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
189dependencies = [
190 "lock_api",
191 "parking_lot_core",
192]
194[[package]]
195name = "parking_lot_core"
196version = "0.9.12"
197source = "registry+https://github.com/rust-lang/crates.io-index"
198checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
199dependencies = [
200 "cfg-if",
201 "libc",
202 "redox_syscall",
203 "smallvec",
204 "windows-link",
205]
207[[package]]
208name = "pkg-config"
209version = "0.3.33"
210source = "registry+https://github.com/rust-lang/crates.io-index"
211checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
213[[package]]
214name = "proc-macro2"
215version = "1.0.106"
216source = "registry+https://github.com/rust-lang/crates.io-index"
217checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
218dependencies = [
219 "unicode-ident",
220]
222[[package]]
223name = "quote"
224version = "1.0.45"
225source = "registry+https://github.com/rust-lang/crates.io-index"
226checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
227dependencies = [
228 "proc-macro2",
229]
231[[package]]
232name = "redox_syscall"
233version = "0.5.18"
234source = "registry+https://github.com/rust-lang/crates.io-index"
235checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
236dependencies = [
237 "bitflags",
238]
240[[package]]
241name = "rustc-hash"
242version = "2.1.2"
243source = "registry+https://github.com/rust-lang/crates.io-index"
244checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
246[[package]]
247name = "rustix"
248version = "1.1.4"
249source = "registry+https://github.com/rust-lang/crates.io-index"
250checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
251dependencies = [
252 "bitflags",
253 "errno",
254 "libc",
255 "linux-raw-sys",
256 "windows-sys",
257]
259[[package]]
260name = "rustversion"
261version = "1.0.22"
262source = "registry+https://github.com/rust-lang/crates.io-index"
263checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
265[[package]]
266name = "scopeguard"
267version = "1.2.0"
268source = "registry+https://github.com/rust-lang/crates.io-index"
269checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
271[[package]]
272name = "serde"
273version = "1.0.228"
274source = "registry+https://github.com/rust-lang/crates.io-index"
275checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
276dependencies = [
277 "serde_core",
278]
280[[package]]
281name = "serde-value"
282version = "0.7.0"
283source = "registry+https://github.com/rust-lang/crates.io-index"
284checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c"
285dependencies = [
286 "ordered-float",
287 "serde",
288]
290[[package]]
291name = "serde_core"
292version = "1.0.228"
293source = "registry+https://github.com/rust-lang/crates.io-index"
294checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
295dependencies = [
296 "serde_derive",
297]
299[[package]]
300name = "serde_derive"
301version = "1.0.228"
302source = "registry+https://github.com/rust-lang/crates.io-index"
303checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
304dependencies = [
305 "proc-macro2",
306 "quote",
307 "syn",
308]
310[[package]]
311name = "shlex"
312version = "1.3.0"
313source = "registry+https://github.com/rust-lang/crates.io-index"
314checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
316[[package]]
317name = "smallvec"
318version = "1.15.1"
319source = "registry+https://github.com/rust-lang/crates.io-index"
320checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
322[[package]]
323name = "syn"
324version = "2.0.117"
325source = "registry+https://github.com/rust-lang/crates.io-index"
326checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
327dependencies = [
328 "proc-macro2",
329 "quote",
330 "unicode-ident",
331]
333[[package]]
334name = "typeid"
335version = "1.0.3"
336source = "registry+https://github.com/rust-lang/crates.io-index"
337checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
339[[package]]
340name = "unicode-ident"
341version = "1.0.24"
342source = "registry+https://github.com/rust-lang/crates.io-index"
343checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
345[[package]]
346name = "which"
347version = "7.0.3"
348source = "registry+https://github.com/rust-lang/crates.io-index"
349checksum = "24d643ce3fd3e5b54854602a080f34fb10ab75e0b813ee32d00ca2b44fa74762"
350dependencies = [
351 "either",
352 "env_home",
353 "rustix",
354 "winsafe",
355]
357[[package]]
358name = "windows-link"
359version = "0.2.1"
360source = "registry+https://github.com/rust-lang/crates.io-index"
361checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
363[[package]]
364name = "windows-sys"
365version = "0.61.2"
366source = "registry+https://github.com/rust-lang/crates.io-index"
367checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
368dependencies = [
369 "windows-link",
370]
372[[package]]
373name = "winsafe"
374version = "0.0.19"
375source = "registry+https://github.com/rust-lang/crates.io-index"
376checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"

prototypes/p2-lua/Cargo.toml

Added
new file mode 100644

+7 / −0 text lines

1[package]
2name = "p2-lua"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7mlua = { version = "0.10", features = ["luajit", "vendored", "serialize"] }

prototypes/p2-lua/src/main.rs

Added
new file mode 100644

+35 / −0 text lines

1//! Prototype: mlua vendored LuaJIT with sandboxed globals.
2
3use mlua::{Lua, Result};
4
5fn main() -> Result<()> {
6 let lua = Lua::new();
7
8 // Sandbox: only allow safe globals
9 let code = r#"
10 local _G = {}
11 local allowed = { string = string, table = table, math = math, ipairs = ipairs, pairs = pairs, tostring = tostring, tonumber = tonumber, type = type, print = print, error = error, pcall = pcall }
12 setmetatable(_G, { __index = allowed, __newindex = function(_, k) error("sandbox: cannot set global " .. k) end })
13 local function add(a, b) return a + b end
14 return add(2, 3)
15 "#;
17 let result: i32 = lua.load(code).eval()?;
18 assert_eq!(result, 5);
19 println!("LuaJIT sandbox OK: add(2,3) = {}", result);
21 // Verify sandbox blocks os.execute
22 let dangerous = r#"os.execute("echo pwned")"#;
23 let res = lua.load(dangerous).eval::<mlua::Value>();
24 match res {
25 Err(e) => println!("Sandbox blocked os.execute: {}", e),
26 Ok(_) => panic!("Sandbox FAILED: os.execute should be blocked"),
27 }
29 Ok(())
30}
32#[allow(dead_code)]
33fn assert_eq<T: std::fmt::Debug + PartialEq>(a: T, b: T) {
34 assert!(a == b, "{:?} != {:?}", a, b);
35}

prototypes/p2b-lua-sandbox/Cargo.lock

Added
new file mode 100644

+402 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "autocfg"
7version = "1.5.1"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
11[[package]]
12name = "bitflags"
13version = "2.11.1"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
17[[package]]
18name = "bstr"
19version = "1.12.1"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"
22dependencies = [
23 "memchr",
24 "serde",
25]
27[[package]]
28name = "cc"
29version = "1.2.62"
30source = "registry+https://github.com/rust-lang/crates.io-index"
31checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
32dependencies = [
33 "find-msvc-tools",
34 "shlex",
35]
37[[package]]
38name = "cfg-if"
39version = "1.0.4"
40source = "registry+https://github.com/rust-lang/crates.io-index"
41checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
43[[package]]
44name = "either"
45version = "1.16.0"
46source = "registry+https://github.com/rust-lang/crates.io-index"
47checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
49[[package]]
50name = "env_home"
51version = "0.1.0"
52source = "registry+https://github.com/rust-lang/crates.io-index"
53checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe"
55[[package]]
56name = "erased-serde"
57version = "0.4.10"
58source = "registry+https://github.com/rust-lang/crates.io-index"
59checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"
60dependencies = [
61 "serde",
62 "serde_core",
63 "typeid",
64]
66[[package]]
67name = "errno"
68version = "0.3.14"
69source = "registry+https://github.com/rust-lang/crates.io-index"
70checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
71dependencies = [
72 "libc",
73 "windows-sys",
74]
76[[package]]
77name = "find-msvc-tools"
78version = "0.1.9"
79source = "registry+https://github.com/rust-lang/crates.io-index"
80checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
82[[package]]
83name = "itoa"
84version = "1.0.18"
85source = "registry+https://github.com/rust-lang/crates.io-index"
86checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
88[[package]]
89name = "libc"
90version = "0.2.186"
91source = "registry+https://github.com/rust-lang/crates.io-index"
92checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
94[[package]]
95name = "linux-raw-sys"
96version = "0.12.1"
97source = "registry+https://github.com/rust-lang/crates.io-index"
98checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
100[[package]]
101name = "lock_api"
102version = "0.4.14"
103source = "registry+https://github.com/rust-lang/crates.io-index"
104checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
105dependencies = [
106 "scopeguard",
107]
109[[package]]
110name = "lua-src"
111version = "547.0.0"
112source = "registry+https://github.com/rust-lang/crates.io-index"
113checksum = "1edaf29e3517b49b8b746701e5648ccb5785cde1c119062cbabbc5d5cd115e42"
114dependencies = [
115 "cc",
116]
118[[package]]
119name = "luajit-src"
120version = "210.5.12+a4f56a4"
121source = "registry+https://github.com/rust-lang/crates.io-index"
122checksum = "b3a8e7962a5368d5f264d045a5a255e90f9aa3fc1941ae15a8d2940d42cac671"
123dependencies = [
124 "cc",
125 "which",
126]
128[[package]]
129name = "memchr"
130version = "2.8.0"
131source = "registry+https://github.com/rust-lang/crates.io-index"
132checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
134[[package]]
135name = "mlua"
136version = "0.10.5"
137source = "registry+https://github.com/rust-lang/crates.io-index"
138checksum = "c1f5f8fbebc7db5f671671134b9321c4b9aa9adeafccfd9a8c020ae45c6a35d0"
139dependencies = [
140 "bstr",
141 "either",
142 "erased-serde",
143 "mlua-sys",
144 "num-traits",
145 "parking_lot",
146 "rustc-hash",
147 "rustversion",
148 "serde",
149 "serde-value",
150]
152[[package]]
153name = "mlua-sys"
154version = "0.6.8"
155source = "registry+https://github.com/rust-lang/crates.io-index"
156checksum = "380c1f7e2099cafcf40e51d3a9f20a346977587aa4d012eae1f043149a728a93"
157dependencies = [
158 "cc",
159 "cfg-if",
160 "lua-src",
161 "luajit-src",
162 "pkg-config",
163]
165[[package]]
166name = "num-traits"
167version = "0.2.19"
168source = "registry+https://github.com/rust-lang/crates.io-index"
169checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
170dependencies = [
171 "autocfg",
172]
174[[package]]
175name = "ordered-float"
176version = "2.10.1"
177source = "registry+https://github.com/rust-lang/crates.io-index"
178checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c"
179dependencies = [
180 "num-traits",
181]
183[[package]]
184name = "p2b-lua-sandbox"
185version = "0.1.0"
186dependencies = [
187 "mlua",
188 "serde_json",
189]
191[[package]]
192name = "parking_lot"
193version = "0.12.5"
194source = "registry+https://github.com/rust-lang/crates.io-index"
195checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
196dependencies = [
197 "lock_api",
198 "parking_lot_core",
199]
201[[package]]
202name = "parking_lot_core"
203version = "0.9.12"
204source = "registry+https://github.com/rust-lang/crates.io-index"
205checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
206dependencies = [
207 "cfg-if",
208 "libc",
209 "redox_syscall",
210 "smallvec",
211 "windows-link",
212]
214[[package]]
215name = "pkg-config"
216version = "0.3.33"
217source = "registry+https://github.com/rust-lang/crates.io-index"
218checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
220[[package]]
221name = "proc-macro2"
222version = "1.0.106"
223source = "registry+https://github.com/rust-lang/crates.io-index"
224checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
225dependencies = [
226 "unicode-ident",
227]
229[[package]]
230name = "quote"
231version = "1.0.45"
232source = "registry+https://github.com/rust-lang/crates.io-index"
233checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
234dependencies = [
235 "proc-macro2",
236]
238[[package]]
239name = "redox_syscall"
240version = "0.5.18"
241source = "registry+https://github.com/rust-lang/crates.io-index"
242checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
243dependencies = [
244 "bitflags",
245]
247[[package]]
248name = "rustc-hash"
249version = "2.1.2"
250source = "registry+https://github.com/rust-lang/crates.io-index"
251checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
253[[package]]
254name = "rustix"
255version = "1.1.4"
256source = "registry+https://github.com/rust-lang/crates.io-index"
257checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
258dependencies = [
259 "bitflags",
260 "errno",
261 "libc",
262 "linux-raw-sys",
263 "windows-sys",
264]
266[[package]]
267name = "rustversion"
268version = "1.0.22"
269source = "registry+https://github.com/rust-lang/crates.io-index"
270checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
272[[package]]
273name = "scopeguard"
274version = "1.2.0"
275source = "registry+https://github.com/rust-lang/crates.io-index"
276checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
278[[package]]
279name = "serde"
280version = "1.0.228"
281source = "registry+https://github.com/rust-lang/crates.io-index"
282checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
283dependencies = [
284 "serde_core",
285]
287[[package]]
288name = "serde-value"
289version = "0.7.0"
290source = "registry+https://github.com/rust-lang/crates.io-index"
291checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c"
292dependencies = [
293 "ordered-float",
294 "serde",
295]
297[[package]]
298name = "serde_core"
299version = "1.0.228"
300source = "registry+https://github.com/rust-lang/crates.io-index"
301checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
302dependencies = [
303 "serde_derive",
304]
306[[package]]
307name = "serde_derive"
308version = "1.0.228"
309source = "registry+https://github.com/rust-lang/crates.io-index"
310checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
311dependencies = [
312 "proc-macro2",
313 "quote",
314 "syn",
315]
317[[package]]
318name = "serde_json"
319version = "1.0.150"
320source = "registry+https://github.com/rust-lang/crates.io-index"
321checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
322dependencies = [
323 "itoa",
324 "memchr",
325 "serde",
326 "serde_core",
327 "zmij",
328]
330[[package]]
331name = "shlex"
332version = "1.3.0"
333source = "registry+https://github.com/rust-lang/crates.io-index"
334checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
336[[package]]
337name = "smallvec"
338version = "1.15.1"
339source = "registry+https://github.com/rust-lang/crates.io-index"
340checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
342[[package]]
343name = "syn"
344version = "2.0.117"
345source = "registry+https://github.com/rust-lang/crates.io-index"
346checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
347dependencies = [
348 "proc-macro2",
349 "quote",
350 "unicode-ident",
351]
353[[package]]
354name = "typeid"
355version = "1.0.3"
356source = "registry+https://github.com/rust-lang/crates.io-index"
357checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
359[[package]]
360name = "unicode-ident"
361version = "1.0.24"
362source = "registry+https://github.com/rust-lang/crates.io-index"
363checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
365[[package]]
366name = "which"
367version = "7.0.3"
368source = "registry+https://github.com/rust-lang/crates.io-index"
369checksum = "24d643ce3fd3e5b54854602a080f34fb10ab75e0b813ee32d00ca2b44fa74762"
370dependencies = [
371 "either",
372 "env_home",
373 "rustix",
374 "winsafe",
375]
377[[package]]
378name = "windows-link"
379version = "0.2.1"
380source = "registry+https://github.com/rust-lang/crates.io-index"
381checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
383[[package]]
384name = "windows-sys"
385version = "0.61.2"
386source = "registry+https://github.com/rust-lang/crates.io-index"
387checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
388dependencies = [
389 "windows-link",
390]
392[[package]]
393name = "winsafe"
394version = "0.0.19"
395source = "registry+https://github.com/rust-lang/crates.io-index"
396checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"
398[[package]]
399name = "zmij"
400version = "1.0.21"
401source = "registry+https://github.com/rust-lang/crates.io-index"
402checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"

prototypes/p2b-lua-sandbox/Cargo.toml

Added
new file mode 100644

+10 / −0 text lines

1[package]
2name = "p2b-lua-sandbox"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7mlua = { version = "0.10", features = ["vendored", "serialize", "lua54"] }
8serde_json = "1"
9# Note: NO "luajit" feature. Uses vendored Lua 5.4 (pure C, no JIT assembly).
10# This avoids the __clear_cache link failure on Android/aarch64.

prototypes/p2b-lua-sandbox/src/main.rs

Added
new file mode 100644

+250 / −0 text lines

1//! Prototype P2b: mlua vendored Lua 5.4 sandbox on Android/Termux.
2//! Validates SM-009 Lua plugin architecture with actual Lua execution.
3//!
4//! P2 used LuaJIT which fails to link on Android (__clear_cache).
5//! P2b uses Lua 5.4 (pure C) which should compile+link+run everywhere.
6//!
7//! Tests:
8//! 1. Basic eval and return values
9//! 2. Sandboxed globals (block os.execute, io.open)
10//! 3. Lua table → Rust deserialization (mlua serialize)
11//! 4. Rust → Lua value passing
12//! 5. Coroutine creation and resume
13//! 6. Error propagation Lua → Rust
15use mlua::{Lua, Result, Value};
16use std::time::Instant;
18fn main() -> Result<()> {
19 let lua = Lua::new();
21 // === Test 1: Basic eval ===
22 test_basic_eval(&lua)?;
23 // === Test 2: Sandbox globals ===
24 test_sandbox(&lua)?;
25 // === Test 3: Table serialization ===
26 test_table_serialize(&lua)?;
27 // === Test 4: Rust → Lua values ===
28 test_rust_to_lua(&lua)?;
29 // === Test 5: Coroutines ===
30 test_coroutines(&lua)?;
31 // === Test 6: Error propagation ===
32 test_error_propagation(&lua)?;
34 // === Test 7: Coroutine benchmark ===
35 bench_coroutines(&lua)?;
37 eprintln!();
38 eprintln!("=== ALL P2b TESTS PASSED (7/7) ===");
39 Ok(())
40}
42fn test_basic_eval(lua: &Lua) -> Result<()> {
43 eprintln!("--- Test 1: Basic eval ---");
44 let result: i32 = lua.load("return 2 + 3").eval()?;
45 assert_eq!(result, 5);
46 eprintln!("[OK] eval: 2+3 = {}", result);
48 let s: String = lua.load("return 'hello'").eval()?;
49 assert_eq!(s, "hello");
50 eprintln!("[OK] eval string: {:?}", s);
51 Ok(())
52}
54fn test_sandbox(lua: &Lua) -> Result<()> {
55 eprintln!("--- Test 2: Sandbox globals ---");
57 // Setup sandbox: override os and io with stubs
58 lua.load(r#"
59 local raw_os = os
60 local raw_io = io
61 local blocked = { execute = true, exit = true, remove = true, rename = true }
62 os = setmetatable({}, {
63 __index = function(_, k)
64 if blocked[k] then return nil end
65 return raw_os[k]
66 end,
67 __newindex = function(_, k) error("sandbox: cannot set os." .. k) end
68 })
69 local io_blocked = { open = true, popen = true, read = true, write = true }
70 io = setmetatable({}, {
71 __index = function(_, k)
72 if io_blocked[k] then return nil end
73 return raw_io[k]
74 end,
75 __newindex = function(_, k) error("sandbox: cannot set io." .. k) end
76 })
77 "#).exec()?;
79 // Verify os.execute is blocked
80 let res = lua.load(r#"return os.execute("echo pwned")"#).eval::<Value>();
81 match res {
82 Err(_) => eprintln!("[OK] sandbox blocked os.execute"),
83 Ok(v) => panic!("Sandbox FAILED: os.execute returned {:?}", v),
84 }
86 // Verify io.open is blocked
87 let res = lua.load(r#"return io.open("/etc/passwd", "r")"#).eval::<Value>();
88 match res {
89 Err(_) => eprintln!("[OK] sandbox blocked io.open"),
90 Ok(v) => panic!("Sandbox FAILED: io.open returned {:?}", v),
91 }
93 // Verify safe operations still work
94 let result: i32 = lua.load(r#"return math.floor(3.7)"#).eval()?;
95 assert_eq!(result, 3);
96 eprintln!("[OK] sandbox allows math.floor(3.7) = {}", result);
98 Ok(())
99}
101fn test_table_serialize(lua: &Lua) -> Result<()> {
102 eprintln!("--- Test 3: Table serialization ---");
103 let code = r#"return { name = "test", count = 42, items = {1, 2, 3} }"#;
104 let val: Value = lua.load(code).eval()?;
106 let tbl = match &val {
107 Value::Table(t) => t.clone(),
108 _ => panic!("Expected table, got {:?}", val),
109 };
111 let name: String = tbl.get("name")?;
112 let count: i32 = tbl.get("count")?;
113 assert_eq!(name, "test");
114 assert_eq!(count, 42);
115 eprintln!("[OK] table: name={:?}, count={}", name, count);
117 // mlua serialize: Lua table → serde_json Value (via intermediate)
118 let lua_tbl: mlua::Table = lua.load(code).eval()?;
119 // Convert table to serde Value via manual extraction
120 let json_name: String = lua_tbl.get("name")?;
121 let json_count: i32 = lua_tbl.get("count")?;
122 let json_items: mlua::Table = lua_tbl.get("items")?;
123 let mut items = Vec::new();
124 for pair in json_items.sequence_values::<i32>() {
125 items.push(pair?);
126 }
127 let json_val = serde_json::json!({
128 "name": json_name,
129 "count": json_count,
130 "items": items
131 });
132 assert_eq!(json_val["name"], "test");
133 assert_eq!(json_val["count"], 42);
134 eprintln!("[OK] serde roundtrip: {:?}", json_val);
135 Ok(())
136}
138fn test_rust_to_lua(lua: &Lua) -> Result<()> {
139 eprintln!("--- Test 4: Rust → Lua values ---");
140 let globals = lua.globals();
142 let data = lua.create_table()?;
143 data.set("key", "value")?;
144 data.set("num", 99)?;
145 globals.set("rust_data", data)?;
147 let key: String = lua.load(r#"return rust_data.key"#).eval()?;
148 let num: i32 = lua.load(r#"return rust_data.num"#).eval()?;
149 assert_eq!(key, "value");
150 assert_eq!(num, 99);
151 eprintln!("[OK] rust→lua: key={:?}, num={}", key, num);
152 Ok(())
153}
155fn test_coroutines(lua: &Lua) -> Result<()> {
156 eprintln!("--- Test 5: Coroutines ---");
157 let gen_fn: mlua::Function = lua.load(r#"
158 local function gen(n)
159 local co = coroutine.create(function()
160 for i = 1, n do coroutine.yield(i) end
161 end)
162 local results = {}
163 while true do
164 local ok, val = coroutine.resume(co)
165 if not ok or not val then break end
166 results[#results + 1] = val
167 end
168 return results
169 end
170 return gen
171 "#).eval()?;
173 let results: Vec<i32> = gen_fn.call(3)?;
174 assert_eq!(results, vec![1, 2, 3]);
175 eprintln!("[OK] coroutine generator: {:?}", results);
176 Ok(())
177}
179fn test_error_propagation(lua: &Lua) -> Result<()> {
180 eprintln!("--- Test 6: Error propagation ---");
181 let res = lua.load(r#"error("code=42 msg=boom")"#).eval::<Value>();
182 match res {
183 Err(e) => {
184 let msg = e.to_string();
185 assert!(msg.contains("42"), "error should contain code 42, got: {}", msg);
186 assert!(msg.contains("boom"), "error should contain boom, got: {}", msg);
187 eprintln!("[OK] error propagated: {}", msg);
188 }
189 Ok(v) => panic!("Expected error, got {:?}", v),
190 }
191 Ok(())
192}
194#[allow(dead_code)]
195fn assert_eq<T: std::fmt::Debug + PartialEq>(a: T, b: T) {
196 assert!(a == b, "assertion failed: {:?} != {:?}", a, b);
197}
199fn bench_coroutines(lua: &Lua) -> Result<()> {
200 eprintln!("--- Test 7: Coroutine benchmark ---");
202 let warmup: Vec<i32> = lua.load(r#"
203 local function gen(n)
204 local co = coroutine.create(function()
205 for i = 1, n do coroutine.yield(i) end
206 end)
207 local results = {}
208 while true do
209 local ok, val = coroutine.resume(co)
210 if not ok or not val then break end
211 results[#results + 1] = val
212 end
213 return results
214 end
215 return gen(100)
216 "#).eval()?;
217 assert_eq!(warmup.len(), 100);
219 let n = 100_000;
220 let bench_fn: mlua::Function = lua.load(r#"
221 local function bench(n)
222 local total = 0
223 for _ = 1, n do
224 local co = coroutine.create(function()
225 coroutine.yield(1)
226 coroutine.yield(2)
227 coroutine.yield(3)
228 end)
229 local ok, v = coroutine.resume(co)
230 if ok then total = total + v end
231 ok, v = coroutine.resume(co)
232 if ok then total = total + v end
233 ok, v = coroutine.resume(co)
234 if ok then total = total + v end
235 end
236 return total
237 end
238 return bench
239 "#).eval()?;
241 let start = Instant::now();
242 let total: i64 = bench_fn.call(n)?;
243 let elapsed = start.elapsed();
245 assert_eq!(total, n as i64 * 6);
246 let us_per_yield = elapsed.as_micros() as f64 / (n as f64 * 3.0);
247 eprintln!("[OK] {} coroutines × 3 yields = {} total in {:?}", n, total, elapsed);
248 eprintln!("[OK] {:.2} μs per yield", us_per_yield);
249 Ok(())
250}

prototypes/p2d-luajit-vendored/Cargo.lock

Added
new file mode 100644

+376 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "autocfg"
7version = "1.5.1"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
11[[package]]
12name = "bitflags"
13version = "2.11.1"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
17[[package]]
18name = "bstr"
19version = "1.12.1"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab"
22dependencies = [
23 "memchr",
24 "serde",
25]
27[[package]]
28name = "cc"
29version = "1.2.62"
30source = "registry+https://github.com/rust-lang/crates.io-index"
31checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
32dependencies = [
33 "find-msvc-tools",
34 "shlex",
35]
37[[package]]
38name = "cfg-if"
39version = "1.0.4"
40source = "registry+https://github.com/rust-lang/crates.io-index"
41checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
43[[package]]
44name = "either"
45version = "1.16.0"
46source = "registry+https://github.com/rust-lang/crates.io-index"
47checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
49[[package]]
50name = "env_home"
51version = "0.1.0"
52source = "registry+https://github.com/rust-lang/crates.io-index"
53checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe"
55[[package]]
56name = "erased-serde"
57version = "0.4.10"
58source = "registry+https://github.com/rust-lang/crates.io-index"
59checksum = "d2add8a07dd6a8d93ff627029c51de145e12686fbc36ecb298ac22e74cf02dec"
60dependencies = [
61 "serde",
62 "serde_core",
63 "typeid",
64]
66[[package]]
67name = "errno"
68version = "0.3.14"
69source = "registry+https://github.com/rust-lang/crates.io-index"
70checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
71dependencies = [
72 "libc",
73 "windows-sys",
74]
76[[package]]
77name = "find-msvc-tools"
78version = "0.1.9"
79source = "registry+https://github.com/rust-lang/crates.io-index"
80checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
82[[package]]
83name = "libc"
84version = "0.2.186"
85source = "registry+https://github.com/rust-lang/crates.io-index"
86checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
88[[package]]
89name = "linux-raw-sys"
90version = "0.12.1"
91source = "registry+https://github.com/rust-lang/crates.io-index"
92checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
94[[package]]
95name = "lock_api"
96version = "0.4.14"
97source = "registry+https://github.com/rust-lang/crates.io-index"
98checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
99dependencies = [
100 "scopeguard",
101]
103[[package]]
104name = "lua-src"
105version = "547.0.0"
106source = "registry+https://github.com/rust-lang/crates.io-index"
107checksum = "1edaf29e3517b49b8b746701e5648ccb5785cde1c119062cbabbc5d5cd115e42"
108dependencies = [
109 "cc",
110]
112[[package]]
113name = "luajit-src"
114version = "210.5.12+a4f56a4"
115source = "registry+https://github.com/rust-lang/crates.io-index"
116checksum = "b3a8e7962a5368d5f264d045a5a255e90f9aa3fc1941ae15a8d2940d42cac671"
117dependencies = [
118 "cc",
119 "which",
120]
122[[package]]
123name = "memchr"
124version = "2.8.0"
125source = "registry+https://github.com/rust-lang/crates.io-index"
126checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
128[[package]]
129name = "mlua"
130version = "0.10.5"
131source = "registry+https://github.com/rust-lang/crates.io-index"
132checksum = "c1f5f8fbebc7db5f671671134b9321c4b9aa9adeafccfd9a8c020ae45c6a35d0"
133dependencies = [
134 "bstr",
135 "either",
136 "erased-serde",
137 "mlua-sys",
138 "num-traits",
139 "parking_lot",
140 "rustc-hash",
141 "rustversion",
142 "serde",
143 "serde-value",
144]
146[[package]]
147name = "mlua-sys"
148version = "0.6.8"
149source = "registry+https://github.com/rust-lang/crates.io-index"
150checksum = "380c1f7e2099cafcf40e51d3a9f20a346977587aa4d012eae1f043149a728a93"
151dependencies = [
152 "cc",
153 "cfg-if",
154 "lua-src",
155 "luajit-src",
156 "pkg-config",
157]
159[[package]]
160name = "num-traits"
161version = "0.2.19"
162source = "registry+https://github.com/rust-lang/crates.io-index"
163checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
164dependencies = [
165 "autocfg",
166]
168[[package]]
169name = "ordered-float"
170version = "2.10.1"
171source = "registry+https://github.com/rust-lang/crates.io-index"
172checksum = "68f19d67e5a2795c94e73e0bb1cc1a7edeb2e28efd39e2e1c9b7a40c1108b11c"
173dependencies = [
174 "num-traits",
175]
177[[package]]
178name = "p2d-luajit-vendored"
179version = "0.1.0"
180dependencies = [
181 "mlua",
182]
184[[package]]
185name = "parking_lot"
186version = "0.12.5"
187source = "registry+https://github.com/rust-lang/crates.io-index"
188checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
189dependencies = [
190 "lock_api",
191 "parking_lot_core",
192]
194[[package]]
195name = "parking_lot_core"
196version = "0.9.12"
197source = "registry+https://github.com/rust-lang/crates.io-index"
198checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
199dependencies = [
200 "cfg-if",
201 "libc",
202 "redox_syscall",
203 "smallvec",
204 "windows-link",
205]
207[[package]]
208name = "pkg-config"
209version = "0.3.33"
210source = "registry+https://github.com/rust-lang/crates.io-index"
211checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
213[[package]]
214name = "proc-macro2"
215version = "1.0.106"
216source = "registry+https://github.com/rust-lang/crates.io-index"
217checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
218dependencies = [
219 "unicode-ident",
220]
222[[package]]
223name = "quote"
224version = "1.0.45"
225source = "registry+https://github.com/rust-lang/crates.io-index"
226checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
227dependencies = [
228 "proc-macro2",
229]
231[[package]]
232name = "redox_syscall"
233version = "0.5.18"
234source = "registry+https://github.com/rust-lang/crates.io-index"
235checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
236dependencies = [
237 "bitflags",
238]
240[[package]]
241name = "rustc-hash"
242version = "2.1.2"
243source = "registry+https://github.com/rust-lang/crates.io-index"
244checksum = "94300abf3f1ae2e2b8ffb7b58043de3d399c73fa6f4b73826402a5c457614dbe"
246[[package]]
247name = "rustix"
248version = "1.1.4"
249source = "registry+https://github.com/rust-lang/crates.io-index"
250checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
251dependencies = [
252 "bitflags",
253 "errno",
254 "libc",
255 "linux-raw-sys",
256 "windows-sys",
257]
259[[package]]
260name = "rustversion"
261version = "1.0.22"
262source = "registry+https://github.com/rust-lang/crates.io-index"
263checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
265[[package]]
266name = "scopeguard"
267version = "1.2.0"
268source = "registry+https://github.com/rust-lang/crates.io-index"
269checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
271[[package]]
272name = "serde"
273version = "1.0.228"
274source = "registry+https://github.com/rust-lang/crates.io-index"
275checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
276dependencies = [
277 "serde_core",
278]
280[[package]]
281name = "serde-value"
282version = "0.7.0"
283source = "registry+https://github.com/rust-lang/crates.io-index"
284checksum = "f3a1a3341211875ef120e117ea7fd5228530ae7e7036a779fdc9117be6b3282c"
285dependencies = [
286 "ordered-float",
287 "serde",
288]
290[[package]]
291name = "serde_core"
292version = "1.0.228"
293source = "registry+https://github.com/rust-lang/crates.io-index"
294checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
295dependencies = [
296 "serde_derive",
297]
299[[package]]
300name = "serde_derive"
301version = "1.0.228"
302source = "registry+https://github.com/rust-lang/crates.io-index"
303checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
304dependencies = [
305 "proc-macro2",
306 "quote",
307 "syn",
308]
310[[package]]
311name = "shlex"
312version = "1.3.0"
313source = "registry+https://github.com/rust-lang/crates.io-index"
314checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
316[[package]]
317name = "smallvec"
318version = "1.15.1"
319source = "registry+https://github.com/rust-lang/crates.io-index"
320checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
322[[package]]
323name = "syn"
324version = "2.0.117"
325source = "registry+https://github.com/rust-lang/crates.io-index"
326checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
327dependencies = [
328 "proc-macro2",
329 "quote",
330 "unicode-ident",
331]
333[[package]]
334name = "typeid"
335version = "1.0.3"
336source = "registry+https://github.com/rust-lang/crates.io-index"
337checksum = "bc7d623258602320d5c55d1bc22793b57daff0ec7efc270ea7d55ce1d5f5471c"
339[[package]]
340name = "unicode-ident"
341version = "1.0.24"
342source = "registry+https://github.com/rust-lang/crates.io-index"
343checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
345[[package]]
346name = "which"
347version = "7.0.3"
348source = "registry+https://github.com/rust-lang/crates.io-index"
349checksum = "24d643ce3fd3e5b54854602a080f34fb10ab75e0b813ee32d00ca2b44fa74762"
350dependencies = [
351 "either",
352 "env_home",
353 "rustix",
354 "winsafe",
355]
357[[package]]
358name = "windows-link"
359version = "0.2.1"
360source = "registry+https://github.com/rust-lang/crates.io-index"
361checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
363[[package]]
364name = "windows-sys"
365version = "0.61.2"
366source = "registry+https://github.com/rust-lang/crates.io-index"
367checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
368dependencies = [
369 "windows-link",
370]
372[[package]]
373name = "winsafe"
374version = "0.0.19"
375source = "registry+https://github.com/rust-lang/crates.io-index"
376checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"

prototypes/p2d-luajit-vendored/Cargo.toml

Added
new file mode 100644

+7 / −0 text lines

1[package]
2name = "p2d-luajit-vendored"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7mlua = { version = "0.10", features = ["luajit", "vendored", "serialize"] }

prototypes/p2d-luajit-vendored/src/main.rs

Added
new file mode 100644

+18 / −0 text lines

1//! P2d: Vendored (static) LuaJIT on ARM64/Android.
2
3fn main() {
4 let lua = mlua::Lua::new();
5 let val: i32 = lua.load("return 1 + 1").eval().unwrap();
6 println!("luajit vendored: 1+1 = {val}");
7
8 // Test JIT is actually working
9 let code = r#"
10 local function add(a, b) return a + b end
11 local sum = 0
12 for i = 1, 100000 do sum = add(sum, i) end
13 return sum
14 "#;
15 let sum: i64 = lua.load(code).eval().unwrap();
16 println!("luajit vendored JIT: sum(1..100000) = {sum}");
17 println!("PASS: vendored (static) LuaJIT works on ARM64/Android");
18}

prototypes/p3-cbor/Cargo.lock

Added
new file mode 100644

+525 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "anyhow"
7version = "1.0.102"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
11[[package]]
12name = "bitflags"
13version = "2.11.1"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
17[[package]]
18name = "bumpalo"
19version = "3.20.3"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
23[[package]]
24name = "cfg-if"
25version = "1.0.4"
26source = "registry+https://github.com/rust-lang/crates.io-index"
27checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
29[[package]]
30name = "equivalent"
31version = "1.0.2"
32source = "registry+https://github.com/rust-lang/crates.io-index"
33checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
35[[package]]
36name = "foldhash"
37version = "0.1.5"
38source = "registry+https://github.com/rust-lang/crates.io-index"
39checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
41[[package]]
42name = "futures-core"
43version = "0.3.32"
44source = "registry+https://github.com/rust-lang/crates.io-index"
45checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
47[[package]]
48name = "futures-task"
49version = "0.3.32"
50source = "registry+https://github.com/rust-lang/crates.io-index"
51checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
53[[package]]
54name = "futures-util"
55version = "0.3.32"
56source = "registry+https://github.com/rust-lang/crates.io-index"
57checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
58dependencies = [
59 "futures-core",
60 "futures-task",
61 "pin-project-lite",
62 "slab",
63]
65[[package]]
66name = "getrandom"
67version = "0.4.2"
68source = "registry+https://github.com/rust-lang/crates.io-index"
69checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"
70dependencies = [
71 "cfg-if",
72 "libc",
73 "r-efi",
74 "wasip2",
75 "wasip3",
76]
78[[package]]
79name = "hashbrown"
80version = "0.15.5"
81source = "registry+https://github.com/rust-lang/crates.io-index"
82checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
83dependencies = [
84 "foldhash",
85]
87[[package]]
88name = "hashbrown"
89version = "0.17.1"
90source = "registry+https://github.com/rust-lang/crates.io-index"
91checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
93[[package]]
94name = "heck"
95version = "0.5.0"
96source = "registry+https://github.com/rust-lang/crates.io-index"
97checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
99[[package]]
100name = "id-arena"
101version = "2.3.0"
102source = "registry+https://github.com/rust-lang/crates.io-index"
103checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
105[[package]]
106name = "indexmap"
107version = "2.14.0"
108source = "registry+https://github.com/rust-lang/crates.io-index"
109checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
110dependencies = [
111 "equivalent",
112 "hashbrown 0.17.1",
113 "serde",
114 "serde_core",
115]
117[[package]]
118name = "itoa"
119version = "1.0.18"
120source = "registry+https://github.com/rust-lang/crates.io-index"
121checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
123[[package]]
124name = "js-sys"
125version = "0.3.98"
126source = "registry+https://github.com/rust-lang/crates.io-index"
127checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08"
128dependencies = [
129 "cfg-if",
130 "futures-util",
131 "once_cell",
132 "wasm-bindgen",
133]
135[[package]]
136name = "leb128fmt"
137version = "0.1.0"
138source = "registry+https://github.com/rust-lang/crates.io-index"
139checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
141[[package]]
142name = "libc"
143version = "0.2.186"
144source = "registry+https://github.com/rust-lang/crates.io-index"
145checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
147[[package]]
148name = "log"
149version = "0.4.29"
150source = "registry+https://github.com/rust-lang/crates.io-index"
151checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
153[[package]]
154name = "memchr"
155version = "2.8.0"
156source = "registry+https://github.com/rust-lang/crates.io-index"
157checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
159[[package]]
160name = "minicbor"
161version = "0.25.1"
162source = "registry+https://github.com/rust-lang/crates.io-index"
163checksum = "c0452a60c1863c1f50b5f77cd295e8d2786849f35883f0b9e18e7e6e1b5691b0"
164dependencies = [
165 "minicbor-derive",
166]
168[[package]]
169name = "minicbor-derive"
170version = "0.15.3"
171source = "registry+https://github.com/rust-lang/crates.io-index"
172checksum = "bd2209fff77f705b00c737016a48e73733d7fbccb8b007194db148f03561fb70"
173dependencies = [
174 "proc-macro2",
175 "quote",
176 "syn",
177]
179[[package]]
180name = "once_cell"
181version = "1.21.4"
182source = "registry+https://github.com/rust-lang/crates.io-index"
183checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
185[[package]]
186name = "p3-cbor"
187version = "0.1.0"
188dependencies = [
189 "minicbor",
190 "serde",
191 "serde_json",
192 "uuid",
193]
195[[package]]
196name = "pin-project-lite"
197version = "0.2.17"
198source = "registry+https://github.com/rust-lang/crates.io-index"
199checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
201[[package]]
202name = "prettyplease"
203version = "0.2.37"
204source = "registry+https://github.com/rust-lang/crates.io-index"
205checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
206dependencies = [
207 "proc-macro2",
208 "syn",
209]
211[[package]]
212name = "proc-macro2"
213version = "1.0.106"
214source = "registry+https://github.com/rust-lang/crates.io-index"
215checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
216dependencies = [
217 "unicode-ident",
218]
220[[package]]
221name = "quote"
222version = "1.0.45"
223source = "registry+https://github.com/rust-lang/crates.io-index"
224checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
225dependencies = [
226 "proc-macro2",
227]
229[[package]]
230name = "r-efi"
231version = "6.0.0"
232source = "registry+https://github.com/rust-lang/crates.io-index"
233checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
235[[package]]
236name = "rustversion"
237version = "1.0.22"
238source = "registry+https://github.com/rust-lang/crates.io-index"
239checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
241[[package]]
242name = "semver"
243version = "1.0.28"
244source = "registry+https://github.com/rust-lang/crates.io-index"
245checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
247[[package]]
248name = "serde"
249version = "1.0.228"
250source = "registry+https://github.com/rust-lang/crates.io-index"
251checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
252dependencies = [
253 "serde_core",
254 "serde_derive",
255]
257[[package]]
258name = "serde_core"
259version = "1.0.228"
260source = "registry+https://github.com/rust-lang/crates.io-index"
261checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
262dependencies = [
263 "serde_derive",
264]
266[[package]]
267name = "serde_derive"
268version = "1.0.228"
269source = "registry+https://github.com/rust-lang/crates.io-index"
270checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
271dependencies = [
272 "proc-macro2",
273 "quote",
274 "syn",
275]
277[[package]]
278name = "serde_json"
279version = "1.0.150"
280source = "registry+https://github.com/rust-lang/crates.io-index"
281checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
282dependencies = [
283 "itoa",
284 "memchr",
285 "serde",
286 "serde_core",
287 "zmij",
288]
290[[package]]
291name = "slab"
292version = "0.4.12"
293source = "registry+https://github.com/rust-lang/crates.io-index"
294checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
296[[package]]
297name = "syn"
298version = "2.0.117"
299source = "registry+https://github.com/rust-lang/crates.io-index"
300checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
301dependencies = [
302 "proc-macro2",
303 "quote",
304 "unicode-ident",
305]
307[[package]]
308name = "unicode-ident"
309version = "1.0.24"
310source = "registry+https://github.com/rust-lang/crates.io-index"
311checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
313[[package]]
314name = "unicode-xid"
315version = "0.2.6"
316source = "registry+https://github.com/rust-lang/crates.io-index"
317checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
319[[package]]
320name = "uuid"
321version = "1.23.1"
322source = "registry+https://github.com/rust-lang/crates.io-index"
323checksum = "ddd74a9687298c6858e9b88ec8935ec45d22e8fd5e6394fa1bd4e99a87789c76"
324dependencies = [
325 "getrandom",
326 "js-sys",
327 "wasm-bindgen",
328]
330[[package]]
331name = "wasip2"
332version = "1.0.3+wasi-0.2.9"
333source = "registry+https://github.com/rust-lang/crates.io-index"
334checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
335dependencies = [
336 "wit-bindgen 0.57.1",
337]
339[[package]]
340name = "wasip3"
341version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
342source = "registry+https://github.com/rust-lang/crates.io-index"
343checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
344dependencies = [
345 "wit-bindgen 0.51.0",
346]
348[[package]]
349name = "wasm-bindgen"
350version = "0.2.121"
351source = "registry+https://github.com/rust-lang/crates.io-index"
352checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790"
353dependencies = [
354 "cfg-if",
355 "once_cell",
356 "rustversion",
357 "wasm-bindgen-macro",
358 "wasm-bindgen-shared",
359]
361[[package]]
362name = "wasm-bindgen-macro"
363version = "0.2.121"
364source = "registry+https://github.com/rust-lang/crates.io-index"
365checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578"
366dependencies = [
367 "quote",
368 "wasm-bindgen-macro-support",
369]
371[[package]]
372name = "wasm-bindgen-macro-support"
373version = "0.2.121"
374source = "registry+https://github.com/rust-lang/crates.io-index"
375checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2"
376dependencies = [
377 "bumpalo",
378 "proc-macro2",
379 "quote",
380 "syn",
381 "wasm-bindgen-shared",
382]
384[[package]]
385name = "wasm-bindgen-shared"
386version = "0.2.121"
387source = "registry+https://github.com/rust-lang/crates.io-index"
388checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441"
389dependencies = [
390 "unicode-ident",
391]
393[[package]]
394name = "wasm-encoder"
395version = "0.244.0"
396source = "registry+https://github.com/rust-lang/crates.io-index"
397checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
398dependencies = [
399 "leb128fmt",
400 "wasmparser",
401]
403[[package]]
404name = "wasm-metadata"
405version = "0.244.0"
406source = "registry+https://github.com/rust-lang/crates.io-index"
407checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
408dependencies = [
409 "anyhow",
410 "indexmap",
411 "wasm-encoder",
412 "wasmparser",
413]
415[[package]]
416name = "wasmparser"
417version = "0.244.0"
418source = "registry+https://github.com/rust-lang/crates.io-index"
419checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
420dependencies = [
421 "bitflags",
422 "hashbrown 0.15.5",
423 "indexmap",
424 "semver",
425]
427[[package]]
428name = "wit-bindgen"
429version = "0.51.0"
430source = "registry+https://github.com/rust-lang/crates.io-index"
431checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
432dependencies = [
433 "wit-bindgen-rust-macro",
434]
436[[package]]
437name = "wit-bindgen"
438version = "0.57.1"
439source = "registry+https://github.com/rust-lang/crates.io-index"
440checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
442[[package]]
443name = "wit-bindgen-core"
444version = "0.51.0"
445source = "registry+https://github.com/rust-lang/crates.io-index"
446checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
447dependencies = [
448 "anyhow",
449 "heck",
450 "wit-parser",
451]
453[[package]]
454name = "wit-bindgen-rust"
455version = "0.51.0"
456source = "registry+https://github.com/rust-lang/crates.io-index"
457checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
458dependencies = [
459 "anyhow",
460 "heck",
461 "indexmap",
462 "prettyplease",
463 "syn",
464 "wasm-metadata",
465 "wit-bindgen-core",
466 "wit-component",
467]
469[[package]]
470name = "wit-bindgen-rust-macro"
471version = "0.51.0"
472source = "registry+https://github.com/rust-lang/crates.io-index"
473checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
474dependencies = [
475 "anyhow",
476 "prettyplease",
477 "proc-macro2",
478 "quote",
479 "syn",
480 "wit-bindgen-core",
481 "wit-bindgen-rust",
482]
484[[package]]
485name = "wit-component"
486version = "0.244.0"
487source = "registry+https://github.com/rust-lang/crates.io-index"
488checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
489dependencies = [
490 "anyhow",
491 "bitflags",
492 "indexmap",
493 "log",
494 "serde",
495 "serde_derive",
496 "serde_json",
497 "wasm-encoder",
498 "wasm-metadata",
499 "wasmparser",
500 "wit-parser",
501]
503[[package]]
504name = "wit-parser"
505version = "0.244.0"
506source = "registry+https://github.com/rust-lang/crates.io-index"
507checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
508dependencies = [
509 "anyhow",
510 "id-arena",
511 "indexmap",
512 "log",
513 "semver",
514 "serde",
515 "serde_derive",
516 "serde_json",
517 "unicode-xid",
518 "wasmparser",
519]
521[[package]]
522name = "zmij"
523version = "1.0.21"
524source = "registry+https://github.com/rust-lang/crates.io-index"
525checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"

prototypes/p3-cbor/Cargo.toml

Added
new file mode 100644

+10 / −0 text lines

1[package]
2name = "p3-cbor"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7minicbor = { version = "0.25", features = ["std", "derive"] }
8serde = { version = "1", features = ["derive"] }
9serde_json = "1"
10uuid = { version = "1", features = ["v7"] }

prototypes/p3-cbor/src/main.rs

Added
new file mode 100644

+16 / −0 text lines

1//! test
2#![allow(missing_docs)]
3use minicbor::{Encode, Decode};
4
5#[derive(Encode, Decode, Debug)]
6enum Msg { #[n(0)] Hello, #[n(1)] World(u32) }
7
8fn main() {
9 let buf = minicbor::to_vec(&Msg::Hello).unwrap();
10 let d: Msg = minicbor::decode(&buf).unwrap();
11 eprintln!("unit variant OK: {:?}", d);
13 let buf2 = minicbor::to_vec(&Msg::World(42)).unwrap();
14 let d2: Msg = minicbor::decode(&buf2).unwrap();
15 eprintln!("tuple variant OK: {:?}", d2);
16}No final newline

prototypes/p3b-ciborium/Cargo.lock

Added
new file mode 100644

+146 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "cfg-if"
7version = "1.0.4"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
11[[package]]
12name = "ciborium"
13version = "0.2.2"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e"
16dependencies = [
17 "ciborium-io",
18 "ciborium-ll",
19 "serde",
20]
22[[package]]
23name = "ciborium-io"
24version = "0.2.2"
25source = "registry+https://github.com/rust-lang/crates.io-index"
26checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757"
28[[package]]
29name = "ciborium-ll"
30version = "0.2.2"
31source = "registry+https://github.com/rust-lang/crates.io-index"
32checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9"
33dependencies = [
34 "ciborium-io",
35 "half",
36]
38[[package]]
39name = "crunchy"
40version = "0.2.4"
41source = "registry+https://github.com/rust-lang/crates.io-index"
42checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
44[[package]]
45name = "half"
46version = "2.7.1"
47source = "registry+https://github.com/rust-lang/crates.io-index"
48checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
49dependencies = [
50 "cfg-if",
51 "crunchy",
52 "zerocopy",
53]
55[[package]]
56name = "p3b-ciborium"
57version = "0.1.0"
58dependencies = [
59 "ciborium",
60 "serde",
61]
63[[package]]
64name = "proc-macro2"
65version = "1.0.106"
66source = "registry+https://github.com/rust-lang/crates.io-index"
67checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
68dependencies = [
69 "unicode-ident",
70]
72[[package]]
73name = "quote"
74version = "1.0.45"
75source = "registry+https://github.com/rust-lang/crates.io-index"
76checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
77dependencies = [
78 "proc-macro2",
79]
81[[package]]
82name = "serde"
83version = "1.0.228"
84source = "registry+https://github.com/rust-lang/crates.io-index"
85checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
86dependencies = [
87 "serde_core",
88 "serde_derive",
89]
91[[package]]
92name = "serde_core"
93version = "1.0.228"
94source = "registry+https://github.com/rust-lang/crates.io-index"
95checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
96dependencies = [
97 "serde_derive",
98]
100[[package]]
101name = "serde_derive"
102version = "1.0.228"
103source = "registry+https://github.com/rust-lang/crates.io-index"
104checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
105dependencies = [
106 "proc-macro2",
107 "quote",
108 "syn",
109]
111[[package]]
112name = "syn"
113version = "2.0.117"
114source = "registry+https://github.com/rust-lang/crates.io-index"
115checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
116dependencies = [
117 "proc-macro2",
118 "quote",
119 "unicode-ident",
120]
122[[package]]
123name = "unicode-ident"
124version = "1.0.24"
125source = "registry+https://github.com/rust-lang/crates.io-index"
126checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
128[[package]]
129name = "zerocopy"
130version = "0.8.48"
131source = "registry+https://github.com/rust-lang/crates.io-index"
132checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
133dependencies = [
134 "zerocopy-derive",
135]
137[[package]]
138name = "zerocopy-derive"
139version = "0.8.48"
140source = "registry+https://github.com/rust-lang/crates.io-index"
141checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
142dependencies = [
143 "proc-macro2",
144 "quote",
145 "syn",
146]

prototypes/p3b-ciborium/Cargo.toml

Added
new file mode 100644

+8 / −0 text lines

1[package]
2name = "p3b-ciborium"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7ciborium = "0.2"
8serde = { version = "1", features = ["derive"] }

prototypes/p3b-ciborium/src/main.rs

Added
new file mode 100644

+88 / −0 text lines

1//! Test ciborium as minicbor alternative — serde-based CBOR with enum support.
2#![allow(dead_code)]
3
4use serde::{Deserialize, Serialize};
5
6#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
7struct ToolCall {
8 id: String,
9 name: String,
10 args: String,
11}
13#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
14struct ToolResult {
15 call_id: String,
16 content: String,
17 is_error: bool,
18}
20#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
21enum SessionEntry {
22 User(UserMsg),
23 Assistant(AssistantMsg),
24 ToolResult(ToolResultEntry),
25 System(SystemEntry),
26}
28#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
29struct UserMsg { content: String }
31#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
32struct AssistantMsg { content: String, tool_calls: Vec<ToolCall> }
34#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
35struct ToolResultEntry { result: ToolResult }
37#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
38struct SystemEntry { content: String }
40#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
41enum TraceEntry {
42 Start(TraceStart),
43 Event(TraceEvent),
44}
46#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
47struct TraceStart { session_id: String, timestamp: u64 }
49#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
50struct TraceEvent { timestamp: u64, entry: SessionEntry }
52fn main() {
53 let entry = SessionEntry::Assistant(AssistantMsg {
54 content: "thinking...".into(),
55 tool_calls: vec![ToolCall { id: "c1".into(), name: "bash".into(), args: r#"{"cmd":"ls"}"#.into() }],
56 });
58 let mut buf = Vec::new();
59 ciborium::ser::into_writer(&entry, &mut buf).expect("serialize");
60 let decoded: SessionEntry = ciborium::de::from_reader(&buf[..]).expect("deserialize");
61 eprintln!("CBOR roundtrip OK: {:?} ({} bytes)", decoded, buf.len());
62 assert_eq!(entry, decoded);
64 // All 4 variants
65 let all = vec![
66 SessionEntry::User(UserMsg { content: "hi".into() }),
67 SessionEntry::System(SystemEntry { content: "init".into() }),
68 SessionEntry::ToolResult(ToolResultEntry { result: ToolResult { call_id: "c1".into(), content: "out".into(), is_error: false } }),
69 entry,
70 ];
71 for (i, e) in all.iter().enumerate() {
72 let mut b = Vec::new();
73 ciborium::ser::into_writer(e, &mut b).unwrap();
74 let d: SessionEntry = ciborium::de::from_reader(&b[..]).unwrap();
75 assert_eq!(*e, d, "variant {} mismatch", i);
76 }
77 eprintln!("All 4 CBOR enum variants roundtrip OK");
79 // Trace
80 let trace = TraceEntry::Event(TraceEvent { timestamp: 1715000000, entry: all[0].clone() });
81 let mut tb = Vec::new();
82 ciborium::ser::into_writer(&trace, &mut tb).unwrap();
83 let td: TraceEntry = ciborium::de::from_reader(&tb[..]).unwrap();
84 assert_eq!(trace, td);
85 eprintln!("Trace CBOR OK ({} bytes)", tb.len());
87 eprintln!("ALL CIBORIUM TESTS PASSED");
88}No final newline

prototypes/p4-tui/Cargo.lock

Added
new file mode 100644

+594 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "allocator-api2"
7version = "0.2.21"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
11[[package]]
12name = "bitflags"
13version = "2.11.1"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
17[[package]]
18name = "cassowary"
19version = "0.3.0"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "df8670b8c7b9dae1793364eafadf7239c40d669904660c5960d74cfd80b46a53"
23[[package]]
24name = "castaway"
25version = "0.2.4"
26source = "registry+https://github.com/rust-lang/crates.io-index"
27checksum = "dec551ab6e7578819132c713a93c022a05d60159dc86e7a7050223577484c55a"
28dependencies = [
29 "rustversion",
30]
32[[package]]
33name = "cfg-if"
34version = "1.0.4"
35source = "registry+https://github.com/rust-lang/crates.io-index"
36checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
38[[package]]
39name = "compact_str"
40version = "0.8.1"
41source = "registry+https://github.com/rust-lang/crates.io-index"
42checksum = "3b79c4069c6cad78e2e0cdfcbd26275770669fb39fd308a752dc110e83b9af32"
43dependencies = [
44 "castaway",
45 "cfg-if",
46 "itoa",
47 "rustversion",
48 "ryu",
49 "static_assertions",
50]
52[[package]]
53name = "crossterm"
54version = "0.28.1"
55source = "registry+https://github.com/rust-lang/crates.io-index"
56checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6"
57dependencies = [
58 "bitflags",
59 "crossterm_winapi",
60 "mio",
61 "parking_lot",
62 "rustix",
63 "signal-hook",
64 "signal-hook-mio",
65 "winapi",
66]
68[[package]]
69name = "crossterm_winapi"
70version = "0.9.1"
71source = "registry+https://github.com/rust-lang/crates.io-index"
72checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
73dependencies = [
74 "winapi",
75]
77[[package]]
78name = "darling"
79version = "0.23.0"
80source = "registry+https://github.com/rust-lang/crates.io-index"
81checksum = "25ae13da2f202d56bd7f91c25fba009e7717a1e4a1cc98a76d844b65ae912e9d"
82dependencies = [
83 "darling_core",
84 "darling_macro",
85]
87[[package]]
88name = "darling_core"
89version = "0.23.0"
90source = "registry+https://github.com/rust-lang/crates.io-index"
91checksum = "9865a50f7c335f53564bb694ef660825eb8610e0a53d3e11bf1b0d3df31e03b0"
92dependencies = [
93 "ident_case",
94 "proc-macro2",
95 "quote",
96 "strsim",
97 "syn",
98]
100[[package]]
101name = "darling_macro"
102version = "0.23.0"
103source = "registry+https://github.com/rust-lang/crates.io-index"
104checksum = "ac3984ec7bd6cfa798e62b4a642426a5be0e68f9401cfc2a01e3fa9ea2fcdb8d"
105dependencies = [
106 "darling_core",
107 "quote",
108 "syn",
109]
111[[package]]
112name = "either"
113version = "1.16.0"
114source = "registry+https://github.com/rust-lang/crates.io-index"
115checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
117[[package]]
118name = "equivalent"
119version = "1.0.2"
120source = "registry+https://github.com/rust-lang/crates.io-index"
121checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
123[[package]]
124name = "errno"
125version = "0.3.14"
126source = "registry+https://github.com/rust-lang/crates.io-index"
127checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
128dependencies = [
129 "libc",
130 "windows-sys 0.61.2",
131]
133[[package]]
134name = "foldhash"
135version = "0.1.5"
136source = "registry+https://github.com/rust-lang/crates.io-index"
137checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
139[[package]]
140name = "hashbrown"
141version = "0.15.5"
142source = "registry+https://github.com/rust-lang/crates.io-index"
143checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
144dependencies = [
145 "allocator-api2",
146 "equivalent",
147 "foldhash",
148]
150[[package]]
151name = "heck"
152version = "0.5.0"
153source = "registry+https://github.com/rust-lang/crates.io-index"
154checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
156[[package]]
157name = "ident_case"
158version = "1.0.1"
159source = "registry+https://github.com/rust-lang/crates.io-index"
160checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
162[[package]]
163name = "indoc"
164version = "2.0.7"
165source = "registry+https://github.com/rust-lang/crates.io-index"
166checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
167dependencies = [
168 "rustversion",
169]
171[[package]]
172name = "instability"
173version = "0.3.12"
174source = "registry+https://github.com/rust-lang/crates.io-index"
175checksum = "5eb2d60ef19920a3a9193c3e371f726ec1dafc045dac788d0fb3704272458971"
176dependencies = [
177 "darling",
178 "indoc",
179 "proc-macro2",
180 "quote",
181 "syn",
182]
184[[package]]
185name = "itertools"
186version = "0.13.0"
187source = "registry+https://github.com/rust-lang/crates.io-index"
188checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
189dependencies = [
190 "either",
191]
193[[package]]
194name = "itoa"
195version = "1.0.18"
196source = "registry+https://github.com/rust-lang/crates.io-index"
197checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
199[[package]]
200name = "libc"
201version = "0.2.186"
202source = "registry+https://github.com/rust-lang/crates.io-index"
203checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
205[[package]]
206name = "linux-raw-sys"
207version = "0.4.15"
208source = "registry+https://github.com/rust-lang/crates.io-index"
209checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
211[[package]]
212name = "lock_api"
213version = "0.4.14"
214source = "registry+https://github.com/rust-lang/crates.io-index"
215checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
216dependencies = [
217 "scopeguard",
218]
220[[package]]
221name = "log"
222version = "0.4.29"
223source = "registry+https://github.com/rust-lang/crates.io-index"
224checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
226[[package]]
227name = "lru"
228version = "0.12.5"
229source = "registry+https://github.com/rust-lang/crates.io-index"
230checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38"
231dependencies = [
232 "hashbrown",
233]
235[[package]]
236name = "mio"
237version = "1.2.0"
238source = "registry+https://github.com/rust-lang/crates.io-index"
239checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
240dependencies = [
241 "libc",
242 "log",
243 "wasi",
244 "windows-sys 0.61.2",
245]
247[[package]]
248name = "p4-tui"
249version = "0.1.0"
250dependencies = [
251 "crossterm",
252 "ratatui",
253]
255[[package]]
256name = "parking_lot"
257version = "0.12.5"
258source = "registry+https://github.com/rust-lang/crates.io-index"
259checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
260dependencies = [
261 "lock_api",
262 "parking_lot_core",
263]
265[[package]]
266name = "parking_lot_core"
267version = "0.9.12"
268source = "registry+https://github.com/rust-lang/crates.io-index"
269checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
270dependencies = [
271 "cfg-if",
272 "libc",
273 "redox_syscall",
274 "smallvec",
275 "windows-link",
276]
278[[package]]
279name = "paste"
280version = "1.0.15"
281source = "registry+https://github.com/rust-lang/crates.io-index"
282checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
284[[package]]
285name = "proc-macro2"
286version = "1.0.106"
287source = "registry+https://github.com/rust-lang/crates.io-index"
288checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
289dependencies = [
290 "unicode-ident",
291]
293[[package]]
294name = "quote"
295version = "1.0.45"
296source = "registry+https://github.com/rust-lang/crates.io-index"
297checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
298dependencies = [
299 "proc-macro2",
300]
302[[package]]
303name = "ratatui"
304version = "0.29.0"
305source = "registry+https://github.com/rust-lang/crates.io-index"
306checksum = "eabd94c2f37801c20583fc49dd5cd6b0ba68c716787c2dd6ed18571e1e63117b"
307dependencies = [
308 "bitflags",
309 "cassowary",
310 "compact_str",
311 "crossterm",
312 "indoc",
313 "instability",
314 "itertools",
315 "lru",
316 "paste",
317 "strum",
318 "unicode-segmentation",
319 "unicode-truncate",
320 "unicode-width 0.2.0",
321]
323[[package]]
324name = "redox_syscall"
325version = "0.5.18"
326source = "registry+https://github.com/rust-lang/crates.io-index"
327checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
328dependencies = [
329 "bitflags",
330]
332[[package]]
333name = "rustix"
334version = "0.38.44"
335source = "registry+https://github.com/rust-lang/crates.io-index"
336checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
337dependencies = [
338 "bitflags",
339 "errno",
340 "libc",
341 "linux-raw-sys",
342 "windows-sys 0.59.0",
343]
345[[package]]
346name = "rustversion"
347version = "1.0.22"
348source = "registry+https://github.com/rust-lang/crates.io-index"
349checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
351[[package]]
352name = "ryu"
353version = "1.0.23"
354source = "registry+https://github.com/rust-lang/crates.io-index"
355checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
357[[package]]
358name = "scopeguard"
359version = "1.2.0"
360source = "registry+https://github.com/rust-lang/crates.io-index"
361checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
363[[package]]
364name = "signal-hook"
365version = "0.3.18"
366source = "registry+https://github.com/rust-lang/crates.io-index"
367checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2"
368dependencies = [
369 "libc",
370 "signal-hook-registry",
371]
373[[package]]
374name = "signal-hook-mio"
375version = "0.2.5"
376source = "registry+https://github.com/rust-lang/crates.io-index"
377checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc"
378dependencies = [
379 "libc",
380 "mio",
381 "signal-hook",
382]
384[[package]]
385name = "signal-hook-registry"
386version = "1.4.8"
387source = "registry+https://github.com/rust-lang/crates.io-index"
388checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
389dependencies = [
390 "errno",
391 "libc",
392]
394[[package]]
395name = "smallvec"
396version = "1.15.1"
397source = "registry+https://github.com/rust-lang/crates.io-index"
398checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
400[[package]]
401name = "static_assertions"
402version = "1.1.0"
403source = "registry+https://github.com/rust-lang/crates.io-index"
404checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
406[[package]]
407name = "strsim"
408version = "0.11.1"
409source = "registry+https://github.com/rust-lang/crates.io-index"
410checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
412[[package]]
413name = "strum"
414version = "0.26.3"
415source = "registry+https://github.com/rust-lang/crates.io-index"
416checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06"
417dependencies = [
418 "strum_macros",
419]
421[[package]]
422name = "strum_macros"
423version = "0.26.4"
424source = "registry+https://github.com/rust-lang/crates.io-index"
425checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be"
426dependencies = [
427 "heck",
428 "proc-macro2",
429 "quote",
430 "rustversion",
431 "syn",
432]
434[[package]]
435name = "syn"
436version = "2.0.117"
437source = "registry+https://github.com/rust-lang/crates.io-index"
438checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
439dependencies = [
440 "proc-macro2",
441 "quote",
442 "unicode-ident",
443]
445[[package]]
446name = "unicode-ident"
447version = "1.0.24"
448source = "registry+https://github.com/rust-lang/crates.io-index"
449checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
451[[package]]
452name = "unicode-segmentation"
453version = "1.13.2"
454source = "registry+https://github.com/rust-lang/crates.io-index"
455checksum = "9629274872b2bfaf8d66f5f15725007f635594914870f65218920345aa11aa8c"
457[[package]]
458name = "unicode-truncate"
459version = "1.1.0"
460source = "registry+https://github.com/rust-lang/crates.io-index"
461checksum = "b3644627a5af5fa321c95b9b235a72fd24cd29c648c2c379431e6628655627bf"
462dependencies = [
463 "itertools",
464 "unicode-segmentation",
465 "unicode-width 0.1.14",
466]
468[[package]]
469name = "unicode-width"
470version = "0.1.14"
471source = "registry+https://github.com/rust-lang/crates.io-index"
472checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
474[[package]]
475name = "unicode-width"
476version = "0.2.0"
477source = "registry+https://github.com/rust-lang/crates.io-index"
478checksum = "1fc81956842c57dac11422a97c3b8195a1ff727f06e85c84ed2e8aa277c9a0fd"
480[[package]]
481name = "wasi"
482version = "0.11.1+wasi-snapshot-preview1"
483source = "registry+https://github.com/rust-lang/crates.io-index"
484checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
486[[package]]
487name = "winapi"
488version = "0.3.9"
489source = "registry+https://github.com/rust-lang/crates.io-index"
490checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
491dependencies = [
492 "winapi-i686-pc-windows-gnu",
493 "winapi-x86_64-pc-windows-gnu",
494]
496[[package]]
497name = "winapi-i686-pc-windows-gnu"
498version = "0.4.0"
499source = "registry+https://github.com/rust-lang/crates.io-index"
500checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
502[[package]]
503name = "winapi-x86_64-pc-windows-gnu"
504version = "0.4.0"
505source = "registry+https://github.com/rust-lang/crates.io-index"
506checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
508[[package]]
509name = "windows-link"
510version = "0.2.1"
511source = "registry+https://github.com/rust-lang/crates.io-index"
512checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
514[[package]]
515name = "windows-sys"
516version = "0.59.0"
517source = "registry+https://github.com/rust-lang/crates.io-index"
518checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
519dependencies = [
520 "windows-targets",
521]
523[[package]]
524name = "windows-sys"
525version = "0.61.2"
526source = "registry+https://github.com/rust-lang/crates.io-index"
527checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
528dependencies = [
529 "windows-link",
530]
532[[package]]
533name = "windows-targets"
534version = "0.52.6"
535source = "registry+https://github.com/rust-lang/crates.io-index"
536checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
537dependencies = [
538 "windows_aarch64_gnullvm",
539 "windows_aarch64_msvc",
540 "windows_i686_gnu",
541 "windows_i686_gnullvm",
542 "windows_i686_msvc",
543 "windows_x86_64_gnu",
544 "windows_x86_64_gnullvm",
545 "windows_x86_64_msvc",
546]
548[[package]]
549name = "windows_aarch64_gnullvm"
550version = "0.52.6"
551source = "registry+https://github.com/rust-lang/crates.io-index"
552checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
554[[package]]
555name = "windows_aarch64_msvc"
556version = "0.52.6"
557source = "registry+https://github.com/rust-lang/crates.io-index"
558checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
560[[package]]
561name = "windows_i686_gnu"
562version = "0.52.6"
563source = "registry+https://github.com/rust-lang/crates.io-index"
564checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
566[[package]]
567name = "windows_i686_gnullvm"
568version = "0.52.6"
569source = "registry+https://github.com/rust-lang/crates.io-index"
570checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
572[[package]]
573name = "windows_i686_msvc"
574version = "0.52.6"
575source = "registry+https://github.com/rust-lang/crates.io-index"
576checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
578[[package]]
579name = "windows_x86_64_gnu"
580version = "0.52.6"
581source = "registry+https://github.com/rust-lang/crates.io-index"
582checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
584[[package]]
585name = "windows_x86_64_gnullvm"
586version = "0.52.6"
587source = "registry+https://github.com/rust-lang/crates.io-index"
588checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
590[[package]]
591name = "windows_x86_64_msvc"
592version = "0.52.6"
593source = "registry+https://github.com/rust-lang/crates.io-index"
594checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"

prototypes/p4-tui/Cargo.toml

Added
new file mode 100644

+8 / −0 text lines

1[package]
2name = "p4-tui"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7crossterm = "0.28"
8ratatui = "0.29"

prototypes/p4-tui/src/main.rs

Added
new file mode 100644

+82 / −0 text lines

1//! Prototype: ratatui + crossterm basic TUI with mouse support.
2
3use crossterm::{
4 event::{self, Event, KeyCode, MouseEventKind},
5 terminal::{disable_raw_mode, enable_raw_mode, EnterAlternateScreen, LeaveAlternateScreen},
6 execute,
7};
8use ratatui::{backend::CrosstermBackend, layout::{Constraint, Layout, Direction}, widgets::{Block, Borders, Paragraph, List, ListItem}, style::{Style, Color}, text::Span};
9use std::io;
11fn main() -> io::Result<()> {
12 enable_raw_mode()?;
13 let mut stdout = io::stdout();
14 execute!(stdout, EnterAlternateScreen)?;
15 let backend = CrosstermBackend::new(stdout);
16 let mut terminal = ratatui::Terminal::new(backend)?;
18 let mut counter: i32 = 0;
19 let mut clicks: Vec<String> = Vec::new();
20 let mut mouse_pos: (u16, u16) = (0, 0);
22 // Run for max 3 seconds or until 'q'
23 loop {
24 terminal.draw(|f| {
25 let chunks = Layout::default()
26 .direction(Direction::Vertical)
27 .constraints([Constraint::Min(3), Constraint::Length(5), Constraint::Min(1)].as_ref())
28 .split(f.area());
30 // Sticky header
31 let header = Paragraph::new(Span::styled(
32 format!("smith prototype TUI | counter={} | mouse=({},{}), clicks={}",
33 counter, mouse_pos.0, mouse_pos.1, clicks.len()),
34 Style::default().fg(Color::Green),
35 ))
36 .block(Block::default().borders(Borders::ALL).title("Header (sticky)"));
37 f.render_widget(header, chunks[0]);
39 // Click log
40 let items: Vec<ListItem> = clicks.iter()
41 .map(|c| ListItem::new(c.as_str()))
42 .collect();
43 let log = List::new(items)
44 .block(Block::default().borders(Borders::ALL).title("Mouse clicks"));
45 f.render_widget(log, chunks[1]);
47 // Footer
48 let footer = Paragraph::new("j/k=inc/dec q=quit click=log")
49 .block(Block::default().borders(Borders::ALL).title("Footer"));
50 f.render_widget(footer, chunks[2]);
51 })?;
53 if event::poll(std::time::Duration::from_millis(100))? {
54 if let Event::Key(key) = event::read()? {
55 match key.code {
56 KeyCode::Char('q') => break,
57 KeyCode::Char('j') => counter += 1,
58 KeyCode::Char('k') => counter -= 1,
59 _ => {}
60 }
61 } else if let Event::Mouse(mouse) = event::read()? {
62 mouse_pos = (mouse.column, mouse.row);
63 match mouse.kind {
64 MouseEventKind::Down(_) => {
65 clicks.push(format!("({},{}), mods={:?}", mouse.column, mouse.row, mouse.modifiers));
66 }
67 MouseEventKind::ScrollUp => counter += 1,
68 MouseEventKind::ScrollDown => counter -= 1,
69 _ => {}
70 }
71 }
72 } else {
73 break; // timeout
74 }
75 }
77 disable_raw_mode()?;
78 execute!(terminal.backend_mut(), LeaveAlternateScreen)?;
79 terminal.show_cursor()?;
80 println!("TUI test complete. Counter={}, clicks={}", counter, clicks.len());
81 Ok(())
82}

prototypes/p5-provider/Cargo.lock

Added
new file mode 100644

+282 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "async-trait"
7version = "0.1.89"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
10dependencies = [
11 "proc-macro2",
12 "quote",
13 "syn",
14]
16[[package]]
17name = "bitflags"
18version = "2.11.1"
19source = "registry+https://github.com/rust-lang/crates.io-index"
20checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
22[[package]]
23name = "bytes"
24version = "1.11.1"
25source = "registry+https://github.com/rust-lang/crates.io-index"
26checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
28[[package]]
29name = "cfg-if"
30version = "1.0.4"
31source = "registry+https://github.com/rust-lang/crates.io-index"
32checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
34[[package]]
35name = "errno"
36version = "0.3.14"
37source = "registry+https://github.com/rust-lang/crates.io-index"
38checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
39dependencies = [
40 "libc",
41 "windows-sys",
42]
44[[package]]
45name = "libc"
46version = "0.2.186"
47source = "registry+https://github.com/rust-lang/crates.io-index"
48checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
50[[package]]
51name = "lock_api"
52version = "0.4.14"
53source = "registry+https://github.com/rust-lang/crates.io-index"
54checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
55dependencies = [
56 "scopeguard",
57]
59[[package]]
60name = "mio"
61version = "1.2.0"
62source = "registry+https://github.com/rust-lang/crates.io-index"
63checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
64dependencies = [
65 "libc",
66 "wasi",
67 "windows-sys",
68]
70[[package]]
71name = "p5-provider"
72version = "0.1.0"
73dependencies = [
74 "async-trait",
75 "serde",
76 "thiserror",
77 "tokio",
78]
80[[package]]
81name = "parking_lot"
82version = "0.12.5"
83source = "registry+https://github.com/rust-lang/crates.io-index"
84checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
85dependencies = [
86 "lock_api",
87 "parking_lot_core",
88]
90[[package]]
91name = "parking_lot_core"
92version = "0.9.12"
93source = "registry+https://github.com/rust-lang/crates.io-index"
94checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
95dependencies = [
96 "cfg-if",
97 "libc",
98 "redox_syscall",
99 "smallvec",
100 "windows-link",
101]
103[[package]]
104name = "pin-project-lite"
105version = "0.2.17"
106source = "registry+https://github.com/rust-lang/crates.io-index"
107checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
109[[package]]
110name = "proc-macro2"
111version = "1.0.106"
112source = "registry+https://github.com/rust-lang/crates.io-index"
113checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
114dependencies = [
115 "unicode-ident",
116]
118[[package]]
119name = "quote"
120version = "1.0.45"
121source = "registry+https://github.com/rust-lang/crates.io-index"
122checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
123dependencies = [
124 "proc-macro2",
125]
127[[package]]
128name = "redox_syscall"
129version = "0.5.18"
130source = "registry+https://github.com/rust-lang/crates.io-index"
131checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
132dependencies = [
133 "bitflags",
134]
136[[package]]
137name = "scopeguard"
138version = "1.2.0"
139source = "registry+https://github.com/rust-lang/crates.io-index"
140checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
142[[package]]
143name = "serde"
144version = "1.0.228"
145source = "registry+https://github.com/rust-lang/crates.io-index"
146checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
147dependencies = [
148 "serde_core",
149 "serde_derive",
150]
152[[package]]
153name = "serde_core"
154version = "1.0.228"
155source = "registry+https://github.com/rust-lang/crates.io-index"
156checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
157dependencies = [
158 "serde_derive",
159]
161[[package]]
162name = "serde_derive"
163version = "1.0.228"
164source = "registry+https://github.com/rust-lang/crates.io-index"
165checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
166dependencies = [
167 "proc-macro2",
168 "quote",
169 "syn",
170]
172[[package]]
173name = "signal-hook-registry"
174version = "1.4.8"
175source = "registry+https://github.com/rust-lang/crates.io-index"
176checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
177dependencies = [
178 "errno",
179 "libc",
180]
182[[package]]
183name = "smallvec"
184version = "1.15.1"
185source = "registry+https://github.com/rust-lang/crates.io-index"
186checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
188[[package]]
189name = "socket2"
190version = "0.6.3"
191source = "registry+https://github.com/rust-lang/crates.io-index"
192checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
193dependencies = [
194 "libc",
195 "windows-sys",
196]
198[[package]]
199name = "syn"
200version = "2.0.117"
201source = "registry+https://github.com/rust-lang/crates.io-index"
202checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
203dependencies = [
204 "proc-macro2",
205 "quote",
206 "unicode-ident",
207]
209[[package]]
210name = "thiserror"
211version = "2.0.18"
212source = "registry+https://github.com/rust-lang/crates.io-index"
213checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
214dependencies = [
215 "thiserror-impl",
216]
218[[package]]
219name = "thiserror-impl"
220version = "2.0.18"
221source = "registry+https://github.com/rust-lang/crates.io-index"
222checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
223dependencies = [
224 "proc-macro2",
225 "quote",
226 "syn",
227]
229[[package]]
230name = "tokio"
231version = "1.52.3"
232source = "registry+https://github.com/rust-lang/crates.io-index"
233checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"
234dependencies = [
235 "bytes",
236 "libc",
237 "mio",
238 "parking_lot",
239 "pin-project-lite",
240 "signal-hook-registry",
241 "socket2",
242 "tokio-macros",
243 "windows-sys",
244]
246[[package]]
247name = "tokio-macros"
248version = "2.7.0"
249source = "registry+https://github.com/rust-lang/crates.io-index"
250checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
251dependencies = [
252 "proc-macro2",
253 "quote",
254 "syn",
255]
257[[package]]
258name = "unicode-ident"
259version = "1.0.24"
260source = "registry+https://github.com/rust-lang/crates.io-index"
261checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
263[[package]]
264name = "wasi"
265version = "0.11.1+wasi-snapshot-preview1"
266source = "registry+https://github.com/rust-lang/crates.io-index"
267checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
269[[package]]
270name = "windows-link"
271version = "0.2.1"
272source = "registry+https://github.com/rust-lang/crates.io-index"
273checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
275[[package]]
276name = "windows-sys"
277version = "0.61.2"
278source = "registry+https://github.com/rust-lang/crates.io-index"
279checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
280dependencies = [
281 "windows-link",
282]

prototypes/p5-provider/Cargo.toml

Added
new file mode 100644

+10 / −0 text lines

1[package]
2name = "p5-provider"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7tokio = { version = "1", features = ["full"] }
8serde = { version = "1", features = ["derive"] }
9thiserror = "2"
10async-trait = "0.1"

prototypes/p5-provider/src/main.rs

Added
new file mode 100644

+142 / −0 text lines

1//! Prototype: async Provider trait with streaming SSE parse + MuxProvider failover.
2
3// futures::StreamExt not needed for this prototype
4use serde::{Deserialize, Serialize};
5use std::sync::atomic::{AtomicUsize, Ordering};
6// tokio::sync::Mutex not needed
7use async_trait::async_trait;
8use thiserror::Error;
9
10#[derive(Debug, Clone, Serialize, Deserialize)]
11struct ChatMessage {
12 role: String,
13 content: String,
14}
16#[derive(Debug, Clone)]
17struct StreamChunk {
18 content: String,
19 done: bool,
20}
22#[derive(Error, Debug)]
23#[allow(dead_code)]
24enum ProviderError {
25 #[error("API error: {0}")]
26 Api(String),
27 #[error("All providers exhausted: {0}")]
28 Exhausted(String),
29 #[error("Timeout")]
30 Timeout,
31}
33/// Provider trait — the StreamFn abstraction from SM-007.
34#[async_trait]
35trait Provider: Send + Sync {
36 fn name(&self) -> &str;
37 async fn stream(&self, messages: &[ChatMessage]) -> Result<StreamChunk, ProviderError>;
38}
40/// Mock provider for testing.
41struct MockProvider {
42 name: String,
43 responses: Vec<String>,
44 call_count: AtomicUsize,
45}
47impl MockProvider {
48 fn new(name: &str, responses: Vec<&str>) -> Self {
49 Self {
50 name: name.into(),
51 responses: responses.into_iter().map(String::from).collect(),
52 call_count: AtomicUsize::new(0),
53 }
54 }
55}
57#[async_trait]
58impl Provider for MockProvider {
59 fn name(&self) -> &str { &self.name }
61 async fn stream(&self, _messages: &[ChatMessage]) -> Result<StreamChunk, ProviderError> {
62 let idx = self.call_count.fetch_add(1, Ordering::SeqCst);
63 if idx < self.responses.len() {
64 Ok(StreamChunk {
65 content: self.responses[idx].clone(),
66 done: idx == self.responses.len() - 1,
67 })
68 } else {
69 Err(ProviderError::Api(format!("{} exhausted", self.name)))
70 }
71 }
72}
74/// MuxProvider — failover with cycle detection.
75struct MuxProvider {
76 providers: Vec<Box<dyn Provider>>,
77 failover_counts: Vec<AtomicUsize>,
78 max_failovers: usize,
79}
81impl MuxProvider {
82 fn new(max_failovers: usize) -> Self {
83 Self { providers: vec![], failover_counts: vec![], max_failovers }
84 }
86 fn add(&mut self, p: Box<dyn Provider>) {
87 self.failover_counts.push(AtomicUsize::new(0));
88 self.providers.push(p);
89 }
91 async fn call(&self, messages: &[ChatMessage]) -> Result<StreamChunk, ProviderError> {
92 let mut errors = vec![];
93 for (i, provider) in self.providers.iter().enumerate() {
94 let fails = self.failover_counts[i].load(Ordering::SeqCst);
95 if fails >= self.max_failovers {
96 errors.push(format!("{}: circuit open ({} fails)", provider.name(), fails));
97 continue;
98 }
99 match provider.stream(messages).await {
100 Ok(chunk) => {
101 self.failover_counts[i].store(0, Ordering::SeqCst); // reset on success
102 return Ok(chunk);
103 }
104 Err(e) => {
105 self.failover_counts[i].fetch_add(1, Ordering::SeqCst);
106 errors.push(format!("{}: {}", provider.name(), e));
107 }
108 }
109 }
110 Err(ProviderError::Exhausted(errors.join("; ")))
111 }
112}
114#[tokio::main]
115async fn main() {
116 // Test basic provider
117 let mock = MockProvider::new("gpt-5.5", vec!["hello", "world"]);
118 let msgs = vec![ChatMessage { role: "user".into(), content: "hi".into() }];
119 let r1 = mock.stream(&msgs).await.unwrap();
120 assert_eq!(r1.content, "hello");
121 assert!(!r1.done);
122 println!("Mock provider OK: {}", r1.content);
124 // Test mux failover
125 let mut mux = MuxProvider::new(2);
126 mux.add(Box::new(MockProvider::new("bad-provider", vec![]))); // always fails
127 mux.add(Box::new(MockProvider::new("good-provider", vec!["recovered"])));
128 let r2 = mux.call(&msgs).await.unwrap();
129 assert_eq!(r2.content, "recovered");
130 println!("MuxProvider failover OK: {}", r2.content);
132 // Test circuit breaker
133 let mut mux2 = MuxProvider::new(1);
134 mux2.add(Box::new(MockProvider::new("flaky", vec![])));
135 mux2.add(Box::new(MockProvider::new("backup", vec!["ok"])));
136 let _ = mux2.call(&msgs).await; // flaky fails, backup succeeds
137 let _ = mux2.call(&msgs).await; // flaky fails again, backup succeeds (reset on prev fail)
138 // Now backup also exhausted? No — backup succeeded so its counter reset
139 println!("Circuit breaker test OK");
141 println!("All provider tests passed");
142}

prototypes/p6-config/Cargo.lock

Added
new file mode 100644

+199 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "cfg-if"
7version = "1.0.4"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
11[[package]]
12name = "ciborium"
13version = "0.2.2"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e"
16dependencies = [
17 "ciborium-io",
18 "ciborium-ll",
19 "serde",
20]
22[[package]]
23name = "ciborium-io"
24version = "0.2.2"
25source = "registry+https://github.com/rust-lang/crates.io-index"
26checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757"
28[[package]]
29name = "ciborium-ll"
30version = "0.2.2"
31source = "registry+https://github.com/rust-lang/crates.io-index"
32checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9"
33dependencies = [
34 "ciborium-io",
35 "half",
36]
38[[package]]
39name = "crunchy"
40version = "0.2.4"
41source = "registry+https://github.com/rust-lang/crates.io-index"
42checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
44[[package]]
45name = "half"
46version = "2.7.1"
47source = "registry+https://github.com/rust-lang/crates.io-index"
48checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
49dependencies = [
50 "cfg-if",
51 "crunchy",
52 "zerocopy",
53]
55[[package]]
56name = "itoa"
57version = "1.0.18"
58source = "registry+https://github.com/rust-lang/crates.io-index"
59checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
61[[package]]
62name = "memchr"
63version = "2.8.0"
64source = "registry+https://github.com/rust-lang/crates.io-index"
65checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
67[[package]]
68name = "p6-config"
69version = "0.1.0"
70dependencies = [
71 "ciborium",
72 "serde",
73 "serde_json",
74 "thiserror",
75]
77[[package]]
78name = "proc-macro2"
79version = "1.0.106"
80source = "registry+https://github.com/rust-lang/crates.io-index"
81checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
82dependencies = [
83 "unicode-ident",
84]
86[[package]]
87name = "quote"
88version = "1.0.45"
89source = "registry+https://github.com/rust-lang/crates.io-index"
90checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
91dependencies = [
92 "proc-macro2",
93]
95[[package]]
96name = "serde"
97version = "1.0.228"
98source = "registry+https://github.com/rust-lang/crates.io-index"
99checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
100dependencies = [
101 "serde_core",
102 "serde_derive",
103]
105[[package]]
106name = "serde_core"
107version = "1.0.228"
108source = "registry+https://github.com/rust-lang/crates.io-index"
109checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
110dependencies = [
111 "serde_derive",
112]
114[[package]]
115name = "serde_derive"
116version = "1.0.228"
117source = "registry+https://github.com/rust-lang/crates.io-index"
118checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
119dependencies = [
120 "proc-macro2",
121 "quote",
122 "syn",
123]
125[[package]]
126name = "serde_json"
127version = "1.0.150"
128source = "registry+https://github.com/rust-lang/crates.io-index"
129checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
130dependencies = [
131 "itoa",
132 "memchr",
133 "serde",
134 "serde_core",
135 "zmij",
136]
138[[package]]
139name = "syn"
140version = "2.0.117"
141source = "registry+https://github.com/rust-lang/crates.io-index"
142checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
143dependencies = [
144 "proc-macro2",
145 "quote",
146 "unicode-ident",
147]
149[[package]]
150name = "thiserror"
151version = "2.0.18"
152source = "registry+https://github.com/rust-lang/crates.io-index"
153checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
154dependencies = [
155 "thiserror-impl",
156]
158[[package]]
159name = "thiserror-impl"
160version = "2.0.18"
161source = "registry+https://github.com/rust-lang/crates.io-index"
162checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
163dependencies = [
164 "proc-macro2",
165 "quote",
166 "syn",
167]
169[[package]]
170name = "unicode-ident"
171version = "1.0.24"
172source = "registry+https://github.com/rust-lang/crates.io-index"
173checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
175[[package]]
176name = "zerocopy"
177version = "0.8.48"
178source = "registry+https://github.com/rust-lang/crates.io-index"
179checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
180dependencies = [
181 "zerocopy-derive",
182]
184[[package]]
185name = "zerocopy-derive"
186version = "0.8.48"
187source = "registry+https://github.com/rust-lang/crates.io-index"
188checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
189dependencies = [
190 "proc-macro2",
191 "quote",
192 "syn",
193]
195[[package]]
196name = "zmij"
197version = "1.0.21"
198source = "registry+https://github.com/rust-lang/crates.io-index"
199checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"

prototypes/p6-config/Cargo.toml

Added
new file mode 100644

+10 / −0 text lines

1[package]
2name = "p6-config"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7serde = { version = "1", features = ["derive"] }
8serde_json = "1"
9ciborium = "0.2"
10thiserror = "2"

prototypes/p6-config/src/main.rs

Added
new file mode 100644

+58 / −0 text lines

1//! Prototype: Config parsing + CBOR roundtrip (SM-005 config types).
2#![allow(dead_code)]
3
4use serde::{Deserialize, Serialize};
5
6/// Config structure from SM-005 spec.
7#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
8struct SmithConfig {
9 core: CoreConfig,
10 ai: AiConfig,
11 tui: TuiConfig,
12}
14#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
15struct CoreConfig {
16 editor: Option<String>,
17 session_dir: Option<String>,
18}
20#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
21struct AiConfig {
22 default_provider: String,
23 max_tokens: u32,
24 temperature: f32,
25}
27#[derive(Debug, Serialize, Deserialize, Clone, PartialEq)]
28struct TuiConfig {
29 theme: Option<String>,
30 mouse: bool,
31}
33fn main() {
34 // Test config structure with hardcoded JSON (TOML parsing is a separate concern)
35 let json_str = r#"{"core":{"editor":"vim","session_dir":"~/.local/share/smith/sessions"},"ai":{"default_provider":"openai","max_tokens":4096,"temperature":0.7},"tui":{"mouse":true,"theme":"default"}}"#;
36 let config: SmithConfig = serde_json::from_str(json_str).expect("failed to parse config");
38 println!("Config parsed OK:");
39 println!(" core.editor = {:?}", config.core.editor);
40 println!(" ai.default_provider = {}", config.ai.default_provider);
41 println!(" ai.max_tokens = {}", config.ai.max_tokens);
42 println!(" ai.temperature = {}", config.ai.temperature);
43 println!(" tui.mouse = {}", config.tui.mouse);
44 println!(" tui.theme = {:?}", config.tui.theme);
46 assert_eq!(config.ai.default_provider, "openai");
47 assert_eq!(config.ai.max_tokens, 4096);
48 assert!(config.tui.mouse);
50 // Test CBOR serialization of config (session storage format)
51 let mut cbor_buf = Vec::new();
52 ciborium::ser::into_writer(&config, &mut cbor_buf).expect("cbor encode failed");
53 let decoded: SmithConfig = ciborium::de::from_reader(&cbor_buf[..]).expect("cbor decode failed");
54 assert_eq!(decoded, config);
55 println!("Config CBOR roundtrip OK: {} bytes", cbor_buf.len());
57 println!("All config tests passed");
58}

prototypes/p7-zstd/Cargo.lock

Added
new file mode 100644

+254 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "cc"
7version = "1.2.62"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
10dependencies = [
11 "find-msvc-tools",
12 "jobserver",
13 "libc",
14 "shlex",
15]
17[[package]]
18name = "cfg-if"
19version = "1.0.4"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
23[[package]]
24name = "ciborium"
25version = "0.2.2"
26source = "registry+https://github.com/rust-lang/crates.io-index"
27checksum = "42e69ffd6f0917f5c029256a24d0161db17cea3997d185db0d35926308770f0e"
28dependencies = [
29 "ciborium-io",
30 "ciborium-ll",
31 "serde",
32]
34[[package]]
35name = "ciborium-io"
36version = "0.2.2"
37source = "registry+https://github.com/rust-lang/crates.io-index"
38checksum = "05afea1e0a06c9be33d539b876f1ce3692f4afea2cb41f740e7743225ed1c757"
40[[package]]
41name = "ciborium-ll"
42version = "0.2.2"
43source = "registry+https://github.com/rust-lang/crates.io-index"
44checksum = "57663b653d948a338bfb3eeba9bb2fd5fcfaecb9e199e87e1eda4d9e8b240fd9"
45dependencies = [
46 "ciborium-io",
47 "half",
48]
50[[package]]
51name = "crunchy"
52version = "0.2.4"
53source = "registry+https://github.com/rust-lang/crates.io-index"
54checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
56[[package]]
57name = "find-msvc-tools"
58version = "0.1.9"
59source = "registry+https://github.com/rust-lang/crates.io-index"
60checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
62[[package]]
63name = "getrandom"
64version = "0.3.4"
65source = "registry+https://github.com/rust-lang/crates.io-index"
66checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
67dependencies = [
68 "cfg-if",
69 "libc",
70 "r-efi",
71 "wasip2",
72]
74[[package]]
75name = "half"
76version = "2.7.1"
77source = "registry+https://github.com/rust-lang/crates.io-index"
78checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
79dependencies = [
80 "cfg-if",
81 "crunchy",
82 "zerocopy",
83]
85[[package]]
86name = "jobserver"
87version = "0.1.34"
88source = "registry+https://github.com/rust-lang/crates.io-index"
89checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
90dependencies = [
91 "getrandom",
92 "libc",
93]
95[[package]]
96name = "libc"
97version = "0.2.186"
98source = "registry+https://github.com/rust-lang/crates.io-index"
99checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
101[[package]]
102name = "p7-zstd"
103version = "0.1.0"
104dependencies = [
105 "ciborium",
106 "serde",
107 "zstd",
108]
110[[package]]
111name = "pkg-config"
112version = "0.3.33"
113source = "registry+https://github.com/rust-lang/crates.io-index"
114checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
116[[package]]
117name = "proc-macro2"
118version = "1.0.106"
119source = "registry+https://github.com/rust-lang/crates.io-index"
120checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
121dependencies = [
122 "unicode-ident",
123]
125[[package]]
126name = "quote"
127version = "1.0.45"
128source = "registry+https://github.com/rust-lang/crates.io-index"
129checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
130dependencies = [
131 "proc-macro2",
132]
134[[package]]
135name = "r-efi"
136version = "5.3.0"
137source = "registry+https://github.com/rust-lang/crates.io-index"
138checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
140[[package]]
141name = "serde"
142version = "1.0.228"
143source = "registry+https://github.com/rust-lang/crates.io-index"
144checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
145dependencies = [
146 "serde_core",
147 "serde_derive",
148]
150[[package]]
151name = "serde_core"
152version = "1.0.228"
153source = "registry+https://github.com/rust-lang/crates.io-index"
154checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
155dependencies = [
156 "serde_derive",
157]
159[[package]]
160name = "serde_derive"
161version = "1.0.228"
162source = "registry+https://github.com/rust-lang/crates.io-index"
163checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
164dependencies = [
165 "proc-macro2",
166 "quote",
167 "syn",
168]
170[[package]]
171name = "shlex"
172version = "1.3.0"
173source = "registry+https://github.com/rust-lang/crates.io-index"
174checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
176[[package]]
177name = "syn"
178version = "2.0.117"
179source = "registry+https://github.com/rust-lang/crates.io-index"
180checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
181dependencies = [
182 "proc-macro2",
183 "quote",
184 "unicode-ident",
185]
187[[package]]
188name = "unicode-ident"
189version = "1.0.24"
190source = "registry+https://github.com/rust-lang/crates.io-index"
191checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
193[[package]]
194name = "wasip2"
195version = "1.0.3+wasi-0.2.9"
196source = "registry+https://github.com/rust-lang/crates.io-index"
197checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
198dependencies = [
199 "wit-bindgen",
200]
202[[package]]
203name = "wit-bindgen"
204version = "0.57.1"
205source = "registry+https://github.com/rust-lang/crates.io-index"
206checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
208[[package]]
209name = "zerocopy"
210version = "0.8.48"
211source = "registry+https://github.com/rust-lang/crates.io-index"
212checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
213dependencies = [
214 "zerocopy-derive",
215]
217[[package]]
218name = "zerocopy-derive"
219version = "0.8.48"
220source = "registry+https://github.com/rust-lang/crates.io-index"
221checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
222dependencies = [
223 "proc-macro2",
224 "quote",
225 "syn",
226]
228[[package]]
229name = "zstd"
230version = "0.13.3"
231source = "registry+https://github.com/rust-lang/crates.io-index"
232checksum = "e91ee311a569c327171651566e07972200e76fcfe2242a4fa446149a3881c08a"
233dependencies = [
234 "zstd-safe",
235]
237[[package]]
238name = "zstd-safe"
239version = "7.2.4"
240source = "registry+https://github.com/rust-lang/crates.io-index"
241checksum = "8f49c4d5f0abb602a93fb8736af2a4f4dd9512e36f7f570d66e65ff867ed3b9d"
242dependencies = [
243 "zstd-sys",
244]
246[[package]]
247name = "zstd-sys"
248version = "2.0.16+zstd.1.5.7"
249source = "registry+https://github.com/rust-lang/crates.io-index"
250checksum = "91e19ebc2adc8f83e43039e79776e3fda8ca919132d68a1fed6a5faca2683748"
251dependencies = [
252 "cc",
253 "pkg-config",
254]

prototypes/p7-zstd/Cargo.toml

Added
new file mode 100644

+9 / −0 text lines

1[package]
2name = "p7-zstd"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7ciborium = "0.2"
8serde = { version = "1", features = ["derive"] }
9zstd = "0.13"

prototypes/p7-zstd/src/main.rs

Added
new file mode 100644

+41 / −0 text lines

1//! Prototype: zstd compressed trace codec.
2#![allow(dead_code)]
3
4use serde::{Deserialize, Serialize};
5
6#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
7struct TraceEntry {
8 timestamp: u64,
9 event_type: u8,
10 data: Vec<u8>,
11}
13fn main() {
14 let entries: Vec<TraceEntry> = (0..100).map(|i| TraceEntry {
15 timestamp: 1715000000 + i as u64,
16 event_type: if i % 3 == 0 { 0 } else { 1 },
17 data: format!("event {} padding for compression test..........", i).into_bytes(),
18 }).collect();
20 let mut cbor = Vec::new();
21 for e in &entries { ciborium::ser::into_writer(e, &mut cbor).unwrap(); }
22 eprintln!("CBOR: {} bytes", cbor.len());
24 let compressed = zstd::encode_all(&cbor[..], 3).expect("compress");
25 eprintln!("ZSTD: {} bytes ({:.1}%)", compressed.len(), compressed.len() as f64 / cbor.len() as f64 * 100.0);
27 let decomp = zstd::decode_all(&compressed[..]).expect("decompress");
28 assert_eq!(decomp, cbor);
29 eprintln!("ZSTD roundtrip OK");
31 // Decode all entries from concatenated CBOR
32 let mut cursor = &decomp[..];
33 let mut count = 0u32;
34 while !cursor.is_empty() {
35 let entry: TraceEntry = ciborium::de::from_reader(&mut cursor).expect("decode");
36 assert_eq!(entry, entries[count as usize]);
37 count += 1;
38 }
39 assert_eq!(count, 100);
40 eprintln!("Trace codec OK: {} entries", count);
41}

prototypes/p8-termcap/Cargo.lock

Added
new file mode 100644

+300 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "bitflags"
7version = "2.11.1"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
11[[package]]
12name = "cfg-if"
13version = "1.0.4"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
17[[package]]
18name = "crossterm"
19version = "0.28.1"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6"
22dependencies = [
23 "bitflags",
24 "crossterm_winapi",
25 "mio",
26 "parking_lot",
27 "rustix",
28 "signal-hook",
29 "signal-hook-mio",
30 "winapi",
31]
33[[package]]
34name = "crossterm_winapi"
35version = "0.9.1"
36source = "registry+https://github.com/rust-lang/crates.io-index"
37checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
38dependencies = [
39 "winapi",
40]
42[[package]]
43name = "errno"
44version = "0.3.14"
45source = "registry+https://github.com/rust-lang/crates.io-index"
46checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
47dependencies = [
48 "libc",
49 "windows-sys 0.61.2",
50]
52[[package]]
53name = "libc"
54version = "0.2.186"
55source = "registry+https://github.com/rust-lang/crates.io-index"
56checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
58[[package]]
59name = "linux-raw-sys"
60version = "0.4.15"
61source = "registry+https://github.com/rust-lang/crates.io-index"
62checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
64[[package]]
65name = "lock_api"
66version = "0.4.14"
67source = "registry+https://github.com/rust-lang/crates.io-index"
68checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
69dependencies = [
70 "scopeguard",
71]
73[[package]]
74name = "log"
75version = "0.4.29"
76source = "registry+https://github.com/rust-lang/crates.io-index"
77checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
79[[package]]
80name = "mio"
81version = "1.2.0"
82source = "registry+https://github.com/rust-lang/crates.io-index"
83checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
84dependencies = [
85 "libc",
86 "log",
87 "wasi",
88 "windows-sys 0.61.2",
89]
91[[package]]
92name = "p8-termcap"
93version = "0.1.0"
94dependencies = [
95 "crossterm",
96]
98[[package]]
99name = "parking_lot"
100version = "0.12.5"
101source = "registry+https://github.com/rust-lang/crates.io-index"
102checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
103dependencies = [
104 "lock_api",
105 "parking_lot_core",
106]
108[[package]]
109name = "parking_lot_core"
110version = "0.9.12"
111source = "registry+https://github.com/rust-lang/crates.io-index"
112checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
113dependencies = [
114 "cfg-if",
115 "libc",
116 "redox_syscall",
117 "smallvec",
118 "windows-link",
119]
121[[package]]
122name = "redox_syscall"
123version = "0.5.18"
124source = "registry+https://github.com/rust-lang/crates.io-index"
125checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
126dependencies = [
127 "bitflags",
128]
130[[package]]
131name = "rustix"
132version = "0.38.44"
133source = "registry+https://github.com/rust-lang/crates.io-index"
134checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
135dependencies = [
136 "bitflags",
137 "errno",
138 "libc",
139 "linux-raw-sys",
140 "windows-sys 0.59.0",
141]
143[[package]]
144name = "scopeguard"
145version = "1.2.0"
146source = "registry+https://github.com/rust-lang/crates.io-index"
147checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
149[[package]]
150name = "signal-hook"
151version = "0.3.18"
152source = "registry+https://github.com/rust-lang/crates.io-index"
153checksum = "d881a16cf4426aa584979d30bd82cb33429027e42122b169753d6ef1085ed6e2"
154dependencies = [
155 "libc",
156 "signal-hook-registry",
157]
159[[package]]
160name = "signal-hook-mio"
161version = "0.2.5"
162source = "registry+https://github.com/rust-lang/crates.io-index"
163checksum = "b75a19a7a740b25bc7944bdee6172368f988763b744e3d4dfe753f6b4ece40cc"
164dependencies = [
165 "libc",
166 "mio",
167 "signal-hook",
168]
170[[package]]
171name = "signal-hook-registry"
172version = "1.4.8"
173source = "registry+https://github.com/rust-lang/crates.io-index"
174checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
175dependencies = [
176 "errno",
177 "libc",
178]
180[[package]]
181name = "smallvec"
182version = "1.15.1"
183source = "registry+https://github.com/rust-lang/crates.io-index"
184checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
186[[package]]
187name = "wasi"
188version = "0.11.1+wasi-snapshot-preview1"
189source = "registry+https://github.com/rust-lang/crates.io-index"
190checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
192[[package]]
193name = "winapi"
194version = "0.3.9"
195source = "registry+https://github.com/rust-lang/crates.io-index"
196checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
197dependencies = [
198 "winapi-i686-pc-windows-gnu",
199 "winapi-x86_64-pc-windows-gnu",
200]
202[[package]]
203name = "winapi-i686-pc-windows-gnu"
204version = "0.4.0"
205source = "registry+https://github.com/rust-lang/crates.io-index"
206checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
208[[package]]
209name = "winapi-x86_64-pc-windows-gnu"
210version = "0.4.0"
211source = "registry+https://github.com/rust-lang/crates.io-index"
212checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
214[[package]]
215name = "windows-link"
216version = "0.2.1"
217source = "registry+https://github.com/rust-lang/crates.io-index"
218checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
220[[package]]
221name = "windows-sys"
222version = "0.59.0"
223source = "registry+https://github.com/rust-lang/crates.io-index"
224checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
225dependencies = [
226 "windows-targets",
227]
229[[package]]
230name = "windows-sys"
231version = "0.61.2"
232source = "registry+https://github.com/rust-lang/crates.io-index"
233checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
234dependencies = [
235 "windows-link",
236]
238[[package]]
239name = "windows-targets"
240version = "0.52.6"
241source = "registry+https://github.com/rust-lang/crates.io-index"
242checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
243dependencies = [
244 "windows_aarch64_gnullvm",
245 "windows_aarch64_msvc",
246 "windows_i686_gnu",
247 "windows_i686_gnullvm",
248 "windows_i686_msvc",
249 "windows_x86_64_gnu",
250 "windows_x86_64_gnullvm",
251 "windows_x86_64_msvc",
252]
254[[package]]
255name = "windows_aarch64_gnullvm"
256version = "0.52.6"
257source = "registry+https://github.com/rust-lang/crates.io-index"
258checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
260[[package]]
261name = "windows_aarch64_msvc"
262version = "0.52.6"
263source = "registry+https://github.com/rust-lang/crates.io-index"
264checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
266[[package]]
267name = "windows_i686_gnu"
268version = "0.52.6"
269source = "registry+https://github.com/rust-lang/crates.io-index"
270checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
272[[package]]
273name = "windows_i686_gnullvm"
274version = "0.52.6"
275source = "registry+https://github.com/rust-lang/crates.io-index"
276checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
278[[package]]
279name = "windows_i686_msvc"
280version = "0.52.6"
281source = "registry+https://github.com/rust-lang/crates.io-index"
282checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
284[[package]]
285name = "windows_x86_64_gnu"
286version = "0.52.6"
287source = "registry+https://github.com/rust-lang/crates.io-index"
288checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
290[[package]]
291name = "windows_x86_64_gnullvm"
292version = "0.52.6"
293source = "registry+https://github.com/rust-lang/crates.io-index"
294checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
296[[package]]
297name = "windows_x86_64_msvc"
298version = "0.52.6"
299source = "registry+https://github.com/rust-lang/crates.io-index"
300checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"

prototypes/p8-termcap/Cargo.toml

Added
new file mode 100644

+7 / −0 text lines

1[package]
2name = "p8-termcap"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7crossterm = "0.28"

prototypes/p8-termcap/src/main.rs

Added
new file mode 100644

+15 / −0 text lines

1//! Prototype: Terminal capability detection.
2#![allow(dead_code)]
3
4unsafe extern "C" { fn isatty(fd: i32) -> i32; }
5
6fn main() {
7 let is_term = unsafe { isatty(1) != 0 };
8 eprintln!("TTY: {}", is_term);
9 eprintln!("TERM={:?}", std::env::var("TERM"));
10 eprintln!("COLORTERM={:?}", std::env::var("COLORTERM"));
11 let ct = std::env::var("COLORTERM").unwrap_or_default();
12 eprintln!("Truecolor: {}", ct.contains("truecolor") || ct.contains("24bit"));
13 eprintln!("Size: {:?}", crossterm::terminal::size().ok());
14 eprintln!("Termcap OK");
15}No final newline

prototypes/p9-sse/Cargo.lock

Added
new file mode 100644

+1773 / −0 text lines

1# This file is automatically @generated by Cargo.
2# It is not intended for manual editing.
3version = 4
4
5[[package]]
6name = "anyhow"
7version = "1.0.102"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
11[[package]]
12name = "atomic-waker"
13version = "1.1.2"
14source = "registry+https://github.com/rust-lang/crates.io-index"
15checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
17[[package]]
18name = "base64"
19version = "0.22.1"
20source = "registry+https://github.com/rust-lang/crates.io-index"
21checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
23[[package]]
24name = "bitflags"
25version = "2.11.1"
26source = "registry+https://github.com/rust-lang/crates.io-index"
27checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
29[[package]]
30name = "bumpalo"
31version = "3.20.3"
32source = "registry+https://github.com/rust-lang/crates.io-index"
33checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
35[[package]]
36name = "bytes"
37version = "1.11.1"
38source = "registry+https://github.com/rust-lang/crates.io-index"
39checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
41[[package]]
42name = "cc"
43version = "1.2.62"
44source = "registry+https://github.com/rust-lang/crates.io-index"
45checksum = "a1dce859f0832a7d088c4f1119888ab94ef4b5d6795d1ce05afb7fe159d79f98"
46dependencies = [
47 "find-msvc-tools",
48 "shlex",
49]
51[[package]]
52name = "cfg-if"
53version = "1.0.4"
54source = "registry+https://github.com/rust-lang/crates.io-index"
55checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
57[[package]]
58name = "core-foundation"
59version = "0.9.4"
60source = "registry+https://github.com/rust-lang/crates.io-index"
61checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
62dependencies = [
63 "core-foundation-sys",
64 "libc",
65]
67[[package]]
68name = "core-foundation"
69version = "0.10.1"
70source = "registry+https://github.com/rust-lang/crates.io-index"
71checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
72dependencies = [
73 "core-foundation-sys",
74 "libc",
75]
77[[package]]
78name = "core-foundation-sys"
79version = "0.8.7"
80source = "registry+https://github.com/rust-lang/crates.io-index"
81checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
83[[package]]
84name = "displaydoc"
85version = "0.2.5"
86source = "registry+https://github.com/rust-lang/crates.io-index"
87checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
88dependencies = [
89 "proc-macro2",
90 "quote",
91 "syn",
92]
94[[package]]
95name = "encoding_rs"
96version = "0.8.35"
97source = "registry+https://github.com/rust-lang/crates.io-index"
98checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
99dependencies = [
100 "cfg-if",
101]
103[[package]]
104name = "equivalent"
105version = "1.0.2"
106source = "registry+https://github.com/rust-lang/crates.io-index"
107checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
109[[package]]
110name = "errno"
111version = "0.3.14"
112source = "registry+https://github.com/rust-lang/crates.io-index"
113checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
114dependencies = [
115 "libc",
116 "windows-sys 0.61.2",
117]
119[[package]]
120name = "fastrand"
121version = "2.4.1"
122source = "registry+https://github.com/rust-lang/crates.io-index"
123checksum = "9f1f227452a390804cdb637b74a86990f2a7d7ba4b7d5693aac9b4dd6defd8d6"
125[[package]]
126name = "find-msvc-tools"
127version = "0.1.9"
128source = "registry+https://github.com/rust-lang/crates.io-index"
129checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
131[[package]]
132name = "fnv"
133version = "1.0.7"
134source = "registry+https://github.com/rust-lang/crates.io-index"
135checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
137[[package]]
138name = "foldhash"
139version = "0.1.5"
140source = "registry+https://github.com/rust-lang/crates.io-index"
141checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
143[[package]]
144name = "foreign-types"
145version = "0.3.2"
146source = "registry+https://github.com/rust-lang/crates.io-index"
147checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
148dependencies = [
149 "foreign-types-shared",
150]
152[[package]]
153name = "foreign-types-shared"
154version = "0.1.1"
155source = "registry+https://github.com/rust-lang/crates.io-index"
156checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
158[[package]]
159name = "form_urlencoded"
160version = "1.2.2"
161source = "registry+https://github.com/rust-lang/crates.io-index"
162checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
163dependencies = [
164 "percent-encoding",
165]
167[[package]]
168name = "futures"
169version = "0.3.32"
170source = "registry+https://github.com/rust-lang/crates.io-index"
171checksum = "8b147ee9d1f6d097cef9ce628cd2ee62288d963e16fb287bd9286455b241382d"
172dependencies = [
173 "futures-channel",
174 "futures-core",
175 "futures-executor",
176 "futures-io",
177 "futures-sink",
178 "futures-task",
179 "futures-util",
180]
182[[package]]
183name = "futures-channel"
184version = "0.3.32"
185source = "registry+https://github.com/rust-lang/crates.io-index"
186checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"
187dependencies = [
188 "futures-core",
189 "futures-sink",
190]
192[[package]]
193name = "futures-core"
194version = "0.3.32"
195source = "registry+https://github.com/rust-lang/crates.io-index"
196checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
198[[package]]
199name = "futures-executor"
200version = "0.3.32"
201source = "registry+https://github.com/rust-lang/crates.io-index"
202checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d"
203dependencies = [
204 "futures-core",
205 "futures-task",
206 "futures-util",
207]
209[[package]]
210name = "futures-io"
211version = "0.3.32"
212source = "registry+https://github.com/rust-lang/crates.io-index"
213checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718"
215[[package]]
216name = "futures-macro"
217version = "0.3.32"
218source = "registry+https://github.com/rust-lang/crates.io-index"
219checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"
220dependencies = [
221 "proc-macro2",
222 "quote",
223 "syn",
224]
226[[package]]
227name = "futures-sink"
228version = "0.3.32"
229source = "registry+https://github.com/rust-lang/crates.io-index"
230checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893"
232[[package]]
233name = "futures-task"
234version = "0.3.32"
235source = "registry+https://github.com/rust-lang/crates.io-index"
236checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
238[[package]]
239name = "futures-util"
240version = "0.3.32"
241source = "registry+https://github.com/rust-lang/crates.io-index"
242checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
243dependencies = [
244 "futures-channel",
245 "futures-core",
246 "futures-io",
247 "futures-macro",
248 "futures-sink",
249 "futures-task",
250 "memchr",
251 "pin-project-lite",
252 "slab",
253]
255[[package]]
256name = "getrandom"
257version = "0.2.17"
258source = "registry+https://github.com/rust-lang/crates.io-index"
259checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
260dependencies = [
261 "cfg-if",
262 "libc",
263 "wasi",
264]
266[[package]]
267name = "getrandom"
268version = "0.4.2"
269source = "registry+https://github.com/rust-lang/crates.io-index"
270checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"
271dependencies = [
272 "cfg-if",
273 "libc",
274 "r-efi",
275 "wasip2",
276 "wasip3",
277]
279[[package]]
280name = "h2"
281version = "0.4.14"
282source = "registry+https://github.com/rust-lang/crates.io-index"
283checksum = "171fefbc92fe4a4de27e0698d6a5b392d6a0e333506bc49133760b3bcf948733"
284dependencies = [
285 "atomic-waker",
286 "bytes",
287 "fnv",
288 "futures-core",
289 "futures-sink",
290 "http",
291 "indexmap",
292 "slab",
293 "tokio",
294 "tokio-util",
295 "tracing",
296]
298[[package]]
299name = "hashbrown"
300version = "0.15.5"
301source = "registry+https://github.com/rust-lang/crates.io-index"
302checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
303dependencies = [
304 "foldhash",
305]
307[[package]]
308name = "hashbrown"
309version = "0.17.1"
310source = "registry+https://github.com/rust-lang/crates.io-index"
311checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
313[[package]]
314name = "heck"
315version = "0.5.0"
316source = "registry+https://github.com/rust-lang/crates.io-index"
317checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
319[[package]]
320name = "http"
321version = "1.4.0"
322source = "registry+https://github.com/rust-lang/crates.io-index"
323checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a"
324dependencies = [
325 "bytes",
326 "itoa",
327]
329[[package]]
330name = "http-body"
331version = "1.0.1"
332source = "registry+https://github.com/rust-lang/crates.io-index"
333checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
334dependencies = [
335 "bytes",
336 "http",
337]
339[[package]]
340name = "http-body-util"
341version = "0.1.3"
342source = "registry+https://github.com/rust-lang/crates.io-index"
343checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
344dependencies = [
345 "bytes",
346 "futures-core",
347 "http",
348 "http-body",
349 "pin-project-lite",
350]
352[[package]]
353name = "httparse"
354version = "1.10.1"
355source = "registry+https://github.com/rust-lang/crates.io-index"
356checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
358[[package]]
359name = "hyper"
360version = "1.9.0"
361source = "registry+https://github.com/rust-lang/crates.io-index"
362checksum = "6299f016b246a94207e63da54dbe807655bf9e00044f73ded42c3ac5305fbcca"
363dependencies = [
364 "atomic-waker",
365 "bytes",
366 "futures-channel",
367 "futures-core",
368 "h2",
369 "http",
370 "http-body",
371 "httparse",
372 "itoa",
373 "pin-project-lite",
374 "smallvec",
375 "tokio",
376 "want",
377]
379[[package]]
380name = "hyper-rustls"
381version = "0.27.9"
382source = "registry+https://github.com/rust-lang/crates.io-index"
383checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
384dependencies = [
385 "http",
386 "hyper",
387 "hyper-util",
388 "rustls",
389 "tokio",
390 "tokio-rustls",
391 "tower-service",
392]
394[[package]]
395name = "hyper-tls"
396version = "0.6.0"
397source = "registry+https://github.com/rust-lang/crates.io-index"
398checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
399dependencies = [
400 "bytes",
401 "http-body-util",
402 "hyper",
403 "hyper-util",
404 "native-tls",
405 "tokio",
406 "tokio-native-tls",
407 "tower-service",
408]
410[[package]]
411name = "hyper-util"
412version = "0.1.20"
413source = "registry+https://github.com/rust-lang/crates.io-index"
414checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
415dependencies = [
416 "base64",
417 "bytes",
418 "futures-channel",
419 "futures-util",
420 "http",
421 "http-body",
422 "hyper",
423 "ipnet",
424 "libc",
425 "percent-encoding",
426 "pin-project-lite",
427 "socket2",
428 "system-configuration",
429 "tokio",
430 "tower-service",
431 "tracing",
432 "windows-registry",
433]
435[[package]]
436name = "icu_collections"
437version = "2.2.0"
438source = "registry+https://github.com/rust-lang/crates.io-index"
439checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
440dependencies = [
441 "displaydoc",
442 "potential_utf",
443 "utf8_iter",
444 "yoke",
445 "zerofrom",
446 "zerovec",
447]
449[[package]]
450name = "icu_locale_core"
451version = "2.2.0"
452source = "registry+https://github.com/rust-lang/crates.io-index"
453checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
454dependencies = [
455 "displaydoc",
456 "litemap",
457 "tinystr",
458 "writeable",
459 "zerovec",
460]
462[[package]]
463name = "icu_normalizer"
464version = "2.2.0"
465source = "registry+https://github.com/rust-lang/crates.io-index"
466checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
467dependencies = [
468 "icu_collections",
469 "icu_normalizer_data",
470 "icu_properties",
471 "icu_provider",
472 "smallvec",
473 "zerovec",
474]
476[[package]]
477name = "icu_normalizer_data"
478version = "2.2.0"
479source = "registry+https://github.com/rust-lang/crates.io-index"
480checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
482[[package]]
483name = "icu_properties"
484version = "2.2.0"
485source = "registry+https://github.com/rust-lang/crates.io-index"
486checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
487dependencies = [
488 "icu_collections",
489 "icu_locale_core",
490 "icu_properties_data",
491 "icu_provider",
492 "zerotrie",
493 "zerovec",
494]
496[[package]]
497name = "icu_properties_data"
498version = "2.2.0"
499source = "registry+https://github.com/rust-lang/crates.io-index"
500checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
502[[package]]
503name = "icu_provider"
504version = "2.2.0"
505source = "registry+https://github.com/rust-lang/crates.io-index"
506checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
507dependencies = [
508 "displaydoc",
509 "icu_locale_core",
510 "writeable",
511 "yoke",
512 "zerofrom",
513 "zerotrie",
514 "zerovec",
515]
517[[package]]
518name = "id-arena"
519version = "2.3.0"
520source = "registry+https://github.com/rust-lang/crates.io-index"
521checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
523[[package]]
524name = "idna"
525version = "1.1.0"
526source = "registry+https://github.com/rust-lang/crates.io-index"
527checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
528dependencies = [
529 "idna_adapter",
530 "smallvec",
531 "utf8_iter",
532]
534[[package]]
535name = "idna_adapter"
536version = "1.2.2"
537source = "registry+https://github.com/rust-lang/crates.io-index"
538checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
539dependencies = [
540 "icu_normalizer",
541 "icu_properties",
542]
544[[package]]
545name = "indexmap"
546version = "2.14.0"
547source = "registry+https://github.com/rust-lang/crates.io-index"
548checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
549dependencies = [
550 "equivalent",
551 "hashbrown 0.17.1",
552 "serde",
553 "serde_core",
554]
556[[package]]
557name = "ipnet"
558version = "2.12.0"
559source = "registry+https://github.com/rust-lang/crates.io-index"
560checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2"
562[[package]]
563name = "itoa"
564version = "1.0.18"
565source = "registry+https://github.com/rust-lang/crates.io-index"
566checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
568[[package]]
569name = "js-sys"
570version = "0.3.98"
571source = "registry+https://github.com/rust-lang/crates.io-index"
572checksum = "67df7112613f8bfd9150013a0314e196f4800d3201ae742489d999db2f979f08"
573dependencies = [
574 "cfg-if",
575 "futures-util",
576 "once_cell",
577 "wasm-bindgen",
578]
580[[package]]
581name = "leb128fmt"
582version = "0.1.0"
583source = "registry+https://github.com/rust-lang/crates.io-index"
584checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
586[[package]]
587name = "libc"
588version = "0.2.186"
589source = "registry+https://github.com/rust-lang/crates.io-index"
590checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
592[[package]]
593name = "linux-raw-sys"
594version = "0.12.1"
595source = "registry+https://github.com/rust-lang/crates.io-index"
596checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
598[[package]]
599name = "litemap"
600version = "0.8.2"
601source = "registry+https://github.com/rust-lang/crates.io-index"
602checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
604[[package]]
605name = "lock_api"
606version = "0.4.14"
607source = "registry+https://github.com/rust-lang/crates.io-index"
608checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
609dependencies = [
610 "scopeguard",
611]
613[[package]]
614name = "log"
615version = "0.4.29"
616source = "registry+https://github.com/rust-lang/crates.io-index"
617checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
619[[package]]
620name = "memchr"
621version = "2.8.0"
622source = "registry+https://github.com/rust-lang/crates.io-index"
623checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
625[[package]]
626name = "mime"
627version = "0.3.17"
628source = "registry+https://github.com/rust-lang/crates.io-index"
629checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
631[[package]]
632name = "mio"
633version = "1.2.0"
634source = "registry+https://github.com/rust-lang/crates.io-index"
635checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
636dependencies = [
637 "libc",
638 "wasi",
639 "windows-sys 0.61.2",
640]
642[[package]]
643name = "native-tls"
644version = "0.2.18"
645source = "registry+https://github.com/rust-lang/crates.io-index"
646checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2"
647dependencies = [
648 "libc",
649 "log",
650 "openssl",
651 "openssl-probe",
652 "openssl-sys",
653 "schannel",
654 "security-framework",
655 "security-framework-sys",
656 "tempfile",
657]
659[[package]]
660name = "once_cell"
661version = "1.21.4"
662source = "registry+https://github.com/rust-lang/crates.io-index"
663checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
665[[package]]
666name = "openssl"
667version = "0.10.80"
668source = "registry+https://github.com/rust-lang/crates.io-index"
669checksum = "a45fa2aa886c42762255da344f0a0d313e254066c46aad76f300c3d3da62d967"
670dependencies = [
671 "bitflags",
672 "cfg-if",
673 "foreign-types",
674 "libc",
675 "openssl-macros",
676 "openssl-sys",
677]
679[[package]]
680name = "openssl-macros"
681version = "0.1.1"
682source = "registry+https://github.com/rust-lang/crates.io-index"
683checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
684dependencies = [
685 "proc-macro2",
686 "quote",
687 "syn",
688]
690[[package]]
691name = "openssl-probe"
692version = "0.2.1"
693source = "registry+https://github.com/rust-lang/crates.io-index"
694checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
696[[package]]
697name = "openssl-sys"
698version = "0.9.116"
699source = "registry+https://github.com/rust-lang/crates.io-index"
700checksum = "f28a22dc7140cda5f096e5e7724a6962ca81a7f8bfd2979f9b18c11af56318c4"
701dependencies = [
702 "cc",
703 "libc",
704 "pkg-config",
705 "vcpkg",
706]
708[[package]]
709name = "p9-sse"
710version = "0.1.0"
711dependencies = [
712 "futures",
713 "reqwest",
714 "serde",
715 "serde_json",
716 "tokio",
717]
719[[package]]
720name = "parking_lot"
721version = "0.12.5"
722source = "registry+https://github.com/rust-lang/crates.io-index"
723checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
724dependencies = [
725 "lock_api",
726 "parking_lot_core",
727]
729[[package]]
730name = "parking_lot_core"
731version = "0.9.12"
732source = "registry+https://github.com/rust-lang/crates.io-index"
733checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
734dependencies = [
735 "cfg-if",
736 "libc",
737 "redox_syscall",
738 "smallvec",
739 "windows-link",
740]
742[[package]]
743name = "percent-encoding"
744version = "2.3.2"
745source = "registry+https://github.com/rust-lang/crates.io-index"
746checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
748[[package]]
749name = "pin-project-lite"
750version = "0.2.17"
751source = "registry+https://github.com/rust-lang/crates.io-index"
752checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
754[[package]]
755name = "pkg-config"
756version = "0.3.33"
757source = "registry+https://github.com/rust-lang/crates.io-index"
758checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
760[[package]]
761name = "potential_utf"
762version = "0.1.5"
763source = "registry+https://github.com/rust-lang/crates.io-index"
764checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
765dependencies = [
766 "zerovec",
767]
769[[package]]
770name = "prettyplease"
771version = "0.2.37"
772source = "registry+https://github.com/rust-lang/crates.io-index"
773checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
774dependencies = [
775 "proc-macro2",
776 "syn",
777]
779[[package]]
780name = "proc-macro2"
781version = "1.0.106"
782source = "registry+https://github.com/rust-lang/crates.io-index"
783checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
784dependencies = [
785 "unicode-ident",
786]
788[[package]]
789name = "quote"
790version = "1.0.45"
791source = "registry+https://github.com/rust-lang/crates.io-index"
792checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
793dependencies = [
794 "proc-macro2",
795]
797[[package]]
798name = "r-efi"
799version = "6.0.0"
800source = "registry+https://github.com/rust-lang/crates.io-index"
801checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
803[[package]]
804name = "redox_syscall"
805version = "0.5.18"
806source = "registry+https://github.com/rust-lang/crates.io-index"
807checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
808dependencies = [
809 "bitflags",
810]
812[[package]]
813name = "reqwest"
814version = "0.12.28"
815source = "registry+https://github.com/rust-lang/crates.io-index"
816checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"
817dependencies = [
818 "base64",
819 "bytes",
820 "encoding_rs",
821 "futures-core",
822 "futures-util",
823 "h2",
824 "http",
825 "http-body",
826 "http-body-util",
827 "hyper",
828 "hyper-rustls",
829 "hyper-tls",
830 "hyper-util",
831 "js-sys",
832 "log",
833 "mime",
834 "native-tls",
835 "percent-encoding",
836 "pin-project-lite",
837 "rustls-pki-types",
838 "serde",
839 "serde_json",
840 "serde_urlencoded",
841 "sync_wrapper",
842 "tokio",
843 "tokio-native-tls",
844 "tokio-util",
845 "tower",
846 "tower-http",
847 "tower-service",
848 "url",
849 "wasm-bindgen",
850 "wasm-bindgen-futures",
851 "wasm-streams",
852 "web-sys",
853]
855[[package]]
856name = "ring"
857version = "0.17.14"
858source = "registry+https://github.com/rust-lang/crates.io-index"
859checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
860dependencies = [
861 "cc",
862 "cfg-if",
863 "getrandom 0.2.17",
864 "libc",
865 "untrusted",
866 "windows-sys 0.52.0",
867]
869[[package]]
870name = "rustix"
871version = "1.1.4"
872source = "registry+https://github.com/rust-lang/crates.io-index"
873checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
874dependencies = [
875 "bitflags",
876 "errno",
877 "libc",
878 "linux-raw-sys",
879 "windows-sys 0.61.2",
880]
882[[package]]
883name = "rustls"
884version = "0.23.40"
885source = "registry+https://github.com/rust-lang/crates.io-index"
886checksum = "ef86cd5876211988985292b91c96a8f2d298df24e75989a43a3c73f2d4d8168b"
887dependencies = [
888 "once_cell",
889 "rustls-pki-types",
890 "rustls-webpki",
891 "subtle",
892 "zeroize",
893]
895[[package]]
896name = "rustls-pki-types"
897version = "1.14.1"
898source = "registry+https://github.com/rust-lang/crates.io-index"
899checksum = "30a7197ae7eb376e574fe940d068c30fe0462554a3ddbe4eca7838e049c937a9"
900dependencies = [
901 "zeroize",
902]
904[[package]]
905name = "rustls-webpki"
906version = "0.103.13"
907source = "registry+https://github.com/rust-lang/crates.io-index"
908checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
909dependencies = [
910 "ring",
911 "rustls-pki-types",
912 "untrusted",
913]
915[[package]]
916name = "rustversion"
917version = "1.0.22"
918source = "registry+https://github.com/rust-lang/crates.io-index"
919checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
921[[package]]
922name = "ryu"
923version = "1.0.23"
924source = "registry+https://github.com/rust-lang/crates.io-index"
925checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
927[[package]]
928name = "schannel"
929version = "0.1.29"
930source = "registry+https://github.com/rust-lang/crates.io-index"
931checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
932dependencies = [
933 "windows-sys 0.61.2",
934]
936[[package]]
937name = "scopeguard"
938version = "1.2.0"
939source = "registry+https://github.com/rust-lang/crates.io-index"
940checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
942[[package]]
943name = "security-framework"
944version = "3.7.0"
945source = "registry+https://github.com/rust-lang/crates.io-index"
946checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
947dependencies = [
948 "bitflags",
949 "core-foundation 0.10.1",
950 "core-foundation-sys",
951 "libc",
952 "security-framework-sys",
953]
955[[package]]
956name = "security-framework-sys"
957version = "2.17.0"
958source = "registry+https://github.com/rust-lang/crates.io-index"
959checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
960dependencies = [
961 "core-foundation-sys",
962 "libc",
963]
965[[package]]
966name = "semver"
967version = "1.0.28"
968source = "registry+https://github.com/rust-lang/crates.io-index"
969checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
971[[package]]
972name = "serde"
973version = "1.0.228"
974source = "registry+https://github.com/rust-lang/crates.io-index"
975checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
976dependencies = [
977 "serde_core",
978 "serde_derive",
979]
981[[package]]
982name = "serde_core"
983version = "1.0.228"
984source = "registry+https://github.com/rust-lang/crates.io-index"
985checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
986dependencies = [
987 "serde_derive",
988]
990[[package]]
991name = "serde_derive"
992version = "1.0.228"
993source = "registry+https://github.com/rust-lang/crates.io-index"
994checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
995dependencies = [
996 "proc-macro2",
997 "quote",
998 "syn",
999]
1001[[package]]
1002name = "serde_json"
1003version = "1.0.150"
1004source = "registry+https://github.com/rust-lang/crates.io-index"
1005checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
1006dependencies = [
1007 "itoa",
1008 "memchr",
1009 "serde",
1010 "serde_core",
1011 "zmij",
1014[[package]]
1015name = "serde_urlencoded"
1016version = "0.7.1"
1017source = "registry+https://github.com/rust-lang/crates.io-index"
1018checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
1019dependencies = [
1020 "form_urlencoded",
1021 "itoa",
1022 "ryu",
1023 "serde",
1026[[package]]
1027name = "shlex"
1028version = "1.3.0"
1029source = "registry+https://github.com/rust-lang/crates.io-index"
1030checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
1032[[package]]
1033name = "signal-hook-registry"
1034version = "1.4.8"
1035source = "registry+https://github.com/rust-lang/crates.io-index"
1036checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
1037dependencies = [
1038 "errno",
1039 "libc",
1042[[package]]
1043name = "slab"
1044version = "0.4.12"
1045source = "registry+https://github.com/rust-lang/crates.io-index"
1046checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
1048[[package]]
1049name = "smallvec"
1050version = "1.15.1"
1051source = "registry+https://github.com/rust-lang/crates.io-index"
1052checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
1054[[package]]
1055name = "socket2"
1056version = "0.6.3"
1057source = "registry+https://github.com/rust-lang/crates.io-index"
1058checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
1059dependencies = [
1060 "libc",
1061 "windows-sys 0.61.2",
1064[[package]]
1065name = "stable_deref_trait"
1066version = "1.2.1"
1067source = "registry+https://github.com/rust-lang/crates.io-index"
1068checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
1070[[package]]
1071name = "subtle"
1072version = "2.6.1"
1073source = "registry+https://github.com/rust-lang/crates.io-index"
1074checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
1076[[package]]
1077name = "syn"
1078version = "2.0.117"
1079source = "registry+https://github.com/rust-lang/crates.io-index"
1080checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
1081dependencies = [
1082 "proc-macro2",
1083 "quote",
1084 "unicode-ident",
1087[[package]]
1088name = "sync_wrapper"
1089version = "1.0.2"
1090source = "registry+https://github.com/rust-lang/crates.io-index"
1091checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
1092dependencies = [
1093 "futures-core",
1096[[package]]
1097name = "synstructure"
1098version = "0.13.2"
1099source = "registry+https://github.com/rust-lang/crates.io-index"
1100checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
1101dependencies = [
1102 "proc-macro2",
1103 "quote",
1104 "syn",
1107[[package]]
1108name = "system-configuration"
1109version = "0.7.0"
1110source = "registry+https://github.com/rust-lang/crates.io-index"
1111checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b"
1112dependencies = [
1113 "bitflags",
1114 "core-foundation 0.9.4",
1115 "system-configuration-sys",
1118[[package]]
1119name = "system-configuration-sys"
1120version = "0.6.0"
1121source = "registry+https://github.com/rust-lang/crates.io-index"
1122checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
1123dependencies = [
1124 "core-foundation-sys",
1125 "libc",
1128[[package]]
1129name = "tempfile"
1130version = "3.27.0"
1131source = "registry+https://github.com/rust-lang/crates.io-index"
1132checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
1133dependencies = [
1134 "fastrand",
1135 "getrandom 0.4.2",
1136 "once_cell",
1137 "rustix",
1138 "windows-sys 0.61.2",
1141[[package]]
1142name = "tinystr"
1143version = "0.8.3"
1144source = "registry+https://github.com/rust-lang/crates.io-index"
1145checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
1146dependencies = [
1147 "displaydoc",
1148 "zerovec",
1151[[package]]
1152name = "tokio"
1153version = "1.52.3"
1154source = "registry+https://github.com/rust-lang/crates.io-index"
1155checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"
1156dependencies = [
1157 "bytes",
1158 "libc",
1159 "mio",
1160 "parking_lot",
1161 "pin-project-lite",
1162 "signal-hook-registry",
1163 "socket2",
1164 "tokio-macros",
1165 "windows-sys 0.61.2",
1168[[package]]
1169name = "tokio-macros"
1170version = "2.7.0"
1171source = "registry+https://github.com/rust-lang/crates.io-index"
1172checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
1173dependencies = [
1174 "proc-macro2",
1175 "quote",
1176 "syn",
1179[[package]]
1180name = "tokio-native-tls"
1181version = "0.3.1"
1182source = "registry+https://github.com/rust-lang/crates.io-index"
1183checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
1184dependencies = [
1185 "native-tls",
1186 "tokio",
1189[[package]]
1190name = "tokio-rustls"
1191version = "0.26.4"
1192source = "registry+https://github.com/rust-lang/crates.io-index"
1193checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"
1194dependencies = [
1195 "rustls",
1196 "tokio",
1199[[package]]
1200name = "tokio-util"
1201version = "0.7.18"
1202source = "registry+https://github.com/rust-lang/crates.io-index"
1203checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"
1204dependencies = [
1205 "bytes",
1206 "futures-core",
1207 "futures-sink",
1208 "pin-project-lite",
1209 "tokio",
1212[[package]]
1213name = "tower"
1214version = "0.5.3"
1215source = "registry+https://github.com/rust-lang/crates.io-index"
1216checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
1217dependencies = [
1218 "futures-core",
1219 "futures-util",
1220 "pin-project-lite",
1221 "sync_wrapper",
1222 "tokio",
1223 "tower-layer",
1224 "tower-service",
1227[[package]]
1228name = "tower-http"
1229version = "0.6.11"
1230source = "registry+https://github.com/rust-lang/crates.io-index"
1231checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
1232dependencies = [
1233 "bitflags",
1234 "bytes",
1235 "futures-util",
1236 "http",
1237 "http-body",
1238 "pin-project-lite",
1239 "tower",
1240 "tower-layer",
1241 "tower-service",
1242 "url",
1245[[package]]
1246name = "tower-layer"
1247version = "0.3.3"
1248source = "registry+https://github.com/rust-lang/crates.io-index"
1249checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
1251[[package]]
1252name = "tower-service"
1253version = "0.3.3"
1254source = "registry+https://github.com/rust-lang/crates.io-index"
1255checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
1257[[package]]
1258name = "tracing"
1259version = "0.1.44"
1260source = "registry+https://github.com/rust-lang/crates.io-index"
1261checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
1262dependencies = [
1263 "pin-project-lite",
1264 "tracing-core",
1267[[package]]
1268name = "tracing-core"
1269version = "0.1.36"
1270source = "registry+https://github.com/rust-lang/crates.io-index"
1271checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
1272dependencies = [
1273 "once_cell",
1276[[package]]
1277name = "try-lock"
1278version = "0.2.5"
1279source = "registry+https://github.com/rust-lang/crates.io-index"
1280checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
1282[[package]]
1283name = "unicode-ident"
1284version = "1.0.24"
1285source = "registry+https://github.com/rust-lang/crates.io-index"
1286checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
1288[[package]]
1289name = "unicode-xid"
1290version = "0.2.6"
1291source = "registry+https://github.com/rust-lang/crates.io-index"
1292checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
1294[[package]]
1295name = "untrusted"
1296version = "0.9.0"
1297source = "registry+https://github.com/rust-lang/crates.io-index"
1298checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
1300[[package]]
1301name = "url"
1302version = "2.5.8"
1303source = "registry+https://github.com/rust-lang/crates.io-index"
1304checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
1305dependencies = [
1306 "form_urlencoded",
1307 "idna",
1308 "percent-encoding",
1309 "serde",
1312[[package]]
1313name = "utf8_iter"
1314version = "1.0.4"
1315source = "registry+https://github.com/rust-lang/crates.io-index"
1316checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
1318[[package]]
1319name = "vcpkg"
1320version = "0.2.15"
1321source = "registry+https://github.com/rust-lang/crates.io-index"
1322checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
1324[[package]]
1325name = "want"
1326version = "0.3.1"
1327source = "registry+https://github.com/rust-lang/crates.io-index"
1328checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
1329dependencies = [
1330 "try-lock",
1333[[package]]
1334name = "wasi"
1335version = "0.11.1+wasi-snapshot-preview1"
1336source = "registry+https://github.com/rust-lang/crates.io-index"
1337checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
1339[[package]]
1340name = "wasip2"
1341version = "1.0.3+wasi-0.2.9"
1342source = "registry+https://github.com/rust-lang/crates.io-index"
1343checksum = "20064672db26d7cdc89c7798c48a0fdfac8213434a1186e5ef29fd560ae223d6"
1344dependencies = [
1345 "wit-bindgen 0.57.1",
1348[[package]]
1349name = "wasip3"
1350version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
1351source = "registry+https://github.com/rust-lang/crates.io-index"
1352checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
1353dependencies = [
1354 "wit-bindgen 0.51.0",
1357[[package]]
1358name = "wasm-bindgen"
1359version = "0.2.121"
1360source = "registry+https://github.com/rust-lang/crates.io-index"
1361checksum = "49ace1d07c165b0864824eee619580c4689389afa9dc9ed3a4c75040d82e6790"
1362dependencies = [
1363 "cfg-if",
1364 "once_cell",
1365 "rustversion",
1366 "wasm-bindgen-macro",
1367 "wasm-bindgen-shared",
1370[[package]]
1371name = "wasm-bindgen-futures"
1372version = "0.4.71"
1373source = "registry+https://github.com/rust-lang/crates.io-index"
1374checksum = "96492d0d3ffba25305a7dc88720d250b1401d7edca02cc3bcd50633b424673b8"
1375dependencies = [
1376 "js-sys",
1377 "wasm-bindgen",
1380[[package]]
1381name = "wasm-bindgen-macro"
1382version = "0.2.121"
1383source = "registry+https://github.com/rust-lang/crates.io-index"
1384checksum = "8e68e6f4afd367a562002c05637acb8578ff2dea1943df76afb9e83d177c8578"
1385dependencies = [
1386 "quote",
1387 "wasm-bindgen-macro-support",
1390[[package]]
1391name = "wasm-bindgen-macro-support"
1392version = "0.2.121"
1393source = "registry+https://github.com/rust-lang/crates.io-index"
1394checksum = "d95a9ec35c64b2a7cb35d3fead40c4238d0940c86d107136999567a4703259f2"
1395dependencies = [
1396 "bumpalo",
1397 "proc-macro2",
1398 "quote",
1399 "syn",
1400 "wasm-bindgen-shared",
1403[[package]]
1404name = "wasm-bindgen-shared"
1405version = "0.2.121"
1406source = "registry+https://github.com/rust-lang/crates.io-index"
1407checksum = "c4e0100b01e9f0d03189a92b96772a1fb998639d981193d7dbab487302513441"
1408dependencies = [
1409 "unicode-ident",
1412[[package]]
1413name = "wasm-encoder"
1414version = "0.244.0"
1415source = "registry+https://github.com/rust-lang/crates.io-index"
1416checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
1417dependencies = [
1418 "leb128fmt",
1419 "wasmparser",
1422[[package]]
1423name = "wasm-metadata"
1424version = "0.244.0"
1425source = "registry+https://github.com/rust-lang/crates.io-index"
1426checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
1427dependencies = [
1428 "anyhow",
1429 "indexmap",
1430 "wasm-encoder",
1431 "wasmparser",
1434[[package]]
1435name = "wasm-streams"
1436version = "0.4.2"
1437source = "registry+https://github.com/rust-lang/crates.io-index"
1438checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65"
1439dependencies = [
1440 "futures-util",
1441 "js-sys",
1442 "wasm-bindgen",
1443 "wasm-bindgen-futures",
1444 "web-sys",
1447[[package]]
1448name = "wasmparser"
1449version = "0.244.0"
1450source = "registry+https://github.com/rust-lang/crates.io-index"
1451checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
1452dependencies = [
1453 "bitflags",
1454 "hashbrown 0.15.5",
1455 "indexmap",
1456 "semver",
1459[[package]]
1460name = "web-sys"
1461version = "0.3.98"
1462source = "registry+https://github.com/rust-lang/crates.io-index"
1463checksum = "4b572dff8bcf38bad0fa19729c89bb5748b2b9b1d8be70cf90df697e3a8f32aa"
1464dependencies = [
1465 "js-sys",
1466 "wasm-bindgen",
1469[[package]]
1470name = "windows-link"
1471version = "0.2.1"
1472source = "registry+https://github.com/rust-lang/crates.io-index"
1473checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
1475[[package]]
1476name = "windows-registry"
1477version = "0.6.1"
1478source = "registry+https://github.com/rust-lang/crates.io-index"
1479checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720"
1480dependencies = [
1481 "windows-link",
1482 "windows-result",
1483 "windows-strings",
1486[[package]]
1487name = "windows-result"
1488version = "0.4.1"
1489source = "registry+https://github.com/rust-lang/crates.io-index"
1490checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
1491dependencies = [
1492 "windows-link",
1495[[package]]
1496name = "windows-strings"
1497version = "0.5.1"
1498source = "registry+https://github.com/rust-lang/crates.io-index"
1499checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
1500dependencies = [
1501 "windows-link",
1504[[package]]
1505name = "windows-sys"
1506version = "0.52.0"
1507source = "registry+https://github.com/rust-lang/crates.io-index"
1508checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
1509dependencies = [
1510 "windows-targets",
1513[[package]]
1514name = "windows-sys"
1515version = "0.61.2"
1516source = "registry+https://github.com/rust-lang/crates.io-index"
1517checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
1518dependencies = [
1519 "windows-link",
1522[[package]]
1523name = "windows-targets"
1524version = "0.52.6"
1525source = "registry+https://github.com/rust-lang/crates.io-index"
1526checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1527dependencies = [
1528 "windows_aarch64_gnullvm",
1529 "windows_aarch64_msvc",
1530 "windows_i686_gnu",
1531 "windows_i686_gnullvm",
1532 "windows_i686_msvc",
1533 "windows_x86_64_gnu",
1534 "windows_x86_64_gnullvm",
1535 "windows_x86_64_msvc",
1538[[package]]
1539name = "windows_aarch64_gnullvm"
1540version = "0.52.6"
1541source = "registry+https://github.com/rust-lang/crates.io-index"
1542checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1544[[package]]
1545name = "windows_aarch64_msvc"
1546version = "0.52.6"
1547source = "registry+https://github.com/rust-lang/crates.io-index"
1548checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1550[[package]]
1551name = "windows_i686_gnu"
1552version = "0.52.6"
1553source = "registry+https://github.com/rust-lang/crates.io-index"
1554checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1556[[package]]
1557name = "windows_i686_gnullvm"
1558version = "0.52.6"
1559source = "registry+https://github.com/rust-lang/crates.io-index"
1560checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1562[[package]]
1563name = "windows_i686_msvc"
1564version = "0.52.6"
1565source = "registry+https://github.com/rust-lang/crates.io-index"
1566checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1568[[package]]
1569name = "windows_x86_64_gnu"
1570version = "0.52.6"
1571source = "registry+https://github.com/rust-lang/crates.io-index"
1572checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1574[[package]]
1575name = "windows_x86_64_gnullvm"
1576version = "0.52.6"
1577source = "registry+https://github.com/rust-lang/crates.io-index"
1578checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1580[[package]]
1581name = "windows_x86_64_msvc"
1582version = "0.52.6"
1583source = "registry+https://github.com/rust-lang/crates.io-index"
1584checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1586[[package]]
1587name = "wit-bindgen"
1588version = "0.51.0"
1589source = "registry+https://github.com/rust-lang/crates.io-index"
1590checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
1591dependencies = [
1592 "wit-bindgen-rust-macro",
1595[[package]]
1596name = "wit-bindgen"
1597version = "0.57.1"
1598source = "registry+https://github.com/rust-lang/crates.io-index"
1599checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
1601[[package]]
1602name = "wit-bindgen-core"
1603version = "0.51.0"
1604source = "registry+https://github.com/rust-lang/crates.io-index"
1605checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
1606dependencies = [
1607 "anyhow",
1608 "heck",
1609 "wit-parser",
1612[[package]]
1613name = "wit-bindgen-rust"
1614version = "0.51.0"
1615source = "registry+https://github.com/rust-lang/crates.io-index"
1616checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
1617dependencies = [
1618 "anyhow",
1619 "heck",
1620 "indexmap",
1621 "prettyplease",
1622 "syn",
1623 "wasm-metadata",
1624 "wit-bindgen-core",
1625 "wit-component",
1628[[package]]
1629name = "wit-bindgen-rust-macro"
1630version = "0.51.0"
1631source = "registry+https://github.com/rust-lang/crates.io-index"
1632checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
1633dependencies = [
1634 "anyhow",
1635 "prettyplease",
1636 "proc-macro2",
1637 "quote",
1638 "syn",
1639 "wit-bindgen-core",
1640 "wit-bindgen-rust",
1643[[package]]
1644name = "wit-component"
1645version = "0.244.0"
1646source = "registry+https://github.com/rust-lang/crates.io-index"
1647checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
1648dependencies = [
1649 "anyhow",
1650 "bitflags",
1651 "indexmap",
1652 "log",
1653 "serde",
1654 "serde_derive",
1655 "serde_json",
1656 "wasm-encoder",
1657 "wasm-metadata",
1658 "wasmparser",
1659 "wit-parser",
1662[[package]]
1663name = "wit-parser"
1664version = "0.244.0"
1665source = "registry+https://github.com/rust-lang/crates.io-index"
1666checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
1667dependencies = [
1668 "anyhow",
1669 "id-arena",
1670 "indexmap",
1671 "log",
1672 "semver",
1673 "serde",
1674 "serde_derive",
1675 "serde_json",
1676 "unicode-xid",
1677 "wasmparser",
1680[[package]]
1681name = "writeable"
1682version = "0.6.3"
1683source = "registry+https://github.com/rust-lang/crates.io-index"
1684checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
1686[[package]]
1687name = "yoke"
1688version = "0.8.2"
1689source = "registry+https://github.com/rust-lang/crates.io-index"
1690checksum = "abe8c5fda708d9ca3df187cae8bfb9ceda00dd96231bed36e445a1a48e66f9ca"
1691dependencies = [
1692 "stable_deref_trait",
1693 "yoke-derive",
1694 "zerofrom",
1697[[package]]
1698name = "yoke-derive"
1699version = "0.8.2"
1700source = "registry+https://github.com/rust-lang/crates.io-index"
1701checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
1702dependencies = [
1703 "proc-macro2",
1704 "quote",
1705 "syn",
1706 "synstructure",
1709[[package]]
1710name = "zerofrom"
1711version = "0.1.8"
1712source = "registry+https://github.com/rust-lang/crates.io-index"
1713checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
1714dependencies = [
1715 "zerofrom-derive",
1718[[package]]
1719name = "zerofrom-derive"
1720version = "0.1.7"
1721source = "registry+https://github.com/rust-lang/crates.io-index"
1722checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
1723dependencies = [
1724 "proc-macro2",
1725 "quote",
1726 "syn",
1727 "synstructure",
1730[[package]]
1731name = "zeroize"
1732version = "1.8.2"
1733source = "registry+https://github.com/rust-lang/crates.io-index"
1734checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
1736[[package]]
1737name = "zerotrie"
1738version = "0.2.4"
1739source = "registry+https://github.com/rust-lang/crates.io-index"
1740checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
1741dependencies = [
1742 "displaydoc",
1743 "yoke",
1744 "zerofrom",
1747[[package]]
1748name = "zerovec"
1749version = "0.11.6"
1750source = "registry+https://github.com/rust-lang/crates.io-index"
1751checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
1752dependencies = [
1753 "yoke",
1754 "zerofrom",
1755 "zerovec-derive",
1758[[package]]
1759name = "zerovec-derive"
1760version = "0.11.3"
1761source = "registry+https://github.com/rust-lang/crates.io-index"
1762checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
1763dependencies = [
1764 "proc-macro2",
1765 "quote",
1766 "syn",
1769[[package]]
1770name = "zmij"
1771version = "1.0.21"
1772source = "registry+https://github.com/rust-lang/crates.io-index"
1773checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"

prototypes/p9-sse/Cargo.toml

Added
new file mode 100644

+11 / −0 text lines

1[package]
2name = "p9-sse"
3version = "0.1.0"
4edition = "2024"
5
6[dependencies]
7tokio = { version = "1", features = ["full"] }
8futures = "0.3"
9reqwest = { version = "0.12", features = ["stream"] }
10serde = { version = "1", features = ["derive"] }
11serde_json = "1"

prototypes/p9-sse/src/main.rs

Added
new file mode 100644

+59 / −0 text lines

1//! Prototype: SSE parser.
2#![allow(dead_code)]
3
4use serde::Deserialize;
5
6#[derive(Debug, Deserialize)]
7struct ChatChunk { choices: Vec<ChunkChoice> }
8#[derive(Debug, Deserialize)]
9struct ChunkChoice { delta: Delta, finish_reason: Option<String> }
10#[derive(Debug, Deserialize)]
11struct Delta { content: Option<String> }
13fn parse_sse(text: &str) -> Vec<(String, Option<String>)> {
14 let mut out = Vec::new();
15 let mut etype = String::from("message");
16 let mut buf = String::new();
17 for line in text.lines() {
18 let l = line.trim();
19 if let Some(e) = l.strip_prefix("event:") { etype = e.trim().to_string(); }
20 else if let Some(d) = l.strip_prefix("data:") {
21 let d = d.trim();
22 if d.is_empty() {
23 if !buf.is_empty() { out.push((etype.clone(), Some(std::mem::take(&mut buf)))); }
24 } else {
25 if !buf.is_empty() { buf.push('\n'); }
26 buf.push_str(d);
27 }
28 } else if l.is_empty() {
29 if !buf.is_empty() { out.push((etype.clone(), Some(std::mem::take(&mut buf)))); }
30 }
31 }
32 if !buf.is_empty() { out.push((etype, Some(buf))); }
33 out
34}
36fn main() {
37 let sse = "data: {\"choices\":[{\"delta\":{\"content\":\"Hello\"},\"finish_reason\":null}]}\n\ndata: {\"choices\":[{\"delta\":{\"content\":\" world\"},\"finish_reason\":null}]}\n\ndata: {\"choices\":[{\"delta\":{},\"finish_reason\":\"stop\"}]}\n\ndata: [DONE]\n\n";
38 let events = parse_sse(sse);
39 let mut full = String::new();
40 for (_, data) in &events {
41 let d = data.as_deref().unwrap_or("");
42 if d == "[DONE]" { continue; }
43 if let Ok(chunk) = serde_json::from_str::<ChatChunk>(d) {
44 for c in &chunk.choices {
45 if let Some(ref content) = c.delta.content { full.push_str(content); }
46 }
47 }
48 }
49 assert_eq!(full, "Hello world");
50 eprintln!("SSE parse OK");
52 let done = parse_sse("data: [DONE]\n\n");
53 assert_eq!(done.len(), 1);
54 eprintln!("SSE [DONE] OK");
56 let multi = parse_sse("data: line1\ndata: line2\n\n");
57 assert_eq!(multi[0].1.as_deref(), Some("line1\nline2"));
58 eprintln!("SSE multi-line OK");
59}No final newline