Diffinery

homeflare/celldpublic

v0.1.0

Load shedding is rebuilt. The resident-cell limit is now a hard cap enforced at
admission, and pressure shedding is driven by RSS and CPU alone. RSS shedding is
on by default at 80% of available memory (the cgroup limit in containers); set
CELLD_MAX_RSS_MB to pin the ceiling, or 0 to disable. A full node declines new
placements instead of evicting a resident, one queued placement costs at most
one eviction, and a walk-down that stops returning memory halts instead of
emptying the node. CELLD_RESIDENT_LOW_WATER is now ignored.

Proxied responses stream between nodes; a truncated upstream body aborts the
read instead of buffering into an error. The replicator seeds its position at
activation, ending a listing storm on rate-limited stores. macOS nodes report
real memory usage. celld is relicensed Apache-2.0.
Ryan Dahl authored signed1 parent 1d3f5bdcommit 553ae73f83c87c3f7c7a5f73c32c2211d9d7341fBrowse files
57 files changed+6288−7672
Files (57)
modifiedCargo.lock+3377−4370View file
@@ -14,4376 +14,3383 @@
1414 source = "registry+https://github.com/rust-lang/crates.io-index"
1515 checksum = "d122413f284cf2d62fb1b7db97e02edb8cda96d769b16e443a4f6195e35662b0"
1616 dependencies = [
17- "crypto-common 0.1.7",
18- "generic-array",
19-]
20-
21-[[package]]
22-name = "aes"
23-version = "0.8.4"
24-source = "registry+https://github.com/rust-lang/crates.io-index"
25-checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"
26-dependencies = [
27- "cfg-if",
28- "cipher",
29- "cpufeatures 0.2.17",
30-]
31-
32-[[package]]
33-name = "aes-gcm"
34-version = "0.10.3"
35-source = "registry+https://github.com/rust-lang/crates.io-index"
36-checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1"
37-dependencies = [
38- "aead",
39- "aes",
40- "cipher",
41- "ctr",
42- "ghash",
43- "subtle",
44-]
45-
46-[[package]]
47-name = "ahash"
48-version = "0.8.12"
49-source = "registry+https://github.com/rust-lang/crates.io-index"
50-checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
51-dependencies = [
52- "cfg-if",
53- "once_cell",
54- "version_check",
55- "zerocopy",
56-]
57-
58-[[package]]
59-name = "aho-corasick"
60-version = "1.1.4"
61-source = "registry+https://github.com/rust-lang/crates.io-index"
62-checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
63-dependencies = [
64- "memchr",
65-]
66-
67-[[package]]
68-name = "allocator-api2"
69-version = "0.2.21"
70-source = "registry+https://github.com/rust-lang/crates.io-index"
71-checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923"
72-
73-[[package]]
74-name = "android_system_properties"
75-version = "0.1.5"
76-source = "registry+https://github.com/rust-lang/crates.io-index"
77-checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
78-dependencies = [
79- "libc",
80-]
81-
82-[[package]]
83-name = "anyhow"
84-version = "1.0.104"
85-source = "registry+https://github.com/rust-lang/crates.io-index"
86-checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
87-
88-[[package]]
89-name = "arc-swap"
90-version = "1.9.2"
91-source = "registry+https://github.com/rust-lang/crates.io-index"
92-checksum = "c049c0be4daef0b145cb3555416b3b8ef5b7888a38aea1a3a155801fe7b0810b"
93-dependencies = [
94- "rustversion",
95-]
96-
97-[[package]]
98-name = "async-trait"
99-version = "0.1.91"
100-source = "registry+https://github.com/rust-lang/crates.io-index"
101-checksum = "ae36dc4177970ef04fde5178d3e2429882def40e57a451f919c098f72baa6cec"
102-dependencies = [
103- "proc-macro2",
104- "quote",
105- "syn 3.0.3",
106-]
107-
108-[[package]]
109-name = "atomic-waker"
110-version = "1.1.2"
111-source = "registry+https://github.com/rust-lang/crates.io-index"
112-checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
113-
114-[[package]]
115-name = "autocfg"
116-version = "1.5.1"
117-source = "registry+https://github.com/rust-lang/crates.io-index"
118-checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
119-
120-[[package]]
121-name = "aws-config"
122-version = "1.10.1"
123-source = "registry+https://github.com/rust-lang/crates.io-index"
124-checksum = "1b180a3c8b55960db3426d8964b8745e652466a1a49fe1a2eda828046d30b5e4"
125-dependencies = [
126- "aws-credential-types",
127- "aws-runtime",
128- "aws-sdk-sso",
129- "aws-sdk-ssooidc",
130- "aws-sdk-sts",
131- "aws-smithy-async",
132- "aws-smithy-http",
133- "aws-smithy-json",
134- "aws-smithy-runtime",
135- "aws-smithy-runtime-api",
136- "aws-smithy-schema",
137- "aws-smithy-types",
138- "aws-types",
139- "bytes",
140- "fastrand",
141- "hex",
142- "http 1.5.0",
143- "sha1 0.10.7",
144- "time",
145- "tokio",
146- "tracing",
147- "url",
148- "zeroize",
149-]
150-
151-[[package]]
152-name = "aws-credential-types"
153-version = "1.3.0"
154-source = "registry+https://github.com/rust-lang/crates.io-index"
155-checksum = "e93964ffdaf57857f544be3666a5f57570bb699e934700f11b49708f61bb556e"
156-dependencies = [
157- "aws-smithy-async",
158- "aws-smithy-runtime-api",
159- "aws-smithy-types",
160- "zeroize",
161-]
162-
163-[[package]]
164-name = "aws-lc-rs"
165-version = "1.17.3"
166-source = "registry+https://github.com/rust-lang/crates.io-index"
167-checksum = "00bdb5da18dac48ca2cc7cd4a98e533e8635a58e2361d13a1a4ee3888e0d72f1"
168-dependencies = [
169- "aws-lc-sys",
170- "zeroize",
171-]
172-
173-[[package]]
174-name = "aws-lc-sys"
175-version = "0.43.0"
176-source = "registry+https://github.com/rust-lang/crates.io-index"
177-checksum = "43103168cc76fe62678a375e722fc9cb3a0146159ac5828bc4f0dfd755c2224c"
178-dependencies = [
179- "cc",
180- "cmake",
181- "dunce",
182- "fs_extra",
183- "pkg-config",
184-]
185-
186-[[package]]
187-name = "aws-runtime"
188-version = "1.9.1"
189-source = "registry+https://github.com/rust-lang/crates.io-index"
190-checksum = "c9007227e10b5fed2f3e0a2beff489211e2b5604c400b7a9d5d81ca9d64c24bb"
191-dependencies = [
192- "aws-credential-types",
193- "aws-sigv4",
194- "aws-smithy-async",
195- "aws-smithy-eventstream",
196- "aws-smithy-http",
197- "aws-smithy-runtime",
198- "aws-smithy-runtime-api",
199- "aws-smithy-types",
200- "aws-types",
201- "bytes",
202- "bytes-utils",
203- "fastrand",
204- "http 0.2.12",
205- "http 1.5.0",
206- "http-body 0.4.6",
207- "http-body 1.1.0",
208- "percent-encoding",
209- "pin-project-lite",
210- "tracing",
211- "uuid",
212-]
213-
214-[[package]]
215-name = "aws-sdk-s3"
216-version = "1.140.0"
217-source = "registry+https://github.com/rust-lang/crates.io-index"
218-checksum = "e9660cf991e512fbe6094f1041ff3d3282bc5aeeeb6184e8de437ec2de024a10"
219-dependencies = [
220- "arc-swap",
221- "aws-credential-types",
222- "aws-runtime",
223- "aws-sigv4",
224- "aws-smithy-async",
225- "aws-smithy-checksums",
226- "aws-smithy-eventstream",
227- "aws-smithy-http",
228- "aws-smithy-json",
229- "aws-smithy-observability",
230- "aws-smithy-runtime",
231- "aws-smithy-runtime-api",
232- "aws-smithy-schema",
233- "aws-smithy-types",
234- "aws-smithy-xml",
235- "aws-types",
236- "bytes",
237- "fastrand",
238- "hex",
239- "hmac 0.13.0",
240- "http 0.2.12",
241- "http 1.5.0",
242- "http-body 1.1.0",
243- "lru",
244- "percent-encoding",
245- "regex-lite",
246- "sha2 0.11.0",
247- "tracing",
248- "url",
249-]
250-
251-[[package]]
252-name = "aws-sdk-sso"
253-version = "1.105.0"
254-source = "registry+https://github.com/rust-lang/crates.io-index"
255-checksum = "6ffd0fbe7873cb548a7aa60f9573c268fff94155397fd4f14dc9f1ecaaab8516"
256-dependencies = [
257- "arc-swap",
258- "aws-credential-types",
259- "aws-runtime",
260- "aws-smithy-async",
261- "aws-smithy-http",
262- "aws-smithy-json",
263- "aws-smithy-observability",
264- "aws-smithy-runtime",
265- "aws-smithy-runtime-api",
266- "aws-smithy-schema",
267- "aws-smithy-types",
268- "aws-types",
269- "bytes",
270- "fastrand",
271- "http 0.2.12",
272- "http 1.5.0",
273- "regex-lite",
274- "tracing",
275-]
276-
277-[[package]]
278-name = "aws-sdk-ssooidc"
279-version = "1.107.0"
280-source = "registry+https://github.com/rust-lang/crates.io-index"
281-checksum = "175763eb222a46377df7aa257a3bca980ab3e96703fefc8f4d0b8da6ad2e254c"
282-dependencies = [
283- "arc-swap",
284- "aws-credential-types",
285- "aws-runtime",
286- "aws-smithy-async",
287- "aws-smithy-http",
288- "aws-smithy-json",
289- "aws-smithy-observability",
290- "aws-smithy-runtime",
291- "aws-smithy-runtime-api",
292- "aws-smithy-schema",
293- "aws-smithy-types",
294- "aws-types",
295- "bytes",
296- "fastrand",
297- "http 0.2.12",
298- "http 1.5.0",
299- "regex-lite",
300- "tracing",
301-]
302-
303-[[package]]
304-name = "aws-sdk-sts"
305-version = "1.110.0"
306-source = "registry+https://github.com/rust-lang/crates.io-index"
307-checksum = "dd8b14781dfbff48984017d57167b6ea0b6471c6920ec52b44a2677c7feb3c13"
308-dependencies = [
309- "arc-swap",
310- "aws-credential-types",
311- "aws-runtime",
312- "aws-smithy-async",
313- "aws-smithy-http",
314- "aws-smithy-json",
315- "aws-smithy-observability",
316- "aws-smithy-query",
317- "aws-smithy-runtime",
318- "aws-smithy-runtime-api",
319- "aws-smithy-schema",
320- "aws-smithy-types",
321- "aws-smithy-xml",
322- "aws-types",
323- "fastrand",
324- "http 0.2.12",
325- "http 1.5.0",
326- "regex-lite",
327- "tracing",
328-]
329-
330-[[package]]
331-name = "aws-sigv4"
332-version = "1.5.1"
333-source = "registry+https://github.com/rust-lang/crates.io-index"
334-checksum = "723c2234ad7511ceef63eab016b7ba6ff7c55590fefb96fa8467af014a07309f"
335-dependencies = [
336- "aws-credential-types",
337- "aws-smithy-eventstream",
338- "aws-smithy-http",
339- "aws-smithy-runtime-api",
340- "aws-smithy-types",
341- "bytes",
342- "crypto-bigint",
343- "form_urlencoded",
344- "hex",
345- "hmac 0.13.0",
346- "http 0.2.12",
347- "http 1.5.0",
348- "p256",
349- "percent-encoding",
350- "sha2 0.11.0",
351- "subtle",
352- "time",
353- "tracing",
354- "zeroize",
355-]
356-
357-[[package]]
358-name = "aws-smithy-async"
359-version = "1.3.0"
360-source = "registry+https://github.com/rust-lang/crates.io-index"
361-checksum = "f02e407fb3b54891734224b9ffac8a71fdd35f542500fa1af95754a6b2beb316"
362-dependencies = [
363- "futures-util",
364- "pin-project-lite",
365- "tokio",
366-]
367-
368-[[package]]
369-name = "aws-smithy-checksums"
370-version = "0.65.0"
371-source = "registry+https://github.com/rust-lang/crates.io-index"
372-checksum = "b67ecd999972b58e67cab052f5129906c08c25883bd0788ceefc55ef97d61307"
373-dependencies = [
374- "aws-smithy-http",
375- "aws-smithy-types",
376- "bytes",
377- "crc-fast",
378- "hex",
379- "http 1.5.0",
380- "http-body 1.1.0",
381- "http-body-util",
382- "md-5 0.11.0",
383- "pin-project-lite",
384- "sha1 0.11.0",
385- "sha2 0.11.0",
386- "tracing",
387-]
388-
389-[[package]]
390-name = "aws-smithy-eventstream"
391-version = "0.61.1"
392-source = "registry+https://github.com/rust-lang/crates.io-index"
393-checksum = "5a9381123ab62d20c13082b151f30f962a3b112b727345394536dfa39a482944"
394-dependencies = [
395- "aws-smithy-types",
396- "bytes",
397- "crc32fast",
398-]
399-
400-[[package]]
401-name = "aws-smithy-http"
402-version = "0.64.0"
403-source = "registry+https://github.com/rust-lang/crates.io-index"
404-checksum = "37843d9add67c3aff5856f409c6dc315d3cdff60f9c0cb5b670dab1e9920306d"
405-dependencies = [
406- "aws-smithy-eventstream",
407- "aws-smithy-runtime-api",
408- "aws-smithy-types",
409- "bytes",
410- "bytes-utils",
411- "futures-core",
412- "futures-util",
413- "http 1.5.0",
414- "http-body 1.1.0",
415- "http-body-util",
416- "percent-encoding",
417- "pin-project-lite",
418- "pin-utils",
419- "tracing",
420-]
421-
422-[[package]]
423-name = "aws-smithy-http-client"
424-version = "1.2.0"
425-source = "registry+https://github.com/rust-lang/crates.io-index"
426-checksum = "635d23afda0a6ab48d666c4d447c4873e8d1e83518a2be2093122397e50b838e"
427-dependencies = [
428- "aws-smithy-async",
429- "aws-smithy-runtime-api",
430- "aws-smithy-types",
431- "h2 0.3.27",
432- "h2 0.4.15",
433- "http 0.2.12",
434- "http 1.5.0",
435- "http-body 0.4.6",
436- "hyper 0.14.32",
437- "hyper 1.11.0",
438- "hyper-rustls 0.24.2",
439- "hyper-rustls 0.27.9",
440- "hyper-util",
441- "pin-project-lite",
442- "rustls 0.21.12",
443- "rustls 0.23.43",
444- "rustls-native-certs",
445- "rustls-pki-types",
446- "tokio",
447- "tokio-rustls 0.26.4",
448- "tower",
449- "tracing",
450-]
451-
452-[[package]]
453-name = "aws-smithy-json"
454-version = "0.63.0"
455-source = "registry+https://github.com/rust-lang/crates.io-index"
456-checksum = "3dc65a121adb4b33729919fcfa14fa36fb33c1555a8f06bb0e2188dbfdc1d9ef"
457-dependencies = [
458- "aws-smithy-runtime-api",
459- "aws-smithy-schema",
460- "aws-smithy-types",
461-]
462-
463-[[package]]
464-name = "aws-smithy-observability"
465-version = "0.3.0"
466-source = "registry+https://github.com/rust-lang/crates.io-index"
467-checksum = "8e86338c869539a581bf161247762a6e87f92c5c075060057b5ed6d06632ed0c"
468-dependencies = [
469- "aws-smithy-runtime-api",
470-]
471-
472-[[package]]
473-name = "aws-smithy-query"
474-version = "0.62.0"
475-source = "registry+https://github.com/rust-lang/crates.io-index"
476-checksum = "512346c7212ab7436df2d77a16d976a468ae44a418835511d2a69269810aaf62"
477-dependencies = [
478- "aws-smithy-runtime-api",
479- "aws-smithy-schema",
480- "aws-smithy-types",
481- "aws-smithy-xml",
482- "urlencoding",
483-]
484-
485-[[package]]
486-name = "aws-smithy-runtime"
487-version = "1.12.1"
488-source = "registry+https://github.com/rust-lang/crates.io-index"
489-checksum = "07505b34e8f4b3591a4fa69e9792b52289b95488dbbc68c3c0075b7bedb245e1"
490-dependencies = [
491- "aws-smithy-async",
492- "aws-smithy-http",
493- "aws-smithy-http-client",
494- "aws-smithy-observability",
495- "aws-smithy-runtime-api",
496- "aws-smithy-schema",
497- "aws-smithy-types",
498- "bytes",
499- "fastrand",
500- "http 0.2.12",
501- "http 1.5.0",
502- "http-body 0.4.6",
503- "http-body 1.1.0",
504- "http-body-util",
505- "pin-project-lite",
506- "pin-utils",
507- "tokio",
508- "tracing",
509-]
510-
511-[[package]]
512-name = "aws-smithy-runtime-api"
513-version = "1.14.0"
514-source = "registry+https://github.com/rust-lang/crates.io-index"
515-checksum = "3b98f2e1fd67ec06618f9c291e5e495a468e60519e44c9c1979cd0521f3affdb"
516-dependencies = [
517- "aws-smithy-async",
518- "aws-smithy-runtime-api-macros",
519- "aws-smithy-types",
520- "bytes",
521- "http 0.2.12",
522- "http 1.5.0",
523- "pin-project-lite",
524- "tokio",
525- "tracing",
526- "zeroize",
527-]
528-
529-[[package]]
530-name = "aws-smithy-runtime-api-macros"
531-version = "1.1.0"
532-source = "registry+https://github.com/rust-lang/crates.io-index"
533-checksum = "221eaa237ddf1ca79b60d1372aad77e47f9c0ea5b3ce5099da8c61d027dc77b3"
534-dependencies = [
535- "proc-macro2",
536- "quote",
537- "syn 2.0.119",
538-]
539-
540-[[package]]
541-name = "aws-smithy-schema"
542-version = "0.2.0"
543-source = "registry+https://github.com/rust-lang/crates.io-index"
544-checksum = "7d56e0a4e53127a632224e43633b0fe045fa9e1e3cfc68b9830f1115e103f910"
545-dependencies = [
546- "aws-smithy-runtime-api",
547- "aws-smithy-types",
548- "http 1.5.0",
549-]
550-
551-[[package]]
552-name = "aws-smithy-types"
553-version = "1.6.1"
554-source = "registry+https://github.com/rust-lang/crates.io-index"
555-checksum = "d6dc683efb34b9e755675b37fedbe0103141e5b6df7bdc9eb6967756a8c167d8"
556-dependencies = [
557- "base64-simd",
558- "bytes",
559- "bytes-utils",
560- "futures-core",
561- "http 0.2.12",
562- "http 1.5.0",
563- "http-body 0.4.6",
564- "http-body 1.1.0",
565- "http-body-util",
566- "itoa",
567- "num-integer",
568- "pin-project-lite",
569- "pin-utils",
570- "ryu",
571- "serde",
572- "time",
573- "tokio",
574- "tokio-util",
575-]
576-
577-[[package]]
578-name = "aws-smithy-xml"
579-version = "0.62.0"
580-source = "registry+https://github.com/rust-lang/crates.io-index"
581-checksum = "ce84f71c72fee2cbbadde6e7d082f5fb466e3a84733855295fa7aafd1b31b7d8"
582-dependencies = [
583- "aws-smithy-runtime-api",
584- "aws-smithy-schema",
585- "aws-smithy-types",
586- "xmlparser",
587-]
588-
589-[[package]]
590-name = "aws-types"
591-version = "1.5.0"
592-source = "registry+https://github.com/rust-lang/crates.io-index"
593-checksum = "eec1cd5469f328c782dc3e33d4153cf118a54e33cbb3356d60d16f89883e1f94"
594-dependencies = [
595- "aws-credential-types",
596- "aws-smithy-async",
597- "aws-smithy-runtime-api",
598- "aws-smithy-schema",
599- "aws-smithy-types",
600- "rustc_version",
601- "tracing",
602-]
603-
604-[[package]]
605-name = "axum"
606-version = "0.7.9"
607-source = "registry+https://github.com/rust-lang/crates.io-index"
608-checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f"
609-dependencies = [
610- "async-trait",
611- "axum-core",
612- "bytes",
613- "futures-util",
614- "http 1.5.0",
615- "http-body 1.1.0",
616- "http-body-util",
617- "hyper 1.11.0",
618- "hyper-util",
619- "itoa",
620- "matchit",
621- "memchr",
622- "mime",
623- "multer",
624- "percent-encoding",
625- "pin-project-lite",
626- "rustversion",
627- "serde",
628- "serde_json",
629- "serde_path_to_error",
630- "serde_urlencoded",
631- "sync_wrapper",
632- "tokio",
633- "tower",
634- "tower-layer",
635- "tower-service",
636- "tracing",
637-]
638-
639-[[package]]
640-name = "axum-core"
641-version = "0.4.5"
642-source = "registry+https://github.com/rust-lang/crates.io-index"
643-checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199"
644-dependencies = [
645- "async-trait",
646- "bytes",
647- "futures-util",
648- "http 1.5.0",
649- "http-body 1.1.0",
650- "http-body-util",
651- "mime",
652- "pin-project-lite",
653- "rustversion",
654- "sync_wrapper",
655- "tower-layer",
656- "tower-service",
657- "tracing",
658-]
659-
660-[[package]]
661-name = "base16ct"
662-version = "0.2.0"
663-source = "registry+https://github.com/rust-lang/crates.io-index"
664-checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf"
665-
666-[[package]]
667-name = "base64"
668-version = "0.21.7"
669-source = "registry+https://github.com/rust-lang/crates.io-index"
670-checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
671-
672-[[package]]
673-name = "base64"
674-version = "0.22.1"
675-source = "registry+https://github.com/rust-lang/crates.io-index"
676-checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
677-
678-[[package]]
679-name = "base64-simd"
680-version = "0.8.0"
681-source = "registry+https://github.com/rust-lang/crates.io-index"
682-checksum = "339abbe78e73178762e23bea9dfd08e697eb3f3301cd4be981c0f78ba5859195"
683-dependencies = [
684- "outref",
685- "vsimd",
686-]
687-
688-[[package]]
689-name = "base64ct"
690-version = "1.8.3"
691-source = "registry+https://github.com/rust-lang/crates.io-index"
692-checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"
693-
694-[[package]]
695-name = "bindgen"
696-version = "0.72.1"
697-source = "registry+https://github.com/rust-lang/crates.io-index"
698-checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
699-dependencies = [
700- "bitflags",
701- "cexpr",
702- "clang-sys",
703- "itertools",
704- "log",
705- "prettyplease",
706- "proc-macro2",
707- "quote",
708- "regex",
709- "rustc-hash",
710- "shlex 1.3.0",
711- "syn 2.0.119",
712-]
713-
714-[[package]]
715-name = "bit-set"
716-version = "0.8.0"
717-source = "registry+https://github.com/rust-lang/crates.io-index"
718-checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
719-dependencies = [
720- "bit-vec",
721-]
722-
723-[[package]]
724-name = "bit-vec"
725-version = "0.8.0"
726-source = "registry+https://github.com/rust-lang/crates.io-index"
727-checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
728-
729-[[package]]
730-name = "bitflags"
731-version = "2.13.1"
732-source = "registry+https://github.com/rust-lang/crates.io-index"
733-checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
734-
735-[[package]]
736-name = "block-buffer"
737-version = "0.10.4"
738-source = "registry+https://github.com/rust-lang/crates.io-index"
739-checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
740-dependencies = [
741- "generic-array",
742-]
743-
744-[[package]]
745-name = "block-buffer"
746-version = "0.12.1"
747-source = "registry+https://github.com/rust-lang/crates.io-index"
748-checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
749-dependencies = [
750- "hybrid-array",
751-]
752-
753-[[package]]
754-name = "bumpalo"
755-version = "3.20.3"
756-source = "registry+https://github.com/rust-lang/crates.io-index"
757-checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
758-
759-[[package]]
760-name = "bytes"
761-version = "1.12.1"
762-source = "registry+https://github.com/rust-lang/crates.io-index"
763-checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
764-
765-[[package]]
766-name = "bytes-utils"
767-version = "0.1.4"
768-source = "registry+https://github.com/rust-lang/crates.io-index"
769-checksum = "7dafe3a8757b027e2be6e4e5601ed563c55989fcf1546e933c66c8eb3a058d35"
770-dependencies = [
771- "bytes",
772- "either",
773-]
774-
775-[[package]]
776-name = "calendrical_calculations"
777-version = "0.2.4"
778-source = "registry+https://github.com/rust-lang/crates.io-index"
779-checksum = "5abbd6eeda6885048d357edc66748eea6e0268e3dd11f326fff5bd248d779c26"
780-dependencies = [
781- "core_maths",
782- "displaydoc",
783-]
784-
785-[[package]]
786-name = "cc"
787-version = "1.4.0"
788-source = "registry+https://github.com/rust-lang/crates.io-index"
789-checksum = "5add81bb678e6cb321aff7fa0dc7689ad82b112dbc032cea19f91d6b8e3582b9"
790-dependencies = [
791- "find-msvc-tools",
792- "jobserver",
793- "libc",
794- "shlex 2.0.1",
795-]
796-
797-[[package]]
798-name = "celld"
799-version = "0.0.2"
800-dependencies = [
801- "aes-gcm",
802- "anyhow",
803- "aws-config",
804- "aws-credential-types",
805- "aws-sdk-s3",
806- "aws-smithy-http-client",
807- "axum",
808- "base64 0.22.1",
809- "celld-logic",
810- "celld-ltx",
811- "deno_core_icudata",
812- "ed25519-dalek",
813- "encoding_rs",
814- "fastwebsockets",
815- "filetime",
816- "flate2",
817- "fs2",
818- "futures-util",
819- "getrandom 0.3.4",
820- "hmac 0.12.1",
821- "http-body-util",
822- "hyper 1.11.0",
823- "hyper-util",
824- "libc",
825- "md-5 0.10.6",
826- "p256",
827- "percent-encoding",
828- "rand 0.8.7",
829- "regex",
830- "reqwest",
831- "rsa",
832- "rusqlite",
833- "rustls 0.23.43",
834- "serde",
835- "serde_json",
836- "sha1 0.10.7",
837- "sha2 0.10.9",
838- "tokio",
839- "tokio-stream",
840- "tokio-tungstenite",
841- "tokio-util",
842- "tracing",
843- "tracing-subscriber",
844- "url",
845- "urlpattern",
846- "v8",
847-]
848-
849-[[package]]
850-name = "celld-logic"
851-version = "0.0.2"
852-
853-[[package]]
854-name = "celld-ltx"
855-version = "0.0.0"
856-dependencies = [
857- "async-trait",
858- "bytes",
859- "futures",
860- "hex",
861- "lz4_flex",
862- "object_store",
863- "proptest",
864- "reqwest",
865- "rusqlite",
866- "serde",
867- "serde_json",
868- "sha2 0.10.9",
869- "tempfile",
870- "thiserror 2.0.19",
871- "tokio",
872- "tracing",
873-]
874-
875-[[package]]
876-name = "cexpr"
877-version = "0.6.0"
878-source = "registry+https://github.com/rust-lang/crates.io-index"
879-checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
880-dependencies = [
881- "nom",
882-]
883-
884-[[package]]
885-name = "cfg-if"
886-version = "1.0.4"
887-source = "registry+https://github.com/rust-lang/crates.io-index"
888-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
889-
890-[[package]]
891-name = "cfg_aliases"
892-version = "0.2.2"
893-source = "registry+https://github.com/rust-lang/crates.io-index"
894-checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
895-
896-[[package]]
897-name = "chacha20"
898-version = "0.10.1"
899-source = "registry+https://github.com/rust-lang/crates.io-index"
900-checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"
901-dependencies = [
902- "cfg-if",
903- "cpufeatures 0.3.0",
904- "rand_core 0.10.1",
905-]
906-
907-[[package]]
908-name = "chrono"
909-version = "0.4.45"
910-source = "registry+https://github.com/rust-lang/crates.io-index"
911-checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
912-dependencies = [
913- "iana-time-zone",
914- "num-traits",
915- "serde",
916- "windows-link",
917-]
918-
919-[[package]]
920-name = "cipher"
921-version = "0.4.4"
922-source = "registry+https://github.com/rust-lang/crates.io-index"
923-checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"
924-dependencies = [
925- "crypto-common 0.1.7",
926- "inout",
927-]
928-
929-[[package]]
930-name = "clang-sys"
931-version = "1.9.1"
932-source = "registry+https://github.com/rust-lang/crates.io-index"
933-checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
934-dependencies = [
935- "glob",
936- "libc",
937- "libloading",
938-]
939-
940-[[package]]
941-name = "cmake"
942-version = "0.1.58"
943-source = "registry+https://github.com/rust-lang/crates.io-index"
944-checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678"
945-dependencies = [
946- "cc",
947-]
948-
949-[[package]]
950-name = "cmov"
951-version = "0.5.4"
952-source = "registry+https://github.com/rust-lang/crates.io-index"
953-checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
954-
955-[[package]]
956-name = "const-oid"
957-version = "0.9.6"
958-source = "registry+https://github.com/rust-lang/crates.io-index"
959-checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
960-
961-[[package]]
962-name = "const-oid"
963-version = "0.10.2"
964-source = "registry+https://github.com/rust-lang/crates.io-index"
965-checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
966-
967-[[package]]
968-name = "core-foundation"
969-version = "0.10.1"
970-source = "registry+https://github.com/rust-lang/crates.io-index"
971-checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
972-dependencies = [
973- "core-foundation-sys",
974- "libc",
975-]
976-
977-[[package]]
978-name = "core-foundation-sys"
979-version = "0.8.7"
980-source = "registry+https://github.com/rust-lang/crates.io-index"
981-checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
982-
983-[[package]]
984-name = "core_maths"
985-version = "0.1.1"
986-source = "registry+https://github.com/rust-lang/crates.io-index"
987-checksum = "77745e017f5edba1a9c1d854f6f3a52dac8a12dd5af5d2f54aecf61e43d80d30"
988-dependencies = [
989- "libm",
990-]
991-
992-[[package]]
993-name = "cpufeatures"
994-version = "0.2.17"
995-source = "registry+https://github.com/rust-lang/crates.io-index"
996-checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
997-dependencies = [
998- "libc",
999-]
1000-
1001-[[package]]
1002-name = "cpufeatures"
1003-version = "0.3.0"
1004-source = "registry+https://github.com/rust-lang/crates.io-index"
1005-checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
1006-dependencies = [
1007- "libc",
1008-]
1009-
1010-[[package]]
1011-name = "crc-fast"
1012-version = "1.10.0"
1013-source = "registry+https://github.com/rust-lang/crates.io-index"
1014-checksum = "e75b2483e97a5a7da73ac68a05b629f9c53cff58d8ed1c77866079e18b00dba5"
1015-dependencies = [
1016- "digest 0.10.7",
1017- "spin 0.10.1",
1018-]
1019-
1020-[[package]]
1021-name = "crc32fast"
1022-version = "1.5.0"
1023-source = "registry+https://github.com/rust-lang/crates.io-index"
1024-checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
1025-dependencies = [
1026- "cfg-if",
1027-]
1028-
1029-[[package]]
1030-name = "crypto-bigint"
1031-version = "0.5.5"
1032-source = "registry+https://github.com/rust-lang/crates.io-index"
1033-checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76"
1034-dependencies = [
1035- "generic-array",
1036- "rand_core 0.6.4",
1037- "subtle",
1038- "zeroize",
1039-]
1040-
1041-[[package]]
1042-name = "crypto-common"
1043-version = "0.1.7"
1044-source = "registry+https://github.com/rust-lang/crates.io-index"
1045-checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
1046-dependencies = [
1047- "generic-array",
1048- "rand_core 0.6.4",
1049- "typenum",
1050-]
1051-
1052-[[package]]
1053-name = "crypto-common"
1054-version = "0.2.2"
1055-source = "registry+https://github.com/rust-lang/crates.io-index"
1056-checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
1057-dependencies = [
1058- "hybrid-array",
1059-]
1060-
1061-[[package]]
1062-name = "ctr"
1063-version = "0.9.2"
1064-source = "registry+https://github.com/rust-lang/crates.io-index"
1065-checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835"
1066-dependencies = [
1067- "cipher",
1068-]
1069-
1070-[[package]]
1071-name = "ctutils"
1072-version = "0.4.2"
1073-source = "registry+https://github.com/rust-lang/crates.io-index"
1074-checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
1075-dependencies = [
1076- "cmov",
1077-]
1078-
1079-[[package]]
1080-name = "curve25519-dalek"
1081-version = "4.1.3"
1082-source = "registry+https://github.com/rust-lang/crates.io-index"
1083-checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
1084-dependencies = [
1085- "cfg-if",
1086- "cpufeatures 0.2.17",
1087- "curve25519-dalek-derive",
1088- "digest 0.10.7",
1089- "fiat-crypto",
1090- "rustc_version",
1091- "subtle",
1092- "zeroize",
1093-]
1094-
1095-[[package]]
1096-name = "curve25519-dalek-derive"
1097-version = "0.1.1"
1098-source = "registry+https://github.com/rust-lang/crates.io-index"
1099-checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
1100-dependencies = [
1101- "proc-macro2",
1102- "quote",
1103- "syn 2.0.119",
1104-]
1105-
1106-[[package]]
1107-name = "data-encoding"
1108-version = "2.11.0"
1109-source = "registry+https://github.com/rust-lang/crates.io-index"
1110-checksum = "a4ae5f15dda3c708c0ade84bfee31ccab44a3da4f88015ed22f63732abe300c8"
1111-
1112-[[package]]
1113-name = "deno_core_icudata"
1114-version = "0.77.0"
1115-source = "registry+https://github.com/rust-lang/crates.io-index"
1116-checksum = "a9efff8990a82c1ae664292507e1a5c6749ddd2312898cdf9cd7cb1fd4bc64c6"
1117-
1118-[[package]]
1119-name = "der"
1120-version = "0.7.10"
1121-source = "registry+https://github.com/rust-lang/crates.io-index"
1122-checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
1123-dependencies = [
1124- "const-oid 0.9.6",
1125- "pem-rfc7468",
1126- "zeroize",
1127-]
1128-
1129-[[package]]
1130-name = "deranged"
1131-version = "0.5.8"
1132-source = "registry+https://github.com/rust-lang/crates.io-index"
1133-checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
1134-
1135-[[package]]
1136-name = "digest"
1137-version = "0.10.7"
1138-source = "registry+https://github.com/rust-lang/crates.io-index"
1139-checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
1140-dependencies = [
1141- "block-buffer 0.10.4",
1142- "const-oid 0.9.6",
1143- "crypto-common 0.1.7",
1144- "subtle",
1145-]
1146-
1147-[[package]]
1148-name = "digest"
1149-version = "0.11.3"
1150-source = "registry+https://github.com/rust-lang/crates.io-index"
1151-checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
1152-dependencies = [
1153- "block-buffer 0.12.1",
1154- "const-oid 0.10.2",
1155- "crypto-common 0.2.2",
1156- "ctutils",
1157-]
1158-
1159-[[package]]
1160-name = "diplomat"
1161-version = "0.15.0"
1162-source = "registry+https://github.com/rust-lang/crates.io-index"
1163-checksum = "7935649d00000f5c5d735448ad3dc07b9738160727017914cf42138b8e8e6611"
1164-dependencies = [
1165- "diplomat_core",
1166- "proc-macro2",
1167- "quote",
1168- "syn 2.0.119",
1169-]
1170-
1171-[[package]]
1172-name = "diplomat-runtime"
1173-version = "0.15.1"
1174-source = "registry+https://github.com/rust-lang/crates.io-index"
1175-checksum = "970ac38ad677632efcee6d517e783958da9bc78ec206d8d5e35b459ffc5e4864"
1176-
1177-[[package]]
1178-name = "diplomat_core"
1179-version = "0.15.0"
1180-source = "registry+https://github.com/rust-lang/crates.io-index"
1181-checksum = "9cf41b94101a4bce993febaf0098092b0bb31deaf0ecaf6e0a2562465f61b383"
1182-dependencies = [
1183- "proc-macro2",
1184- "quote",
1185- "serde",
1186- "smallvec",
1187- "strck",
1188- "syn 2.0.119",
1189-]
1190-
1191-[[package]]
1192-name = "displaydoc"
1193-version = "0.2.7"
1194-source = "registry+https://github.com/rust-lang/crates.io-index"
1195-checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
1196-dependencies = [
1197- "proc-macro2",
1198- "quote",
1199- "syn 3.0.3",
1200-]
1201-
1202-[[package]]
1203-name = "dunce"
1204-version = "1.0.5"
1205-source = "registry+https://github.com/rust-lang/crates.io-index"
1206-checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
1207-
1208-[[package]]
1209-name = "ecdsa"
1210-version = "0.16.9"
1211-source = "registry+https://github.com/rust-lang/crates.io-index"
1212-checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca"
1213-dependencies = [
1214- "der",
1215- "digest 0.10.7",
1216- "elliptic-curve",
1217- "rfc6979",
1218- "signature",
1219- "spki",
1220-]
1221-
1222-[[package]]
1223-name = "ed25519"
1224-version = "2.2.3"
1225-source = "registry+https://github.com/rust-lang/crates.io-index"
1226-checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
1227-dependencies = [
1228- "pkcs8",
1229- "signature",
1230-]
1231-
1232-[[package]]
1233-name = "ed25519-dalek"
1234-version = "2.2.0"
1235-source = "registry+https://github.com/rust-lang/crates.io-index"
1236-checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9"
1237-dependencies = [
1238- "curve25519-dalek",
1239- "ed25519",
1240- "serde",
1241- "sha2 0.10.9",
1242- "subtle",
1243- "zeroize",
1244-]
1245-
1246-[[package]]
1247-name = "either"
1248-version = "1.17.0"
1249-source = "registry+https://github.com/rust-lang/crates.io-index"
1250-checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
1251-
1252-[[package]]
1253-name = "elliptic-curve"
1254-version = "0.13.8"
1255-source = "registry+https://github.com/rust-lang/crates.io-index"
1256-checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47"
1257-dependencies = [
1258- "base16ct",
1259- "crypto-bigint",
1260- "digest 0.10.7",
1261- "ff",
1262- "generic-array",
1263- "group",
1264- "pem-rfc7468",
1265- "pkcs8",
1266- "rand_core 0.6.4",
1267- "sec1",
1268- "subtle",
1269- "zeroize",
1270-]
1271-
1272-[[package]]
1273-name = "encoding_rs"
1274-version = "0.8.35"
1275-source = "registry+https://github.com/rust-lang/crates.io-index"
1276-checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
1277-dependencies = [
1278- "cfg-if",
1279-]
1280-
1281-[[package]]
1282-name = "equivalent"
1283-version = "1.0.2"
1284-source = "registry+https://github.com/rust-lang/crates.io-index"
1285-checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
1286-
1287-[[package]]
1288-name = "errno"
1289-version = "0.3.14"
1290-source = "registry+https://github.com/rust-lang/crates.io-index"
1291-checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
1292-dependencies = [
1293- "libc",
1294- "windows-sys 0.61.2",
1295-]
1296-
1297-[[package]]
1298-name = "fallible-iterator"
1299-version = "0.3.0"
1300-source = "registry+https://github.com/rust-lang/crates.io-index"
1301-checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649"
1302-
1303-[[package]]
1304-name = "fallible-streaming-iterator"
1305-version = "0.1.9"
1306-source = "registry+https://github.com/rust-lang/crates.io-index"
1307-checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a"
1308-
1309-[[package]]
1310-name = "fastrand"
1311-version = "2.5.0"
1312-source = "registry+https://github.com/rust-lang/crates.io-index"
1313-checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
1314-
1315-[[package]]
1316-name = "fastwebsockets"
1317-version = "0.8.1"
1318-source = "registry+https://github.com/rust-lang/crates.io-index"
1319-checksum = "9dac026e15fb7e44d768880b868a0fd5bd30ffdee272e88b3060f657a5a72947"
1320-dependencies = [
1321- "async-trait",
1322- "axum-core",
1323- "base64 0.21.7",
1324- "bytes",
1325- "http 1.5.0",
1326- "http-body-util",
1327- "hyper 1.11.0",
1328- "hyper-util",
1329- "pin-project",
1330- "rand 0.8.7",
1331- "sha1 0.10.7",
1332- "thiserror 1.0.69",
1333- "tokio",
1334- "utf-8",
1335-]
1336-
1337-[[package]]
1338-name = "ff"
1339-version = "0.13.1"
1340-source = "registry+https://github.com/rust-lang/crates.io-index"
1341-checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393"
1342-dependencies = [
1343- "rand_core 0.6.4",
1344- "subtle",
1345-]
1346-
1347-[[package]]
1348-name = "fiat-crypto"
1349-version = "0.2.9"
1350-source = "registry+https://github.com/rust-lang/crates.io-index"
1351-checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
1352-
1353-[[package]]
1354-name = "filetime"
1355-version = "0.2.29"
1356-source = "registry+https://github.com/rust-lang/crates.io-index"
1357-checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759"
1358-dependencies = [
1359- "cfg-if",
1360- "libc",
1361-]
1362-
1363-[[package]]
1364-name = "find-msvc-tools"
1365-version = "0.1.9"
1366-source = "registry+https://github.com/rust-lang/crates.io-index"
1367-checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
1368-
1369-[[package]]
1370-name = "flate2"
1371-version = "1.1.9"
1372-source = "registry+https://github.com/rust-lang/crates.io-index"
1373-checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
1374-dependencies = [
1375- "crc32fast",
1376- "miniz_oxide",
1377-]
1378-
1379-[[package]]
1380-name = "fnv"
1381-version = "1.0.7"
1382-source = "registry+https://github.com/rust-lang/crates.io-index"
1383-checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
1384-
1385-[[package]]
1386-name = "foldhash"
1387-version = "0.2.0"
1388-source = "registry+https://github.com/rust-lang/crates.io-index"
1389-checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
1390-
1391-[[package]]
1392-name = "form_urlencoded"
1393-version = "1.2.2"
1394-source = "registry+https://github.com/rust-lang/crates.io-index"
1395-checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
1396-dependencies = [
1397- "percent-encoding",
1398-]
1399-
1400-[[package]]
1401-name = "fs2"
1402-version = "0.4.3"
1403-source = "registry+https://github.com/rust-lang/crates.io-index"
1404-checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213"
1405-dependencies = [
1406- "libc",
1407- "winapi",
1408-]
1409-
1410-[[package]]
1411-name = "fs_extra"
1412-version = "1.3.0"
1413-source = "registry+https://github.com/rust-lang/crates.io-index"
1414-checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
1415-
1416-[[package]]
1417-name = "fslock"
1418-version = "0.2.1"
1419-source = "registry+https://github.com/rust-lang/crates.io-index"
1420-checksum = "04412b8935272e3a9bae6f48c7bfff74c2911f60525404edfdd28e49884c3bfb"
1421-dependencies = [
1422- "libc",
1423- "winapi",
1424-]
1425-
1426-[[package]]
1427-name = "futures"
1428-version = "0.3.33"
1429-source = "registry+https://github.com/rust-lang/crates.io-index"
1430-checksum = "a88cf1f829d945f548cf8fec32c61b1f202b6d93b45848602fc02af4b12ad218"
1431-dependencies = [
1432- "futures-channel",
1433- "futures-core",
1434- "futures-executor",
1435- "futures-io",
1436- "futures-sink",
1437- "futures-task",
1438- "futures-util",
1439-]
1440-
1441-[[package]]
1442-name = "futures-channel"
1443-version = "0.3.33"
1444-source = "registry+https://github.com/rust-lang/crates.io-index"
1445-checksum = "262590f4fe6afeb0bc83be1daa64e52657fe185690a958af7f3ad0e92085c5ae"
1446-dependencies = [
1447- "futures-core",
1448- "futures-sink",
1449-]
1450-
1451-[[package]]
1452-name = "futures-core"
1453-version = "0.3.33"
1454-source = "registry+https://github.com/rust-lang/crates.io-index"
1455-checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7"
1456-
1457-[[package]]
1458-name = "futures-executor"
1459-version = "0.3.33"
1460-source = "registry+https://github.com/rust-lang/crates.io-index"
1461-checksum = "6754879cc9f2c66f88c6e5c35344bb0bdb0708b0352b1201815667c7eabc7458"
1462-dependencies = [
1463- "futures-core",
1464- "futures-task",
1465- "futures-util",
1466-]
1467-
1468-[[package]]
1469-name = "futures-io"
1470-version = "0.3.33"
1471-source = "registry+https://github.com/rust-lang/crates.io-index"
1472-checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a"
1473-
1474-[[package]]
1475-name = "futures-macro"
1476-version = "0.3.33"
1477-source = "registry+https://github.com/rust-lang/crates.io-index"
1478-checksum = "2d6d3cde68c518367be28956066ddfef33813991b77a55005a69dae04bf3b10b"
1479-dependencies = [
1480- "proc-macro2",
1481- "quote",
1482- "syn 2.0.119",
1483-]
1484-
1485-[[package]]
1486-name = "futures-sink"
1487-version = "0.3.33"
1488-source = "registry+https://github.com/rust-lang/crates.io-index"
1489-checksum = "e34418ac499d6305c2fb5ad0ed2f6ac998c5f8ca209b4510f7f94242c647e307"
1490-
1491-[[package]]
1492-name = "futures-task"
1493-version = "0.3.33"
1494-source = "registry+https://github.com/rust-lang/crates.io-index"
1495-checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109"
1496-
1497-[[package]]
1498-name = "futures-util"
1499-version = "0.3.33"
1500-source = "registry+https://github.com/rust-lang/crates.io-index"
1501-checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa"
1502-dependencies = [
1503- "futures-channel",
1504- "futures-core",
1505- "futures-io",
1506- "futures-macro",
1507- "futures-sink",
1508- "futures-task",
1509- "memchr",
1510- "pin-project-lite",
1511- "slab",
1512-]
1513-
1514-[[package]]
1515-name = "generic-array"
1516-version = "0.14.7"
1517-source = "registry+https://github.com/rust-lang/crates.io-index"
1518-checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
1519-dependencies = [
1520- "typenum",
1521- "version_check",
1522- "zeroize",
1523-]
1524-
1525-[[package]]
1526-name = "getrandom"
1527-version = "0.2.17"
1528-source = "registry+https://github.com/rust-lang/crates.io-index"
1529-checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
1530-dependencies = [
1531- "cfg-if",
1532- "js-sys",
1533- "libc",
1534- "wasi",
1535- "wasm-bindgen",
1536-]
1537-
1538-[[package]]
1539-name = "getrandom"
1540-version = "0.3.4"
1541-source = "registry+https://github.com/rust-lang/crates.io-index"
1542-checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
1543-dependencies = [
1544- "cfg-if",
1545- "libc",
1546- "r-efi 5.3.0",
1547- "wasip2",
1548-]
1549-
1550-[[package]]
1551-name = "getrandom"
1552-version = "0.4.3"
1553-source = "registry+https://github.com/rust-lang/crates.io-index"
1554-checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
1555-dependencies = [
1556- "cfg-if",
1557- "js-sys",
1558- "libc",
1559- "r-efi 6.0.0",
1560- "rand_core 0.10.1",
1561- "wasm-bindgen",
1562-]
1563-
1564-[[package]]
1565-name = "ghash"
1566-version = "0.5.1"
1567-source = "registry+https://github.com/rust-lang/crates.io-index"
1568-checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1"
1569-dependencies = [
1570- "opaque-debug",
1571- "polyval",
1572-]
1573-
1574-[[package]]
1575-name = "glob"
1576-version = "0.3.4"
1577-source = "registry+https://github.com/rust-lang/crates.io-index"
1578-checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
1579-
1580-[[package]]
1581-name = "group"
1582-version = "0.13.0"
1583-source = "registry+https://github.com/rust-lang/crates.io-index"
1584-checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63"
1585-dependencies = [
1586- "ff",
1587- "rand_core 0.6.4",
1588- "subtle",
1589-]
1590-
1591-[[package]]
1592-name = "gzip-header"
1593-version = "1.1.0"
1594-source = "registry+https://github.com/rust-lang/crates.io-index"
1595-checksum = "86848f4fd157d91041a62c78046fb7b248bcc2dce78376d436a1756e9a038577"
1596-dependencies = [
1597- "crc32fast",
1598-]
1599-
1600-[[package]]
1601-name = "h2"
1602-version = "0.3.27"
1603-source = "registry+https://github.com/rust-lang/crates.io-index"
1604-checksum = "0beca50380b1fc32983fc1cb4587bfa4bb9e78fc259aad4a0032d2080309222d"
1605-dependencies = [
1606- "bytes",
1607- "fnv",
1608- "futures-core",
1609- "futures-sink",
1610- "futures-util",
1611- "http 0.2.12",
1612- "indexmap",
1613- "slab",
1614- "tokio",
1615- "tokio-util",
1616- "tracing",
1617-]
1618-
1619-[[package]]
1620-name = "h2"
1621-version = "0.4.15"
1622-source = "registry+https://github.com/rust-lang/crates.io-index"
1623-checksum = "6cb093c84e8bd9b188d4c4a8cb6579fc016968d14c99882163cd3ff402a4f155"
1624-dependencies = [
1625- "atomic-waker",
1626- "bytes",
1627- "fnv",
1628- "futures-core",
1629- "futures-sink",
1630- "http 1.5.0",
1631- "indexmap",
1632- "slab",
1633- "tokio",
1634- "tokio-util",
1635- "tracing",
1636-]
1637-
1638-[[package]]
1639-name = "hashbrown"
1640-version = "0.14.5"
1641-source = "registry+https://github.com/rust-lang/crates.io-index"
1642-checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
1643-dependencies = [
1644- "ahash",
1645-]
1646-
1647-[[package]]
1648-name = "hashbrown"
1649-version = "0.16.1"
1650-source = "registry+https://github.com/rust-lang/crates.io-index"
1651-checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
1652-dependencies = [
1653- "allocator-api2",
1654- "equivalent",
1655- "foldhash",
1656-]
1657-
1658-[[package]]
1659-name = "hashbrown"
1660-version = "0.17.1"
1661-source = "registry+https://github.com/rust-lang/crates.io-index"
1662-checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
1663-
1664-[[package]]
1665-name = "hashlink"
1666-version = "0.9.1"
1667-source = "registry+https://github.com/rust-lang/crates.io-index"
1668-checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af"
1669-dependencies = [
1670- "hashbrown 0.14.5",
1671-]
1672-
1673-[[package]]
1674-name = "heck"
1675-version = "0.5.0"
1676-source = "registry+https://github.com/rust-lang/crates.io-index"
1677-checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
1678-
1679-[[package]]
1680-name = "hex"
1681-version = "0.4.3"
1682-source = "registry+https://github.com/rust-lang/crates.io-index"
1683-checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
1684-
1685-[[package]]
1686-name = "hmac"
1687-version = "0.12.1"
1688-source = "registry+https://github.com/rust-lang/crates.io-index"
1689-checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
1690-dependencies = [
1691- "digest 0.10.7",
1692-]
1693-
1694-[[package]]
1695-name = "hmac"
1696-version = "0.13.0"
1697-source = "registry+https://github.com/rust-lang/crates.io-index"
1698-checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f"
1699-dependencies = [
1700- "digest 0.11.3",
1701-]
1702-
1703-[[package]]
1704-name = "home"
1705-version = "0.5.12"
1706-source = "registry+https://github.com/rust-lang/crates.io-index"
1707-checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d"
1708-dependencies = [
1709- "windows-sys 0.61.2",
1710-]
1711-
1712-[[package]]
1713-name = "http"
1714-version = "0.2.12"
1715-source = "registry+https://github.com/rust-lang/crates.io-index"
1716-checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1"
1717-dependencies = [
1718- "bytes",
1719- "fnv",
1720- "itoa",
1721-]
1722-
1723-[[package]]
1724-name = "http"
1725-version = "1.5.0"
1726-source = "registry+https://github.com/rust-lang/crates.io-index"
1727-checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"
1728-dependencies = [
1729- "bytes",
1730- "itoa",
1731-]
1732-
1733-[[package]]
1734-name = "http-body"
1735-version = "0.4.6"
1736-source = "registry+https://github.com/rust-lang/crates.io-index"
1737-checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2"
1738-dependencies = [
1739- "bytes",
1740- "http 0.2.12",
1741- "pin-project-lite",
1742-]
1743-
1744-[[package]]
1745-name = "http-body"
1746-version = "1.1.0"
1747-source = "registry+https://github.com/rust-lang/crates.io-index"
1748-checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"
1749-dependencies = [
1750- "bytes",
1751- "http 1.5.0",
1752-]
1753-
1754-[[package]]
1755-name = "http-body-util"
1756-version = "0.1.4"
1757-source = "registry+https://github.com/rust-lang/crates.io-index"
1758-checksum = "e9f41fd6a08e4d4ec69df65976da761afd5ad5e58a9d4acb46bd1c953a9e3ff2"
1759-dependencies = [
1760- "bytes",
1761- "futures-core",
1762- "http 1.5.0",
1763- "http-body 1.1.0",
1764- "pin-project-lite",
1765-]
1766-
1767-[[package]]
1768-name = "httparse"
1769-version = "1.10.1"
1770-source = "registry+https://github.com/rust-lang/crates.io-index"
1771-checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
1772-
1773-[[package]]
1774-name = "httpdate"
1775-version = "1.0.3"
1776-source = "registry+https://github.com/rust-lang/crates.io-index"
1777-checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
1778-
1779-[[package]]
1780-name = "humantime"
1781-version = "2.4.0"
1782-source = "registry+https://github.com/rust-lang/crates.io-index"
1783-checksum = "15cdd26707701c53297e2fa6afb323d55fbc1d0810c3aec078ae3ef0424c3c15"
1784-
1785-[[package]]
1786-name = "hybrid-array"
1787-version = "0.4.14"
1788-source = "registry+https://github.com/rust-lang/crates.io-index"
1789-checksum = "707114b52a152fa7bdb290cd7cd5912d9467273b6d74e21b8d81aca1f8533f6b"
1790-dependencies = [
1791- "typenum",
1792-]
1793-
1794-[[package]]
1795-name = "hyper"
1796-version = "0.14.32"
1797-source = "registry+https://github.com/rust-lang/crates.io-index"
1798-checksum = "41dfc780fdec9373c01bae43289ea34c972e40ee3c9f6b3c8801a35f35586ce7"
1799-dependencies = [
1800- "bytes",
1801- "futures-channel",
1802- "futures-core",
1803- "futures-util",
1804- "h2 0.3.27",
1805- "http 0.2.12",
1806- "http-body 0.4.6",
1807- "httparse",
1808- "httpdate",
1809- "itoa",
1810- "pin-project-lite",
1811- "socket2 0.5.10",
1812- "tokio",
1813- "tower-service",
1814- "tracing",
1815- "want",
1816-]
1817-
1818-[[package]]
1819-name = "hyper"
1820-version = "1.11.0"
1821-source = "registry+https://github.com/rust-lang/crates.io-index"
1822-checksum = "d22053281f852e11534f5198498373cbb59295120a20771d90f7ed1897490a72"
1823-dependencies = [
1824- "atomic-waker",
1825- "bytes",
1826- "futures-channel",
1827- "futures-core",
1828- "h2 0.4.15",
1829- "http 1.5.0",
1830- "http-body 1.1.0",
1831- "httparse",
1832- "httpdate",
1833- "itoa",
1834- "pin-project-lite",
1835- "smallvec",
1836- "tokio",
1837- "want",
1838-]
1839-
1840-[[package]]
1841-name = "hyper-rustls"
1842-version = "0.24.2"
1843-source = "registry+https://github.com/rust-lang/crates.io-index"
1844-checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590"
1845-dependencies = [
1846- "futures-util",
1847- "http 0.2.12",
1848- "hyper 0.14.32",
1849- "log",
1850- "rustls 0.21.12",
1851- "tokio",
1852- "tokio-rustls 0.24.1",
1853-]
1854-
1855-[[package]]
1856-name = "hyper-rustls"
1857-version = "0.27.9"
1858-source = "registry+https://github.com/rust-lang/crates.io-index"
1859-checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
1860-dependencies = [
1861- "http 1.5.0",
1862- "hyper 1.11.0",
1863- "hyper-util",
1864- "rustls 0.23.43",
1865- "rustls-native-certs",
1866- "tokio",
1867- "tokio-rustls 0.26.4",
1868- "tower-service",
1869- "webpki-roots 1.0.9",
1870-]
1871-
1872-[[package]]
1873-name = "hyper-util"
1874-version = "0.1.20"
1875-source = "registry+https://github.com/rust-lang/crates.io-index"
1876-checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
1877-dependencies = [
1878- "base64 0.22.1",
1879- "bytes",
1880- "futures-channel",
1881- "futures-util",
1882- "http 1.5.0",
1883- "http-body 1.1.0",
1884- "hyper 1.11.0",
1885- "ipnet",
1886- "libc",
1887- "percent-encoding",
1888- "pin-project-lite",
1889- "socket2 0.6.5",
1890- "tokio",
1891- "tower-service",
1892- "tracing",
1893-]
1894-
1895-[[package]]
1896-name = "iana-time-zone"
1897-version = "0.1.65"
1898-source = "registry+https://github.com/rust-lang/crates.io-index"
1899-checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
1900-dependencies = [
1901- "android_system_properties",
1902- "core-foundation-sys",
1903- "iana-time-zone-haiku",
1904- "js-sys",
1905- "log",
1906- "wasm-bindgen",
1907- "windows-core",
1908-]
1909-
1910-[[package]]
1911-name = "iana-time-zone-haiku"
1912-version = "0.1.2"
1913-source = "registry+https://github.com/rust-lang/crates.io-index"
1914-checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
1915-dependencies = [
1916- "cc",
1917-]
1918-
1919-[[package]]
1920-name = "icu_calendar"
1921-version = "2.2.1"
1922-source = "registry+https://github.com/rust-lang/crates.io-index"
1923-checksum = "a2b2acc6263f494f1df50685b53ff8e57869e47d5c6fe39c23d518ae9a4f3e45"
1924-dependencies = [
1925- "calendrical_calculations",
1926- "displaydoc",
1927- "icu_calendar_data",
1928- "icu_locale",
1929- "icu_locale_core",
1930- "icu_provider",
1931- "tinystr",
1932- "zerovec",
1933-]
1934-
1935-[[package]]
1936-name = "icu_calendar_data"
1937-version = "2.2.0"
1938-source = "registry+https://github.com/rust-lang/crates.io-index"
1939-checksum = "118577bcf3a0fa7c6ac0a7d6e951814da84ee56b9b1f68fb4d8d10b08cefaf4d"
1940-
1941-[[package]]
1942-name = "icu_collections"
1943-version = "2.2.0"
1944-source = "registry+https://github.com/rust-lang/crates.io-index"
1945-checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
1946-dependencies = [
1947- "displaydoc",
1948- "potential_utf",
1949- "utf8_iter",
1950- "yoke",
1951- "zerofrom",
1952- "zerovec",
1953-]
1954-
1955-[[package]]
1956-name = "icu_locale"
1957-version = "2.2.0"
1958-source = "registry+https://github.com/rust-lang/crates.io-index"
1959-checksum = "d5a396343c7208121dc86e35623d3dfe19814a7613cfd14964994cdc9c9a2e26"
1960-dependencies = [
1961- "icu_collections",
1962- "icu_locale_core",
1963- "icu_locale_data",
1964- "icu_provider",
1965- "potential_utf",
1966- "tinystr",
1967- "zerovec",
1968-]
1969-
1970-[[package]]
1971-name = "icu_locale_core"
1972-version = "2.2.0"
1973-source = "registry+https://github.com/rust-lang/crates.io-index"
1974-checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
1975-dependencies = [
1976- "displaydoc",
1977- "litemap",
1978- "serde",
1979- "tinystr",
1980- "writeable",
1981- "zerovec",
1982-]
1983-
1984-[[package]]
1985-name = "icu_locale_data"
1986-version = "2.2.0"
1987-source = "registry+https://github.com/rust-lang/crates.io-index"
1988-checksum = "d5fdcc9ac77c6d74ff5cf6e65ef3181d6af32003b16fce3a77fb451d2f695993"
1989-
1990-[[package]]
1991-name = "icu_normalizer"
1992-version = "2.2.0"
1993-source = "registry+https://github.com/rust-lang/crates.io-index"
1994-checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
1995-dependencies = [
1996- "icu_collections",
1997- "icu_normalizer_data",
1998- "icu_properties",
1999- "icu_provider",
2000- "smallvec",
2001- "zerovec",
2002-]
2003-
2004-[[package]]
2005-name = "icu_normalizer_data"
2006-version = "2.2.0"
2007-source = "registry+https://github.com/rust-lang/crates.io-index"
2008-checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
2009-
2010-[[package]]
2011-name = "icu_properties"
2012-version = "2.2.0"
2013-source = "registry+https://github.com/rust-lang/crates.io-index"
2014-checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
2015-dependencies = [
2016- "icu_collections",
2017- "icu_locale_core",
2018- "icu_properties_data",
2019- "icu_provider",
2020- "zerotrie",
2021- "zerovec",
2022-]
2023-
2024-[[package]]
2025-name = "icu_properties_data"
2026-version = "2.2.0"
2027-source = "registry+https://github.com/rust-lang/crates.io-index"
2028-checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
2029-
2030-[[package]]
2031-name = "icu_provider"
2032-version = "2.2.0"
2033-source = "registry+https://github.com/rust-lang/crates.io-index"
2034-checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
2035-dependencies = [
2036- "displaydoc",
2037- "icu_locale_core",
2038- "serde",
2039- "stable_deref_trait",
2040- "writeable",
2041- "yoke",
2042- "zerofrom",
2043- "zerotrie",
2044- "zerovec",
2045-]
2046-
2047-[[package]]
2048-name = "idna"
2049-version = "1.1.0"
2050-source = "registry+https://github.com/rust-lang/crates.io-index"
2051-checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
2052-dependencies = [
2053- "idna_adapter",
2054- "smallvec",
2055- "utf8_iter",
2056-]
2057-
2058-[[package]]
2059-name = "idna_adapter"
2060-version = "1.2.2"
2061-source = "registry+https://github.com/rust-lang/crates.io-index"
2062-checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
2063-dependencies = [
2064- "icu_normalizer",
2065- "icu_properties",
2066-]
2067-
2068-[[package]]
2069-name = "indexmap"
2070-version = "2.14.0"
2071-source = "registry+https://github.com/rust-lang/crates.io-index"
2072-checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
2073-dependencies = [
2074- "equivalent",
2075- "hashbrown 0.17.1",
2076-]
2077-
2078-[[package]]
2079-name = "inout"
2080-version = "0.1.4"
2081-source = "registry+https://github.com/rust-lang/crates.io-index"
2082-checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"
2083-dependencies = [
2084- "generic-array",
2085-]
2086-
2087-[[package]]
2088-name = "ipnet"
2089-version = "2.12.1"
2090-source = "registry+https://github.com/rust-lang/crates.io-index"
2091-checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78"
2092-
2093-[[package]]
2094-name = "itertools"
2095-version = "0.13.0"
2096-source = "registry+https://github.com/rust-lang/crates.io-index"
2097-checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
2098-dependencies = [
2099- "either",
2100-]
2101-
2102-[[package]]
2103-name = "itoa"
2104-version = "1.0.18"
2105-source = "registry+https://github.com/rust-lang/crates.io-index"
2106-checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
2107-
2108-[[package]]
2109-name = "ixdtf"
2110-version = "0.6.5"
2111-source = "registry+https://github.com/rust-lang/crates.io-index"
2112-checksum = "2ceaf4c6c48465bead8cb6a0b7c4ee0c86ecbb31239032b9c66ab9a08d2f3ee1"
2113-
2114-[[package]]
2115-name = "jobserver"
2116-version = "0.1.35"
2117-source = "registry+https://github.com/rust-lang/crates.io-index"
2118-checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3"
2119-dependencies = [
2120- "getrandom 0.4.3",
2121- "libc",
2122-]
2123-
2124-[[package]]
2125-name = "js-sys"
2126-version = "0.3.103"
2127-source = "registry+https://github.com/rust-lang/crates.io-index"
2128-checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102"
2129-dependencies = [
2130- "cfg-if",
2131- "futures-util",
2132- "wasm-bindgen",
2133-]
2134-
2135-[[package]]
2136-name = "lazy_static"
2137-version = "1.5.0"
2138-source = "registry+https://github.com/rust-lang/crates.io-index"
2139-checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
2140-dependencies = [
2141- "spin 0.9.9",
2142-]
2143-
2144-[[package]]
2145-name = "libc"
2146-version = "0.2.189"
2147-source = "registry+https://github.com/rust-lang/crates.io-index"
2148-checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
2149-
2150-[[package]]
2151-name = "libloading"
2152-version = "0.8.9"
2153-source = "registry+https://github.com/rust-lang/crates.io-index"
2154-checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
2155-dependencies = [
2156- "cfg-if",
2157- "windows-link",
2158-]
2159-
2160-[[package]]
2161-name = "libm"
2162-version = "0.2.16"
2163-source = "registry+https://github.com/rust-lang/crates.io-index"
2164-checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
2165-
2166-[[package]]
2167-name = "libsqlite3-sys"
2168-version = "0.28.0"
2169-source = "registry+https://github.com/rust-lang/crates.io-index"
2170-checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f"
2171-dependencies = [
2172- "cc",
2173- "pkg-config",
2174- "vcpkg",
2175-]
2176-
2177-[[package]]
2178-name = "linux-raw-sys"
2179-version = "0.4.15"
2180-source = "registry+https://github.com/rust-lang/crates.io-index"
2181-checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
2182-
2183-[[package]]
2184-name = "linux-raw-sys"
2185-version = "0.12.1"
2186-source = "registry+https://github.com/rust-lang/crates.io-index"
2187-checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
2188-
2189-[[package]]
2190-name = "litemap"
2191-version = "0.8.2"
2192-source = "registry+https://github.com/rust-lang/crates.io-index"
2193-checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
2194-
2195-[[package]]
2196-name = "lock_api"
2197-version = "0.4.14"
2198-source = "registry+https://github.com/rust-lang/crates.io-index"
2199-checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
2200-dependencies = [
2201- "scopeguard",
2202-]
2203-
2204-[[package]]
2205-name = "log"
2206-version = "0.4.33"
2207-source = "registry+https://github.com/rust-lang/crates.io-index"
2208-checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
2209-
2210-[[package]]
2211-name = "lru"
2212-version = "0.16.4"
2213-source = "registry+https://github.com/rust-lang/crates.io-index"
2214-checksum = "7f66e8d5d03f609abc3a39e6f08e4164ebf1447a732906d39eb9b99b7919ef39"
2215-dependencies = [
2216- "hashbrown 0.16.1",
2217-]
2218-
2219-[[package]]
2220-name = "lru-slab"
2221-version = "0.1.2"
2222-source = "registry+https://github.com/rust-lang/crates.io-index"
2223-checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
2224-
2225-[[package]]
2226-name = "lz4_flex"
2227-version = "0.11.6"
2228-source = "registry+https://github.com/rust-lang/crates.io-index"
2229-checksum = "373f5eceeeab7925e0c1098212f2fbc4d416adec9d35051a6ab251e824c1854a"
2230-dependencies = [
2231- "twox-hash",
2232-]
2233-
2234-[[package]]
2235-name = "matchers"
2236-version = "0.2.0"
2237-source = "registry+https://github.com/rust-lang/crates.io-index"
2238-checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
2239-dependencies = [
2240- "regex-automata",
2241-]
2242-
2243-[[package]]
2244-name = "matchit"
2245-version = "0.7.3"
2246-source = "registry+https://github.com/rust-lang/crates.io-index"
2247-checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
2248-
2249-[[package]]
2250-name = "md-5"
2251-version = "0.10.6"
2252-source = "registry+https://github.com/rust-lang/crates.io-index"
2253-checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf"
2254-dependencies = [
2255- "cfg-if",
2256- "digest 0.10.7",
2257-]
2258-
2259-[[package]]
2260-name = "md-5"
2261-version = "0.11.0"
2262-source = "registry+https://github.com/rust-lang/crates.io-index"
2263-checksum = "69b6441f590336821bb897fb28fc622898ccceb1d6cea3fde5ea86b090c4de98"
2264-dependencies = [
2265- "cfg-if",
2266- "digest 0.11.3",
2267-]
2268-
2269-[[package]]
2270-name = "memchr"
2271-version = "2.8.3"
2272-source = "registry+https://github.com/rust-lang/crates.io-index"
2273-checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
2274-
2275-[[package]]
2276-name = "mime"
2277-version = "0.3.17"
2278-source = "registry+https://github.com/rust-lang/crates.io-index"
2279-checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
2280-
2281-[[package]]
2282-name = "minimal-lexical"
2283-version = "0.2.1"
2284-source = "registry+https://github.com/rust-lang/crates.io-index"
2285-checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
2286-
2287-[[package]]
2288-name = "miniz_oxide"
2289-version = "0.8.9"
2290-source = "registry+https://github.com/rust-lang/crates.io-index"
2291-checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
2292-dependencies = [
2293- "adler2",
2294- "simd-adler32",
2295-]
2296-
2297-[[package]]
2298-name = "mio"
2299-version = "1.2.2"
2300-source = "registry+https://github.com/rust-lang/crates.io-index"
2301-checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427"
2302-dependencies = [
2303- "libc",
2304- "wasi",
2305- "windows-sys 0.61.2",
2306-]
2307-
2308-[[package]]
2309-name = "multer"
2310-version = "3.1.0"
2311-source = "registry+https://github.com/rust-lang/crates.io-index"
2312-checksum = "83e87776546dc87511aa5ee218730c92b666d7264ab6ed41f9d215af9cd5224b"
2313-dependencies = [
2314- "bytes",
2315- "encoding_rs",
2316- "futures-util",
2317- "http 1.5.0",
2318- "httparse",
2319- "memchr",
2320- "mime",
2321- "spin 0.9.9",
2322- "version_check",
2323-]
2324-
2325-[[package]]
2326-name = "nom"
2327-version = "7.1.3"
2328-source = "registry+https://github.com/rust-lang/crates.io-index"
2329-checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
2330-dependencies = [
2331- "memchr",
2332- "minimal-lexical",
2333-]
2334-
2335-[[package]]
2336-name = "nu-ansi-term"
2337-version = "0.50.3"
2338-source = "registry+https://github.com/rust-lang/crates.io-index"
2339-checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
2340-dependencies = [
2341- "windows-sys 0.61.2",
2342-]
2343-
2344-[[package]]
2345-name = "num-bigint-dig"
2346-version = "0.8.6"
2347-source = "registry+https://github.com/rust-lang/crates.io-index"
2348-checksum = "e661dda6640fad38e827a6d4a310ff4763082116fe217f279885c97f511bb0b7"
2349-dependencies = [
2350- "lazy_static",
2351- "libm",
2352- "num-integer",
2353- "num-iter",
2354- "num-traits",
2355- "rand 0.8.7",
2356- "smallvec",
2357- "zeroize",
2358-]
2359-
2360-[[package]]
2361-name = "num-conv"
2362-version = "0.2.2"
2363-source = "registry+https://github.com/rust-lang/crates.io-index"
2364-checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
2365-
2366-[[package]]
2367-name = "num-integer"
2368-version = "0.1.46"
2369-source = "registry+https://github.com/rust-lang/crates.io-index"
2370-checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
2371-dependencies = [
2372- "num-traits",
2373-]
2374-
2375-[[package]]
2376-name = "num-iter"
2377-version = "0.1.46"
2378-source = "registry+https://github.com/rust-lang/crates.io-index"
2379-checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b"
2380-dependencies = [
2381- "num-integer",
2382- "num-traits",
2383-]
2384-
2385-[[package]]
2386-name = "num-traits"
2387-version = "0.2.19"
2388-source = "registry+https://github.com/rust-lang/crates.io-index"
2389-checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
2390-dependencies = [
2391- "autocfg",
2392- "libm",
2393-]
2394-
2395-[[package]]
2396-name = "object_store"
2397-version = "0.11.2"
2398-source = "registry+https://github.com/rust-lang/crates.io-index"
2399-checksum = "3cfccb68961a56facde1163f9319e0d15743352344e7808a11795fb99698dcaf"
2400-dependencies = [
2401- "async-trait",
2402- "base64 0.22.1",
2403- "bytes",
2404- "chrono",
2405- "futures",
2406- "httparse",
2407- "humantime",
2408- "hyper 1.11.0",
2409- "itertools",
2410- "md-5 0.10.6",
2411- "parking_lot",
2412- "percent-encoding",
2413- "quick-xml",
2414- "rand 0.8.7",
2415- "reqwest",
2416- "ring",
2417- "rustls-pemfile",
2418- "serde",
2419- "serde_json",
2420- "snafu",
2421- "tokio",
2422- "tracing",
2423- "url",
2424- "walkdir",
2425-]
2426-
2427-[[package]]
2428-name = "once_cell"
2429-version = "1.21.4"
2430-source = "registry+https://github.com/rust-lang/crates.io-index"
2431-checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
2432-
2433-[[package]]
2434-name = "opaque-debug"
2435-version = "0.3.1"
2436-source = "registry+https://github.com/rust-lang/crates.io-index"
2437-checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381"
2438-
2439-[[package]]
2440-name = "openssl-probe"
2441-version = "0.2.1"
2442-source = "registry+https://github.com/rust-lang/crates.io-index"
2443-checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
2444-
2445-[[package]]
2446-name = "outref"
2447-version = "0.5.2"
2448-source = "registry+https://github.com/rust-lang/crates.io-index"
2449-checksum = "1a80800c0488c3a21695ea981a54918fbb37abf04f4d0720c453632255e2ff0e"
2450-
2451-[[package]]
2452-name = "p256"
2453-version = "0.13.2"
2454-source = "registry+https://github.com/rust-lang/crates.io-index"
2455-checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b"
2456-dependencies = [
2457- "ecdsa",
2458- "elliptic-curve",
2459- "primeorder",
2460- "sha2 0.10.9",
2461-]
2462-
2463-[[package]]
2464-name = "parking_lot"
2465-version = "0.12.5"
2466-source = "registry+https://github.com/rust-lang/crates.io-index"
2467-checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
2468-dependencies = [
2469- "lock_api",
2470- "parking_lot_core",
2471-]
2472-
2473-[[package]]
2474-name = "parking_lot_core"
2475-version = "0.9.12"
2476-source = "registry+https://github.com/rust-lang/crates.io-index"
2477-checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
2478-dependencies = [
2479- "cfg-if",
2480- "libc",
2481- "redox_syscall",
2482- "smallvec",
2483- "windows-link",
2484-]
2485-
2486-[[package]]
2487-name = "paste"
2488-version = "1.0.15"
2489-source = "registry+https://github.com/rust-lang/crates.io-index"
2490-checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
2491-
2492-[[package]]
2493-name = "pem-rfc7468"
2494-version = "0.7.0"
2495-source = "registry+https://github.com/rust-lang/crates.io-index"
2496-checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412"
2497-dependencies = [
2498- "base64ct",
2499-]
2500-
2501-[[package]]
2502-name = "percent-encoding"
2503-version = "2.3.2"
2504-source = "registry+https://github.com/rust-lang/crates.io-index"
2505-checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
2506-
2507-[[package]]
2508-name = "pin-project"
2509-version = "1.1.13"
2510-source = "registry+https://github.com/rust-lang/crates.io-index"
2511-checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924"
2512-dependencies = [
2513- "pin-project-internal",
2514-]
2515-
2516-[[package]]
2517-name = "pin-project-internal"
2518-version = "1.1.13"
2519-source = "registry+https://github.com/rust-lang/crates.io-index"
2520-checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b"
2521-dependencies = [
2522- "proc-macro2",
2523- "quote",
2524- "syn 2.0.119",
2525-]
2526-
2527-[[package]]
2528-name = "pin-project-lite"
2529-version = "0.2.17"
2530-source = "registry+https://github.com/rust-lang/crates.io-index"
2531-checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
2532-
2533-[[package]]
2534-name = "pin-utils"
2535-version = "0.1.0"
2536-source = "registry+https://github.com/rust-lang/crates.io-index"
2537-checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
2538-
2539-[[package]]
2540-name = "pkcs1"
2541-version = "0.7.5"
2542-source = "registry+https://github.com/rust-lang/crates.io-index"
2543-checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f"
2544-dependencies = [
2545- "der",
2546- "pkcs8",
2547- "spki",
2548-]
2549-
2550-[[package]]
2551-name = "pkcs8"
2552-version = "0.10.2"
2553-source = "registry+https://github.com/rust-lang/crates.io-index"
2554-checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
2555-dependencies = [
2556- "der",
2557- "spki",
2558-]
2559-
2560-[[package]]
2561-name = "pkg-config"
2562-version = "0.3.33"
2563-source = "registry+https://github.com/rust-lang/crates.io-index"
2564-checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
2565-
2566-[[package]]
2567-name = "polyval"
2568-version = "0.6.2"
2569-source = "registry+https://github.com/rust-lang/crates.io-index"
2570-checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25"
2571-dependencies = [
2572- "cfg-if",
2573- "cpufeatures 0.2.17",
2574- "opaque-debug",
2575- "universal-hash",
2576-]
2577-
2578-[[package]]
2579-name = "potential_utf"
2580-version = "0.1.5"
2581-source = "registry+https://github.com/rust-lang/crates.io-index"
2582-checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
2583-dependencies = [
2584- "serde_core",
2585- "writeable",
2586- "zerovec",
2587-]
2588-
2589-[[package]]
2590-name = "powerfmt"
2591-version = "0.2.0"
2592-source = "registry+https://github.com/rust-lang/crates.io-index"
2593-checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
2594-
2595-[[package]]
2596-name = "ppv-lite86"
2597-version = "0.2.21"
2598-source = "registry+https://github.com/rust-lang/crates.io-index"
2599-checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
2600-dependencies = [
2601- "zerocopy",
2602-]
2603-
2604-[[package]]
2605-name = "prettyplease"
2606-version = "0.2.37"
2607-source = "registry+https://github.com/rust-lang/crates.io-index"
2608-checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
2609-dependencies = [
2610- "proc-macro2",
2611- "syn 2.0.119",
2612-]
2613-
2614-[[package]]
2615-name = "primeorder"
2616-version = "0.13.6"
2617-source = "registry+https://github.com/rust-lang/crates.io-index"
2618-checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6"
2619-dependencies = [
2620- "elliptic-curve",
2621-]
2622-
2623-[[package]]
2624-name = "proc-macro2"
2625-version = "1.0.107"
2626-source = "registry+https://github.com/rust-lang/crates.io-index"
2627-checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
2628-dependencies = [
2629- "unicode-ident",
2630-]
2631-
2632-[[package]]
2633-name = "proptest"
2634-version = "1.11.0"
2635-source = "registry+https://github.com/rust-lang/crates.io-index"
2636-checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744"
2637-dependencies = [
2638- "bit-set",
2639- "bit-vec",
2640- "bitflags",
2641- "num-traits",
2642- "rand 0.9.5",
2643- "rand_chacha 0.9.0",
2644- "rand_xorshift",
2645- "regex-syntax",
2646- "rusty-fork",
2647- "tempfile",
2648- "unarray",
2649-]
2650-
2651-[[package]]
2652-name = "quick-error"
2653-version = "1.2.3"
2654-source = "registry+https://github.com/rust-lang/crates.io-index"
2655-checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
2656-
2657-[[package]]
2658-name = "quick-xml"
2659-version = "0.37.5"
2660-source = "registry+https://github.com/rust-lang/crates.io-index"
2661-checksum = "331e97a1af0bf59823e6eadffe373d7b27f485be8748f71471c662c1f269b7fb"
2662-dependencies = [
2663- "memchr",
2664- "serde",
2665-]
2666-
2667-[[package]]
2668-name = "quinn"
2669-version = "0.11.11"
2670-source = "registry+https://github.com/rust-lang/crates.io-index"
2671-checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8"
2672-dependencies = [
2673- "bytes",
2674- "cfg_aliases",
2675- "pin-project-lite",
2676- "quinn-proto",
2677- "quinn-udp",
2678- "rustc-hash",
2679- "rustls 0.23.43",
2680- "socket2 0.6.5",
2681- "thiserror 2.0.19",
2682- "tokio",
2683- "tracing",
2684- "web-time",
2685-]
2686-
2687-[[package]]
2688-name = "quinn-proto"
2689-version = "0.11.16"
2690-source = "registry+https://github.com/rust-lang/crates.io-index"
2691-checksum = "2f4bfc015262b9df63c8845072ce59068853ff5872180c2ce2f13038b970e560"
2692-dependencies = [
2693- "bytes",
2694- "getrandom 0.4.3",
2695- "lru-slab",
2696- "rand 0.10.2",
2697- "rand_pcg",
2698- "ring",
2699- "rustc-hash",
2700- "rustls 0.23.43",
2701- "rustls-pki-types",
2702- "slab",
2703- "thiserror 2.0.19",
2704- "tinyvec",
2705- "tracing",
2706- "web-time",
2707-]
2708-
2709-[[package]]
2710-name = "quinn-udp"
2711-version = "0.5.15"
2712-source = "registry+https://github.com/rust-lang/crates.io-index"
2713-checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694"
2714-dependencies = [
2715- "cfg_aliases",
2716- "libc",
2717- "once_cell",
2718- "socket2 0.6.5",
2719- "tracing",
2720- "windows-sys 0.61.2",
2721-]
2722-
2723-[[package]]
2724-name = "quote"
2725-version = "1.0.47"
2726-source = "registry+https://github.com/rust-lang/crates.io-index"
2727-checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
2728-dependencies = [
2729- "proc-macro2",
2730-]
2731-
2732-[[package]]
2733-name = "r-efi"
2734-version = "5.3.0"
2735-source = "registry+https://github.com/rust-lang/crates.io-index"
2736-checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
2737-
2738-[[package]]
2739-name = "r-efi"
2740-version = "6.0.0"
2741-source = "registry+https://github.com/rust-lang/crates.io-index"
2742-checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
2743-
2744-[[package]]
2745-name = "rand"
2746-version = "0.8.7"
2747-source = "registry+https://github.com/rust-lang/crates.io-index"
2748-checksum = "22f6172bdec972074665ed81ed53b71da00bfc44b65a753cfde883ec4c702a1a"
2749-dependencies = [
2750- "libc",
2751- "rand_chacha 0.3.1",
2752- "rand_core 0.6.4",
2753-]
2754-
2755-[[package]]
2756-name = "rand"
2757-version = "0.9.5"
2758-source = "registry+https://github.com/rust-lang/crates.io-index"
2759-checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
2760-dependencies = [
2761- "rand_chacha 0.9.0",
2762- "rand_core 0.9.5",
2763-]
2764-
2765-[[package]]
2766-name = "rand"
2767-version = "0.10.2"
2768-source = "registry+https://github.com/rust-lang/crates.io-index"
2769-checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
2770-dependencies = [
2771- "chacha20",
2772- "getrandom 0.4.3",
2773- "rand_core 0.10.1",
2774-]
2775-
2776-[[package]]
2777-name = "rand_chacha"
2778-version = "0.3.1"
2779-source = "registry+https://github.com/rust-lang/crates.io-index"
2780-checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
2781-dependencies = [
2782- "ppv-lite86",
2783- "rand_core 0.6.4",
2784-]
2785-
2786-[[package]]
2787-name = "rand_chacha"
2788-version = "0.9.0"
2789-source = "registry+https://github.com/rust-lang/crates.io-index"
2790-checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
2791-dependencies = [
2792- "ppv-lite86",
2793- "rand_core 0.9.5",
2794-]
2795-
2796-[[package]]
2797-name = "rand_core"
2798-version = "0.6.4"
2799-source = "registry+https://github.com/rust-lang/crates.io-index"
2800-checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
2801-dependencies = [
2802- "getrandom 0.2.17",
2803-]
2804-
2805-[[package]]
2806-name = "rand_core"
2807-version = "0.9.5"
2808-source = "registry+https://github.com/rust-lang/crates.io-index"
2809-checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
2810-dependencies = [
2811- "getrandom 0.3.4",
2812-]
2813-
2814-[[package]]
2815-name = "rand_core"
2816-version = "0.10.1"
2817-source = "registry+https://github.com/rust-lang/crates.io-index"
2818-checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
2819-
2820-[[package]]
2821-name = "rand_pcg"
2822-version = "0.10.2"
2823-source = "registry+https://github.com/rust-lang/crates.io-index"
2824-checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"
2825-dependencies = [
2826- "rand_core 0.10.1",
2827-]
2828-
2829-[[package]]
2830-name = "rand_xorshift"
2831-version = "0.4.0"
2832-source = "registry+https://github.com/rust-lang/crates.io-index"
2833-checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a"
2834-dependencies = [
2835- "rand_core 0.9.5",
2836-]
2837-
2838-[[package]]
2839-name = "redox_syscall"
2840-version = "0.5.18"
2841-source = "registry+https://github.com/rust-lang/crates.io-index"
2842-checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
2843-dependencies = [
2844- "bitflags",
2845-]
2846-
2847-[[package]]
2848-name = "regex"
2849-version = "1.13.1"
2850-source = "registry+https://github.com/rust-lang/crates.io-index"
2851-checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
2852-dependencies = [
2853- "aho-corasick",
2854- "memchr",
2855- "regex-automata",
2856- "regex-syntax",
2857-]
2858-
2859-[[package]]
2860-name = "regex-automata"
2861-version = "0.4.16"
2862-source = "registry+https://github.com/rust-lang/crates.io-index"
2863-checksum = "8fcfdb36bda0c880c5931cdc7a2bcdc8ba4556847b9d912bca70bc94708711ad"
2864-dependencies = [
2865- "aho-corasick",
2866- "memchr",
2867- "regex-syntax",
2868-]
2869-
2870-[[package]]
2871-name = "regex-lite"
2872-version = "0.1.9"
2873-source = "registry+https://github.com/rust-lang/crates.io-index"
2874-checksum = "cab834c73d247e67f4fae452806d17d3c7501756d98c8808d7c9c7aa7d18f973"
2875-
2876-[[package]]
2877-name = "regex-syntax"
2878-version = "0.8.11"
2879-source = "registry+https://github.com/rust-lang/crates.io-index"
2880-checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
2881-
2882-[[package]]
2883-name = "reqwest"
2884-version = "0.12.28"
2885-source = "registry+https://github.com/rust-lang/crates.io-index"
2886-checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"
2887-dependencies = [
2888- "base64 0.22.1",
2889- "bytes",
2890- "futures-core",
2891- "futures-util",
2892- "h2 0.4.15",
2893- "http 1.5.0",
2894- "http-body 1.1.0",
2895- "http-body-util",
2896- "hyper 1.11.0",
2897- "hyper-rustls 0.27.9",
2898- "hyper-util",
2899- "js-sys",
2900- "log",
2901- "percent-encoding",
2902- "pin-project-lite",
2903- "quinn",
2904- "rustls 0.23.43",
2905- "rustls-native-certs",
2906- "rustls-pki-types",
2907- "serde",
2908- "serde_json",
2909- "serde_urlencoded",
2910- "sync_wrapper",
2911- "tokio",
2912- "tokio-rustls 0.26.4",
2913- "tokio-util",
2914- "tower",
2915- "tower-http",
2916- "tower-service",
2917- "url",
2918- "wasm-bindgen",
2919- "wasm-bindgen-futures",
2920- "wasm-streams",
2921- "web-sys",
2922- "webpki-roots 1.0.9",
2923-]
2924-
2925-[[package]]
2926-name = "resb"
2927-version = "0.1.2"
2928-source = "registry+https://github.com/rust-lang/crates.io-index"
2929-checksum = "22d392791f3c6802a1905a509e9d1a6039cbbcb5e9e00e5a6d3661f7c874f390"
2930-dependencies = [
2931- "potential_utf",
2932- "serde_core",
2933-]
2934-
2935-[[package]]
2936-name = "rfc6979"
2937-version = "0.4.0"
2938-source = "registry+https://github.com/rust-lang/crates.io-index"
2939-checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2"
2940-dependencies = [
2941- "hmac 0.12.1",
2942- "subtle",
2943-]
2944-
2945-[[package]]
2946-name = "ring"
2947-version = "0.17.14"
2948-source = "registry+https://github.com/rust-lang/crates.io-index"
2949-checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
2950-dependencies = [
2951- "cc",
2952- "cfg-if",
2953- "getrandom 0.2.17",
2954- "libc",
2955- "untrusted",
2956- "windows-sys 0.52.0",
2957-]
2958-
2959-[[package]]
2960-name = "rsa"
2961-version = "0.9.10"
2962-source = "registry+https://github.com/rust-lang/crates.io-index"
2963-checksum = "b8573f03f5883dcaebdfcf4725caa1ecb9c15b2ef50c43a07b816e06799bb12d"
2964-dependencies = [
2965- "const-oid 0.9.6",
2966- "digest 0.10.7",
2967- "num-bigint-dig",
2968- "num-integer",
2969- "num-traits",
2970- "pkcs1",
2971- "pkcs8",
2972- "rand_core 0.6.4",
2973- "sha2 0.10.9",
2974- "signature",
2975- "spki",
2976- "subtle",
2977- "zeroize",
2978-]
2979-
2980-[[package]]
2981-name = "rusqlite"
2982-version = "0.31.0"
2983-source = "registry+https://github.com/rust-lang/crates.io-index"
2984-checksum = "b838eba278d213a8beaf485bd313fd580ca4505a00d5871caeb1457c55322cae"
2985-dependencies = [
2986- "bitflags",
2987- "fallible-iterator",
2988- "fallible-streaming-iterator",
2989- "hashlink",
2990- "libsqlite3-sys",
2991- "smallvec",
2992-]
2993-
2994-[[package]]
2995-name = "rustc-hash"
2996-version = "2.1.3"
2997-source = "registry+https://github.com/rust-lang/crates.io-index"
2998-checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
2999-
3000-[[package]]
3001-name = "rustc_version"
3002-version = "0.4.1"
3003-source = "registry+https://github.com/rust-lang/crates.io-index"
3004-checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
3005-dependencies = [
3006- "semver",
3007-]
3008-
3009-[[package]]
3010-name = "rustix"
3011-version = "0.38.44"
3012-source = "registry+https://github.com/rust-lang/crates.io-index"
3013-checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
3014-dependencies = [
3015- "bitflags",
3016- "errno",
3017- "libc",
3018- "linux-raw-sys 0.4.15",
3019- "windows-sys 0.52.0",
3020-]
3021-
3022-[[package]]
3023-name = "rustix"
3024-version = "1.1.4"
3025-source = "registry+https://github.com/rust-lang/crates.io-index"
3026-checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
3027-dependencies = [
3028- "bitflags",
3029- "errno",
3030- "libc",
3031- "linux-raw-sys 0.12.1",
3032- "windows-sys 0.61.2",
3033-]
3034-
3035-[[package]]
3036-name = "rustls"
3037-version = "0.21.12"
3038-source = "registry+https://github.com/rust-lang/crates.io-index"
3039-checksum = "3f56a14d1f48b391359b22f731fd4bd7e43c97f3c50eee276f3aa09c94784d3e"
3040-dependencies = [
3041- "log",
3042- "ring",
3043- "rustls-webpki 0.101.7",
3044- "sct",
3045-]
3046-
3047-[[package]]
3048-name = "rustls"
3049-version = "0.23.43"
3050-source = "registry+https://github.com/rust-lang/crates.io-index"
3051-checksum = "0283386ce02abc0151e1761d08802dfe86c173b0b494af5cbc086574e453da06"
3052-dependencies = [
3053- "aws-lc-rs",
3054- "once_cell",
3055- "ring",
3056- "rustls-pki-types",
3057- "rustls-webpki 0.103.13",
3058- "subtle",
3059- "zeroize",
3060-]
3061-
3062-[[package]]
3063-name = "rustls-native-certs"
3064-version = "0.8.4"
3065-source = "registry+https://github.com/rust-lang/crates.io-index"
3066-checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d"
3067-dependencies = [
3068- "openssl-probe",
3069- "rustls-pki-types",
3070- "schannel",
3071- "security-framework",
3072-]
3073-
3074-[[package]]
3075-name = "rustls-pemfile"
3076-version = "2.2.0"
3077-source = "registry+https://github.com/rust-lang/crates.io-index"
3078-checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"
3079-dependencies = [
3080- "rustls-pki-types",
3081-]
3082-
3083-[[package]]
3084-name = "rustls-pki-types"
3085-version = "1.15.1"
3086-source = "registry+https://github.com/rust-lang/crates.io-index"
3087-checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
3088-dependencies = [
3089- "web-time",
3090- "zeroize",
3091-]
3092-
3093-[[package]]
3094-name = "rustls-webpki"
3095-version = "0.101.7"
3096-source = "registry+https://github.com/rust-lang/crates.io-index"
3097-checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765"
3098-dependencies = [
3099- "ring",
3100- "untrusted",
3101-]
3102-
3103-[[package]]
3104-name = "rustls-webpki"
3105-version = "0.103.13"
3106-source = "registry+https://github.com/rust-lang/crates.io-index"
3107-checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
3108-dependencies = [
3109- "aws-lc-rs",
3110- "ring",
3111- "rustls-pki-types",
3112- "untrusted",
3113-]
3114-
3115-[[package]]
3116-name = "rustversion"
3117-version = "1.0.23"
3118-source = "registry+https://github.com/rust-lang/crates.io-index"
3119-checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
3120-
3121-[[package]]
3122-name = "rusty-fork"
3123-version = "0.3.1"
3124-source = "registry+https://github.com/rust-lang/crates.io-index"
3125-checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2"
3126-dependencies = [
3127- "fnv",
3128- "quick-error",
3129- "tempfile",
3130- "wait-timeout",
3131-]
3132-
3133-[[package]]
3134-name = "ryu"
3135-version = "1.0.23"
3136-source = "registry+https://github.com/rust-lang/crates.io-index"
3137-checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
3138-
3139-[[package]]
3140-name = "same-file"
3141-version = "1.0.6"
3142-source = "registry+https://github.com/rust-lang/crates.io-index"
3143-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
3144-dependencies = [
3145- "winapi-util",
3146-]
3147-
3148-[[package]]
3149-name = "schannel"
3150-version = "0.1.29"
3151-source = "registry+https://github.com/rust-lang/crates.io-index"
3152-checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
3153-dependencies = [
3154- "windows-sys 0.61.2",
3155-]
3156-
3157-[[package]]
3158-name = "scopeguard"
3159-version = "1.2.0"
3160-source = "registry+https://github.com/rust-lang/crates.io-index"
3161-checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
3162-
3163-[[package]]
3164-name = "sct"
3165-version = "0.7.1"
3166-source = "registry+https://github.com/rust-lang/crates.io-index"
3167-checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414"
3168-dependencies = [
3169- "ring",
3170- "untrusted",
3171-]
3172-
3173-[[package]]
3174-name = "sec1"
3175-version = "0.7.3"
3176-source = "registry+https://github.com/rust-lang/crates.io-index"
3177-checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc"
3178-dependencies = [
3179- "base16ct",
3180- "der",
3181- "generic-array",
3182- "pkcs8",
3183- "subtle",
3184- "zeroize",
3185-]
3186-
3187-[[package]]
3188-name = "security-framework"
3189-version = "3.7.0"
3190-source = "registry+https://github.com/rust-lang/crates.io-index"
3191-checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
3192-dependencies = [
3193- "bitflags",
3194- "core-foundation",
3195- "core-foundation-sys",
3196- "libc",
3197- "security-framework-sys",
3198-]
3199-
3200-[[package]]
3201-name = "security-framework-sys"
3202-version = "2.17.0"
3203-source = "registry+https://github.com/rust-lang/crates.io-index"
3204-checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
3205-dependencies = [
3206- "core-foundation-sys",
3207- "libc",
3208-]
3209-
3210-[[package]]
3211-name = "semver"
3212-version = "1.0.28"
3213-source = "registry+https://github.com/rust-lang/crates.io-index"
3214-checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
3215-
3216-[[package]]
3217-name = "serde"
3218-version = "1.0.229"
3219-source = "registry+https://github.com/rust-lang/crates.io-index"
3220-checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
3221-dependencies = [
3222- "serde_core",
3223- "serde_derive",
3224-]
3225-
3226-[[package]]
3227-name = "serde_core"
3228-version = "1.0.229"
3229-source = "registry+https://github.com/rust-lang/crates.io-index"
3230-checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
3231-dependencies = [
3232- "serde_derive",
3233-]
3234-
3235-[[package]]
3236-name = "serde_derive"
3237-version = "1.0.229"
3238-source = "registry+https://github.com/rust-lang/crates.io-index"
3239-checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
3240-dependencies = [
3241- "proc-macro2",
3242- "quote",
3243- "syn 3.0.3",
3244-]
3245-
3246-[[package]]
3247-name = "serde_json"
3248-version = "1.0.151"
3249-source = "registry+https://github.com/rust-lang/crates.io-index"
3250-checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
3251-dependencies = [
3252- "itoa",
3253- "memchr",
3254- "serde",
3255- "serde_core",
3256- "zmij",
3257-]
3258-
3259-[[package]]
3260-name = "serde_path_to_error"
3261-version = "0.1.20"
3262-source = "registry+https://github.com/rust-lang/crates.io-index"
3263-checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457"
3264-dependencies = [
3265- "itoa",
3266- "serde",
3267- "serde_core",
3268-]
3269-
3270-[[package]]
3271-name = "serde_urlencoded"
3272-version = "0.7.1"
3273-source = "registry+https://github.com/rust-lang/crates.io-index"
3274-checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
3275-dependencies = [
3276- "form_urlencoded",
3277- "itoa",
3278- "ryu",
3279- "serde",
3280-]
3281-
3282-[[package]]
3283-name = "sha1"
3284-version = "0.10.7"
3285-source = "registry+https://github.com/rust-lang/crates.io-index"
3286-checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8"
3287-dependencies = [
3288- "cfg-if",
3289- "cpufeatures 0.2.17",
3290- "digest 0.10.7",
3291-]
3292-
3293-[[package]]
3294-name = "sha1"
3295-version = "0.11.0"
3296-source = "registry+https://github.com/rust-lang/crates.io-index"
3297-checksum = "aacc4cc499359472b4abe1bf11d0b12e688af9a805fa5e3016f9a386dc2d0214"
3298-dependencies = [
3299- "cfg-if",
3300- "cpufeatures 0.3.0",
3301- "digest 0.11.3",
3302-]
3303-
3304-[[package]]
3305-name = "sha2"
3306-version = "0.10.9"
3307-source = "registry+https://github.com/rust-lang/crates.io-index"
3308-checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
3309-dependencies = [
3310- "cfg-if",
3311- "cpufeatures 0.2.17",
3312- "digest 0.10.7",
3313-]
3314-
3315-[[package]]
3316-name = "sha2"
3317-version = "0.11.0"
3318-source = "registry+https://github.com/rust-lang/crates.io-index"
3319-checksum = "446ba717509524cb3f22f17ecc096f10f4822d76ab5c0b9822c5f9c284e825f4"
3320-dependencies = [
3321- "cfg-if",
3322- "cpufeatures 0.3.0",
3323- "digest 0.11.3",
3324-]
3325-
3326-[[package]]
3327-name = "sharded-slab"
3328-version = "0.1.7"
3329-source = "registry+https://github.com/rust-lang/crates.io-index"
3330-checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
3331-dependencies = [
3332- "lazy_static",
3333-]
3334-
3335-[[package]]
3336-name = "shlex"
3337-version = "1.3.0"
3338-source = "registry+https://github.com/rust-lang/crates.io-index"
3339-checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
3340-
3341-[[package]]
3342-name = "shlex"
3343-version = "2.0.1"
3344-source = "registry+https://github.com/rust-lang/crates.io-index"
3345-checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
3346-
3347-[[package]]
3348-name = "signal-hook-registry"
3349-version = "1.4.8"
3350-source = "registry+https://github.com/rust-lang/crates.io-index"
3351-checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
3352-dependencies = [
3353- "errno",
3354- "libc",
3355-]
3356-
3357-[[package]]
3358-name = "signature"
3359-version = "2.2.0"
3360-source = "registry+https://github.com/rust-lang/crates.io-index"
3361-checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
3362-dependencies = [
3363- "digest 0.10.7",
3364- "rand_core 0.6.4",
3365-]
3366-
3367-[[package]]
3368-name = "simd-adler32"
3369-version = "0.3.10"
3370-source = "registry+https://github.com/rust-lang/crates.io-index"
3371-checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
3372-
3373-[[package]]
3374-name = "slab"
3375-version = "0.4.12"
3376-source = "registry+https://github.com/rust-lang/crates.io-index"
3377-checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
3378-
3379-[[package]]
3380-name = "smallvec"
3381-version = "1.15.2"
3382-source = "registry+https://github.com/rust-lang/crates.io-index"
3383-checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
3384-
3385-[[package]]
3386-name = "snafu"
3387-version = "0.8.9"
3388-source = "registry+https://github.com/rust-lang/crates.io-index"
3389-checksum = "6e84b3f4eacbf3a1ce05eac6763b4d629d60cbc94d632e4092c54ade71f1e1a2"
3390-dependencies = [
3391- "snafu-derive",
3392-]
3393-
3394-[[package]]
3395-name = "snafu-derive"
3396-version = "0.8.9"
3397-source = "registry+https://github.com/rust-lang/crates.io-index"
3398-checksum = "c1c97747dbf44bb1ca44a561ece23508e99cb592e862f22222dcf42f51d1e451"
3399-dependencies = [
3400- "heck",
3401- "proc-macro2",
3402- "quote",
3403- "syn 2.0.119",
3404-]
3405-
3406-[[package]]
3407-name = "socket2"
3408-version = "0.5.10"
3409-source = "registry+https://github.com/rust-lang/crates.io-index"
3410-checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"
3411-dependencies = [
3412- "libc",
3413- "windows-sys 0.52.0",
3414-]
3415-
3416-[[package]]
3417-name = "socket2"
3418-version = "0.6.5"
3419-source = "registry+https://github.com/rust-lang/crates.io-index"
3420-checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
3421-dependencies = [
3422- "libc",
3423- "windows-sys 0.61.2",
3424-]
3425-
3426-[[package]]
3427-name = "spin"
3428-version = "0.9.9"
3429-source = "registry+https://github.com/rust-lang/crates.io-index"
3430-checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e"
3431-
3432-[[package]]
3433-name = "spin"
3434-version = "0.10.1"
3435-source = "registry+https://github.com/rust-lang/crates.io-index"
3436-checksum = "023a211cb3138dbc438680b32560ad89f699977624c9f8dbb95a47d5b4c07dd3"
3437-
3438-[[package]]
3439-name = "spki"
3440-version = "0.7.3"
3441-source = "registry+https://github.com/rust-lang/crates.io-index"
3442-checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
3443-dependencies = [
3444- "base64ct",
3445- "der",
3446-]
3447-
3448-[[package]]
3449-name = "stable_deref_trait"
3450-version = "1.2.1"
3451-source = "registry+https://github.com/rust-lang/crates.io-index"
3452-checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
3453-
3454-[[package]]
3455-name = "strck"
3456-version = "1.0.0"
3457-source = "registry+https://github.com/rust-lang/crates.io-index"
3458-checksum = "42316e70da376f3d113a68d138a60d8a9883c604fe97942721ec2068dab13a9f"
3459-dependencies = [
3460- "unicode-ident",
3461-]
3462-
3463-[[package]]
3464-name = "subtle"
3465-version = "2.6.1"
3466-source = "registry+https://github.com/rust-lang/crates.io-index"
3467-checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
3468-
3469-[[package]]
3470-name = "syn"
3471-version = "2.0.119"
3472-source = "registry+https://github.com/rust-lang/crates.io-index"
3473-checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
3474-dependencies = [
3475- "proc-macro2",
3476- "quote",
3477- "unicode-ident",
3478-]
3479-
3480-[[package]]
3481-name = "syn"
3482-version = "3.0.3"
3483-source = "registry+https://github.com/rust-lang/crates.io-index"
3484-checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
3485-dependencies = [
3486- "proc-macro2",
3487- "quote",
3488- "unicode-ident",
3489-]
3490-
3491-[[package]]
3492-name = "sync_wrapper"
3493-version = "1.0.2"
3494-source = "registry+https://github.com/rust-lang/crates.io-index"
3495-checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
3496-dependencies = [
3497- "futures-core",
3498-]
3499-
3500-[[package]]
3501-name = "synstructure"
3502-version = "0.13.2"
3503-source = "registry+https://github.com/rust-lang/crates.io-index"
3504-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
3505-dependencies = [
3506- "proc-macro2",
3507- "quote",
3508- "syn 2.0.119",
3509-]
3510-
3511-[[package]]
3512-name = "tempfile"
3513-version = "3.27.0"
3514-source = "registry+https://github.com/rust-lang/crates.io-index"
3515-checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
3516-dependencies = [
3517- "fastrand",
3518- "getrandom 0.4.3",
3519- "once_cell",
3520- "rustix 1.1.4",
3521- "windows-sys 0.61.2",
3522-]
3523-
3524-[[package]]
3525-name = "temporal_capi"
3526-version = "0.2.4"
3527-source = "registry+https://github.com/rust-lang/crates.io-index"
3528-checksum = "c534c1ac4165fb410b5ccd12c79040573622865e881bb8caad70981806a141f1"
3529-dependencies = [
3530- "diplomat",
3531- "diplomat-runtime",
3532- "icu_calendar",
3533- "icu_locale_core",
3534- "num-traits",
3535- "temporal_rs",
3536- "timezone_provider",
3537- "writeable",
3538- "zoneinfo64",
3539-]
3540-
3541-[[package]]
3542-name = "temporal_rs"
3543-version = "0.2.4"
3544-source = "registry+https://github.com/rust-lang/crates.io-index"
3545-checksum = "b1afc06e45b0d63943c777d0233523fa2e23a12431a73c37b1c0366777b31717"
3546-dependencies = [
3547- "calendrical_calculations",
3548- "core_maths",
3549- "icu_calendar",
3550- "icu_locale_core",
3551- "ixdtf",
3552- "num-traits",
3553- "timezone_provider",
3554- "tinystr",
3555- "writeable",
3556-]
3557-
3558-[[package]]
3559-name = "thiserror"
3560-version = "1.0.69"
3561-source = "registry+https://github.com/rust-lang/crates.io-index"
3562-checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
3563-dependencies = [
3564- "thiserror-impl 1.0.69",
3565-]
3566-
3567-[[package]]
3568-name = "thiserror"
3569-version = "2.0.19"
3570-source = "registry+https://github.com/rust-lang/crates.io-index"
3571-checksum = "09a43598840e33d5b0331f38c5e30d13bb11c11210a4b58f0d9b18a5a5eefcd9"
3572-dependencies = [
3573- "thiserror-impl 2.0.19",
3574-]
3575-
3576-[[package]]
3577-name = "thiserror-impl"
3578-version = "1.0.69"
3579-source = "registry+https://github.com/rust-lang/crates.io-index"
3580-checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
3581-dependencies = [
3582- "proc-macro2",
3583- "quote",
3584- "syn 2.0.119",
3585-]
3586-
3587-[[package]]
3588-name = "thiserror-impl"
3589-version = "2.0.19"
3590-source = "registry+https://github.com/rust-lang/crates.io-index"
3591-checksum = "43cbfe0cf76104d42a574802844187e84a305e531ed54455f11fbde0f10541cd"
3592-dependencies = [
3593- "proc-macro2",
3594- "quote",
3595- "syn 3.0.3",
3596-]
3597-
3598-[[package]]
3599-name = "thread_local"
3600-version = "1.1.10"
3601-source = "registry+https://github.com/rust-lang/crates.io-index"
3602-checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070"
3603-dependencies = [
3604- "cfg-if",
3605-]
3606-
3607-[[package]]
3608-name = "time"
3609-version = "0.3.55"
3610-source = "registry+https://github.com/rust-lang/crates.io-index"
3611-checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
3612-dependencies = [
3613- "deranged",
3614- "num-conv",
3615- "powerfmt",
3616- "serde_core",
3617- "time-core",
3618- "time-macros",
3619-]
3620-
3621-[[package]]
3622-name = "time-core"
3623-version = "0.1.9"
3624-source = "registry+https://github.com/rust-lang/crates.io-index"
3625-checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
3626-
3627-[[package]]
3628-name = "time-macros"
3629-version = "0.2.32"
3630-source = "registry+https://github.com/rust-lang/crates.io-index"
3631-checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"
3632-dependencies = [
3633- "num-conv",
3634- "time-core",
3635-]
3636-
3637-[[package]]
3638-name = "timezone_provider"
3639-version = "0.2.4"
3640-source = "registry+https://github.com/rust-lang/crates.io-index"
3641-checksum = "48738555f588bc05b58cb55206843cde9875bb1fde50101dd1a7c50ac6535cd5"
3642-dependencies = [
3643- "tinystr",
3644- "zerotrie",
3645- "zerovec",
3646- "zoneinfo64",
3647-]
3648-
3649-[[package]]
3650-name = "tinystr"
3651-version = "0.8.3"
3652-source = "registry+https://github.com/rust-lang/crates.io-index"
3653-checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
3654-dependencies = [
3655- "displaydoc",
3656- "serde_core",
3657- "zerovec",
3658-]
3659-
3660-[[package]]
3661-name = "tinyvec"
3662-version = "1.12.0"
3663-source = "registry+https://github.com/rust-lang/crates.io-index"
3664-checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f"
3665-dependencies = [
3666- "tinyvec_macros",
3667-]
3668-
3669-[[package]]
3670-name = "tinyvec_macros"
3671-version = "0.1.1"
3672-source = "registry+https://github.com/rust-lang/crates.io-index"
3673-checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
3674-
3675-[[package]]
3676-name = "tokio"
3677-version = "1.53.1"
3678-source = "registry+https://github.com/rust-lang/crates.io-index"
3679-checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"
3680-dependencies = [
3681- "bytes",
3682- "libc",
3683- "mio",
3684- "parking_lot",
3685- "pin-project-lite",
3686- "signal-hook-registry",
3687- "socket2 0.6.5",
3688- "tokio-macros",
3689- "windows-sys 0.61.2",
3690-]
3691-
3692-[[package]]
3693-name = "tokio-macros"
3694-version = "2.7.2"
3695-source = "registry+https://github.com/rust-lang/crates.io-index"
3696-checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e"
3697-dependencies = [
3698- "proc-macro2",
3699- "quote",
3700- "syn 3.0.3",
3701-]
3702-
3703-[[package]]
3704-name = "tokio-rustls"
3705-version = "0.24.1"
3706-source = "registry+https://github.com/rust-lang/crates.io-index"
3707-checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081"
3708-dependencies = [
3709- "rustls 0.21.12",
3710- "tokio",
3711-]
3712-
3713-[[package]]
3714-name = "tokio-rustls"
3715-version = "0.26.4"
3716-source = "registry+https://github.com/rust-lang/crates.io-index"
3717-checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"
3718-dependencies = [
3719- "rustls 0.23.43",
3720- "tokio",
3721-]
3722-
3723-[[package]]
3724-name = "tokio-stream"
3725-version = "0.1.19"
3726-source = "registry+https://github.com/rust-lang/crates.io-index"
3727-checksum = "a3d06f0b082ba57c26b79407372e57cf2a1e28124f78e9479fe80322cf53420b"
3728-dependencies = [
3729- "futures-core",
3730- "pin-project-lite",
3731- "tokio",
3732-]
3733-
3734-[[package]]
3735-name = "tokio-tungstenite"
3736-version = "0.28.0"
3737-source = "registry+https://github.com/rust-lang/crates.io-index"
3738-checksum = "d25a406cddcc431a75d3d9afc6a7c0f7428d4891dd973e4d54c56b46127bf857"
3739-dependencies = [
3740- "futures-util",
3741- "log",
3742- "rustls 0.23.43",
3743- "rustls-pki-types",
3744- "tokio",
3745- "tokio-rustls 0.26.4",
3746- "tungstenite",
3747- "webpki-roots 0.26.11",
3748-]
3749-
3750-[[package]]
3751-name = "tokio-util"
3752-version = "0.7.19"
3753-source = "registry+https://github.com/rust-lang/crates.io-index"
3754-checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52"
3755-dependencies = [
3756- "bytes",
3757- "futures-core",
3758- "futures-sink",
3759- "libc",
3760- "pin-project-lite",
3761- "slab",
3762- "tokio",
3763-]
3764-
3765-[[package]]
3766-name = "tower"
3767-version = "0.5.3"
3768-source = "registry+https://github.com/rust-lang/crates.io-index"
3769-checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
3770-dependencies = [
3771- "futures-core",
3772- "futures-util",
3773- "pin-project-lite",
3774- "sync_wrapper",
3775- "tokio",
3776- "tower-layer",
3777- "tower-service",
3778- "tracing",
3779-]
3780-
3781-[[package]]
3782-name = "tower-http"
3783-version = "0.6.11"
3784-source = "registry+https://github.com/rust-lang/crates.io-index"
3785-checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
3786-dependencies = [
3787- "bitflags",
3788- "bytes",
3789- "futures-util",
3790- "http 1.5.0",
3791- "http-body 1.1.0",
3792- "pin-project-lite",
3793- "tower",
3794- "tower-layer",
3795- "tower-service",
3796- "url",
3797-]
3798-
3799-[[package]]
3800-name = "tower-layer"
3801-version = "0.3.3"
3802-source = "registry+https://github.com/rust-lang/crates.io-index"
3803-checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
3804-
3805-[[package]]
3806-name = "tower-service"
3807-version = "0.3.3"
3808-source = "registry+https://github.com/rust-lang/crates.io-index"
3809-checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
3810-
3811-[[package]]
3812-name = "tracing"
3813-version = "0.1.44"
3814-source = "registry+https://github.com/rust-lang/crates.io-index"
3815-checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
3816-dependencies = [
3817- "log",
3818- "pin-project-lite",
3819- "tracing-attributes",
3820- "tracing-core",
3821-]
3822-
3823-[[package]]
3824-name = "tracing-attributes"
3825-version = "0.1.31"
3826-source = "registry+https://github.com/rust-lang/crates.io-index"
3827-checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
3828-dependencies = [
3829- "proc-macro2",
3830- "quote",
3831- "syn 2.0.119",
3832-]
3833-
3834-[[package]]
3835-name = "tracing-core"
3836-version = "0.1.36"
3837-source = "registry+https://github.com/rust-lang/crates.io-index"
3838-checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
3839-dependencies = [
3840- "once_cell",
3841- "valuable",
3842-]
3843-
3844-[[package]]
3845-name = "tracing-log"
3846-version = "0.2.0"
3847-source = "registry+https://github.com/rust-lang/crates.io-index"
3848-checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
3849-dependencies = [
3850- "log",
3851- "once_cell",
3852- "tracing-core",
3853-]
3854-
3855-[[package]]
3856-name = "tracing-subscriber"
3857-version = "0.3.23"
3858-source = "registry+https://github.com/rust-lang/crates.io-index"
3859-checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
3860-dependencies = [
3861- "matchers",
3862- "nu-ansi-term",
3863- "once_cell",
3864- "regex-automata",
3865- "sharded-slab",
3866- "smallvec",
3867- "thread_local",
3868- "tracing",
3869- "tracing-core",
3870- "tracing-log",
3871-]
3872-
3873-[[package]]
3874-name = "try-lock"
3875-version = "0.2.5"
3876-source = "registry+https://github.com/rust-lang/crates.io-index"
3877-checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
3878-
3879-[[package]]
3880-name = "tungstenite"
3881-version = "0.28.0"
3882-source = "registry+https://github.com/rust-lang/crates.io-index"
3883-checksum = "8628dcc84e5a09eb3d8423d6cb682965dea9133204e8fb3efee74c2a0c259442"
3884-dependencies = [
3885- "bytes",
3886- "data-encoding",
3887- "http 1.5.0",
3888- "httparse",
3889- "log",
3890- "rand 0.9.5",
3891- "rustls 0.23.43",
3892- "rustls-pki-types",
3893- "sha1 0.10.7",
3894- "thiserror 2.0.19",
3895- "utf-8",
3896-]
3897-
3898-[[package]]
3899-name = "twox-hash"
3900-version = "2.1.3"
3901-source = "registry+https://github.com/rust-lang/crates.io-index"
3902-checksum = "8464ec13c3691491391d9fce00f6416c9a48e46972f72d7865688be2080192c9"
3903-
3904-[[package]]
3905-name = "typenum"
3906-version = "1.20.1"
3907-source = "registry+https://github.com/rust-lang/crates.io-index"
3908-checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
3909-
3910-[[package]]
3911-name = "unarray"
3912-version = "0.1.4"
3913-source = "registry+https://github.com/rust-lang/crates.io-index"
3914-checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94"
3915-
3916-[[package]]
3917-name = "unicode-ident"
3918-version = "1.0.24"
3919-source = "registry+https://github.com/rust-lang/crates.io-index"
3920-checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
3921-
3922-[[package]]
3923-name = "universal-hash"
3924-version = "0.5.1"
3925-source = "registry+https://github.com/rust-lang/crates.io-index"
3926-checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea"
3927-dependencies = [
3928- "crypto-common 0.1.7",
3929- "subtle",
3930-]
3931-
3932-[[package]]
3933-name = "untrusted"
3934-version = "0.9.0"
3935-source = "registry+https://github.com/rust-lang/crates.io-index"
3936-checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
3937-
3938-[[package]]
3939-name = "url"
3940-version = "2.5.8"
3941-source = "registry+https://github.com/rust-lang/crates.io-index"
3942-checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
3943-dependencies = [
3944- "form_urlencoded",
3945- "idna",
3946- "percent-encoding",
3947- "serde",
3948-]
3949-
3950-[[package]]
3951-name = "urlencoding"
3952-version = "2.1.3"
3953-source = "registry+https://github.com/rust-lang/crates.io-index"
3954-checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da"
3955-
3956-[[package]]
3957-name = "urlpattern"
3958-version = "0.4.2"
3959-source = "registry+https://github.com/rust-lang/crates.io-index"
3960-checksum = "0f805818f843b548bacc19609eb3619dd2850e54746f5cada37927393c2ef4ec"
3961-dependencies = [
3962- "icu_properties",
3963- "regex",
3964- "serde",
3965- "url",
3966-]
3967-
3968-[[package]]
3969-name = "utf-8"
3970-version = "0.7.6"
3971-source = "registry+https://github.com/rust-lang/crates.io-index"
3972-checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
3973-
3974-[[package]]
3975-name = "utf8_iter"
3976-version = "1.0.4"
3977-source = "registry+https://github.com/rust-lang/crates.io-index"
3978-checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
3979-
3980-[[package]]
3981-name = "uuid"
3982-version = "1.24.0"
3983-source = "registry+https://github.com/rust-lang/crates.io-index"
3984-checksum = "bf3923a6f5c4c6382e0b653c4117f48d631ea17f38ed86e2a828e6f7412f5239"
3985-dependencies = [
3986- "js-sys",
3987- "wasm-bindgen",
3988-]
3989-
3990-[[package]]
3991-name = "v8"
3992-version = "152.0.0"
3993-source = "registry+https://github.com/rust-lang/crates.io-index"
3994-checksum = "91c89be3a18777511705994775d413eb7595c1efcf51ded4b19bbbf6aec7a66c"
3995-dependencies = [
3996- "bindgen",
3997- "bitflags",
3998- "fslock",
3999- "gzip-header",
4000- "home",
4001- "miniz_oxide",
4002- "paste",
4003- "temporal_capi",
4004- "which",
4005-]
4006-
4007-[[package]]
4008-name = "valuable"
4009-version = "0.1.1"
4010-source = "registry+https://github.com/rust-lang/crates.io-index"
4011-checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
4012-
4013-[[package]]
4014-name = "vcpkg"
4015-version = "0.2.15"
4016-source = "registry+https://github.com/rust-lang/crates.io-index"
4017-checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
4018-
4019-[[package]]
4020-name = "version_check"
4021-version = "0.9.5"
4022-source = "registry+https://github.com/rust-lang/crates.io-index"
4023-checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
4024-
4025-[[package]]
4026-name = "vsimd"
4027-version = "0.8.0"
4028-source = "registry+https://github.com/rust-lang/crates.io-index"
4029-checksum = "5c3082ca00d5a5ef149bb8b555a72ae84c9c59f7250f013ac822ac2e49b19c64"
4030-
4031-[[package]]
4032-name = "wait-timeout"
4033-version = "0.2.1"
4034-source = "registry+https://github.com/rust-lang/crates.io-index"
4035-checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11"
4036-dependencies = [
4037- "libc",
4038-]
4039-
4040-[[package]]
4041-name = "walkdir"
4042-version = "2.5.0"
4043-source = "registry+https://github.com/rust-lang/crates.io-index"
4044-checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
4045-dependencies = [
4046- "same-file",
4047- "winapi-util",
4048-]
4049-
4050-[[package]]
4051-name = "want"
4052-version = "0.3.1"
4053-source = "registry+https://github.com/rust-lang/crates.io-index"
4054-checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
4055-dependencies = [
4056- "try-lock",
4057-]
4058-
4059-[[package]]
4060-name = "wasi"
4061-version = "0.11.1+wasi-snapshot-preview1"
4062-source = "registry+https://github.com/rust-lang/crates.io-index"
4063-checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
4064-
4065-[[package]]
4066-name = "wasip2"
4067-version = "1.0.4+wasi-0.2.12"
4068-source = "registry+https://github.com/rust-lang/crates.io-index"
4069-checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
4070-dependencies = [
4071- "wit-bindgen",
4072-]
4073-
4074-[[package]]
4075-name = "wasm-bindgen"
4076-version = "0.2.126"
4077-source = "registry+https://github.com/rust-lang/crates.io-index"
4078-checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4"
4079-dependencies = [
4080- "cfg-if",
4081- "once_cell",
4082- "rustversion",
4083- "wasm-bindgen-macro",
4084- "wasm-bindgen-shared",
4085-]
4086-
4087-[[package]]
4088-name = "wasm-bindgen-futures"
4089-version = "0.4.76"
4090-source = "registry+https://github.com/rust-lang/crates.io-index"
4091-checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d"
4092-dependencies = [
4093- "js-sys",
4094- "wasm-bindgen",
4095-]
4096-
4097-[[package]]
4098-name = "wasm-bindgen-macro"
4099-version = "0.2.126"
4100-source = "registry+https://github.com/rust-lang/crates.io-index"
4101-checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1"
4102-dependencies = [
4103- "quote",
4104- "wasm-bindgen-macro-support",
4105-]
4106-
4107-[[package]]
4108-name = "wasm-bindgen-macro-support"
4109-version = "0.2.126"
4110-source = "registry+https://github.com/rust-lang/crates.io-index"
4111-checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e"
4112-dependencies = [
4113- "bumpalo",
4114- "proc-macro2",
4115- "quote",
4116- "syn 2.0.119",
4117- "wasm-bindgen-shared",
4118-]
4119-
4120-[[package]]
4121-name = "wasm-bindgen-shared"
4122-version = "0.2.126"
4123-source = "registry+https://github.com/rust-lang/crates.io-index"
4124-checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24"
4125-dependencies = [
4126- "unicode-ident",
4127-]
4128-
4129-[[package]]
4130-name = "wasm-streams"
4131-version = "0.4.2"
4132-source = "registry+https://github.com/rust-lang/crates.io-index"
4133-checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65"
4134-dependencies = [
4135- "futures-util",
4136- "js-sys",
4137- "wasm-bindgen",
4138- "wasm-bindgen-futures",
4139- "web-sys",
4140-]
4141-
4142-[[package]]
4143-name = "web-sys"
4144-version = "0.3.103"
4145-source = "registry+https://github.com/rust-lang/crates.io-index"
4146-checksum = "8622dcb61c0bcc9fffa6938bed81210af2da9a7e4a1a834b2e37a59b6dfb6141"
4147-dependencies = [
4148- "js-sys",
4149- "wasm-bindgen",
4150-]
4151-
4152-[[package]]
4153-name = "web-time"
4154-version = "1.1.0"
4155-source = "registry+https://github.com/rust-lang/crates.io-index"
4156-checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
4157-dependencies = [
4158- "js-sys",
4159- "wasm-bindgen",
4160-]
4161-
4162-[[package]]
4163-name = "webpki-roots"
4164-version = "0.26.11"
4165-source = "registry+https://github.com/rust-lang/crates.io-index"
4166-checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9"
4167-dependencies = [
4168- "webpki-roots 1.0.9",
4169-]
4170-
4171-[[package]]
4172-name = "webpki-roots"
4173-version = "1.0.9"
4174-source = "registry+https://github.com/rust-lang/crates.io-index"
4175-checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"
4176-dependencies = [
4177- "rustls-pki-types",
4178-]
4179-
4180-[[package]]
4181-name = "which"
4182-version = "6.0.3"
4183-source = "registry+https://github.com/rust-lang/crates.io-index"
4184-checksum = "b4ee928febd44d98f2f459a4a79bd4d928591333a494a10a868418ac1b39cf1f"
4185-dependencies = [
4186- "either",
4187- "home",
4188- "rustix 0.38.44",
4189- "winsafe",
4190-]
4191-
4192-[[package]]
4193-name = "winapi"
4194-version = "0.3.9"
4195-source = "registry+https://github.com/rust-lang/crates.io-index"
4196-checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
4197-dependencies = [
4198- "winapi-i686-pc-windows-gnu",
4199- "winapi-x86_64-pc-windows-gnu",
4200-]
4201-
4202-[[package]]
4203-name = "winapi-i686-pc-windows-gnu"
4204-version = "0.4.0"
4205-source = "registry+https://github.com/rust-lang/crates.io-index"
4206-checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
4207-
4208-[[package]]
4209-name = "winapi-util"
4210-version = "0.1.11"
4211-source = "registry+https://github.com/rust-lang/crates.io-index"
4212-checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
4213-dependencies = [
4214- "windows-sys 0.61.2",
4215-]
4216-
4217-[[package]]
4218-name = "winapi-x86_64-pc-windows-gnu"
4219-version = "0.4.0"
4220-source = "registry+https://github.com/rust-lang/crates.io-index"
4221-checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
4222-
4223-[[package]]
4224-name = "windows-core"
4225-version = "0.62.2"
4226-source = "registry+https://github.com/rust-lang/crates.io-index"
4227-checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
4228-dependencies = [
4229- "windows-implement",
4230- "windows-interface",
4231- "windows-link",
4232- "windows-result",
4233- "windows-strings",
4234-]
4235-
4236-[[package]]
4237-name = "windows-implement"
4238-version = "0.60.2"
4239-source = "registry+https://github.com/rust-lang/crates.io-index"
4240-checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
4241-dependencies = [
4242- "proc-macro2",
4243- "quote",
4244- "syn 2.0.119",
4245-]
4246-
4247-[[package]]
4248-name = "windows-interface"
4249-version = "0.59.3"
4250-source = "registry+https://github.com/rust-lang/crates.io-index"
4251-checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
4252-dependencies = [
4253- "proc-macro2",
4254- "quote",
4255- "syn 2.0.119",
4256-]
4257-
4258-[[package]]
4259-name = "windows-link"
4260-version = "0.2.1"
4261-source = "registry+https://github.com/rust-lang/crates.io-index"
4262-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
4263-
4264-[[package]]
4265-name = "windows-result"
4266-version = "0.4.1"
4267-source = "registry+https://github.com/rust-lang/crates.io-index"
4268-checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
4269-dependencies = [
4270- "windows-link",
4271-]
4272-
4273-[[package]]
4274-name = "windows-strings"
4275-version = "0.5.1"
4276-source = "registry+https://github.com/rust-lang/crates.io-index"
4277-checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
4278-dependencies = [
4279- "windows-link",
4280-]
4281-
4282-[[package]]
4283-name = "windows-sys"
4284-version = "0.52.0"
4285-source = "registry+https://github.com/rust-lang/crates.io-index"
4286-checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
4287-dependencies = [
4288- "windows-targets",
4289-]
4290-
4291-[[package]]
4292-name = "windows-sys"
4293-version = "0.61.2"
4294-source = "registry+https://github.com/rust-lang/crates.io-index"
4295-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
4296-dependencies = [
4297- "windows-link",
4298-]
4299-
4300-[[package]]
4301-name = "windows-targets"
4302-version = "0.52.6"
4303-source = "registry+https://github.com/rust-lang/crates.io-index"
4304-checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
4305-dependencies = [
4306- "windows_aarch64_gnullvm",
4307- "windows_aarch64_msvc",
4308- "windows_i686_gnu",
4309- "windows_i686_gnullvm",
4310- "windows_i686_msvc",
4311- "windows_x86_64_gnu",
4312- "windows_x86_64_gnullvm",
4313- "windows_x86_64_msvc",
4314-]
4315-
4316-[[package]]
4317-name = "windows_aarch64_gnullvm"
4318-version = "0.52.6"
4319-source = "registry+https://github.com/rust-lang/crates.io-index"
4320-checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
4321-
4322-[[package]]
4323-name = "windows_aarch64_msvc"
4324-version = "0.52.6"
4325-source = "registry+https://github.com/rust-lang/crates.io-index"
4326-checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
4327-
4328-[[package]]
4329-name = "windows_i686_gnu"
4330-version = "0.52.6"
4331-source = "registry+https://github.com/rust-lang/crates.io-index"
4332-checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
4333-
4334-[[package]]
4335-name = "windows_i686_gnullvm"
4336-version = "0.52.6"
4337-source = "registry+https://github.com/rust-lang/crates.io-index"
4338-checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
4339-
4340-[[package]]
4341-name = "windows_i686_msvc"
4342-version = "0.52.6"
4343-source = "registry+https://github.com/rust-lang/crates.io-index"
4344-checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
4345-
4346-[[package]]
4347-name = "windows_x86_64_gnu"
4348-version = "0.52.6"
4349-source = "registry+https://github.com/rust-lang/crates.io-index"
4350-checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
4351-
4352-[[package]]
4353-name = "windows_x86_64_gnullvm"
4354-version = "0.52.6"
4355-source = "registry+https://github.com/rust-lang/crates.io-index"
4356-checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
4357-
4358-[[package]]
4359-name = "windows_x86_64_msvc"
4360-version = "0.52.6"
4361-source = "registry+https://github.com/rust-lang/crates.io-index"
4362-checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
4363-
4364-[[package]]
4365-name = "winsafe"
4366-version = "0.0.19"
4367-source = "registry+https://github.com/rust-lang/crates.io-index"
4368-checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"
4369-
4370-[[package]]
4371-name = "wit-bindgen"
4372-version = "0.57.1"
4373-source = "registry+https://github.com/rust-lang/crates.io-index"
4374-checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
4375-
4376-[[package]]
4377-name = "writeable"
4378-version = "0.6.3"
4379-source = "registry+https://github.com/rust-lang/crates.io-index"
4380-checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
4381-
4382-[[package]]
4383-name = "xmlparser"
4384-version = "0.13.6"
4385-source = "registry+https://github.com/rust-lang/crates.io-index"
4386-checksum = "66fee0b777b0f5ac1c69bb06d361268faafa61cd4682ae064a171c16c433e9e4"
17+ "crypto-common",
18+ "generic-array",
19+]
20+
21+[[package]]
22+name = "aes"
23+version = "0.8.4"
24+source = "registry+https://github.com/rust-lang/crates.io-index"
25+checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e546831af1249753ab4c3aa3a0"
26+dependencies = [
27+ "cfg-if",
28+ "cipher",
29+ "cpufeatures 0.2.17",
30+]
31+
32+[[package]]
33+name = "aes-gcm"
34+version = "0.10.3"
35+source = "registry+https://github.com/rust-lang/crates.io-index"
36+checksum = "831010a0f742e1209b3bcea8fab6a8e149051ba6099432c8cb2cc117dec3ead1"
37+dependencies = [
38+ "aead",
39+ "aes",
40+ "cipher",
41+ "ctr",
42+ "ghash",
43+ "subtle",
44+]
45+
46+[[package]]
47+name = "ahash"
48+version = "0.8.12"
49+source = "registry+https://github.com/rust-lang/crates.io-index"
50+checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
51+dependencies = [
52+ "cfg-if",
53+ "once_cell",
54+ "version_check",
55+ "zerocopy",
56+]
57+
58+[[package]]
59+name = "aho-corasick"
60+version = "1.1.4"
61+source = "registry+https://github.com/rust-lang/crates.io-index"
62+checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
63+dependencies = [
64+ "memchr",
65+]
66+
67+[[package]]
68+name = "android_system_properties"
69+version = "0.1.5"
70+source = "registry+https://github.com/rust-lang/crates.io-index"
71+checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
72+dependencies = [
73+ "libc",
74+]
75+
76+[[package]]
77+name = "anyhow"
78+version = "1.0.104"
79+source = "registry+https://github.com/rust-lang/crates.io-index"
80+checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
81+
82+[[package]]
83+name = "async-trait"
84+version = "0.1.91"
85+source = "registry+https://github.com/rust-lang/crates.io-index"
86+checksum = "ae36dc4177970ef04fde5178d3e2429882def40e57a451f919c098f72baa6cec"
87+dependencies = [
88+ "proc-macro2",
89+ "quote",
90+ "syn 3.0.3",
91+]
92+
93+[[package]]
94+name = "atomic-waker"
95+version = "1.1.2"
96+source = "registry+https://github.com/rust-lang/crates.io-index"
97+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
98+
99+[[package]]
100+name = "autocfg"
101+version = "1.5.1"
102+source = "registry+https://github.com/rust-lang/crates.io-index"
103+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
104+
105+[[package]]
106+name = "axum"
107+version = "0.7.9"
108+source = "registry+https://github.com/rust-lang/crates.io-index"
109+checksum = "edca88bc138befd0323b20752846e6587272d3b03b0343c8ea28a6f819e6e71f"
110+dependencies = [
111+ "async-trait",
112+ "axum-core",
113+ "bytes",
114+ "futures-util",
115+ "http",
116+ "http-body",
117+ "http-body-util",
118+ "hyper",
119+ "hyper-util",
120+ "itoa",
121+ "matchit",
122+ "memchr",
123+ "mime",
124+ "multer",
125+ "percent-encoding",
126+ "pin-project-lite",
127+ "rustversion",
128+ "serde",
129+ "serde_json",
130+ "serde_path_to_error",
131+ "serde_urlencoded",
132+ "sync_wrapper",
133+ "tokio",
134+ "tower",
135+ "tower-layer",
136+ "tower-service",
137+ "tracing",
138+]
139+
140+[[package]]
141+name = "axum-core"
142+version = "0.4.5"
143+source = "registry+https://github.com/rust-lang/crates.io-index"
144+checksum = "09f2bd6146b97ae3359fa0cc6d6b376d9539582c7b4220f041a33ec24c226199"
145+dependencies = [
146+ "async-trait",
147+ "bytes",
148+ "futures-util",
149+ "http",
150+ "http-body",
151+ "http-body-util",
152+ "mime",
153+ "pin-project-lite",
154+ "rustversion",
155+ "sync_wrapper",
156+ "tower-layer",
157+ "tower-service",
158+ "tracing",
159+]
160+
161+[[package]]
162+name = "base16ct"
163+version = "0.2.0"
164+source = "registry+https://github.com/rust-lang/crates.io-index"
165+checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf"
166+
167+[[package]]
168+name = "base64"
169+version = "0.21.7"
170+source = "registry+https://github.com/rust-lang/crates.io-index"
171+checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567"
172+
173+[[package]]
174+name = "base64"
175+version = "0.22.1"
176+source = "registry+https://github.com/rust-lang/crates.io-index"
177+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
178+
179+[[package]]
180+name = "base64ct"
181+version = "1.8.3"
182+source = "registry+https://github.com/rust-lang/crates.io-index"
183+checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"
184+
185+[[package]]
186+name = "bindgen"
187+version = "0.72.1"
188+source = "registry+https://github.com/rust-lang/crates.io-index"
189+checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
190+dependencies = [
191+ "bitflags",
192+ "cexpr",
193+ "clang-sys",
194+ "itertools",
195+ "log",
196+ "prettyplease",
197+ "proc-macro2",
198+ "quote",
199+ "regex",
200+ "rustc-hash",
201+ "shlex 1.3.0",
202+ "syn 2.0.119",
203+]
204+
205+[[package]]
206+name = "bit-set"
207+version = "0.8.0"
208+source = "registry+https://github.com/rust-lang/crates.io-index"
209+checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
210+dependencies = [
211+ "bit-vec",
212+]
213+
214+[[package]]
215+name = "bit-vec"
216+version = "0.8.0"
217+source = "registry+https://github.com/rust-lang/crates.io-index"
218+checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
219+
220+[[package]]
221+name = "bitflags"
222+version = "2.13.1"
223+source = "registry+https://github.com/rust-lang/crates.io-index"
224+checksum = "b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da"
225+
226+[[package]]
227+name = "block-buffer"
228+version = "0.10.4"
229+source = "registry+https://github.com/rust-lang/crates.io-index"
230+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
231+dependencies = [
232+ "generic-array",
233+]
234+
235+[[package]]
236+name = "bumpalo"
237+version = "3.20.3"
238+source = "registry+https://github.com/rust-lang/crates.io-index"
239+checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
240+
241+[[package]]
242+name = "bytes"
243+version = "1.12.1"
244+source = "registry+https://github.com/rust-lang/crates.io-index"
245+checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
246+
247+[[package]]
248+name = "calendrical_calculations"
249+version = "0.2.4"
250+source = "registry+https://github.com/rust-lang/crates.io-index"
251+checksum = "5abbd6eeda6885048d357edc66748eea6e0268e3dd11f326fff5bd248d779c26"
252+dependencies = [
253+ "core_maths",
254+ "displaydoc",
255+]
256+
257+[[package]]
258+name = "cc"
259+version = "1.4.0"
260+source = "registry+https://github.com/rust-lang/crates.io-index"
261+checksum = "5add81bb678e6cb321aff7fa0dc7689ad82b112dbc032cea19f91d6b8e3582b9"
262+dependencies = [
263+ "find-msvc-tools",
264+ "shlex 2.0.1",
265+]
266+
267+[[package]]
268+name = "celld"
269+version = "0.1.0"
270+dependencies = [
271+ "aes-gcm",
272+ "anyhow",
273+ "axum",
274+ "base64 0.22.1",
275+ "bytes",
276+ "celld-logic",
277+ "celld-ltx",
278+ "ed25519-dalek",
279+ "encoding_rs",
280+ "fastwebsockets",
281+ "flate2",
282+ "fs2",
283+ "futures-util",
284+ "getrandom 0.3.4",
285+ "hmac",
286+ "http-body-util",
287+ "hyper",
288+ "hyper-util",
289+ "libc",
290+ "md-5",
291+ "object_store",
292+ "p256",
293+ "percent-encoding",
294+ "rand 0.8.7",
295+ "regex",
296+ "reqwest",
297+ "rsa",
298+ "rusqlite",
299+ "rustls",
300+ "serde",
301+ "serde_json",
302+ "sha1",
303+ "sha2",
304+ "tokio",
305+ "tokio-rustls",
306+ "tokio-stream",
307+ "tokio-util",
308+ "tracing",
309+ "tracing-subscriber",
310+ "url",
311+ "urlpattern",
312+ "v8",
313+ "webpki-roots",
314+]
315+
316+[[package]]
317+name = "celld-logic"
318+version = "0.1.0"
319+
320+[[package]]
321+name = "celld-ltx"
322+version = "0.0.0"
323+dependencies = [
324+ "async-trait",
325+ "bytes",
326+ "futures-util",
327+ "hex",
328+ "lz4_flex",
329+ "object_store",
330+ "proptest",
331+ "reqwest",
332+ "rusqlite",
333+ "serde",
334+ "serde_json",
335+ "tempfile",
336+ "thiserror 2.0.19",
337+ "tokio",
338+ "tracing",
339+]
340+
341+[[package]]
342+name = "cexpr"
343+version = "0.6.0"
344+source = "registry+https://github.com/rust-lang/crates.io-index"
345+checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
346+dependencies = [
347+ "nom",
348+]
349+
350+[[package]]
351+name = "cfg-if"
352+version = "1.0.4"
353+source = "registry+https://github.com/rust-lang/crates.io-index"
354+checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
355+
356+[[package]]
357+name = "cfg_aliases"
358+version = "0.2.2"
359+source = "registry+https://github.com/rust-lang/crates.io-index"
360+checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
361+
362+[[package]]
363+name = "chacha20"
364+version = "0.10.1"
365+source = "registry+https://github.com/rust-lang/crates.io-index"
366+checksum = "d524456ba66e72eb8b115ff89e01e497f8e6d11d78b70b1aa13c0fbd97540a81"
367+dependencies = [
368+ "cfg-if",
369+ "cpufeatures 0.3.0",
370+ "rand_core 0.10.1",
371+]
372+
373+[[package]]
374+name = "chrono"
375+version = "0.4.45"
376+source = "registry+https://github.com/rust-lang/crates.io-index"
377+checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
378+dependencies = [
379+ "iana-time-zone",
380+ "num-traits",
381+ "serde",
382+ "windows-link",
383+]
384+
385+[[package]]
386+name = "cipher"
387+version = "0.4.4"
388+source = "registry+https://github.com/rust-lang/crates.io-index"
389+checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"
390+dependencies = [
391+ "crypto-common",
392+ "inout",
393+]
394+
395+[[package]]
396+name = "clang-sys"
397+version = "1.9.1"
398+source = "registry+https://github.com/rust-lang/crates.io-index"
399+checksum = "157a8ba7b480713b56f4c09fd13fc3e0a22a5dfab8097ba61cbc5feef950788a"
400+dependencies = [
401+ "glob",
402+ "libc",
403+ "libloading",
404+]
405+
406+[[package]]
407+name = "const-oid"
408+version = "0.9.6"
409+source = "registry+https://github.com/rust-lang/crates.io-index"
410+checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
411+
412+[[package]]
413+name = "core-foundation"
414+version = "0.10.1"
415+source = "registry+https://github.com/rust-lang/crates.io-index"
416+checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
417+dependencies = [
418+ "core-foundation-sys",
419+ "libc",
420+]
421+
422+[[package]]
423+name = "core-foundation-sys"
424+version = "0.8.7"
425+source = "registry+https://github.com/rust-lang/crates.io-index"
426+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
427+
428+[[package]]
429+name = "core_maths"
430+version = "0.1.1"
431+source = "registry+https://github.com/rust-lang/crates.io-index"
432+checksum = "77745e017f5edba1a9c1d854f6f3a52dac8a12dd5af5d2f54aecf61e43d80d30"
433+dependencies = [
434+ "libm",
435+]
436+
437+[[package]]
438+name = "cpufeatures"
439+version = "0.2.17"
440+source = "registry+https://github.com/rust-lang/crates.io-index"
441+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
442+dependencies = [
443+ "libc",
444+]
445+
446+[[package]]
447+name = "cpufeatures"
448+version = "0.3.0"
449+source = "registry+https://github.com/rust-lang/crates.io-index"
450+checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
451+dependencies = [
452+ "libc",
453+]
454+
455+[[package]]
456+name = "crc32fast"
457+version = "1.5.0"
458+source = "registry+https://github.com/rust-lang/crates.io-index"
459+checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
460+dependencies = [
461+ "cfg-if",
462+]
463+
464+[[package]]
465+name = "crypto-bigint"
466+version = "0.5.5"
467+source = "registry+https://github.com/rust-lang/crates.io-index"
468+checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76"
469+dependencies = [
470+ "generic-array",
471+ "rand_core 0.6.4",
472+ "subtle",
473+ "zeroize",
474+]
475+
476+[[package]]
477+name = "crypto-common"
478+version = "0.1.7"
479+source = "registry+https://github.com/rust-lang/crates.io-index"
480+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
481+dependencies = [
482+ "generic-array",
483+ "rand_core 0.6.4",
484+ "typenum",
485+]
486+
487+[[package]]
488+name = "ctr"
489+version = "0.9.2"
490+source = "registry+https://github.com/rust-lang/crates.io-index"
491+checksum = "0369ee1ad671834580515889b80f2ea915f23b8be8d0daa4bbaf2ac5c7590835"
492+dependencies = [
493+ "cipher",
494+]
495+
496+[[package]]
497+name = "curve25519-dalek"
498+version = "4.1.3"
499+source = "registry+https://github.com/rust-lang/crates.io-index"
500+checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
501+dependencies = [
502+ "cfg-if",
503+ "cpufeatures 0.2.17",
504+ "curve25519-dalek-derive",
505+ "digest",
506+ "fiat-crypto",
507+ "rustc_version",
508+ "subtle",
509+ "zeroize",
510+]
511+
512+[[package]]
513+name = "curve25519-dalek-derive"
514+version = "0.1.1"
515+source = "registry+https://github.com/rust-lang/crates.io-index"
516+checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
517+dependencies = [
518+ "proc-macro2",
519+ "quote",
520+ "syn 2.0.119",
521+]
522+
523+[[package]]
524+name = "der"
525+version = "0.7.10"
526+source = "registry+https://github.com/rust-lang/crates.io-index"
527+checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
528+dependencies = [
529+ "const-oid",
530+ "pem-rfc7468",
531+ "zeroize",
532+]
533+
534+[[package]]
535+name = "digest"
536+version = "0.10.7"
537+source = "registry+https://github.com/rust-lang/crates.io-index"
538+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
539+dependencies = [
540+ "block-buffer",
541+ "const-oid",
542+ "crypto-common",
543+ "subtle",
544+]
545+
546+[[package]]
547+name = "diplomat"
548+version = "0.15.0"
549+source = "registry+https://github.com/rust-lang/crates.io-index"
550+checksum = "7935649d00000f5c5d735448ad3dc07b9738160727017914cf42138b8e8e6611"
551+dependencies = [
552+ "diplomat_core",
553+ "proc-macro2",
554+ "quote",
555+ "syn 2.0.119",
556+]
557+
558+[[package]]
559+name = "diplomat-runtime"
560+version = "0.15.1"
561+source = "registry+https://github.com/rust-lang/crates.io-index"
562+checksum = "970ac38ad677632efcee6d517e783958da9bc78ec206d8d5e35b459ffc5e4864"
563+
564+[[package]]
565+name = "diplomat_core"
566+version = "0.15.0"
567+source = "registry+https://github.com/rust-lang/crates.io-index"
568+checksum = "9cf41b94101a4bce993febaf0098092b0bb31deaf0ecaf6e0a2562465f61b383"
569+dependencies = [
570+ "proc-macro2",
571+ "quote",
572+ "serde",
573+ "smallvec",
574+ "strck",
575+ "syn 2.0.119",
576+]
577+
578+[[package]]
579+name = "displaydoc"
580+version = "0.2.7"
581+source = "registry+https://github.com/rust-lang/crates.io-index"
582+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
583+dependencies = [
584+ "proc-macro2",
585+ "quote",
586+ "syn 3.0.3",
587+]
588+
589+[[package]]
590+name = "ecdsa"
591+version = "0.16.9"
592+source = "registry+https://github.com/rust-lang/crates.io-index"
593+checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca"
594+dependencies = [
595+ "der",
596+ "digest",
597+ "elliptic-curve",
598+ "rfc6979",
599+ "signature",
600+ "spki",
601+]
602+
603+[[package]]
604+name = "ed25519"
605+version = "2.2.3"
606+source = "registry+https://github.com/rust-lang/crates.io-index"
607+checksum = "115531babc129696a58c64a4fef0a8bf9e9698629fb97e9e40767d235cfbcd53"
608+dependencies = [
609+ "pkcs8",
610+ "signature",
611+]
612+
613+[[package]]
614+name = "ed25519-dalek"
615+version = "2.2.0"
616+source = "registry+https://github.com/rust-lang/crates.io-index"
617+checksum = "70e796c081cee67dc755e1a36a0a172b897fab85fc3f6bc48307991f64e4eca9"
618+dependencies = [
619+ "curve25519-dalek",
620+ "ed25519",
621+ "serde",
622+ "sha2",
623+ "subtle",
624+ "zeroize",
625+]
626+
627+[[package]]
628+name = "either"
629+version = "1.17.0"
630+source = "registry+https://github.com/rust-lang/crates.io-index"
631+checksum = "9e5e8f6c15a24b9a3ee5efec809ccd006d3b30e8b3bb63c39af737c7f87daa1d"
632+
633+[[package]]
634+name = "elliptic-curve"
635+version = "0.13.8"
636+source = "registry+https://github.com/rust-lang/crates.io-index"
637+checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47"
638+dependencies = [
639+ "base16ct",
640+ "crypto-bigint",
641+ "digest",
642+ "ff",
643+ "generic-array",
644+ "group",
645+ "pem-rfc7468",
646+ "pkcs8",
647+ "rand_core 0.6.4",
648+ "sec1",
649+ "subtle",
650+ "zeroize",
651+]
652+
653+[[package]]
654+name = "encoding_rs"
655+version = "0.8.35"
656+source = "registry+https://github.com/rust-lang/crates.io-index"
657+checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
658+dependencies = [
659+ "cfg-if",
660+]
661+
662+[[package]]
663+name = "equivalent"
664+version = "1.0.2"
665+source = "registry+https://github.com/rust-lang/crates.io-index"
666+checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
667+
668+[[package]]
669+name = "errno"
670+version = "0.3.14"
671+source = "registry+https://github.com/rust-lang/crates.io-index"
672+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
673+dependencies = [
674+ "libc",
675+ "windows-sys 0.61.2",
676+]
677+
678+[[package]]
679+name = "fallible-iterator"
680+version = "0.3.0"
681+source = "registry+https://github.com/rust-lang/crates.io-index"
682+checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649"
683+
684+[[package]]
685+name = "fallible-streaming-iterator"
686+version = "0.1.9"
687+source = "registry+https://github.com/rust-lang/crates.io-index"
688+checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a"
689+
690+[[package]]
691+name = "fastrand"
692+version = "2.5.0"
693+source = "registry+https://github.com/rust-lang/crates.io-index"
694+checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
695+
696+[[package]]
697+name = "fastwebsockets"
698+version = "0.8.1"
699+source = "registry+https://github.com/rust-lang/crates.io-index"
700+checksum = "9dac026e15fb7e44d768880b868a0fd5bd30ffdee272e88b3060f657a5a72947"
701+dependencies = [
702+ "async-trait",
703+ "axum-core",
704+ "base64 0.21.7",
705+ "bytes",
706+ "http",
707+ "http-body-util",
708+ "hyper",
709+ "hyper-util",
710+ "pin-project",
711+ "rand 0.8.7",
712+ "sha1",
713+ "thiserror 1.0.69",
714+ "tokio",
715+ "utf-8",
716+]
717+
718+[[package]]
719+name = "ff"
720+version = "0.13.1"
721+source = "registry+https://github.com/rust-lang/crates.io-index"
722+checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393"
723+dependencies = [
724+ "rand_core 0.6.4",
725+ "subtle",
726+]
727+
728+[[package]]
729+name = "fiat-crypto"
730+version = "0.2.9"
731+source = "registry+https://github.com/rust-lang/crates.io-index"
732+checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
733+
734+[[package]]
735+name = "find-msvc-tools"
736+version = "0.1.9"
737+source = "registry+https://github.com/rust-lang/crates.io-index"
738+checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
739+
740+[[package]]
741+name = "flate2"
742+version = "1.1.9"
743+source = "registry+https://github.com/rust-lang/crates.io-index"
744+checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
745+dependencies = [
746+ "crc32fast",
747+ "miniz_oxide",
748+]
749+
750+[[package]]
751+name = "fnv"
752+version = "1.0.7"
753+source = "registry+https://github.com/rust-lang/crates.io-index"
754+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
755+
756+[[package]]
757+name = "form_urlencoded"
758+version = "1.2.2"
759+source = "registry+https://github.com/rust-lang/crates.io-index"
760+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
761+dependencies = [
762+ "percent-encoding",
763+]
764+
765+[[package]]
766+name = "fs2"
767+version = "0.4.3"
768+source = "registry+https://github.com/rust-lang/crates.io-index"
769+checksum = "9564fc758e15025b46aa6643b1b77d047d1a56a1aea6e01002ac0c7026876213"
770+dependencies = [
771+ "libc",
772+ "winapi",
773+]
774+
775+[[package]]
776+name = "fslock"
777+version = "0.2.1"
778+source = "registry+https://github.com/rust-lang/crates.io-index"
779+checksum = "04412b8935272e3a9bae6f48c7bfff74c2911f60525404edfdd28e49884c3bfb"
780+dependencies = [
781+ "libc",
782+ "winapi",
783+]
784+
785+[[package]]
786+name = "futures"
787+version = "0.3.33"
788+source = "registry+https://github.com/rust-lang/crates.io-index"
789+checksum = "a88cf1f829d945f548cf8fec32c61b1f202b6d93b45848602fc02af4b12ad218"
790+dependencies = [
791+ "futures-channel",
792+ "futures-core",
793+ "futures-executor",
794+ "futures-io",
795+ "futures-sink",
796+ "futures-task",
797+ "futures-util",
798+]
799+
800+[[package]]
801+name = "futures-channel"
802+version = "0.3.33"
803+source = "registry+https://github.com/rust-lang/crates.io-index"
804+checksum = "262590f4fe6afeb0bc83be1daa64e52657fe185690a958af7f3ad0e92085c5ae"
805+dependencies = [
806+ "futures-core",
807+ "futures-sink",
808+]
809+
810+[[package]]
811+name = "futures-core"
812+version = "0.3.33"
813+source = "registry+https://github.com/rust-lang/crates.io-index"
814+checksum = "2cd50c473c80f6d7c3670a752354b8e569b1a7cbfdc0419ec88e5edad85e0dc7"
815+
816+[[package]]
817+name = "futures-executor"
818+version = "0.3.33"
819+source = "registry+https://github.com/rust-lang/crates.io-index"
820+checksum = "6754879cc9f2c66f88c6e5c35344bb0bdb0708b0352b1201815667c7eabc7458"
821+dependencies = [
822+ "futures-core",
823+ "futures-task",
824+ "futures-util",
825+]
826+
827+[[package]]
828+name = "futures-io"
829+version = "0.3.33"
830+source = "registry+https://github.com/rust-lang/crates.io-index"
831+checksum = "4577ecaa3c4f96589d473f679a71b596316f6641bc350038b962a5daf0085d7a"
832+
833+[[package]]
834+name = "futures-macro"
835+version = "0.3.33"
836+source = "registry+https://github.com/rust-lang/crates.io-index"
837+checksum = "2d6d3cde68c518367be28956066ddfef33813991b77a55005a69dae04bf3b10b"
838+dependencies = [
839+ "proc-macro2",
840+ "quote",
841+ "syn 2.0.119",
842+]
843+
844+[[package]]
845+name = "futures-sink"
846+version = "0.3.33"
847+source = "registry+https://github.com/rust-lang/crates.io-index"
848+checksum = "e34418ac499d6305c2fb5ad0ed2f6ac998c5f8ca209b4510f7f94242c647e307"
849+
850+[[package]]
851+name = "futures-task"
852+version = "0.3.33"
853+source = "registry+https://github.com/rust-lang/crates.io-index"
854+checksum = "b231ed28831efb4a61a08580c4bc233ec56bc009f4cd8f52da2c3cb97df0c109"
855+
856+[[package]]
857+name = "futures-util"
858+version = "0.3.33"
859+source = "registry+https://github.com/rust-lang/crates.io-index"
860+checksum = "a77a90a256fce34da66415271e30f94ee91c57b04b8a2c042d9cf3220179deaa"
861+dependencies = [
862+ "futures-channel",
863+ "futures-core",
864+ "futures-io",
865+ "futures-macro",
866+ "futures-sink",
867+ "futures-task",
868+ "memchr",
869+ "pin-project-lite",
870+ "slab",
871+]
872+
873+[[package]]
874+name = "generic-array"
875+version = "0.14.7"
876+source = "registry+https://github.com/rust-lang/crates.io-index"
877+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
878+dependencies = [
879+ "typenum",
880+ "version_check",
881+ "zeroize",
882+]
883+
884+[[package]]
885+name = "getrandom"
886+version = "0.2.17"
887+source = "registry+https://github.com/rust-lang/crates.io-index"
888+checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
889+dependencies = [
890+ "cfg-if",
891+ "js-sys",
892+ "libc",
893+ "wasi",
894+ "wasm-bindgen",
895+]
896+
897+[[package]]
898+name = "getrandom"
899+version = "0.3.4"
900+source = "registry+https://github.com/rust-lang/crates.io-index"
901+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
902+dependencies = [
903+ "cfg-if",
904+ "libc",
905+ "r-efi 5.3.0",
906+ "wasip2",
907+]
908+
909+[[package]]
910+name = "getrandom"
911+version = "0.4.3"
912+source = "registry+https://github.com/rust-lang/crates.io-index"
913+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
914+dependencies = [
915+ "cfg-if",
916+ "js-sys",
917+ "libc",
918+ "r-efi 6.0.0",
919+ "rand_core 0.10.1",
920+ "wasm-bindgen",
921+]
922+
923+[[package]]
924+name = "ghash"
925+version = "0.5.1"
926+source = "registry+https://github.com/rust-lang/crates.io-index"
927+checksum = "f0d8a4362ccb29cb0b265253fb0a2728f592895ee6854fd9bc13f2ffda266ff1"
928+dependencies = [
929+ "opaque-debug",
930+ "polyval",
931+]
932+
933+[[package]]
934+name = "glob"
935+version = "0.3.4"
936+source = "registry+https://github.com/rust-lang/crates.io-index"
937+checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
938+
939+[[package]]
940+name = "group"
941+version = "0.13.0"
942+source = "registry+https://github.com/rust-lang/crates.io-index"
943+checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63"
944+dependencies = [
945+ "ff",
946+ "rand_core 0.6.4",
947+ "subtle",
948+]
949+
950+[[package]]
951+name = "gzip-header"
952+version = "1.1.0"
953+source = "registry+https://github.com/rust-lang/crates.io-index"
954+checksum = "86848f4fd157d91041a62c78046fb7b248bcc2dce78376d436a1756e9a038577"
955+dependencies = [
956+ "crc32fast",
957+]
958+
959+[[package]]
960+name = "h2"
961+version = "0.4.15"
962+source = "registry+https://github.com/rust-lang/crates.io-index"
963+checksum = "6cb093c84e8bd9b188d4c4a8cb6579fc016968d14c99882163cd3ff402a4f155"
964+dependencies = [
965+ "atomic-waker",
966+ "bytes",
967+ "fnv",
968+ "futures-core",
969+ "futures-sink",
970+ "http",
971+ "indexmap",
972+ "slab",
973+ "tokio",
974+ "tokio-util",
975+ "tracing",
976+]
977+
978+[[package]]
979+name = "hashbrown"
980+version = "0.14.5"
981+source = "registry+https://github.com/rust-lang/crates.io-index"
982+checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
983+dependencies = [
984+ "ahash",
985+]
986+
987+[[package]]
988+name = "hashbrown"
989+version = "0.17.1"
990+source = "registry+https://github.com/rust-lang/crates.io-index"
991+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
992+
993+[[package]]
994+name = "hashlink"
995+version = "0.9.1"
996+source = "registry+https://github.com/rust-lang/crates.io-index"
997+checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af"
998+dependencies = [
999+ "hashbrown 0.14.5",
1000+]
1001+
1002+[[package]]
1003+name = "heck"
1004+version = "0.5.0"
1005+source = "registry+https://github.com/rust-lang/crates.io-index"
1006+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
1007+
1008+[[package]]
1009+name = "hex"
1010+version = "0.4.3"
1011+source = "registry+https://github.com/rust-lang/crates.io-index"
1012+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
1013+
1014+[[package]]
1015+name = "hmac"
1016+version = "0.12.1"
1017+source = "registry+https://github.com/rust-lang/crates.io-index"
1018+checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
1019+dependencies = [
1020+ "digest",
1021+]
1022+
1023+[[package]]
1024+name = "home"
1025+version = "0.5.12"
1026+source = "registry+https://github.com/rust-lang/crates.io-index"
1027+checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d"
1028+dependencies = [
1029+ "windows-sys 0.61.2",
1030+]
1031+
1032+[[package]]
1033+name = "http"
1034+version = "1.5.0"
1035+source = "registry+https://github.com/rust-lang/crates.io-index"
1036+checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"
1037+dependencies = [
1038+ "bytes",
1039+ "itoa",
1040+]
1041+
1042+[[package]]
1043+name = "http-body"
1044+version = "1.1.0"
1045+source = "registry+https://github.com/rust-lang/crates.io-index"
1046+checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"
1047+dependencies = [
1048+ "bytes",
1049+ "http",
1050+]
1051+
1052+[[package]]
1053+name = "http-body-util"
1054+version = "0.1.4"
1055+source = "registry+https://github.com/rust-lang/crates.io-index"
1056+checksum = "e9f41fd6a08e4d4ec69df65976da761afd5ad5e58a9d4acb46bd1c953a9e3ff2"
1057+dependencies = [
1058+ "bytes",
1059+ "futures-core",
1060+ "http",
1061+ "http-body",
1062+ "pin-project-lite",
1063+]
1064+
1065+[[package]]
1066+name = "httparse"
1067+version = "1.10.1"
1068+source = "registry+https://github.com/rust-lang/crates.io-index"
1069+checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
1070+
1071+[[package]]
1072+name = "httpdate"
1073+version = "1.0.3"
1074+source = "registry+https://github.com/rust-lang/crates.io-index"
1075+checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
1076+
1077+[[package]]
1078+name = "humantime"
1079+version = "2.4.0"
1080+source = "registry+https://github.com/rust-lang/crates.io-index"
1081+checksum = "15cdd26707701c53297e2fa6afb323d55fbc1d0810c3aec078ae3ef0424c3c15"
1082+
1083+[[package]]
1084+name = "hyper"
1085+version = "1.11.0"
1086+source = "registry+https://github.com/rust-lang/crates.io-index"
1087+checksum = "d22053281f852e11534f5198498373cbb59295120a20771d90f7ed1897490a72"
1088+dependencies = [
1089+ "atomic-waker",
1090+ "bytes",
1091+ "futures-channel",
1092+ "futures-core",
1093+ "h2",
1094+ "http",
1095+ "http-body",
1096+ "httparse",
1097+ "httpdate",
1098+ "itoa",
1099+ "pin-project-lite",
1100+ "smallvec",
1101+ "tokio",
1102+ "want",
1103+]
1104+
1105+[[package]]
1106+name = "hyper-rustls"
1107+version = "0.27.9"
1108+source = "registry+https://github.com/rust-lang/crates.io-index"
1109+checksum = "33ca68d021ef39cf6463ab54c1d0f5daf03377b70561305bb89a8f83aab66e0f"
1110+dependencies = [
1111+ "http",
1112+ "hyper",
1113+ "hyper-util",
1114+ "rustls",
1115+ "rustls-native-certs",
1116+ "tokio",
1117+ "tokio-rustls",
1118+ "tower-service",
1119+ "webpki-roots",
1120+]
1121+
1122+[[package]]
1123+name = "hyper-util"
1124+version = "0.1.20"
1125+source = "registry+https://github.com/rust-lang/crates.io-index"
1126+checksum = "96547c2556ec9d12fb1578c4eaf448b04993e7fb79cbaad930a656880a6bdfa0"
1127+dependencies = [
1128+ "base64 0.22.1",
1129+ "bytes",
1130+ "futures-channel",
1131+ "futures-util",
1132+ "http",
1133+ "http-body",
1134+ "hyper",
1135+ "ipnet",
1136+ "libc",
1137+ "percent-encoding",
1138+ "pin-project-lite",
1139+ "socket2",
1140+ "tokio",
1141+ "tower-service",
1142+ "tracing",
1143+]
1144+
1145+[[package]]
1146+name = "iana-time-zone"
1147+version = "0.1.65"
1148+source = "registry+https://github.com/rust-lang/crates.io-index"
1149+checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
1150+dependencies = [
1151+ "android_system_properties",
1152+ "core-foundation-sys",
1153+ "iana-time-zone-haiku",
1154+ "js-sys",
1155+ "log",
1156+ "wasm-bindgen",
1157+ "windows-core",
1158+]
1159+
1160+[[package]]
1161+name = "iana-time-zone-haiku"
1162+version = "0.1.2"
1163+source = "registry+https://github.com/rust-lang/crates.io-index"
1164+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
1165+dependencies = [
1166+ "cc",
1167+]
1168+
1169+[[package]]
1170+name = "icu_calendar"
1171+version = "2.2.1"
1172+source = "registry+https://github.com/rust-lang/crates.io-index"
1173+checksum = "a2b2acc6263f494f1df50685b53ff8e57869e47d5c6fe39c23d518ae9a4f3e45"
1174+dependencies = [
1175+ "calendrical_calculations",
1176+ "displaydoc",
1177+ "icu_calendar_data",
1178+ "icu_locale",
1179+ "icu_locale_core",
1180+ "icu_provider",
1181+ "tinystr",
1182+ "zerovec",
1183+]
1184+
1185+[[package]]
1186+name = "icu_calendar_data"
1187+version = "2.2.0"
1188+source = "registry+https://github.com/rust-lang/crates.io-index"
1189+checksum = "118577bcf3a0fa7c6ac0a7d6e951814da84ee56b9b1f68fb4d8d10b08cefaf4d"
1190+
1191+[[package]]
1192+name = "icu_collections"
1193+version = "2.2.0"
1194+source = "registry+https://github.com/rust-lang/crates.io-index"
1195+checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
1196+dependencies = [
1197+ "displaydoc",
1198+ "potential_utf",
1199+ "utf8_iter",
1200+ "yoke",
1201+ "zerofrom",
1202+ "zerovec",
1203+]
1204+
1205+[[package]]
1206+name = "icu_locale"
1207+version = "2.2.0"
1208+source = "registry+https://github.com/rust-lang/crates.io-index"
1209+checksum = "d5a396343c7208121dc86e35623d3dfe19814a7613cfd14964994cdc9c9a2e26"
1210+dependencies = [
1211+ "icu_collections",
1212+ "icu_locale_core",
1213+ "icu_locale_data",
1214+ "icu_provider",
1215+ "potential_utf",
1216+ "tinystr",
1217+ "zerovec",
1218+]
1219+
1220+[[package]]
1221+name = "icu_locale_core"
1222+version = "2.2.0"
1223+source = "registry+https://github.com/rust-lang/crates.io-index"
1224+checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
1225+dependencies = [
1226+ "displaydoc",
1227+ "litemap",
1228+ "serde",
1229+ "tinystr",
1230+ "writeable",
1231+ "zerovec",
1232+]
1233+
1234+[[package]]
1235+name = "icu_locale_data"
1236+version = "2.2.0"
1237+source = "registry+https://github.com/rust-lang/crates.io-index"
1238+checksum = "d5fdcc9ac77c6d74ff5cf6e65ef3181d6af32003b16fce3a77fb451d2f695993"
1239+
1240+[[package]]
1241+name = "icu_normalizer"
1242+version = "2.2.0"
1243+source = "registry+https://github.com/rust-lang/crates.io-index"
1244+checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
1245+dependencies = [
1246+ "icu_collections",
1247+ "icu_normalizer_data",
1248+ "icu_properties",
1249+ "icu_provider",
1250+ "smallvec",
1251+ "zerovec",
1252+]
1253+
1254+[[package]]
1255+name = "icu_normalizer_data"
1256+version = "2.2.0"
1257+source = "registry+https://github.com/rust-lang/crates.io-index"
1258+checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
1259+
1260+[[package]]
1261+name = "icu_properties"
1262+version = "2.2.0"
1263+source = "registry+https://github.com/rust-lang/crates.io-index"
1264+checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
1265+dependencies = [
1266+ "icu_collections",
1267+ "icu_locale_core",
1268+ "icu_properties_data",
1269+ "icu_provider",
1270+ "zerotrie",
1271+ "zerovec",
1272+]
1273+
1274+[[package]]
1275+name = "icu_properties_data"
1276+version = "2.2.0"
1277+source = "registry+https://github.com/rust-lang/crates.io-index"
1278+checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
1279+
1280+[[package]]
1281+name = "icu_provider"
1282+version = "2.2.0"
1283+source = "registry+https://github.com/rust-lang/crates.io-index"
1284+checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
1285+dependencies = [
1286+ "displaydoc",
1287+ "icu_locale_core",
1288+ "serde",
1289+ "stable_deref_trait",
1290+ "writeable",
1291+ "yoke",
1292+ "zerofrom",
1293+ "zerotrie",
1294+ "zerovec",
1295+]
1296+
1297+[[package]]
1298+name = "idna"
1299+version = "1.1.0"
1300+source = "registry+https://github.com/rust-lang/crates.io-index"
1301+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
1302+dependencies = [
1303+ "idna_adapter",
1304+ "smallvec",
1305+ "utf8_iter",
1306+]
1307+
1308+[[package]]
1309+name = "idna_adapter"
1310+version = "1.2.2"
1311+source = "registry+https://github.com/rust-lang/crates.io-index"
1312+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
1313+dependencies = [
1314+ "icu_normalizer",
1315+ "icu_properties",
1316+]
1317+
1318+[[package]]
1319+name = "indexmap"
1320+version = "2.14.0"
1321+source = "registry+https://github.com/rust-lang/crates.io-index"
1322+checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
1323+dependencies = [
1324+ "equivalent",
1325+ "hashbrown 0.17.1",
1326+]
1327+
1328+[[package]]
1329+name = "inout"
1330+version = "0.1.4"
1331+source = "registry+https://github.com/rust-lang/crates.io-index"
1332+checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"
1333+dependencies = [
1334+ "generic-array",
1335+]
1336+
1337+[[package]]
1338+name = "ipnet"
1339+version = "2.12.1"
1340+source = "registry+https://github.com/rust-lang/crates.io-index"
1341+checksum = "6a756c3fac73139e83f14c2d742155dd2b78d3ee56597b419a0579b7bdd6dd78"
1342+
1343+[[package]]
1344+name = "itertools"
1345+version = "0.13.0"
1346+source = "registry+https://github.com/rust-lang/crates.io-index"
1347+checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
1348+dependencies = [
1349+ "either",
1350+]
1351+
1352+[[package]]
1353+name = "itoa"
1354+version = "1.0.18"
1355+source = "registry+https://github.com/rust-lang/crates.io-index"
1356+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
1357+
1358+[[package]]
1359+name = "ixdtf"
1360+version = "0.6.5"
1361+source = "registry+https://github.com/rust-lang/crates.io-index"
1362+checksum = "2ceaf4c6c48465bead8cb6a0b7c4ee0c86ecbb31239032b9c66ab9a08d2f3ee1"
1363+
1364+[[package]]
1365+name = "js-sys"
1366+version = "0.3.103"
1367+source = "registry+https://github.com/rust-lang/crates.io-index"
1368+checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102"
1369+dependencies = [
1370+ "cfg-if",
1371+ "futures-util",
1372+ "wasm-bindgen",
1373+]
1374+
1375+[[package]]
1376+name = "lazy_static"
1377+version = "1.5.0"
1378+source = "registry+https://github.com/rust-lang/crates.io-index"
1379+checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
1380+dependencies = [
1381+ "spin",
1382+]
1383+
1384+[[package]]
1385+name = "libc"
1386+version = "0.2.189"
1387+source = "registry+https://github.com/rust-lang/crates.io-index"
1388+checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
1389+
1390+[[package]]
1391+name = "libloading"
1392+version = "0.8.9"
1393+source = "registry+https://github.com/rust-lang/crates.io-index"
1394+checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
1395+dependencies = [
1396+ "cfg-if",
1397+ "windows-link",
1398+]
1399+
1400+[[package]]
1401+name = "libm"
1402+version = "0.2.16"
1403+source = "registry+https://github.com/rust-lang/crates.io-index"
1404+checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
1405+
1406+[[package]]
1407+name = "libsqlite3-sys"
1408+version = "0.28.0"
1409+source = "registry+https://github.com/rust-lang/crates.io-index"
1410+checksum = "0c10584274047cb335c23d3e61bcef8e323adae7c5c8c760540f73610177fc3f"
1411+dependencies = [
1412+ "cc",
1413+ "pkg-config",
1414+ "vcpkg",
1415+]
1416+
1417+[[package]]
1418+name = "linux-raw-sys"
1419+version = "0.4.15"
1420+source = "registry+https://github.com/rust-lang/crates.io-index"
1421+checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
1422+
1423+[[package]]
1424+name = "linux-raw-sys"
1425+version = "0.12.1"
1426+source = "registry+https://github.com/rust-lang/crates.io-index"
1427+checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
1428+
1429+[[package]]
1430+name = "litemap"
1431+version = "0.8.2"
1432+source = "registry+https://github.com/rust-lang/crates.io-index"
1433+checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
1434+
1435+[[package]]
1436+name = "lock_api"
1437+version = "0.4.14"
1438+source = "registry+https://github.com/rust-lang/crates.io-index"
1439+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
1440+dependencies = [
1441+ "scopeguard",
1442+]
1443+
1444+[[package]]
1445+name = "log"
1446+version = "0.4.33"
1447+source = "registry+https://github.com/rust-lang/crates.io-index"
1448+checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
1449+
1450+[[package]]
1451+name = "lru-slab"
1452+version = "0.1.2"
1453+source = "registry+https://github.com/rust-lang/crates.io-index"
1454+checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154"
1455+
1456+[[package]]
1457+name = "lz4_flex"
1458+version = "0.11.6"
1459+source = "registry+https://github.com/rust-lang/crates.io-index"
1460+checksum = "373f5eceeeab7925e0c1098212f2fbc4d416adec9d35051a6ab251e824c1854a"
1461+dependencies = [
1462+ "twox-hash",
1463+]
1464+
1465+[[package]]
1466+name = "matchers"
1467+version = "0.2.0"
1468+source = "registry+https://github.com/rust-lang/crates.io-index"
1469+checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
1470+dependencies = [
1471+ "regex-automata",
1472+]
1473+
1474+[[package]]
1475+name = "matchit"
1476+version = "0.7.3"
1477+source = "registry+https://github.com/rust-lang/crates.io-index"
1478+checksum = "0e7465ac9959cc2b1404e8e2367b43684a6d13790fe23056cc8c6c5a6b7bcb94"
1479+
1480+[[package]]
1481+name = "md-5"
1482+version = "0.10.6"
1483+source = "registry+https://github.com/rust-lang/crates.io-index"
1484+checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf"
1485+dependencies = [
1486+ "cfg-if",
1487+ "digest",
1488+]
1489+
1490+[[package]]
1491+name = "memchr"
1492+version = "2.8.3"
1493+source = "registry+https://github.com/rust-lang/crates.io-index"
1494+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
1495+
1496+[[package]]
1497+name = "mime"
1498+version = "0.3.17"
1499+source = "registry+https://github.com/rust-lang/crates.io-index"
1500+checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
1501+
1502+[[package]]
1503+name = "minimal-lexical"
1504+version = "0.2.1"
1505+source = "registry+https://github.com/rust-lang/crates.io-index"
1506+checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
1507+
1508+[[package]]
1509+name = "miniz_oxide"
1510+version = "0.8.9"
1511+source = "registry+https://github.com/rust-lang/crates.io-index"
1512+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
1513+dependencies = [
1514+ "adler2",
1515+ "simd-adler32",
1516+]
1517+
1518+[[package]]
1519+name = "mio"
1520+version = "1.2.2"
1521+source = "registry+https://github.com/rust-lang/crates.io-index"
1522+checksum = "30d65c71f1ce40ab09135ce117d742b9f8a19ff91a41a8b57ed50bc2de59c427"
1523+dependencies = [
1524+ "libc",
1525+ "wasi",
1526+ "windows-sys 0.61.2",
1527+]
1528+
1529+[[package]]
1530+name = "multer"
1531+version = "3.1.0"
1532+source = "registry+https://github.com/rust-lang/crates.io-index"
1533+checksum = "83e87776546dc87511aa5ee218730c92b666d7264ab6ed41f9d215af9cd5224b"
1534+dependencies = [
1535+ "bytes",
1536+ "encoding_rs",
1537+ "futures-util",
1538+ "http",
1539+ "httparse",
1540+ "memchr",
1541+ "mime",
1542+ "spin",
1543+ "version_check",
1544+]
1545+
1546+[[package]]
1547+name = "nom"
1548+version = "7.1.3"
1549+source = "registry+https://github.com/rust-lang/crates.io-index"
1550+checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
1551+dependencies = [
1552+ "memchr",
1553+ "minimal-lexical",
1554+]
1555+
1556+[[package]]
1557+name = "nu-ansi-term"
1558+version = "0.50.3"
1559+source = "registry+https://github.com/rust-lang/crates.io-index"
1560+checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
1561+dependencies = [
1562+ "windows-sys 0.61.2",
1563+]
1564+
1565+[[package]]
1566+name = "num-bigint-dig"
1567+version = "0.8.6"
1568+source = "registry+https://github.com/rust-lang/crates.io-index"
1569+checksum = "e661dda6640fad38e827a6d4a310ff4763082116fe217f279885c97f511bb0b7"
1570+dependencies = [
1571+ "lazy_static",
1572+ "libm",
1573+ "num-integer",
1574+ "num-iter",
1575+ "num-traits",
1576+ "rand 0.8.7",
1577+ "smallvec",
1578+ "zeroize",
1579+]
1580+
1581+[[package]]
1582+name = "num-integer"
1583+version = "0.1.46"
1584+source = "registry+https://github.com/rust-lang/crates.io-index"
1585+checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
1586+dependencies = [
1587+ "num-traits",
1588+]
1589+
1590+[[package]]
1591+name = "num-iter"
1592+version = "0.1.46"
1593+source = "registry+https://github.com/rust-lang/crates.io-index"
1594+checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b"
1595+dependencies = [
1596+ "num-integer",
1597+ "num-traits",
1598+]
1599+
1600+[[package]]
1601+name = "num-traits"
1602+version = "0.2.19"
1603+source = "registry+https://github.com/rust-lang/crates.io-index"
1604+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
1605+dependencies = [
1606+ "autocfg",
1607+ "libm",
1608+]
1609+
1610+[[package]]
1611+name = "object_store"
1612+version = "0.11.2"
1613+source = "registry+https://github.com/rust-lang/crates.io-index"
1614+checksum = "3cfccb68961a56facde1163f9319e0d15743352344e7808a11795fb99698dcaf"
1615+dependencies = [
1616+ "async-trait",
1617+ "base64 0.22.1",
1618+ "bytes",
1619+ "chrono",
1620+ "futures",
1621+ "httparse",
1622+ "humantime",
1623+ "hyper",
1624+ "itertools",
1625+ "md-5",
1626+ "parking_lot",
1627+ "percent-encoding",
1628+ "quick-xml",
1629+ "rand 0.8.7",
1630+ "reqwest",
1631+ "ring",
1632+ "rustls-pemfile",
1633+ "serde",
1634+ "serde_json",
1635+ "snafu",
1636+ "tokio",
1637+ "tracing",
1638+ "url",
1639+ "walkdir",
1640+]
1641+
1642+[[package]]
1643+name = "once_cell"
1644+version = "1.21.4"
1645+source = "registry+https://github.com/rust-lang/crates.io-index"
1646+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
1647+
1648+[[package]]
1649+name = "opaque-debug"
1650+version = "0.3.1"
1651+source = "registry+https://github.com/rust-lang/crates.io-index"
1652+checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381"
1653+
1654+[[package]]
1655+name = "openssl-probe"
1656+version = "0.2.1"
1657+source = "registry+https://github.com/rust-lang/crates.io-index"
1658+checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
1659+
1660+[[package]]
1661+name = "p256"
1662+version = "0.13.2"
1663+source = "registry+https://github.com/rust-lang/crates.io-index"
1664+checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b"
1665+dependencies = [
1666+ "ecdsa",
1667+ "elliptic-curve",
1668+ "primeorder",
1669+ "sha2",
1670+]
1671+
1672+[[package]]
1673+name = "parking_lot"
1674+version = "0.12.5"
1675+source = "registry+https://github.com/rust-lang/crates.io-index"
1676+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
1677+dependencies = [
1678+ "lock_api",
1679+ "parking_lot_core",
1680+]
1681+
1682+[[package]]
1683+name = "parking_lot_core"
1684+version = "0.9.12"
1685+source = "registry+https://github.com/rust-lang/crates.io-index"
1686+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
1687+dependencies = [
1688+ "cfg-if",
1689+ "libc",
1690+ "redox_syscall",
1691+ "smallvec",
1692+ "windows-link",
1693+]
1694+
1695+[[package]]
1696+name = "paste"
1697+version = "1.0.15"
1698+source = "registry+https://github.com/rust-lang/crates.io-index"
1699+checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
1700+
1701+[[package]]
1702+name = "pem-rfc7468"
1703+version = "0.7.0"
1704+source = "registry+https://github.com/rust-lang/crates.io-index"
1705+checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412"
1706+dependencies = [
1707+ "base64ct",
1708+]
1709+
1710+[[package]]
1711+name = "percent-encoding"
1712+version = "2.3.2"
1713+source = "registry+https://github.com/rust-lang/crates.io-index"
1714+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
1715+
1716+[[package]]
1717+name = "pin-project"
1718+version = "1.1.13"
1719+source = "registry+https://github.com/rust-lang/crates.io-index"
1720+checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924"
1721+dependencies = [
1722+ "pin-project-internal",
1723+]
1724+
1725+[[package]]
1726+name = "pin-project-internal"
1727+version = "1.1.13"
1728+source = "registry+https://github.com/rust-lang/crates.io-index"
1729+checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b"
1730+dependencies = [
1731+ "proc-macro2",
1732+ "quote",
1733+ "syn 2.0.119",
1734+]
1735+
1736+[[package]]
1737+name = "pin-project-lite"
1738+version = "0.2.17"
1739+source = "registry+https://github.com/rust-lang/crates.io-index"
1740+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
1741+
1742+[[package]]
1743+name = "pkcs1"
1744+version = "0.7.5"
1745+source = "registry+https://github.com/rust-lang/crates.io-index"
1746+checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f"
1747+dependencies = [
1748+ "der",
1749+ "pkcs8",
1750+ "spki",
1751+]
1752+
1753+[[package]]
1754+name = "pkcs8"
1755+version = "0.10.2"
1756+source = "registry+https://github.com/rust-lang/crates.io-index"
1757+checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
1758+dependencies = [
1759+ "der",
1760+ "spki",
1761+]
1762+
1763+[[package]]
1764+name = "pkg-config"
1765+version = "0.3.33"
1766+source = "registry+https://github.com/rust-lang/crates.io-index"
1767+checksum = "19f132c84eca552bf34cab8ec81f1c1dcc229b811638f9d283dceabe58c5569e"
1768+
1769+[[package]]
1770+name = "polyval"
1771+version = "0.6.2"
1772+source = "registry+https://github.com/rust-lang/crates.io-index"
1773+checksum = "9d1fe60d06143b2430aa532c94cfe9e29783047f06c0d7fd359a9a51b729fa25"
1774+dependencies = [
1775+ "cfg-if",
1776+ "cpufeatures 0.2.17",
1777+ "opaque-debug",
1778+ "universal-hash",
1779+]
1780+
1781+[[package]]
1782+name = "potential_utf"
1783+version = "0.1.5"
1784+source = "registry+https://github.com/rust-lang/crates.io-index"
1785+checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
1786+dependencies = [
1787+ "serde_core",
1788+ "writeable",
1789+ "zerovec",
1790+]
1791+
1792+[[package]]
1793+name = "ppv-lite86"
1794+version = "0.2.21"
1795+source = "registry+https://github.com/rust-lang/crates.io-index"
1796+checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
1797+dependencies = [
1798+ "zerocopy",
1799+]
1800+
1801+[[package]]
1802+name = "prettyplease"
1803+version = "0.2.37"
1804+source = "registry+https://github.com/rust-lang/crates.io-index"
1805+checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
1806+dependencies = [
1807+ "proc-macro2",
1808+ "syn 2.0.119",
1809+]
1810+
1811+[[package]]
1812+name = "primeorder"
1813+version = "0.13.6"
1814+source = "registry+https://github.com/rust-lang/crates.io-index"
1815+checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6"
1816+dependencies = [
1817+ "elliptic-curve",
1818+]
1819+
1820+[[package]]
1821+name = "proc-macro2"
1822+version = "1.0.107"
1823+source = "registry+https://github.com/rust-lang/crates.io-index"
1824+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
1825+dependencies = [
1826+ "unicode-ident",
1827+]
1828+
1829+[[package]]
1830+name = "proptest"
1831+version = "1.11.0"
1832+source = "registry+https://github.com/rust-lang/crates.io-index"
1833+checksum = "4b45fcc2344c680f5025fe57779faef368840d0bd1f42f216291f0dc4ace4744"
1834+dependencies = [
1835+ "bit-set",
1836+ "bit-vec",
1837+ "bitflags",
1838+ "num-traits",
1839+ "rand 0.9.5",
1840+ "rand_chacha 0.9.0",
1841+ "rand_xorshift",
1842+ "regex-syntax",
1843+ "rusty-fork",
1844+ "tempfile",
1845+ "unarray",
1846+]
1847+
1848+[[package]]
1849+name = "quick-error"
1850+version = "1.2.3"
1851+source = "registry+https://github.com/rust-lang/crates.io-index"
1852+checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
1853+
1854+[[package]]
1855+name = "quick-xml"
1856+version = "0.37.5"
1857+source = "registry+https://github.com/rust-lang/crates.io-index"
1858+checksum = "331e97a1af0bf59823e6eadffe373d7b27f485be8748f71471c662c1f269b7fb"
1859+dependencies = [
1860+ "memchr",
1861+ "serde",
1862+]
1863+
1864+[[package]]
1865+name = "quinn"
1866+version = "0.11.11"
1867+source = "registry+https://github.com/rust-lang/crates.io-index"
1868+checksum = "0c1a41e437b6bbd489372cd4971de128e85c855f56c57f283d20ff016cf7c0a8"
1869+dependencies = [
1870+ "bytes",
1871+ "cfg_aliases",
1872+ "pin-project-lite",
1873+ "quinn-proto",
1874+ "quinn-udp",
1875+ "rustc-hash",
1876+ "rustls",
1877+ "socket2",
1878+ "thiserror 2.0.19",
1879+ "tokio",
1880+ "tracing",
1881+ "web-time",
1882+]
1883+
1884+[[package]]
1885+name = "quinn-proto"
1886+version = "0.11.16"
1887+source = "registry+https://github.com/rust-lang/crates.io-index"
1888+checksum = "2f4bfc015262b9df63c8845072ce59068853ff5872180c2ce2f13038b970e560"
1889+dependencies = [
1890+ "bytes",
1891+ "getrandom 0.4.3",
1892+ "lru-slab",
1893+ "rand 0.10.2",
1894+ "rand_pcg",
1895+ "ring",
1896+ "rustc-hash",
1897+ "rustls",
1898+ "rustls-pki-types",
1899+ "slab",
1900+ "thiserror 2.0.19",
1901+ "tinyvec",
1902+ "tracing",
1903+ "web-time",
1904+]
1905+
1906+[[package]]
1907+name = "quinn-udp"
1908+version = "0.5.15"
1909+source = "registry+https://github.com/rust-lang/crates.io-index"
1910+checksum = "35a133f956daabe89a61a685c2649f13d82d5aa4bd5d12d1277e1072a21c0694"
1911+dependencies = [
1912+ "cfg_aliases",
1913+ "libc",
1914+ "once_cell",
1915+ "socket2",
1916+ "tracing",
1917+ "windows-sys 0.61.2",
1918+]
1919+
1920+[[package]]
1921+name = "quote"
1922+version = "1.0.47"
1923+source = "registry+https://github.com/rust-lang/crates.io-index"
1924+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
1925+dependencies = [
1926+ "proc-macro2",
1927+]
1928+
1929+[[package]]
1930+name = "r-efi"
1931+version = "5.3.0"
1932+source = "registry+https://github.com/rust-lang/crates.io-index"
1933+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
1934+
1935+[[package]]
1936+name = "r-efi"
1937+version = "6.0.0"
1938+source = "registry+https://github.com/rust-lang/crates.io-index"
1939+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
1940+
1941+[[package]]
1942+name = "rand"
1943+version = "0.8.7"
1944+source = "registry+https://github.com/rust-lang/crates.io-index"
1945+checksum = "22f6172bdec972074665ed81ed53b71da00bfc44b65a753cfde883ec4c702a1a"
1946+dependencies = [
1947+ "libc",
1948+ "rand_chacha 0.3.1",
1949+ "rand_core 0.6.4",
1950+]
1951+
1952+[[package]]
1953+name = "rand"
1954+version = "0.9.5"
1955+source = "registry+https://github.com/rust-lang/crates.io-index"
1956+checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
1957+dependencies = [
1958+ "rand_chacha 0.9.0",
1959+ "rand_core 0.9.5",
1960+]
1961+
1962+[[package]]
1963+name = "rand"
1964+version = "0.10.2"
1965+source = "registry+https://github.com/rust-lang/crates.io-index"
1966+checksum = "c7f5fa3a058cd35567ef9bfa5e75732bee0f9e4c55fa90477bef2dfcdbc4be80"
1967+dependencies = [
1968+ "chacha20",
1969+ "getrandom 0.4.3",
1970+ "rand_core 0.10.1",
1971+]
1972+
1973+[[package]]
1974+name = "rand_chacha"
1975+version = "0.3.1"
1976+source = "registry+https://github.com/rust-lang/crates.io-index"
1977+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
1978+dependencies = [
1979+ "ppv-lite86",
1980+ "rand_core 0.6.4",
1981+]
1982+
1983+[[package]]
1984+name = "rand_chacha"
1985+version = "0.9.0"
1986+source = "registry+https://github.com/rust-lang/crates.io-index"
1987+checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
1988+dependencies = [
1989+ "ppv-lite86",
1990+ "rand_core 0.9.5",
1991+]
1992+
1993+[[package]]
1994+name = "rand_core"
1995+version = "0.6.4"
1996+source = "registry+https://github.com/rust-lang/crates.io-index"
1997+checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
1998+dependencies = [
1999+ "getrandom 0.2.17",
2000+]
2001+
2002+[[package]]
2003+name = "rand_core"
2004+version = "0.9.5"
2005+source = "registry+https://github.com/rust-lang/crates.io-index"
2006+checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
2007+dependencies = [
2008+ "getrandom 0.3.4",
2009+]
2010+
2011+[[package]]
2012+name = "rand_core"
2013+version = "0.10.1"
2014+source = "registry+https://github.com/rust-lang/crates.io-index"
2015+checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
2016+
2017+[[package]]
2018+name = "rand_pcg"
2019+version = "0.10.2"
2020+source = "registry+https://github.com/rust-lang/crates.io-index"
2021+checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"
2022+dependencies = [
2023+ "rand_core 0.10.1",
2024+]
2025+
2026+[[package]]
2027+name = "rand_xorshift"
2028+version = "0.4.0"
2029+source = "registry+https://github.com/rust-lang/crates.io-index"
2030+checksum = "513962919efc330f829edb2535844d1b912b0fbe2ca165d613e4e8788bb05a5a"
2031+dependencies = [
2032+ "rand_core 0.9.5",
2033+]
2034+
2035+[[package]]
2036+name = "redox_syscall"
2037+version = "0.5.18"
2038+source = "registry+https://github.com/rust-lang/crates.io-index"
2039+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
2040+dependencies = [
2041+ "bitflags",
2042+]
2043+
2044+[[package]]
2045+name = "regex"
2046+version = "1.13.1"
2047+source = "registry+https://github.com/rust-lang/crates.io-index"
2048+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
2049+dependencies = [
2050+ "aho-corasick",
2051+ "memchr",
2052+ "regex-automata",
2053+ "regex-syntax",
2054+]
2055+
2056+[[package]]
2057+name = "regex-automata"
2058+version = "0.4.16"
2059+source = "registry+https://github.com/rust-lang/crates.io-index"
2060+checksum = "8fcfdb36bda0c880c5931cdc7a2bcdc8ba4556847b9d912bca70bc94708711ad"
2061+dependencies = [
2062+ "aho-corasick",
2063+ "memchr",
2064+ "regex-syntax",
2065+]
2066+
2067+[[package]]
2068+name = "regex-syntax"
2069+version = "0.8.11"
2070+source = "registry+https://github.com/rust-lang/crates.io-index"
2071+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
2072+
2073+[[package]]
2074+name = "reqwest"
2075+version = "0.12.28"
2076+source = "registry+https://github.com/rust-lang/crates.io-index"
2077+checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"
2078+dependencies = [
2079+ "base64 0.22.1",
2080+ "bytes",
2081+ "futures-core",
2082+ "futures-util",
2083+ "h2",
2084+ "http",
2085+ "http-body",
2086+ "http-body-util",
2087+ "hyper",
2088+ "hyper-rustls",
2089+ "hyper-util",
2090+ "js-sys",
2091+ "log",
2092+ "percent-encoding",
2093+ "pin-project-lite",
2094+ "quinn",
2095+ "rustls",
2096+ "rustls-native-certs",
2097+ "rustls-pki-types",
2098+ "serde",
2099+ "serde_json",
2100+ "serde_urlencoded",
2101+ "sync_wrapper",
2102+ "tokio",
2103+ "tokio-rustls",
2104+ "tokio-util",
2105+ "tower",
2106+ "tower-http",
2107+ "tower-service",
2108+ "url",
2109+ "wasm-bindgen",
2110+ "wasm-bindgen-futures",
2111+ "wasm-streams",
2112+ "web-sys",
2113+ "webpki-roots",
2114+]
2115+
2116+[[package]]
2117+name = "resb"
2118+version = "0.1.2"
2119+source = "registry+https://github.com/rust-lang/crates.io-index"
2120+checksum = "22d392791f3c6802a1905a509e9d1a6039cbbcb5e9e00e5a6d3661f7c874f390"
2121+dependencies = [
2122+ "potential_utf",
2123+ "serde_core",
2124+]
2125+
2126+[[package]]
2127+name = "rfc6979"
2128+version = "0.4.0"
2129+source = "registry+https://github.com/rust-lang/crates.io-index"
2130+checksum = "f8dd2a808d456c4a54e300a23e9f5a67e122c3024119acbfd73e3bf664491cb2"
2131+dependencies = [
2132+ "hmac",
2133+ "subtle",
2134+]
2135+
2136+[[package]]
2137+name = "ring"
2138+version = "0.17.14"
2139+source = "registry+https://github.com/rust-lang/crates.io-index"
2140+checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
2141+dependencies = [
2142+ "cc",
2143+ "cfg-if",
2144+ "getrandom 0.2.17",
2145+ "libc",
2146+ "untrusted",
2147+ "windows-sys 0.52.0",
2148+]
2149+
2150+[[package]]
2151+name = "rsa"
2152+version = "0.9.10"
2153+source = "registry+https://github.com/rust-lang/crates.io-index"
2154+checksum = "b8573f03f5883dcaebdfcf4725caa1ecb9c15b2ef50c43a07b816e06799bb12d"
2155+dependencies = [
2156+ "const-oid",
2157+ "digest",
2158+ "num-bigint-dig",
2159+ "num-integer",
2160+ "num-traits",
2161+ "pkcs1",
2162+ "pkcs8",
2163+ "rand_core 0.6.4",
2164+ "sha2",
2165+ "signature",
2166+ "spki",
2167+ "subtle",
2168+ "zeroize",
2169+]
2170+
2171+[[package]]
2172+name = "rusqlite"
2173+version = "0.31.0"
2174+source = "registry+https://github.com/rust-lang/crates.io-index"
2175+checksum = "b838eba278d213a8beaf485bd313fd580ca4505a00d5871caeb1457c55322cae"
2176+dependencies = [
2177+ "bitflags",
2178+ "fallible-iterator",
2179+ "fallible-streaming-iterator",
2180+ "hashlink",
2181+ "libsqlite3-sys",
2182+ "smallvec",
2183+]
2184+
2185+[[package]]
2186+name = "rustc-hash"
2187+version = "2.1.3"
2188+source = "registry+https://github.com/rust-lang/crates.io-index"
2189+checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
2190+
2191+[[package]]
2192+name = "rustc_version"
2193+version = "0.4.1"
2194+source = "registry+https://github.com/rust-lang/crates.io-index"
2195+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
2196+dependencies = [
2197+ "semver",
2198+]
2199+
2200+[[package]]
2201+name = "rustix"
2202+version = "0.38.44"
2203+source = "registry+https://github.com/rust-lang/crates.io-index"
2204+checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
2205+dependencies = [
2206+ "bitflags",
2207+ "errno",
2208+ "libc",
2209+ "linux-raw-sys 0.4.15",
2210+ "windows-sys 0.52.0",
2211+]
2212+
2213+[[package]]
2214+name = "rustix"
2215+version = "1.1.4"
2216+source = "registry+https://github.com/rust-lang/crates.io-index"
2217+checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
2218+dependencies = [
2219+ "bitflags",
2220+ "errno",
2221+ "libc",
2222+ "linux-raw-sys 0.12.1",
2223+ "windows-sys 0.61.2",
2224+]
2225+
2226+[[package]]
2227+name = "rustls"
2228+version = "0.23.43"
2229+source = "registry+https://github.com/rust-lang/crates.io-index"
2230+checksum = "0283386ce02abc0151e1761d08802dfe86c173b0b494af5cbc086574e453da06"
2231+dependencies = [
2232+ "once_cell",
2233+ "ring",
2234+ "rustls-pki-types",
2235+ "rustls-webpki",
2236+ "subtle",
2237+ "zeroize",
2238+]
2239+
2240+[[package]]
2241+name = "rustls-native-certs"
2242+version = "0.8.4"
2243+source = "registry+https://github.com/rust-lang/crates.io-index"
2244+checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d"
2245+dependencies = [
2246+ "openssl-probe",
2247+ "rustls-pki-types",
2248+ "schannel",
2249+ "security-framework",
2250+]
2251+
2252+[[package]]
2253+name = "rustls-pemfile"
2254+version = "2.2.0"
2255+source = "registry+https://github.com/rust-lang/crates.io-index"
2256+checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"
2257+dependencies = [
2258+ "rustls-pki-types",
2259+]
2260+
2261+[[package]]
2262+name = "rustls-pki-types"
2263+version = "1.15.1"
2264+source = "registry+https://github.com/rust-lang/crates.io-index"
2265+checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
2266+dependencies = [
2267+ "web-time",
2268+ "zeroize",
2269+]
2270+
2271+[[package]]
2272+name = "rustls-webpki"
2273+version = "0.103.13"
2274+source = "registry+https://github.com/rust-lang/crates.io-index"
2275+checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
2276+dependencies = [
2277+ "ring",
2278+ "rustls-pki-types",
2279+ "untrusted",
2280+]
2281+
2282+[[package]]
2283+name = "rustversion"
2284+version = "1.0.23"
2285+source = "registry+https://github.com/rust-lang/crates.io-index"
2286+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
2287+
2288+[[package]]
2289+name = "rusty-fork"
2290+version = "0.3.1"
2291+source = "registry+https://github.com/rust-lang/crates.io-index"
2292+checksum = "cc6bf79ff24e648f6da1f8d1f011e9cac26491b619e6b9280f2b47f1774e6ee2"
2293+dependencies = [
2294+ "fnv",
2295+ "quick-error",
2296+ "tempfile",
2297+ "wait-timeout",
2298+]
2299+
2300+[[package]]
2301+name = "ryu"
2302+version = "1.0.23"
2303+source = "registry+https://github.com/rust-lang/crates.io-index"
2304+checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
2305+
2306+[[package]]
2307+name = "same-file"
2308+version = "1.0.6"
2309+source = "registry+https://github.com/rust-lang/crates.io-index"
2310+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
2311+dependencies = [
2312+ "winapi-util",
2313+]
2314+
2315+[[package]]
2316+name = "schannel"
2317+version = "0.1.29"
2318+source = "registry+https://github.com/rust-lang/crates.io-index"
2319+checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
2320+dependencies = [
2321+ "windows-sys 0.61.2",
2322+]
2323+
2324+[[package]]
2325+name = "scopeguard"
2326+version = "1.2.0"
2327+source = "registry+https://github.com/rust-lang/crates.io-index"
2328+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
2329+
2330+[[package]]
2331+name = "sec1"
2332+version = "0.7.3"
2333+source = "registry+https://github.com/rust-lang/crates.io-index"
2334+checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc"
2335+dependencies = [
2336+ "base16ct",
2337+ "der",
2338+ "generic-array",
2339+ "pkcs8",
2340+ "subtle",
2341+ "zeroize",
2342+]
2343+
2344+[[package]]
2345+name = "security-framework"
2346+version = "3.7.0"
2347+source = "registry+https://github.com/rust-lang/crates.io-index"
2348+checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
2349+dependencies = [
2350+ "bitflags",
2351+ "core-foundation",
2352+ "core-foundation-sys",
2353+ "libc",
2354+ "security-framework-sys",
2355+]
2356+
2357+[[package]]
2358+name = "security-framework-sys"
2359+version = "2.17.0"
2360+source = "registry+https://github.com/rust-lang/crates.io-index"
2361+checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
2362+dependencies = [
2363+ "core-foundation-sys",
2364+ "libc",
2365+]
2366+
2367+[[package]]
2368+name = "semver"
2369+version = "1.0.28"
2370+source = "registry+https://github.com/rust-lang/crates.io-index"
2371+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
2372+
2373+[[package]]
2374+name = "serde"
2375+version = "1.0.229"
2376+source = "registry+https://github.com/rust-lang/crates.io-index"
2377+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
2378+dependencies = [
2379+ "serde_core",
2380+ "serde_derive",
2381+]
2382+
2383+[[package]]
2384+name = "serde_core"
2385+version = "1.0.229"
2386+source = "registry+https://github.com/rust-lang/crates.io-index"
2387+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
2388+dependencies = [
2389+ "serde_derive",
2390+]
2391+
2392+[[package]]
2393+name = "serde_derive"
2394+version = "1.0.229"
2395+source = "registry+https://github.com/rust-lang/crates.io-index"
2396+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
2397+dependencies = [
2398+ "proc-macro2",
2399+ "quote",
2400+ "syn 3.0.3",
2401+]
2402+
2403+[[package]]
2404+name = "serde_json"
2405+version = "1.0.151"
2406+source = "registry+https://github.com/rust-lang/crates.io-index"
2407+checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
2408+dependencies = [
2409+ "itoa",
2410+ "memchr",
2411+ "serde",
2412+ "serde_core",
2413+ "zmij",
2414+]
2415+
2416+[[package]]
2417+name = "serde_path_to_error"
2418+version = "0.1.20"
2419+source = "registry+https://github.com/rust-lang/crates.io-index"
2420+checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457"
2421+dependencies = [
2422+ "itoa",
2423+ "serde",
2424+ "serde_core",
2425+]
2426+
2427+[[package]]
2428+name = "serde_urlencoded"
2429+version = "0.7.1"
2430+source = "registry+https://github.com/rust-lang/crates.io-index"
2431+checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
2432+dependencies = [
2433+ "form_urlencoded",
2434+ "itoa",
2435+ "ryu",
2436+ "serde",
2437+]
2438+
2439+[[package]]
2440+name = "sha1"
2441+version = "0.10.7"
2442+source = "registry+https://github.com/rust-lang/crates.io-index"
2443+checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8"
2444+dependencies = [
2445+ "cfg-if",
2446+ "cpufeatures 0.2.17",
2447+ "digest",
2448+]
2449+
2450+[[package]]
2451+name = "sha2"
2452+version = "0.10.9"
2453+source = "registry+https://github.com/rust-lang/crates.io-index"
2454+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
2455+dependencies = [
2456+ "cfg-if",
2457+ "cpufeatures 0.2.17",
2458+ "digest",
2459+]
2460+
2461+[[package]]
2462+name = "sharded-slab"
2463+version = "0.1.7"
2464+source = "registry+https://github.com/rust-lang/crates.io-index"
2465+checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
2466+dependencies = [
2467+ "lazy_static",
2468+]
2469+
2470+[[package]]
2471+name = "shlex"
2472+version = "1.3.0"
2473+source = "registry+https://github.com/rust-lang/crates.io-index"
2474+checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
2475+
2476+[[package]]
2477+name = "shlex"
2478+version = "2.0.1"
2479+source = "registry+https://github.com/rust-lang/crates.io-index"
2480+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
2481+
2482+[[package]]
2483+name = "signal-hook-registry"
2484+version = "1.4.8"
2485+source = "registry+https://github.com/rust-lang/crates.io-index"
2486+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
2487+dependencies = [
2488+ "errno",
2489+ "libc",
2490+]
2491+
2492+[[package]]
2493+name = "signature"
2494+version = "2.2.0"
2495+source = "registry+https://github.com/rust-lang/crates.io-index"
2496+checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
2497+dependencies = [
2498+ "digest",
2499+ "rand_core 0.6.4",
2500+]
2501+
2502+[[package]]
2503+name = "simd-adler32"
2504+version = "0.3.10"
2505+source = "registry+https://github.com/rust-lang/crates.io-index"
2506+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
2507+
2508+[[package]]
2509+name = "slab"
2510+version = "0.4.12"
2511+source = "registry+https://github.com/rust-lang/crates.io-index"
2512+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
2513+
2514+[[package]]
2515+name = "smallvec"
2516+version = "1.15.2"
2517+source = "registry+https://github.com/rust-lang/crates.io-index"
2518+checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
2519+
2520+[[package]]
2521+name = "snafu"
2522+version = "0.8.9"
2523+source = "registry+https://github.com/rust-lang/crates.io-index"
2524+checksum = "6e84b3f4eacbf3a1ce05eac6763b4d629d60cbc94d632e4092c54ade71f1e1a2"
2525+dependencies = [
2526+ "snafu-derive",
2527+]
2528+
2529+[[package]]
2530+name = "snafu-derive"
2531+version = "0.8.9"
2532+source = "registry+https://github.com/rust-lang/crates.io-index"
2533+checksum = "c1c97747dbf44bb1ca44a561ece23508e99cb592e862f22222dcf42f51d1e451"
2534+dependencies = [
2535+ "heck",
2536+ "proc-macro2",
2537+ "quote",
2538+ "syn 2.0.119",
2539+]
2540+
2541+[[package]]
2542+name = "socket2"
2543+version = "0.6.5"
2544+source = "registry+https://github.com/rust-lang/crates.io-index"
2545+checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
2546+dependencies = [
2547+ "libc",
2548+ "windows-sys 0.61.2",
2549+]
2550+
2551+[[package]]
2552+name = "spin"
2553+version = "0.9.9"
2554+source = "registry+https://github.com/rust-lang/crates.io-index"
2555+checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e"
2556+
2557+[[package]]
2558+name = "spki"
2559+version = "0.7.3"
2560+source = "registry+https://github.com/rust-lang/crates.io-index"
2561+checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
2562+dependencies = [
2563+ "base64ct",
2564+ "der",
2565+]
2566+
2567+[[package]]
2568+name = "stable_deref_trait"
2569+version = "1.2.1"
2570+source = "registry+https://github.com/rust-lang/crates.io-index"
2571+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
2572+
2573+[[package]]
2574+name = "strck"
2575+version = "1.0.0"
2576+source = "registry+https://github.com/rust-lang/crates.io-index"
2577+checksum = "42316e70da376f3d113a68d138a60d8a9883c604fe97942721ec2068dab13a9f"
2578+dependencies = [
2579+ "unicode-ident",
2580+]
2581+
2582+[[package]]
2583+name = "subtle"
2584+version = "2.6.1"
2585+source = "registry+https://github.com/rust-lang/crates.io-index"
2586+checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
2587+
2588+[[package]]
2589+name = "syn"
2590+version = "2.0.119"
2591+source = "registry+https://github.com/rust-lang/crates.io-index"
2592+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
2593+dependencies = [
2594+ "proc-macro2",
2595+ "quote",
2596+ "unicode-ident",
2597+]
2598+
2599+[[package]]
2600+name = "syn"
2601+version = "3.0.3"
2602+source = "registry+https://github.com/rust-lang/crates.io-index"
2603+checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
2604+dependencies = [
2605+ "proc-macro2",
2606+ "quote",
2607+ "unicode-ident",
2608+]
2609+
2610+[[package]]
2611+name = "sync_wrapper"
2612+version = "1.0.2"
2613+source = "registry+https://github.com/rust-lang/crates.io-index"
2614+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
2615+dependencies = [
2616+ "futures-core",
2617+]
2618+
2619+[[package]]
2620+name = "synstructure"
2621+version = "0.13.2"
2622+source = "registry+https://github.com/rust-lang/crates.io-index"
2623+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
2624+dependencies = [
2625+ "proc-macro2",
2626+ "quote",
2627+ "syn 2.0.119",
2628+]
2629+
2630+[[package]]
2631+name = "tempfile"
2632+version = "3.27.0"
2633+source = "registry+https://github.com/rust-lang/crates.io-index"
2634+checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
2635+dependencies = [
2636+ "fastrand",
2637+ "getrandom 0.4.3",
2638+ "once_cell",
2639+ "rustix 1.1.4",
2640+ "windows-sys 0.61.2",
2641+]
2642+
2643+[[package]]
2644+name = "temporal_capi"
2645+version = "0.2.4"
2646+source = "registry+https://github.com/rust-lang/crates.io-index"
2647+checksum = "c534c1ac4165fb410b5ccd12c79040573622865e881bb8caad70981806a141f1"
2648+dependencies = [
2649+ "diplomat",
2650+ "diplomat-runtime",
2651+ "icu_calendar",
2652+ "icu_locale_core",
2653+ "num-traits",
2654+ "temporal_rs",
2655+ "timezone_provider",
2656+ "writeable",
2657+ "zoneinfo64",
2658+]
2659+
2660+[[package]]
2661+name = "temporal_rs"
2662+version = "0.2.4"
2663+source = "registry+https://github.com/rust-lang/crates.io-index"
2664+checksum = "b1afc06e45b0d63943c777d0233523fa2e23a12431a73c37b1c0366777b31717"
2665+dependencies = [
2666+ "calendrical_calculations",
2667+ "core_maths",
2668+ "icu_calendar",
2669+ "icu_locale_core",
2670+ "ixdtf",
2671+ "num-traits",
2672+ "timezone_provider",
2673+ "tinystr",
2674+ "writeable",
2675+]
2676+
2677+[[package]]
2678+name = "thiserror"
2679+version = "1.0.69"
2680+source = "registry+https://github.com/rust-lang/crates.io-index"
2681+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
2682+dependencies = [
2683+ "thiserror-impl 1.0.69",
2684+]
2685+
2686+[[package]]
2687+name = "thiserror"
2688+version = "2.0.19"
2689+source = "registry+https://github.com/rust-lang/crates.io-index"
2690+checksum = "09a43598840e33d5b0331f38c5e30d13bb11c11210a4b58f0d9b18a5a5eefcd9"
2691+dependencies = [
2692+ "thiserror-impl 2.0.19",
2693+]
2694+
2695+[[package]]
2696+name = "thiserror-impl"
2697+version = "1.0.69"
2698+source = "registry+https://github.com/rust-lang/crates.io-index"
2699+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
2700+dependencies = [
2701+ "proc-macro2",
2702+ "quote",
2703+ "syn 2.0.119",
2704+]
2705+
2706+[[package]]
2707+name = "thiserror-impl"
2708+version = "2.0.19"
2709+source = "registry+https://github.com/rust-lang/crates.io-index"
2710+checksum = "43cbfe0cf76104d42a574802844187e84a305e531ed54455f11fbde0f10541cd"
2711+dependencies = [
2712+ "proc-macro2",
2713+ "quote",
2714+ "syn 3.0.3",
2715+]
2716+
2717+[[package]]
2718+name = "thread_local"
2719+version = "1.1.10"
2720+source = "registry+https://github.com/rust-lang/crates.io-index"
2721+checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070"
2722+dependencies = [
2723+ "cfg-if",
2724+]
2725+
2726+[[package]]
2727+name = "timezone_provider"
2728+version = "0.2.4"
2729+source = "registry+https://github.com/rust-lang/crates.io-index"
2730+checksum = "48738555f588bc05b58cb55206843cde9875bb1fde50101dd1a7c50ac6535cd5"
2731+dependencies = [
2732+ "tinystr",
2733+ "zerotrie",
2734+ "zerovec",
2735+ "zoneinfo64",
2736+]
2737+
2738+[[package]]
2739+name = "tinystr"
2740+version = "0.8.3"
2741+source = "registry+https://github.com/rust-lang/crates.io-index"
2742+checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
2743+dependencies = [
2744+ "displaydoc",
2745+ "serde_core",
2746+ "zerovec",
2747+]
2748+
2749+[[package]]
2750+name = "tinyvec"
2751+version = "1.12.0"
2752+source = "registry+https://github.com/rust-lang/crates.io-index"
2753+checksum = "bb4ebadaa0af04fab11ae01eb5f9fdb5f9c5b875506e210e71c07873528baa7f"
2754+dependencies = [
2755+ "tinyvec_macros",
2756+]
2757+
2758+[[package]]
2759+name = "tinyvec_macros"
2760+version = "0.1.1"
2761+source = "registry+https://github.com/rust-lang/crates.io-index"
2762+checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
2763+
2764+[[package]]
2765+name = "tokio"
2766+version = "1.53.1"
2767+source = "registry+https://github.com/rust-lang/crates.io-index"
2768+checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed"
2769+dependencies = [
2770+ "bytes",
2771+ "libc",
2772+ "mio",
2773+ "parking_lot",
2774+ "pin-project-lite",
2775+ "signal-hook-registry",
2776+ "socket2",
2777+ "tokio-macros",
2778+ "windows-sys 0.61.2",
2779+]
2780+
2781+[[package]]
2782+name = "tokio-macros"
2783+version = "2.7.2"
2784+source = "registry+https://github.com/rust-lang/crates.io-index"
2785+checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e"
2786+dependencies = [
2787+ "proc-macro2",
2788+ "quote",
2789+ "syn 3.0.3",
2790+]
2791+
2792+[[package]]
2793+name = "tokio-rustls"
2794+version = "0.26.4"
2795+source = "registry+https://github.com/rust-lang/crates.io-index"
2796+checksum = "1729aa945f29d91ba541258c8df89027d5792d85a8841fb65e8bf0f4ede4ef61"
2797+dependencies = [
2798+ "rustls",
2799+ "tokio",
2800+]
2801+
2802+[[package]]
2803+name = "tokio-stream"
2804+version = "0.1.19"
2805+source = "registry+https://github.com/rust-lang/crates.io-index"
2806+checksum = "a3d06f0b082ba57c26b79407372e57cf2a1e28124f78e9479fe80322cf53420b"
2807+dependencies = [
2808+ "futures-core",
2809+ "pin-project-lite",
2810+ "tokio",
2811+]
2812+
2813+[[package]]
2814+name = "tokio-util"
2815+version = "0.7.19"
2816+source = "registry+https://github.com/rust-lang/crates.io-index"
2817+checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52"
2818+dependencies = [
2819+ "bytes",
2820+ "futures-core",
2821+ "futures-sink",
2822+ "libc",
2823+ "pin-project-lite",
2824+ "slab",
2825+ "tokio",
2826+]
2827+
2828+[[package]]
2829+name = "tower"
2830+version = "0.5.3"
2831+source = "registry+https://github.com/rust-lang/crates.io-index"
2832+checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
2833+dependencies = [
2834+ "futures-core",
2835+ "futures-util",
2836+ "pin-project-lite",
2837+ "sync_wrapper",
2838+ "tokio",
2839+ "tower-layer",
2840+ "tower-service",
2841+ "tracing",
2842+]
2843+
2844+[[package]]
2845+name = "tower-http"
2846+version = "0.6.11"
2847+source = "registry+https://github.com/rust-lang/crates.io-index"
2848+checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
2849+dependencies = [
2850+ "bitflags",
2851+ "bytes",
2852+ "futures-util",
2853+ "http",
2854+ "http-body",
2855+ "pin-project-lite",
2856+ "tower",
2857+ "tower-layer",
2858+ "tower-service",
2859+ "url",
2860+]
2861+
2862+[[package]]
2863+name = "tower-layer"
2864+version = "0.3.3"
2865+source = "registry+https://github.com/rust-lang/crates.io-index"
2866+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
2867+
2868+[[package]]
2869+name = "tower-service"
2870+version = "0.3.3"
2871+source = "registry+https://github.com/rust-lang/crates.io-index"
2872+checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
2873+
2874+[[package]]
2875+name = "tracing"
2876+version = "0.1.44"
2877+source = "registry+https://github.com/rust-lang/crates.io-index"
2878+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
2879+dependencies = [
2880+ "log",
2881+ "pin-project-lite",
2882+ "tracing-attributes",
2883+ "tracing-core",
2884+]
2885+
2886+[[package]]
2887+name = "tracing-attributes"
2888+version = "0.1.31"
2889+source = "registry+https://github.com/rust-lang/crates.io-index"
2890+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
2891+dependencies = [
2892+ "proc-macro2",
2893+ "quote",
2894+ "syn 2.0.119",
2895+]
2896+
2897+[[package]]
2898+name = "tracing-core"
2899+version = "0.1.36"
2900+source = "registry+https://github.com/rust-lang/crates.io-index"
2901+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
2902+dependencies = [
2903+ "once_cell",
2904+ "valuable",
2905+]
2906+
2907+[[package]]
2908+name = "tracing-log"
2909+version = "0.2.0"
2910+source = "registry+https://github.com/rust-lang/crates.io-index"
2911+checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
2912+dependencies = [
2913+ "log",
2914+ "once_cell",
2915+ "tracing-core",
2916+]
2917+
2918+[[package]]
2919+name = "tracing-subscriber"
2920+version = "0.3.23"
2921+source = "registry+https://github.com/rust-lang/crates.io-index"
2922+checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
2923+dependencies = [
2924+ "matchers",
2925+ "nu-ansi-term",
2926+ "once_cell",
2927+ "regex-automata",
2928+ "sharded-slab",
2929+ "smallvec",
2930+ "thread_local",
2931+ "tracing",
2932+ "tracing-core",
2933+ "tracing-log",
2934+]
2935+
2936+[[package]]
2937+name = "try-lock"
2938+version = "0.2.5"
2939+source = "registry+https://github.com/rust-lang/crates.io-index"
2940+checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
2941+
2942+[[package]]
2943+name = "twox-hash"
2944+version = "2.1.3"
2945+source = "registry+https://github.com/rust-lang/crates.io-index"
2946+checksum = "8464ec13c3691491391d9fce00f6416c9a48e46972f72d7865688be2080192c9"
2947+
2948+[[package]]
2949+name = "typenum"
2950+version = "1.20.1"
2951+source = "registry+https://github.com/rust-lang/crates.io-index"
2952+checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
2953+
2954+[[package]]
2955+name = "unarray"
2956+version = "0.1.4"
2957+source = "registry+https://github.com/rust-lang/crates.io-index"
2958+checksum = "eaea85b334db583fe3274d12b4cd1880032beab409c0d774be044d4480ab9a94"
2959+
2960+[[package]]
2961+name = "unicode-ident"
2962+version = "1.0.24"
2963+source = "registry+https://github.com/rust-lang/crates.io-index"
2964+checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
2965+
2966+[[package]]
2967+name = "universal-hash"
2968+version = "0.5.1"
2969+source = "registry+https://github.com/rust-lang/crates.io-index"
2970+checksum = "fc1de2c688dc15305988b563c3854064043356019f97a4b46276fe734c4f07ea"
2971+dependencies = [
2972+ "crypto-common",
2973+ "subtle",
2974+]
2975+
2976+[[package]]
2977+name = "untrusted"
2978+version = "0.9.0"
2979+source = "registry+https://github.com/rust-lang/crates.io-index"
2980+checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
2981+
2982+[[package]]
2983+name = "url"
2984+version = "2.5.8"
2985+source = "registry+https://github.com/rust-lang/crates.io-index"
2986+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
2987+dependencies = [
2988+ "form_urlencoded",
2989+ "idna",
2990+ "percent-encoding",
2991+ "serde",
2992+]
2993+
2994+[[package]]
2995+name = "urlpattern"
2996+version = "0.4.2"
2997+source = "registry+https://github.com/rust-lang/crates.io-index"
2998+checksum = "0f805818f843b548bacc19609eb3619dd2850e54746f5cada37927393c2ef4ec"
2999+dependencies = [
3000+ "icu_properties",
3001+ "regex",
3002+ "serde",
3003+ "url",
3004+]
3005+
3006+[[package]]
3007+name = "utf-8"
3008+version = "0.7.6"
3009+source = "registry+https://github.com/rust-lang/crates.io-index"
3010+checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
3011+
3012+[[package]]
3013+name = "utf8_iter"
3014+version = "1.0.4"
3015+source = "registry+https://github.com/rust-lang/crates.io-index"
3016+checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
3017+
3018+[[package]]
3019+name = "v8"
3020+version = "152.0.0"
3021+source = "registry+https://github.com/rust-lang/crates.io-index"
3022+checksum = "91c89be3a18777511705994775d413eb7595c1efcf51ded4b19bbbf6aec7a66c"
3023+dependencies = [
3024+ "bindgen",
3025+ "bitflags",
3026+ "fslock",
3027+ "gzip-header",
3028+ "home",
3029+ "miniz_oxide",
3030+ "paste",
3031+ "temporal_capi",
3032+ "which",
3033+]
3034+
3035+[[package]]
3036+name = "valuable"
3037+version = "0.1.1"
3038+source = "registry+https://github.com/rust-lang/crates.io-index"
3039+checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
3040+
3041+[[package]]
3042+name = "vcpkg"
3043+version = "0.2.15"
3044+source = "registry+https://github.com/rust-lang/crates.io-index"
3045+checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
3046+
3047+[[package]]
3048+name = "version_check"
3049+version = "0.9.5"
3050+source = "registry+https://github.com/rust-lang/crates.io-index"
3051+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
3052+
3053+[[package]]
3054+name = "wait-timeout"
3055+version = "0.2.1"
3056+source = "registry+https://github.com/rust-lang/crates.io-index"
3057+checksum = "09ac3b126d3914f9849036f826e054cbabdc8519970b8998ddaf3b5bd3c65f11"
3058+dependencies = [
3059+ "libc",
3060+]
3061+
3062+[[package]]
3063+name = "walkdir"
3064+version = "2.5.0"
3065+source = "registry+https://github.com/rust-lang/crates.io-index"
3066+checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
3067+dependencies = [
3068+ "same-file",
3069+ "winapi-util",
3070+]
3071+
3072+[[package]]
3073+name = "want"
3074+version = "0.3.1"
3075+source = "registry+https://github.com/rust-lang/crates.io-index"
3076+checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
3077+dependencies = [
3078+ "try-lock",
3079+]
3080+
3081+[[package]]
3082+name = "wasi"
3083+version = "0.11.1+wasi-snapshot-preview1"
3084+source = "registry+https://github.com/rust-lang/crates.io-index"
3085+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
3086+
3087+[[package]]
3088+name = "wasip2"
3089+version = "1.0.4+wasi-0.2.12"
3090+source = "registry+https://github.com/rust-lang/crates.io-index"
3091+checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
3092+dependencies = [
3093+ "wit-bindgen",
3094+]
3095+
3096+[[package]]
3097+name = "wasm-bindgen"
3098+version = "0.2.126"
3099+source = "registry+https://github.com/rust-lang/crates.io-index"
3100+checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4"
3101+dependencies = [
3102+ "cfg-if",
3103+ "once_cell",
3104+ "rustversion",
3105+ "wasm-bindgen-macro",
3106+ "wasm-bindgen-shared",
3107+]
3108+
3109+[[package]]
3110+name = "wasm-bindgen-futures"
3111+version = "0.4.76"
3112+source = "registry+https://github.com/rust-lang/crates.io-index"
3113+checksum = "c62df1340f32221cb9c54d6a27b030e3dba64361d4a95bed55f9aacb44da291d"
3114+dependencies = [
3115+ "js-sys",
3116+ "wasm-bindgen",
3117+]
3118+
3119+[[package]]
3120+name = "wasm-bindgen-macro"
3121+version = "0.2.126"
3122+source = "registry+https://github.com/rust-lang/crates.io-index"
3123+checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1"
3124+dependencies = [
3125+ "quote",
3126+ "wasm-bindgen-macro-support",
3127+]
3128+
3129+[[package]]
3130+name = "wasm-bindgen-macro-support"
3131+version = "0.2.126"
3132+source = "registry+https://github.com/rust-lang/crates.io-index"
3133+checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e"
3134+dependencies = [
3135+ "bumpalo",
3136+ "proc-macro2",
3137+ "quote",
3138+ "syn 2.0.119",
3139+ "wasm-bindgen-shared",
3140+]
3141+
3142+[[package]]
3143+name = "wasm-bindgen-shared"
3144+version = "0.2.126"
3145+source = "registry+https://github.com/rust-lang/crates.io-index"
3146+checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24"
3147+dependencies = [
3148+ "unicode-ident",
3149+]
3150+
3151+[[package]]
3152+name = "wasm-streams"
3153+version = "0.4.2"
3154+source = "registry+https://github.com/rust-lang/crates.io-index"
3155+checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65"
3156+dependencies = [
3157+ "futures-util",
3158+ "js-sys",
3159+ "wasm-bindgen",
3160+ "wasm-bindgen-futures",
3161+ "web-sys",
3162+]
3163+
3164+[[package]]
3165+name = "web-sys"
3166+version = "0.3.103"
3167+source = "registry+https://github.com/rust-lang/crates.io-index"
3168+checksum = "8622dcb61c0bcc9fffa6938bed81210af2da9a7e4a1a834b2e37a59b6dfb6141"
3169+dependencies = [
3170+ "js-sys",
3171+ "wasm-bindgen",
3172+]
3173+
3174+[[package]]
3175+name = "web-time"
3176+version = "1.1.0"
3177+source = "registry+https://github.com/rust-lang/crates.io-index"
3178+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
3179+dependencies = [
3180+ "js-sys",
3181+ "wasm-bindgen",
3182+]
3183+
3184+[[package]]
3185+name = "webpki-roots"
3186+version = "1.0.9"
3187+source = "registry+https://github.com/rust-lang/crates.io-index"
3188+checksum = "7dcd9d09a39985f5344844e66b0c530a33843579125f23e21e9f0f220850f22a"
3189+dependencies = [
3190+ "rustls-pki-types",
3191+]
3192+
3193+[[package]]
3194+name = "which"
3195+version = "6.0.3"
3196+source = "registry+https://github.com/rust-lang/crates.io-index"
3197+checksum = "b4ee928febd44d98f2f459a4a79bd4d928591333a494a10a868418ac1b39cf1f"
3198+dependencies = [
3199+ "either",
3200+ "home",
3201+ "rustix 0.38.44",
3202+ "winsafe",
3203+]
3204+
3205+[[package]]
3206+name = "winapi"
3207+version = "0.3.9"
3208+source = "registry+https://github.com/rust-lang/crates.io-index"
3209+checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
3210+dependencies = [
3211+ "winapi-i686-pc-windows-gnu",
3212+ "winapi-x86_64-pc-windows-gnu",
3213+]
3214+
3215+[[package]]
3216+name = "winapi-i686-pc-windows-gnu"
3217+version = "0.4.0"
3218+source = "registry+https://github.com/rust-lang/crates.io-index"
3219+checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
3220+
3221+[[package]]
3222+name = "winapi-util"
3223+version = "0.1.11"
3224+source = "registry+https://github.com/rust-lang/crates.io-index"
3225+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
3226+dependencies = [
3227+ "windows-sys 0.61.2",
3228+]
3229+
3230+[[package]]
3231+name = "winapi-x86_64-pc-windows-gnu"
3232+version = "0.4.0"
3233+source = "registry+https://github.com/rust-lang/crates.io-index"
3234+checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
3235+
3236+[[package]]
3237+name = "windows-core"
3238+version = "0.62.2"
3239+source = "registry+https://github.com/rust-lang/crates.io-index"
3240+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
3241+dependencies = [
3242+ "windows-implement",
3243+ "windows-interface",
3244+ "windows-link",
3245+ "windows-result",
3246+ "windows-strings",
3247+]
3248+
3249+[[package]]
3250+name = "windows-implement"
3251+version = "0.60.2"
3252+source = "registry+https://github.com/rust-lang/crates.io-index"
3253+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
3254+dependencies = [
3255+ "proc-macro2",
3256+ "quote",
3257+ "syn 2.0.119",
3258+]
3259+
3260+[[package]]
3261+name = "windows-interface"
3262+version = "0.59.3"
3263+source = "registry+https://github.com/rust-lang/crates.io-index"
3264+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
3265+dependencies = [
3266+ "proc-macro2",
3267+ "quote",
3268+ "syn 2.0.119",
3269+]
3270+
3271+[[package]]
3272+name = "windows-link"
3273+version = "0.2.1"
3274+source = "registry+https://github.com/rust-lang/crates.io-index"
3275+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
3276+
3277+[[package]]
3278+name = "windows-result"
3279+version = "0.4.1"
3280+source = "registry+https://github.com/rust-lang/crates.io-index"
3281+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
3282+dependencies = [
3283+ "windows-link",
3284+]
3285+
3286+[[package]]
3287+name = "windows-strings"
3288+version = "0.5.1"
3289+source = "registry+https://github.com/rust-lang/crates.io-index"
3290+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
3291+dependencies = [
3292+ "windows-link",
3293+]
3294+
3295+[[package]]
3296+name = "windows-sys"
3297+version = "0.52.0"
3298+source = "registry+https://github.com/rust-lang/crates.io-index"
3299+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
3300+dependencies = [
3301+ "windows-targets",
3302+]
3303+
3304+[[package]]
3305+name = "windows-sys"
3306+version = "0.61.2"
3307+source = "registry+https://github.com/rust-lang/crates.io-index"
3308+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
3309+dependencies = [
3310+ "windows-link",
3311+]
3312+
3313+[[package]]
3314+name = "windows-targets"
3315+version = "0.52.6"
3316+source = "registry+https://github.com/rust-lang/crates.io-index"
3317+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
3318+dependencies = [
3319+ "windows_aarch64_gnullvm",
3320+ "windows_aarch64_msvc",
3321+ "windows_i686_gnu",
3322+ "windows_i686_gnullvm",
3323+ "windows_i686_msvc",
3324+ "windows_x86_64_gnu",
3325+ "windows_x86_64_gnullvm",
3326+ "windows_x86_64_msvc",
3327+]
3328+
3329+[[package]]
3330+name = "windows_aarch64_gnullvm"
3331+version = "0.52.6"
3332+source = "registry+https://github.com/rust-lang/crates.io-index"
3333+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
3334+
3335+[[package]]
3336+name = "windows_aarch64_msvc"
3337+version = "0.52.6"
3338+source = "registry+https://github.com/rust-lang/crates.io-index"
3339+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
3340+
3341+[[package]]
3342+name = "windows_i686_gnu"
3343+version = "0.52.6"
3344+source = "registry+https://github.com/rust-lang/crates.io-index"
3345+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
3346+
3347+[[package]]
3348+name = "windows_i686_gnullvm"
3349+version = "0.52.6"
3350+source = "registry+https://github.com/rust-lang/crates.io-index"
3351+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
3352+
3353+[[package]]
3354+name = "windows_i686_msvc"
3355+version = "0.52.6"
3356+source = "registry+https://github.com/rust-lang/crates.io-index"
3357+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
3358+
3359+[[package]]
3360+name = "windows_x86_64_gnu"
3361+version = "0.52.6"
3362+source = "registry+https://github.com/rust-lang/crates.io-index"
3363+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
3364+
3365+[[package]]
3366+name = "windows_x86_64_gnullvm"
3367+version = "0.52.6"
3368+source = "registry+https://github.com/rust-lang/crates.io-index"
3369+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
3370+
3371+[[package]]
3372+name = "windows_x86_64_msvc"
3373+version = "0.52.6"
3374+source = "registry+https://github.com/rust-lang/crates.io-index"
3375+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
3376+
3377+[[package]]
3378+name = "winsafe"
3379+version = "0.0.19"
3380+source = "registry+https://github.com/rust-lang/crates.io-index"
3381+checksum = "d135d17ab770252ad95e9a872d365cf3090e3be864a34ab46f48555993efc904"
3382+
3383+[[package]]
3384+name = "wit-bindgen"
3385+version = "0.57.1"
3386+source = "registry+https://github.com/rust-lang/crates.io-index"
3387+checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
3388+
3389+[[package]]
3390+name = "writeable"
3391+version = "0.6.3"
3392+source = "registry+https://github.com/rust-lang/crates.io-index"
3393+checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
43873394
43883395 [[package]]
43893396 name = "yoke"
modifiedCargo.toml+71−0View file
@@ -3,3 +3,74 @@
33 [workspace]
44 resolver = "2"
55 members = ["crates/*"]
6+
7+# Size-tuned: fat LTO prunes unused dependency code, panic=abort drops
8+# unwind tables. opt-level "s" (not "z") — measure RPS before trading further.
9+[profile.release]
10+lto = "fat"
11+codegen-units = 1
12+opt-level = "s"
13+panic = "abort"
14+strip = true
15+
16+# The lab fast loop: release optimization minus the fat-LTO relink that
17+# dominates rebuild time, plus incremental compilation. Shipped artifacts
18+# stay on `release`.
19+[profile.lab]
20+inherits = "release"
21+lto = "thin"
22+codegen-units = 16
23+incremental = true
24+
25+# Every direct dependency lives here so the crates can never drift onto two
26+# versions of the same crate; members add their own features.
27+[workspace.dependencies]
28+aes-gcm = "0.10"
29+anyhow = "1"
30+async-trait = "0.1"
31+axum = { version = "0.7", features = ["multipart"] }
32+base64 = "0.22"
33+bytes = "1"
34+celld-logic = { path = "crates/logic" }
35+celld-ltx = { path = "crates/ltx" }
36+ed25519-dalek = { version = "2", features = ["pkcs8"] }
37+encoding_rs = "0.8"
38+fastwebsockets = { version = "0.8", default-features = false, features = ["upgrade", "with_axum"] }
39+flate2 = "1"
40+fs2 = "0.4"
41+futures-util = "0.3"
42+getrandom = "0.3"
43+hex = "0.4"
44+hmac = "0.12"
45+http-body-util = "0.1"
46+hyper = { version = "1", features = ["client", "server", "http1"] }
47+hyper-util = { version = "0.1", features = ["tokio"] }
48+libc = "0.2"
49+lz4_flex = { version = "0.11", features = ["frame"] }
50+md-5 = "0.10"
51+object_store = { version = "0.11", default-features = false }
52+p256 = { version = "0.13", features = ["ecdsa", "pkcs8"] }
53+percent-encoding = "2"
54+proptest = "1"
55+rand = "0.8"
56+regex = "1"
57+reqwest = { version = "0.12", default-features = false }
58+rsa = { version = "0.9", features = ["sha2"] }
59+rusqlite = "0.31"
60+rustls = { version = "0.23", default-features = false, features = ["ring"] }
61+serde = { version = "1", features = ["derive"] }
62+serde_json = "1"
63+sha1 = "0.10"
64+sha2 = "0.10"
65+tempfile = "3"
66+thiserror = "2"
67+tokio = "1"
68+tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] }
69+tokio-stream = "0.1"
70+tokio-util = { version = "0.7", features = ["io", "time"] }
71+tracing = "0.1"
72+tracing-subscriber = { version = "0.3", features = ["env-filter"] }
73+url = "2"
74+urlpattern = "=0.4.2"
75+v8 = "152"
76+webpki-roots = "1"
modifiedDockerfile+5−36View file
@@ -1,11 +1,13 @@
11 # syntax=docker/dockerfile:1.7
22
33 ARG RUST_VERSION=1.97.1
4-ARG GO_VERSION=1.25.12
54 ARG CELLD_COMMIT=unknown
65
76 FROM rust:${RUST_VERSION}-bookworm AS build
87 ARG TARGETARCH
8+# `release` for shipped artifacts; a fast-loop caller passes `lab` to skip
9+# the fat-LTO relink and keep incremental state in the target cache.
10+ARG CELLD_PROFILE=release
911 WORKDIR /src
1012 COPY Cargo.toml Cargo.lock ./
1113 COPY crates ./crates
@@ -13,8 +15,8 @@
1315 --mount=type=cache,id=celld-cargo-git,target=/usr/local/cargo/git,sharing=locked \
1416 --mount=type=cache,id=celld-target-${TARGETARCH},target=/src/target,sharing=locked \
1517 mkdir -p /out && \
16- cargo build --release --locked -p celld && \
17- install -m 755 target/release/celld /out/celld
18+ cargo build --profile "${CELLD_PROFILE}" --locked -p celld && \
19+ install -m 755 "target/${CELLD_PROFILE}/celld" /out/celld
1820
1921 # The release workflow builds this stage on every candidate push, so a
2022 # break in the engine's own tests or lints stops a release before any
@@ -28,37 +30,6 @@
2830 cargo test --release --locked && \
2931 cargo clippy --release --all-targets --locked -- -D warnings
3032
31-FROM golang:${GO_VERSION}-bookworm AS litestream-build
32-RUN apt-get update && \
33- apt-get install -y --no-install-recommends ca-certificates git && \
34- rm -rf /var/lib/apt/lists/*
35-WORKDIR /src
36-COPY crates/celld/Cargo.toml /tmp/celld-Cargo.toml
37-RUN --mount=type=cache,id=celld-litestream-source,target=/var/cache/litestream,sharing=locked \
38- LITESTREAM_SHA=$(sed -n \
39- 's/^litestream-commit = "\(.*\)"$/\1/p' /tmp/celld-Cargo.toml) && \
40- test -n "${LITESTREAM_SHA}" && \
41- if ! test -d /var/cache/litestream/.git; then \
42- git -C /var/cache/litestream init && \
43- git -C /var/cache/litestream remote add origin \
44- https://github.com/benbjohnson/litestream.git; \
45- fi && \
46- if ! git -C /var/cache/litestream cat-file -e "${LITESTREAM_SHA}^{commit}"; then \
47- git -C /var/cache/litestream fetch --depth=1 origin "${LITESTREAM_SHA}"; \
48- fi && \
49- git -C /var/cache/litestream archive "${LITESTREAM_SHA}" | tar -xf - -C /src
50-RUN --mount=type=cache,id=celld-litestream-go-build,target=/root/.cache/go-build,sharing=locked \
51- --mount=type=cache,id=celld-litestream-go-mod,target=/go/pkg/mod,sharing=locked \
52- LITESTREAM_VERSION=$(sed -n \
53- 's/^litestream-version = "\(.*\)"$/\1/p' /tmp/celld-Cargo.toml) && \
54- test -n "${LITESTREAM_VERSION}" && \
55- mkdir -p /out && \
56- go build -trimpath \
57- -ldflags "-X main.Version=${LITESTREAM_VERSION}" \
58- -o /out/litestream \
59- ./cmd/litestream && \
60- test "$(/out/litestream version)" = "${LITESTREAM_VERSION}"
61-
6233 FROM debian:bookworm-slim
6334 RUN apt-get update && \
6435 apt-get install -y --no-install-recommends ca-certificates && \
@@ -69,6 +40,4 @@
6940 org.opencontainers.image.revision="${CELLD_COMMIT}" \
7041 org.opencontainers.image.version="${CELLD_VERSION}"
7142 COPY --from=build /out/celld /usr/local/bin/celld
72-COPY --from=litestream-build /out/litestream /usr/local/bin/litestream
73-ENV LITESTREAM_BIN=/usr/local/bin/litestream
7443 ENTRYPOINT ["/usr/local/bin/celld"]
modifiedLICENSE+198−17View file
@@ -1,21 +1,202 @@
1-MIT License
21
3-Copyright (c) 2026 Deno Land Inc.
2+ Apache License
3+ Version 2.0, January 2004
4+ http://www.apache.org/licenses/
45
5-Permission is hereby granted, free of charge, to any person obtaining a copy
6-of this software and associated documentation files (the "Software"), to
7-deal in the Software without restriction, including without limitation the
8-rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9-sell copies of the Software, and to permit persons to whom the Software is
10-furnished to do so, subject to the following conditions:
6+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
117
12-The above copyright notice and this permission notice shall be included in
13-all copies or substantial portions of the Software.
8+ 1. Definitions.
149
15-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20-FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21-DEALINGS IN THE SOFTWARE.
10+ "License" shall mean the terms and conditions for use, reproduction,
11+ and distribution as defined by Sections 1 through 9 of this document.
12+
13+ "Licensor" shall mean the copyright owner or entity authorized by
14+ the copyright owner that is granting the License.
15+
16+ "Legal Entity" shall mean the union of the acting entity and all
17+ other entities that control, are controlled by, or are under common
18+ control with that entity. For the purposes of this definition,
19+ "control" means (i) the power, direct or indirect, to cause the
20+ direction or management of such entity, whether by contract or
21+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22+ outstanding shares, or (iii) beneficial ownership of such entity.
23+
24+ "You" (or "Your") shall mean an individual or Legal Entity
25+ exercising permissions granted by this License.
26+
27+ "Source" form shall mean the preferred form for making modifications,
28+ including but not limited to software source code, documentation
29+ source, and configuration files.
30+
31+ "Object" form shall mean any form resulting from mechanical
32+ transformation or translation of a Source form, including but
33+ not limited to compiled object code, generated documentation,
34+ and conversions to other media types.
35+
36+ "Work" shall mean the work of authorship, whether in Source or
37+ Object form, made available under the License, as indicated by a
38+ copyright notice that is included in or attached to the work
39+ (an example is provided in the Appendix below).
40+
41+ "Derivative Works" shall mean any work, whether in Source or Object
42+ form, that is based on (or derived from) the Work and for which the
43+ editorial revisions, annotations, elaborations, or other modifications
44+ represent, as a whole, an original work of authorship. For the purposes
45+ of this License, Derivative Works shall not include works that remain
46+ separable from, or merely link (or bind by name) to the interfaces of,
47+ the Work and Derivative Works thereof.
48+
49+ "Contribution" shall mean any work of authorship, including
50+ the original version of the Work and any modifications or additions
51+ to that Work or Derivative Works thereof, that is intentionally
52+ submitted to Licensor for inclusion in the Work by the copyright owner
53+ or by an individual or Legal Entity authorized to submit on behalf of
54+ the copyright owner. For the purposes of this definition, "submitted"
55+ means any form of electronic, verbal, or written communication sent
56+ to the Licensor or its representatives, including but not limited to
57+ communication on electronic mailing lists, source code control systems,
58+ and issue tracking systems that are managed by, or on behalf of, the
59+ Licensor for the purpose of discussing and improving the Work, but
60+ excluding communication that is conspicuously marked or otherwise
61+ designated in writing by the copyright owner as "Not a Contribution."
62+
63+ "Contributor" shall mean Licensor and any individual or Legal Entity
64+ on behalf of whom a Contribution has been received by Licensor and
65+ subsequently incorporated within the Work.
66+
67+ 2. Grant of Copyright License. Subject to the terms and conditions of
68+ this License, each Contributor hereby grants to You a perpetual,
69+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70+ copyright license to reproduce, prepare Derivative Works of,
71+ publicly display, publicly perform, sublicense, and distribute the
72+ Work and such Derivative Works in Source or Object form.
73+
74+ 3. Grant of Patent License. Subject to the terms and conditions of
75+ this License, each Contributor hereby grants to You a perpetual,
76+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77+ (except as stated in this section) patent license to make, have made,
78+ use, offer to sell, sell, import, and otherwise transfer the Work,
79+ where such license applies only to those patent claims licensable
80+ by such Contributor that are necessarily infringed by their
81+ Contribution(s) alone or by combination of their Contribution(s)
82+ with the Work to which such Contribution(s) was submitted. If You
83+ institute patent litigation against any entity (including a
84+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85+ or a Contribution incorporated within the Work constitutes direct
86+ or contributory patent infringement, then any patent licenses
87+ granted to You under this License for that Work shall terminate
88+ as of the date such litigation is filed.
89+
90+ 4. Redistribution. You may reproduce and distribute copies of the
91+ Work or Derivative Works thereof in any medium, with or without
92+ modifications, and in Source or Object form, provided that You
93+ meet the following conditions:
94+
95+ (a) You must give any other recipients of the Work or
96+ Derivative Works a copy of this License; and
97+
98+ (b) You must cause any modified files to carry prominent notices
99+ stating that You changed the files; and
100+
101+ (c) You must retain, in the Source form of any Derivative Works
102+ that You distribute, all copyright, patent, trademark, and
103+ attribution notices from the Source form of the Work,
104+ excluding those notices that do not pertain to any part of
105+ the Derivative Works; and
106+
107+ (d) If the Work includes a "NOTICE" text file as part of its
108+ distribution, then any Derivative Works that You distribute must
109+ include a readable copy of the attribution notices contained
110+ within such NOTICE file, excluding those notices that do not
111+ pertain to any part of the Derivative Works, in at least one
112+ of the following places: within a NOTICE text file distributed
113+ as part of the Derivative Works; within the Source form or
114+ documentation, if provided along with the Derivative Works; or,
115+ within a display generated by the Derivative Works, if and
116+ wherever such third-party notices normally appear. The contents
117+ of the NOTICE file are for informational purposes only and
118+ do not modify the License. You may add Your own attribution
119+ notices within Derivative Works that You distribute, alongside
120+ or as an addendum to the NOTICE text from the Work, provided
121+ that such additional attribution notices cannot be construed
122+ as modifying the License.
123+
124+ You may add Your own copyright statement to Your modifications and
125+ may provide additional or different license terms and conditions
126+ for use, reproduction, or distribution of Your modifications, or
127+ for any such Derivative Works as a whole, provided Your use,
128+ reproduction, and distribution of the Work otherwise complies with
129+ the conditions stated in this License.
130+
131+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132+ any Contribution intentionally submitted for inclusion in the Work
133+ by You to the Licensor shall be under the terms and conditions of
134+ this License, without any additional terms or conditions.
135+ Notwithstanding the above, nothing herein shall supersede or modify
136+ the terms of any separate license agreement you may have executed
137+ with Licensor regarding such Contributions.
138+
139+ 6. Trademarks. This License does not grant permission to use the trade
140+ names, trademarks, service marks, or product names of the Licensor,
141+ except as required for reasonable and customary use in describing the
142+ origin of the Work and reproducing the content of the NOTICE file.
143+
144+ 7. Disclaimer of Warranty. Unless required by applicable law or
145+ agreed to in writing, Licensor provides the Work (and each
146+ Contributor provides its Contributions) on an "AS IS" BASIS,
147+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148+ implied, including, without limitation, any warranties or conditions
149+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150+ PARTICULAR PURPOSE. You are solely responsible for determining the
151+ appropriateness of using or redistributing the Work and assume any
152+ risks associated with Your exercise of permissions under this License.
153+
154+ 8. Limitation of Liability. In no event and under no legal theory,
155+ whether in tort (including negligence), contract, or otherwise,
156+ unless required by applicable law (such as deliberate and grossly
157+ negligent acts) or agreed to in writing, shall any Contributor be
158+ liable to You for damages, including any direct, indirect, special,
159+ incidental, or consequential damages of any character arising as a
160+ result of this License or out of the use or inability to use the
161+ Work (including but not limited to damages for loss of goodwill,
162+ work stoppage, computer failure or malfunction, or any and all
163+ other commercial damages or losses), even if such Contributor
164+ has been advised of the possibility of such damages.
165+
166+ 9. Accepting Warranty or Additional Liability. While redistributing
167+ the Work or Derivative Works thereof, You may choose to offer,
168+ and charge a fee for, acceptance of support, warranty, indemnity,
169+ or other liability obligations and/or rights consistent with this
170+ License. However, in accepting such obligations, You may act only
171+ on Your own behalf and on Your sole responsibility, not on behalf
172+ of any other Contributor, and only if You agree to indemnify,
173+ defend, and hold each Contributor harmless for any liability
174+ incurred by, or claims asserted against, such Contributor by reason
175+ of your accepting any such warranty or additional liability.
176+
177+ END OF TERMS AND CONDITIONS
178+
179+ APPENDIX: How to apply the Apache License to your work.
180+
181+ To apply the Apache License to your work, attach the following
182+ boilerplate notice, with the fields enclosed by brackets "[]"
183+ replaced with your own identifying information. (Don't include
184+ the brackets!) The text should be enclosed in the appropriate
185+ comment syntax for the file format. We also recommend that a
186+ file or class name and description of purpose be included on the
187+ same "printed page" as the copyright notice for easier
188+ identification within third-party archives.
189+
190+ Copyright [yyyy] [name of copyright owner]
191+
192+ Licensed under the Apache License, Version 2.0 (the "License");
193+ you may not use this file except in compliance with the License.
194+ You may obtain a copy of the License at
195+
196+ http://www.apache.org/licenses/LICENSE-2.0
197+
198+ Unless required by applicable law or agreed to in writing, software
199+ distributed under the License is distributed on an "AS IS" BASIS,
200+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201+ See the License for the specific language governing permissions and
202+ limitations under the License.
modifiedREADME.md+10−16View file
@@ -20,7 +20,7 @@
2020 cell at a time, without a membership protocol, failure detector, or consensus
2121 service.
2222
23-Litestream continuously replicates each cell's SQLite database to the bucket.
23+celld continuously replicates each cell's SQLite database to the bucket.
2424 When a cell moves or wakes up, its new owner restores that database and resumes
2525 execution. The bucket is the durable source of truth; nodes are replaceable.
2626
@@ -35,11 +35,8 @@
3535
3636 Put `~/.local/bin` on your `PATH` if the installer asks you to.
3737
38-celld follows the Unix convention of using ordinary external tools from
39-`PATH`: running a node needs [Litestream](https://litestream.io) (or set
40-`LITESTREAM_BIN`), and Worker projects deployed with `celld deploy` need
41-[esbuild](https://esbuild.github.io). Asset-only projects do not. The daemon
42-verifies Litestream at startup and exits immediately if it is missing.
38+Worker projects deployed with `celld deploy` need
39+[esbuild](https://esbuild.github.io) on `PATH`; asset-only projects do not.
4340
4441 The installer keeps verified releases under `~/.local/lib/celld/releases` and
4542 atomically switches one `current` pointer. To remove celld, use the guarded
@@ -51,16 +48,13 @@
5148
5249 ## Container
5350
54-The release image includes `celld`, the pinned Litestream binary, and esbuild
55-for `celld deploy`. It is published for Linux x86-64 and ARM64:
51+The release image contains the `celld` binary and is published for Linux
52+x86-64 and ARM64:
5653
5754 ```sh
58-docker pull ghcr.io/denoland/celld:latest
59-docker run --rm ghcr.io/denoland/celld:latest --version
55+docker run --rm ghcr.io/denoland/celld --version
6056 ```
6157
62-`latest` and the Cargo version are convenient mutable tags. Use
63-`sha-<40-character-public-commit>` when the exact image must be immutable.
6458 Persist the runtime's local state and pass the standard AWS credential
6559 environment through:
6660
@@ -72,7 +66,7 @@
7266 -e AWS_SESSION_TOKEN \
7367 -e CELLD_WATCH=/var/lib/celld/state \
7468 -v celld-state:/var/lib/celld \
75- ghcr.io/denoland/celld:latest \
69+ ghcr.io/denoland/celld \
7670 --bucket s3://my-cells-bucket \
7771 --endpoint https://ACCOUNT.r2.cloudflarestorage.com \
7872 --region auto \
@@ -186,7 +180,7 @@
186180
187181 ## License
188182
189-[MIT](LICENSE)
183+[Apache-2.0](LICENSE)
190184
191-See the [support matrix](docs/support.md), [limitations](docs/limitations.md),
192-and [security](docs/security.md) before operating a public fleet.
185+See the [limitations](docs/limitations.md) and
186+[security](docs/security.md) pages before operating a public fleet.
modifiedcrates/celld/Cargo.toml+45−51View file
@@ -1,13 +1,10 @@
11 [package]
22 name = "celld"
3-version = "0.0.2"
3+version = "0.1.0"
44 edition = "2021"
55 rust-version = "1.94.1"
6-license = "MIT"
6+license = "Apache-2.0"
77
8-[package.metadata.release]
9-litestream-version = "v0.5.15"
10-litestream-commit = "5a2624418478f358cf85ed7d4606eb55029194ec"
118
129 [lib]
1310 path = "lib.rs"
@@ -21,51 +18,48 @@
2118 check-cfg = ["cfg(celld_internal_tests)", "cfg(celld_proxy_internals)"]
2219
2320 [dependencies]
24-aes-gcm = "0.10"
25-anyhow = "1"
26-aws-config = { version = "1", features = ["behavior-version-latest"] }
27-aws-credential-types = "1"
28-aws-sdk-s3 = "1"
29-aws-smithy-http-client = "1"
30-axum = { version = "0.7", features = ["multipart"] }
31-base64 = "0.22"
32-celld-logic = { path = "../logic" }
33-celld-ltx = { path = "../ltx", features = ["s3"] }
34-deno_core_icudata = "0.77"
35-encoding_rs = "0.8"
36-ed25519-dalek = { version = "2", features = ["pkcs8"] }
37-fastwebsockets = { version = "0.8", default-features = false, features = ["upgrade", "with_axum"] }
38-filetime = "0.2"
39-flate2 = "1"
40-fs2 = "0.4"
41-futures-util = "0.3"
42-getrandom = "0.3"
43-hmac = "0.12"
44-http-body-util = "0.1"
45-hyper = { version = "1", features = ["server", "http1"] }
46-hyper-util = { version = "0.1", features = ["tokio"] }
47-md-5 = "0.10"
48-percent-encoding = "2"
49-p256 = { version = "0.13", features = ["ecdsa", "pkcs8"] }
50-rand = "0.8"
51-regex = "1"
52-reqwest = { version = "0.12", default-features = false, features = ["rustls-tls", "stream", "json"] }
53-rusqlite = { version = "0.31", features = ["backup", "bundled", "hooks"] }
54-rustls = { version = "0.23", default-features = false, features = ["aws_lc_rs"] }
55-rsa = { version = "0.9", features = ["sha2"] }
56-serde = { version = "1", features = ["derive"] }
57-serde_json = "1"
58-sha1 = "0.10"
59-sha2 = "0.10"
60-tokio = { version = "1", features = ["full"] }
61-tokio-stream = "0.1"
62-tokio-tungstenite = { version = "0.28", features = ["rustls-tls-webpki-roots"] }
63-tokio-util = { version = "0.7", features = ["io", "time"] }
64-tracing = "0.1"
65-tracing-subscriber = { version = "0.3", features = ["env-filter"] }
66-url = "2"
67-urlpattern = "=0.4.2"
68-v8 = "152"
21+aes-gcm.workspace = true
22+anyhow.workspace = true
23+axum.workspace = true
24+base64.workspace = true
25+bytes.workspace = true
26+celld-logic.workspace = true
27+celld-ltx = { workspace = true, features = ["s3"] }
28+encoding_rs.workspace = true
29+ed25519-dalek.workspace = true
30+fastwebsockets.workspace = true
31+flate2.workspace = true
32+fs2.workspace = true
33+futures-util.workspace = true
34+getrandom.workspace = true
35+hmac.workspace = true
36+http-body-util.workspace = true
37+hyper.workspace = true
38+hyper-util.workspace = true
39+md-5.workspace = true
40+object_store = { workspace = true, features = ["aws"] }
41+percent-encoding.workspace = true
42+p256.workspace = true
43+rand.workspace = true
44+regex.workspace = true
45+reqwest = { workspace = true, features = ["rustls-tls", "stream", "json"] }
46+rusqlite = { workspace = true, features = ["backup", "bundled", "hooks"] }
47+rustls.workspace = true
48+rsa.workspace = true
49+serde.workspace = true
50+serde_json.workspace = true
51+sha1.workspace = true
52+sha2.workspace = true
53+tokio = { workspace = true, features = ["full"] }
54+tokio-rustls.workspace = true
55+tokio-stream.workspace = true
56+tokio-util.workspace = true
57+tracing.workspace = true
58+tracing-subscriber.workspace = true
59+url.workspace = true
60+urlpattern.workspace = true
61+v8.workspace = true
62+webpki-roots.workspace = true
6963
7064 [target.'cfg(unix)'.dependencies]
71-libc = "0.2"
65+libc.workspace = true
modifiedcrates/celld/assets.rs+27−48View file
@@ -1,7 +1,9 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
3+use crate::bucket::Bucket;
14 use crate::js;
25 use crate::protocol::{asset_blob_key, AssetEntry, AssetIndex, AssetManifestRef, RunWorkerFirst};
36 use anyhow::{anyhow, Context};
4-use aws_sdk_s3::Client;
57 use axum::body::Body;
68 use axum::http::{HeaderMap, HeaderValue, StatusCode};
79 use axum::response::Response;
@@ -24,8 +26,7 @@
2426 }
2527
2628 struct AssetResolverInner {
27- client: Client,
28- bucket: String,
29+ bucket: Bucket,
2930 index: AssetIndex,
3031 asset_only: bool,
3132 cache_root: PathBuf,
@@ -79,8 +80,7 @@
7980
8081 impl AssetResolver {
8182 pub async fn load(
82- client: &Client,
83- bucket: &str,
83+ bucket: &Bucket,
8484 prefix: &str,
8585 reference: &AssetManifestRef,
8686 asset_only: bool,
@@ -89,19 +89,10 @@
8989 return Err(anyhow!("unsupported asset index name: {}", reference.index));
9090 }
9191 let key = format!("{prefix}/{}", reference.index);
92- let object = client
93- .get_object()
94- .bucket(bucket)
95- .key(&key)
96- .send()
97- .await
98- .with_context(|| format!("read s3://{bucket}/{key}"))?;
99- let bytes = object
100- .body
101- .collect()
102- .await
103- .context("read asset index body")?
104- .into_bytes();
92+ let (bytes, _) = bucket
93+ .get(&key)
94+ .await?
95+ .with_context(|| format!("read s3://{}/{key}: no such key", bucket.name))?;
10596 let sha256 = format!("{:x}", Sha256::digest(&bytes));
10697 if sha256 != reference.sha256 {
10798 return Err(anyhow!("asset index checksum mismatch"));
@@ -121,8 +112,7 @@
121112 .unwrap_or(DEFAULT_ASSET_CACHE_BYTES);
122113 Ok(Self {
123114 inner: Arc::new(AssetResolverInner {
124- client: client.clone(),
125- bucket: bucket.to_string(),
115+ bucket: bucket.clone(),
126116 index,
127117 asset_only,
128118 cache_root,
@@ -496,21 +486,19 @@
496486 let temporary = parent.join(format!(".{}.{}.tmp", std::process::id(), random.next_u64()));
497487 let key = asset_blob_key(&entry.sha256)
498488 .ok_or_else(|| anyhow!("invalid asset digest for {resolved_path}"))?;
499- let object = self
489+ let (body, _) = self
500490 .inner
501- .client
502- .get_object()
503- .bucket(&self.inner.bucket)
504- .key(&key)
505- .send()
491+ .bucket
492+ .get(&key)
506493 .await
494+ .with_context(|| format!("read asset {resolved_path}"))?
507495 .with_context(|| {
508496 format!(
509- "read asset {resolved_path} from s3://{}/{key}",
510- self.inner.bucket
497+ "asset {resolved_path} missing from s3://{}/{key}",
498+ self.inner.bucket.name
511499 )
512500 })?;
513- if object.content_length().unwrap_or(-1) != entry.bytes as i64 {
501+ if body.len() as u64 != entry.bytes {
514502 return Err(anyhow!("asset {resolved_path} has the wrong bucket size"));
515503 }
516504 let mut file = tokio::fs::OpenOptions::new()
@@ -519,33 +507,20 @@
519507 .open(&temporary)
520508 .await
521509 .with_context(|| format!("create asset cache file {}", temporary.display()))?;
522- let mut body = object.body;
523- let mut hasher = Sha256::new();
524- let mut bytes = 0_u64;
525- let download = async {
526- while let Some(chunk) = body.next().await {
527- let chunk = chunk.with_context(|| format!("read asset body {resolved_path}"))?;
528- bytes = bytes
529- .checked_add(chunk.len() as u64)
530- .context("asset body size overflow")?;
531- if bytes > entry.bytes {
532- return Err(anyhow!("asset {resolved_path} exceeds its declared size"));
533- }
534- hasher.update(&chunk);
535- file.write_all(&chunk).await?;
536- }
510+ let write = async {
511+ file.write_all(&body).await?;
537512 file.sync_all().await?;
538513 anyhow::Ok(())
539514 }
540515 .await;
541- if let Err(error) = download {
516+ if let Err(error) = write {
542517 drop(file);
543518 let _ = tokio::fs::remove_file(&temporary).await;
544519 return Err(error);
545520 }
546521 drop(file);
547- let actual = format!("{:x}", hasher.finalize());
548- if bytes != entry.bytes || actual != entry.sha256 {
522+ let actual = format!("{:x}", Sha256::digest(&body));
523+ if actual != entry.sha256 {
549524 let _ = tokio::fs::remove_file(&temporary).await;
550525 return Err(anyhow!(
551526 "asset {resolved_path} checksum mismatch: expected {}, got {actual}",
@@ -1069,7 +1044,11 @@
10691044
10701045 fn touch_cache_file(path: PathBuf) {
10711046 tokio::task::spawn_blocking(move || {
1072- let _ = filetime::set_file_mtime(path, filetime::FileTime::now());
1047+ let times = std::fs::FileTimes::new().set_modified(std::time::SystemTime::now());
1048+ let _ = std::fs::File::options()
1049+ .write(true)
1050+ .open(path)
1051+ .and_then(|file| file.set_times(times));
10731052 });
10741053 }
10751054
modifiedcrates/celld/asyncrt.rs+2−0View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Host async runtime for the JS thread, using structured concurrency. Ops
24 //! never spawn detached: they ENQUEUE a future, and `js::run_loop` owns a
35 //! per-request tokio `JoinSet` (the "region") that spawns, drives, and — on
addedcrates/celld/bucket.rs+379−0View file
@@ -1,0 +1,379 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
3+//! The engine's single S3 client: the `object_store` crate `celld-ltx`
4+//! already links, bound to one bucket (wiki/designs/s3-client-dedup.md).
5+//! Replaces aws-sdk-s3. No call site streamed a body, so everything is
6+//! in-memory `Bytes`.
7+//!
8+//! Error contract, relied on by the self-fence: `put_cas` answers
9+//! `Ok(None)` only for a clean 412/409 rejection; every other failure is
10+//! ambiguous — the write may have committed — and surfaces as `Err`.
11+
12+use anyhow::anyhow;
13+use anyhow::Context;
14+use bytes::Bytes;
15+use futures_util::StreamExt;
16+use object_store::aws::AmazonS3;
17+use object_store::aws::AmazonS3Builder;
18+use object_store::aws::S3ConditionalPut;
19+use object_store::path::Path;
20+use object_store::Attribute;
21+use object_store::Attributes;
22+use object_store::ClientOptions;
23+use object_store::Error;
24+use object_store::GetOptions;
25+use object_store::ObjectMeta;
26+use object_store::ObjectStore;
27+use object_store::PutMode;
28+use object_store::PutOptions;
29+use object_store::PutPayload;
30+use object_store::RetryConfig;
31+use object_store::UpdateVersion;
32+use std::borrow::Cow;
33+use std::sync::Arc;
34+use std::time::Duration;
35+
36+/// Explicit credentials for a managed installation; everything else comes
37+/// from the standard `AWS_*` environment.
38+pub struct StaticCredentials {
39+ pub access_key_id: String,
40+ pub secret_access_key: String,
41+ pub session_token: Option<String>,
42+}
43+
44+/// One S3-compatible bucket. Cheap to clone; each `open` builds its own
45+/// HTTP transport, so a dedicated instance also isolates its traffic.
46+#[derive(Clone)]
47+pub struct Bucket {
48+ store: Arc<AmazonS3>,
49+ /// Conditional writes only, built with retries OFF: a retried CAS put
50+ /// can land on the first attempt's own etag change and report a clean
51+ /// 412 — converting "may have committed" into a false rejection. The
52+ /// ambiguity must surface as `Err` so the caller reconciles.
53+ cas_store: Arc<AmazonS3>,
54+ /// Bucket name, for messages — the store is already bound to it.
55+ pub name: String,
56+}
57+
58+impl Bucket {
59+ /// `app` labels this client's traffic in the User-Agent (the aws
60+ /// AppName format, `app/<name>`), keeping e.g. the lease safety lane
61+ /// observable in black-box storage traces.
62+ pub fn open(
63+ bucket: &str,
64+ endpoint: Option<&str>,
65+ region: &str,
66+ credentials: Option<StaticCredentials>,
67+ app: Option<&str>,
68+ ) -> anyhow::Result<Bucket> {
69+ // These bounds mirror the aws-sdk TimeoutConfig they replace
70+ // (connect 3 s / attempt 15 s / operation 30 s) — a correctness
71+ // condition for the node self-fence, not tuning. The read-timeout
72+ // knob collapses into the per-request bound.
73+ let mut options = ClientOptions::new()
74+ .with_timeout(Duration::from_secs(15))
75+ .with_connect_timeout(Duration::from_secs(3))
76+ .with_allow_http(true);
77+ if let Some(app) = app {
78+ options = options.with_user_agent(
79+ hyper::header::HeaderValue::from_str(&format!("celld app/{app}"))
80+ .context("app user agent")?,
81+ );
82+ }
83+ let mut builder = AmazonS3Builder::from_env()
84+ .with_bucket_name(bucket)
85+ .with_region(region)
86+ .with_conditional_put(S3ConditionalPut::ETagMatch)
87+ .with_retry(RetryConfig {
88+ max_retries: 2,
89+ retry_timeout: Duration::from_secs(30),
90+ ..RetryConfig::default()
91+ })
92+ .with_client_options(options);
93+ if let Some(endpoint) = endpoint {
94+ // Path-style against explicit S3-compatible endpoints, exactly
95+ // as the aws client's force_path_style(endpoint.is_some()).
96+ builder = builder
97+ .with_endpoint(endpoint)
98+ .with_virtual_hosted_style_request(false);
99+ } else {
100+ builder = builder.with_virtual_hosted_style_request(true);
101+ }
102+ if let Some(credentials) = credentials {
103+ builder = builder
104+ .with_access_key_id(credentials.access_key_id)
105+ .with_secret_access_key(credentials.secret_access_key);
106+ if let Some(token) = credentials.session_token {
107+ builder = builder.with_token(token);
108+ }
109+ }
110+ let cas_builder = builder.clone().with_retry(RetryConfig {
111+ max_retries: 0,
112+ retry_timeout: Duration::from_secs(30),
113+ ..RetryConfig::default()
114+ });
115+ Ok(Bucket {
116+ store: Arc::new(builder.build().context("build s3 client")?),
117+ cas_store: Arc::new(cas_builder.build().context("build s3 cas client")?),
118+ name: bucket.to_string(),
119+ })
120+ }
121+
122+ /// Body and etag, or `None` when the key does not exist.
123+ pub async fn get(&self, key: &str) -> anyhow::Result<Option<(Bytes, String)>> {
124+ match self.store.get(&Path::from(key)).await {
125+ Ok(result) => {
126+ let etag = result.meta.e_tag.clone().unwrap_or_default();
127+ let bytes = result
128+ .bytes()
129+ .await
130+ .with_context(|| format!("read body s3://{}/{key}", self.name))?;
131+ Ok(Some((bytes, etag)))
132+ }
133+ Err(Error::NotFound { .. }) => Ok(None),
134+ Err(error) => Err(anyhow!(error).context(format!("read s3://{}/{key}", self.name))),
135+ }
136+ }
137+
138+ /// Size and etag, or `None` when the key does not exist.
139+ pub async fn head(&self, key: &str) -> anyhow::Result<Option<(u64, String)>> {
140+ match self.store.head(&Path::from(key)).await {
141+ Ok(meta) => Ok(Some((meta.size as u64, meta.e_tag.unwrap_or_default()))),
142+ Err(Error::NotFound { .. }) => Ok(None),
143+ Err(error) => Err(anyhow!(error).context(format!("head s3://{}/{key}", self.name))),
144+ }
145+ }
146+
147+ pub async fn put(&self, key: &str, body: impl Into<PutPayload>) -> anyhow::Result<()> {
148+ self.store
149+ .put(&Path::from(key), body.into())
150+ .await
151+ .with_context(|| format!("write s3://{}/{key}", self.name))?;
152+ Ok(())
153+ }
154+
155+ /// Size plus one `x-amz-meta-*` value, or `None` when the key does not
156+ /// exist. A plain `head` cannot see user metadata; this one can.
157+ pub async fn head_with_meta(
158+ &self,
159+ key: &str,
160+ name: &str,
161+ ) -> anyhow::Result<Option<(u64, Option<String>)>> {
162+ let options = GetOptions {
163+ head: true,
164+ ..GetOptions::default()
165+ };
166+ match self.store.get_opts(&Path::from(key), options).await {
167+ Ok(result) => {
168+ let value = result
169+ .attributes
170+ .get(&Attribute::Metadata(name.to_string().into()))
171+ .map(|value| value.as_ref().to_string());
172+ Ok(Some((result.meta.size as u64, value)))
173+ }
174+ Err(Error::NotFound { .. }) => Ok(None),
175+ Err(error) => Err(anyhow!(error).context(format!("head s3://{}/{key}", self.name))),
176+ }
177+ }
178+
179+ /// Plain write carrying `x-amz-meta-*` user metadata.
180+ pub async fn put_with_meta(
181+ &self,
182+ key: &str,
183+ body: impl Into<PutPayload>,
184+ meta: &[(&'static str, &str)],
185+ ) -> anyhow::Result<()> {
186+ let mut attributes = Attributes::new();
187+ for (name, value) in meta {
188+ attributes.insert(
189+ Attribute::Metadata(Cow::Borrowed(name)),
190+ value.to_string().into(),
191+ );
192+ }
193+ let options = PutOptions {
194+ attributes,
195+ ..PutOptions::default()
196+ };
197+ self.store
198+ .put_opts(&Path::from(key), body.into(), options)
199+ .await
200+ .with_context(|| format!("write s3://{}/{key}", self.name))?;
201+ Ok(())
202+ }
203+
204+ /// Conditional write. `etag: None` requires the key to be absent
205+ /// (If-None-Match: *); `Some` requires the current etag (If-Match).
206+ /// `Ok(Some(new_etag))` applied, `Ok(None)` cleanly rejected; any other
207+ /// failure is ambiguous and stays an error.
208+ pub async fn put_cas(
209+ &self,
210+ key: &str,
211+ body: impl Into<PutPayload>,
212+ etag: Option<&str>,
213+ ) -> anyhow::Result<Option<String>> {
214+ let mode = match etag {
215+ None => PutMode::Create,
216+ Some(etag) => PutMode::Update(UpdateVersion {
217+ e_tag: Some(etag.to_string()),
218+ version: None,
219+ }),
220+ };
221+ match self
222+ .cas_store
223+ .put_opts(&Path::from(key), body.into(), PutOptions::from(mode))
224+ .await
225+ {
226+ Ok(result) => Ok(Some(result.e_tag.unwrap_or_default())),
227+ Err(Error::Precondition { .. } | Error::AlreadyExists { .. }) => Ok(None),
228+ Err(error) => Err(anyhow!(error).context(format!(
229+ "conditional write s3://{}/{key} may have committed",
230+ self.name
231+ ))),
232+ }
233+ }
234+
235+ /// Idempotent: deleting an absent key succeeds, as S3's DELETE does.
236+ pub async fn delete(&self, key: &str) -> anyhow::Result<()> {
237+ match self.store.delete(&Path::from(key)).await {
238+ Ok(()) | Err(Error::NotFound { .. }) => Ok(()),
239+ Err(error) => Err(anyhow!(error).context(format!("delete s3://{}/{key}", self.name))),
240+ }
241+ }
242+
243+ /// Every object under `prefix/`; the client paginates internally.
244+ pub async fn list(&self, prefix: &str) -> anyhow::Result<Vec<ObjectMeta>> {
245+ let path = Path::from(prefix.trim_end_matches('/'));
246+ let mut stream = self.store.list(Some(&path));
247+ let mut objects = Vec::new();
248+ while let Some(meta) = stream.next().await {
249+ objects.push(meta.with_context(|| format!("list s3://{}/{prefix}", self.name))?);
250+ }
251+ Ok(objects)
252+ }
253+
254+ /// Does anything exist under `prefix/`? One page at most.
255+ pub async fn list_any(&self, prefix: &str) -> anyhow::Result<bool> {
256+ let path = Path::from(prefix.trim_end_matches('/'));
257+ match self.store.list(Some(&path)).next().await {
258+ None => Ok(false),
259+ Some(Ok(_)) => Ok(true),
260+ Some(Err(error)) => {
261+ Err(anyhow!(error).context(format!("list s3://{}/{prefix}", self.name)))
262+ }
263+ }
264+ }
265+
266+ /// Immediate child "directories" under `prefix/` (delimiter listing),
267+ /// as full prefixes with the trailing slash stripped.
268+ pub async fn common_prefixes(&self, prefix: &str) -> anyhow::Result<Vec<String>> {
269+ let path = Path::from(prefix.trim_end_matches('/'));
270+ let result = self
271+ .store
272+ .list_with_delimiter(Some(&path))
273+ .await
274+ .with_context(|| format!("list s3://{}/{prefix}", self.name))?;
275+ Ok(result
276+ .common_prefixes
277+ .into_iter()
278+ .map(|p| p.as_ref().to_string())
279+ .collect())
280+ }
281+
282+ /// The head_bucket replacement: prove the bucket is reachable and the
283+ /// credential is accepted with one list page.
284+ pub async fn validate(&self) -> anyhow::Result<()> {
285+ match self.store.list(None).next().await {
286+ None | Some(Ok(_)) => Ok(()),
287+ Some(Err(error)) => Err(anyhow!(error).context(format!("validate s3://{}", self.name))),
288+ }
289+ }
290+}
291+
292+/// Was this a 401/403 — the credential itself rejected? Used by the managed
293+/// path to report a revoked credential rather than a flaky bucket.
294+pub fn is_unauthorized(error: &anyhow::Error) -> bool {
295+ error.chain().any(|cause| {
296+ if matches!(
297+ cause.downcast_ref::<Error>(),
298+ Some(Error::PermissionDenied { .. } | Error::Unauthenticated { .. })
299+ ) {
300+ return true;
301+ }
302+ // The list path wraps HTTP errors as Generic; the status only
303+ // survives in the retry error's message.
304+ let text = cause.to_string();
305+ text.contains("status 403") || text.contains("status 401")
306+ })
307+}
308+
309+#[cfg(test)]
310+mod live_cas {
311+ use super::{Bucket, StaticCredentials};
312+
313+ // Live CAS contract against a real S3-compatible bucket (R2). Gated on
314+ // CELLD_CAS_LIVE=1 so it never runs in CI; a mock cannot answer whether
315+ // object_store maps R2's precondition failures to Ok(None) (the fencing
316+ // contract) rather than Err. Run:
317+ // CELLD_CAS_LIVE=1 CELLD_CAS_BUCKET=<b> CELLD_CAS_ENDPOINT=<ep> AWS_*=... \
318+ // cargo test -p celld put_cas_contract -- --nocapture
319+ #[tokio::test]
320+ async fn put_cas_contract_against_real_bucket() {
321+ if std::env::var("CELLD_CAS_LIVE").as_deref() != Ok("1") {
322+ return;
323+ }
324+ let name = std::env::var("CELLD_CAS_BUCKET").expect("CELLD_CAS_BUCKET");
325+ let endpoint = std::env::var("CELLD_CAS_ENDPOINT").ok();
326+ let region = std::env::var("AWS_REGION").unwrap_or_else(|_| "auto".into());
327+ let creds = StaticCredentials {
328+ access_key_id: std::env::var("AWS_ACCESS_KEY_ID").unwrap(),
329+ secret_access_key: std::env::var("AWS_SECRET_ACCESS_KEY").unwrap(),
330+ session_token: std::env::var("AWS_SESSION_TOKEN").ok(),
331+ };
332+ let bucket = Bucket::open(
333+ &name,
334+ endpoint.as_deref(),
335+ &region,
336+ Some(creds),
337+ Some("cas-test"),
338+ )
339+ .expect("open bucket");
340+ let nanos = std::time::SystemTime::now()
341+ .duration_since(std::time::UNIX_EPOCH)
342+ .unwrap()
343+ .as_nanos();
344+ let key = format!("cas-probe/{nanos}");
345+
346+ // 1. Create on an absent key applies.
347+ let e1 = bucket
348+ .put_cas(&key, b"v1".to_vec(), None)
349+ .await
350+ .expect("create must not error")
351+ .expect("fresh create must apply (Ok(Some))");
352+ // 2. Create over an existing key is cleanly rejected.
353+ assert!(
354+ bucket
355+ .put_cas(&key, b"v1b".to_vec(), None)
356+ .await
357+ .expect("create-again must not error")
358+ .is_none(),
359+ "create over an existing key must be Ok(None)"
360+ );
361+ // 3. Update with the current etag applies.
362+ bucket
363+ .put_cas(&key, b"v3".to_vec(), Some(&e1))
364+ .await
365+ .expect("update must not error")
366+ .expect("update with current etag must apply (Ok(Some))");
367+ // 4. Update with the now-stale etag is cleanly rejected — the fencing case.
368+ assert!(
369+ bucket
370+ .put_cas(&key, b"v4".to_vec(), Some(&e1))
371+ .await
372+ .expect("stale update must not error")
373+ .is_none(),
374+ "update with a stale etag must be Ok(None) — the fencing contract"
375+ );
376+ bucket.delete(&key).await.expect("cleanup delete");
377+ eprintln!("CAS verified on {name}: create / reject-create / update / reject-stale");
378+ }
379+}
modifiedcrates/celld/control_plane.rs+107−171View file
@@ -1,9 +1,11 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
3+use crate::bucket::Bucket;
14 use crate::protocol::{asset_blob_key, AssetIndex, DeployPointer, Manifest};
25 use anyhow::{anyhow, Context};
3-use aws_sdk_s3::primitives::ByteStream;
4-use aws_sdk_s3::Client as S3Client;
56 use celld_logic::PresenceSnapshot;
6-use futures_util::{SinkExt, StreamExt};
7+use fastwebsockets::{FragmentCollector, Frame, OpCode};
8+use hyper::header::HeaderMap;
79 use rand::RngCore;
810 use rusqlite::{types::ValueRef, Connection, OpenFlags, OptionalExtension};
911 use serde::{Deserialize, Serialize};
@@ -21,7 +23,7 @@
2123 const DEFAULT_ENVIRONMENT: &str = "prod";
2224 const MAX_PRESENCE_CELLS: usize = 50;
2325 const MAX_PRESENCE_CELL_ID_BYTES: usize = 200;
24-const MAX_EXPLORER_CELL_PAGE: i32 = 100;
26+const MAX_EXPLORER_CELL_PAGE: usize = 100;
2527 const MAX_EXPLORER_TABLES: usize = 100;
2628 const MAX_EXPLORER_COLUMNS: usize = 32;
2729 const MAX_EXPLORER_ROWS: usize = 25;
@@ -757,13 +759,12 @@
757759 /// celld-logic. The control-plane adapter cannot mutate lifecycle state or
758760 /// maintain its own resident inventory.
759761 pub struct PresenceRuntime {
760- pub s3: S3Client,
761- pub bucket: String,
762+ pub s3: Bucket,
762763 pub replication: Option<crate::runtime::Replication>,
763764 pub node_session_id: String,
764765 pub advertise: String,
765766 pub listen: String,
766- /// Credential version used to construct S3, lease, Litestream, explorer,
767+ /// Credential version used to construct S3, lease, replication, explorer,
767768 /// and deployment adapters. This intentionally comes from the same config
768769 /// snapshot as those credentials, not from a later presence-agent read.
769770 pub credential_version: u64,
@@ -840,7 +841,7 @@
840841 /// presence agent. `celld credentials refresh` persists the replacement before
841842 /// acknowledging its handoff; seeing that version is therefore enough to
842843 /// rebuild the complete adapter graph. Replacing only one S3 client here would
843-/// leave the lease pool, Litestream, explorer, or deploy agent on revoked
844+/// leave the lease pool, replication, explorer, or deploy agent on revoked
844845 /// credentials.
845846 async fn wait_for_credential_rotation(current_version: u64) -> u64 {
846847 let mut tick = tokio::time::interval(Duration::from_secs(1));
@@ -891,22 +892,22 @@
891892 runtime: &PresenceRuntime,
892893 hostname: &str,
893894 ) -> anyhow::Result<()> {
894- let request = presence_request(
895+ let (url, headers) = presence_request(
895896 config,
896897 &runtime.node_session_id,
897898 &runtime.advertise,
898899 &runtime.listen,
899900 hostname,
900901 )?;
901- let (mut socket, _) = match tokio_tungstenite::connect_async(request).await {
902- Ok(connected) => connected,
903- Err(tokio_tungstenite::tungstenite::Error::Http(response))
904- if matches!(response.status().as_u16(), 401 | 403) =>
902+ let mut socket = match crate::ws_client::connect(&url, headers).await {
903+ Ok(connection) => FragmentCollector::new(connection.socket),
904+ Err(crate::ws_client::Error::Declined(declined))
905+ if matches!(declined.status.as_u16(), 401 | 403) =>
905906 {
906907 return Err(ManagedControlCredentialRevoked.into());
907908 }
908909 Err(error) => {
909- return Err(error).context("connect Managed Control Plane presence");
910+ return Err(anyhow!("{error}")).context("connect Managed Control Plane presence");
910911 }
911912 };
912913 report_managed_runtime_state(ManagedRuntimeState::Connected);
@@ -975,19 +976,15 @@
975976 lazy_lease_shadow_json(&snapshot.lazy_lease_shadow);
976977 }
977978 socket
978- .send(tokio_tungstenite::tungstenite::Message::Text(
979- message.to_string().into(),
980- ))
979+ .write_frame(Frame::text(message.to_string().into_bytes().into()))
981980 .await?;
982981 }
983- message = socket.next() => {
984- match message {
985- Some(Ok(tokio_tungstenite::tungstenite::Message::Ping(payload))) => {
986- socket.send(
987- tokio_tungstenite::tungstenite::Message::Pong(payload)
988- ).await?;
989- }
990- Some(Ok(tokio_tungstenite::tungstenite::Message::Text(text))) => {
982+ // Ping and Close are answered by the collector's auto-pong and
983+ // auto-close; only Text carries anything to act on.
984+ frame = socket.read_frame() => {
985+ match frame {
986+ Ok(frame) if frame.opcode == OpCode::Text => {
987+ let text = String::from_utf8_lossy(&frame.payload);
991988 let message = serde_json::from_str::<serde_json::Value>(&text).ok();
992989 let message_type = message.as_ref()
993990 .and_then(|value| value.get("type"))
@@ -1000,8 +997,8 @@
1000997 runtime,
1001998 ).await;
1002999 socket
1003- .send(tokio_tungstenite::tungstenite::Message::Text(
1004- response.to_string().into(),
1000+ .write_frame(Frame::text(
1001+ response.to_string().into_bytes().into(),
10051002 ))
10061003 .await?;
10071004 }
@@ -1013,7 +1010,6 @@
10131010 &client,
10141011 config,
10151012 &runtime.s3,
1016- &runtime.bucket,
10171013 ).await?.is_some() && restart_on_deployment_enabled() {
10181014 restart_for_deployment();
10191015 }
@@ -1024,20 +1020,19 @@
10241020 _ => {}
10251021 }
10261022 }
1027- Some(Ok(tokio_tungstenite::tungstenite::Message::Close(_))) | None => {
1023+ Ok(frame) if frame.opcode == OpCode::Close => {
10281024 return Err(anyhow!("Managed Control Plane closed presence"));
10291025 }
1030- Some(Ok(_)) => {}
1031- Some(Err(error)) => return Err(error.into()),
1026+ Ok(_) => {}
1027+ Err(error) => return Err(anyhow!("{error}"))
1028+ .context("read Managed Control Plane presence"),
10321029 }
10331030 }
10341031 }
10351032 }
10361033 }
10371034
1038-fn lazy_lease_shadow_json(
1039- batch: &celld_logic::LeaseLifecycleShadowBatch,
1040-) -> serde_json::Value {
1035+fn lazy_lease_shadow_json(batch: &celld_logic::LeaseLifecycleShadowBatch) -> serde_json::Value {
10411036 let decisions = batch
10421037 .decisions
10431038 .iter()
@@ -1087,7 +1082,6 @@
10871082 let checked_at_ms = crate::ownership_store::now_ms();
10881083 let ownership = crate::ownership_store::S3Ownership::new(
10891084 runtime.s3.clone(),
1090- runtime.bucket.clone(),
10911085 runtime.node_session_id.clone(),
10921086 );
10931087 match ownership.read_node_lease(&runtime.node_session_id).await {
@@ -1140,7 +1134,7 @@
11401134 }
11411135 _ => return explorer_error(request_id, "invalid_request"),
11421136 };
1143- list_durable_cells(&runtime.s3, &runtime.bucket, cursor).await
1137+ list_durable_cells(&runtime.s3, cursor).await
11441138 }
11451139 Some("inspect_cell") => {
11461140 let Some(cell) = message
@@ -1260,35 +1254,30 @@
12601254 }
12611255
12621256 async fn list_durable_cells(
1263- s3: &S3Client,
1264- bucket: &str,
1257+ bucket: &Bucket,
12651258 cursor: Option<&str>,
12661259 ) -> anyhow::Result<serde_json::Value> {
1267- let mut request = s3
1268- .list_objects_v2()
1269- .bucket(bucket)
1270- .prefix("cells/")
1271- .delimiter("/")
1272- .max_keys(MAX_EXPLORER_CELL_PAGE);
1273- if let Some(cursor) = cursor {
1274- request = request.continuation_token(cursor);
1275- }
1276- let page = request.send().await?;
1277- let cells = page
1278- .common_prefixes()
1279- .iter()
1280- .filter_map(|prefix| prefix.prefix())
1281- .filter_map(|prefix| {
1282- prefix
1283- .strip_prefix("cells/")
1284- .and_then(|cell| cell.strip_suffix('/'))
1285- })
1260+ // object_store exposes no server-side cursor, so paging is client-side
1261+ // over the full delimiter listing (bounded by the fleet's cell count).
1262+ let mut cells = bucket
1263+ .common_prefixes("cells/")
1264+ .await?
1265+ .into_iter()
1266+ .filter_map(|prefix| prefix.strip_prefix("cells/").map(str::to_string))
12861267 .filter(|cell| valid_explorer_cell_id(cell))
1287- .map(str::to_string)
12881268 .collect::<Vec<_>>();
1269+ cells.sort();
1270+ if let Some(cursor) = cursor {
1271+ cells.retain(|cell| cell.as_str() > cursor);
1272+ }
1273+ let mut next_cursor = None;
1274+ if cells.len() > MAX_EXPLORER_CELL_PAGE {
1275+ cells.truncate(MAX_EXPLORER_CELL_PAGE);
1276+ next_cursor = cells.last().cloned();
1277+ }
12891278 Ok(serde_json::json!({
12901279 "cells": cells,
1291- "next_cursor": page.next_continuation_token(),
1280+ "next_cursor": next_cursor,
12921281 }))
12931282 }
12941283
@@ -1463,9 +1452,8 @@
14631452 advertise: &str,
14641453 listen: &str,
14651454 hostname: &str,
1466-) -> anyhow::Result<tokio_tungstenite::tungstenite::http::Request<()>> {
1467- use tokio_tungstenite::tungstenite::client::IntoClientRequest;
1468- use tokio_tungstenite::tungstenite::http::header::{HeaderName, HeaderValue, AUTHORIZATION};
1455+) -> anyhow::Result<(String, HeaderMap)> {
1456+ use hyper::header::{HeaderName, HeaderValue, AUTHORIZATION};
14691457
14701458 let token = config
14711459 .installation_token
@@ -1479,35 +1467,35 @@
14791467 .append_pair("node_session_id", node_session_id)
14801468 .append_pair("advertise", advertise)
14811469 .append_pair("listen", listen);
1482- let mut request = url.as_str().into_client_request()?;
1483- request.headers_mut().insert(
1470+ let mut headers = HeaderMap::new();
1471+ headers.insert(
14841472 AUTHORIZATION,
14851473 HeaderValue::from_str(&format!("Bearer {token}"))?,
14861474 );
1487- request.headers_mut().insert(
1475+ headers.insert(
14881476 HeaderName::from_static("x-cells-version"),
14891477 HeaderValue::from_static(env!("CARGO_PKG_VERSION")),
14901478 );
1491- request.headers_mut().insert(
1479+ headers.insert(
14921480 HeaderName::from_static("x-cells-capabilities"),
14931481 HeaderValue::from_static("assets-v1,sqlite-explorer-v1,sqlite-explorer-v2"),
14941482 );
1495- request.headers_mut().insert(
1483+ headers.insert(
14961484 HeaderName::from_static("x-cells-hostname"),
14971485 HeaderValue::from_str(hostname)?,
14981486 );
1499- request.headers_mut().insert(
1487+ headers.insert(
15001488 HeaderName::from_static("x-cells-os"),
15011489 HeaderValue::from_static(std::env::consts::OS),
15021490 );
1503- request.headers_mut().insert(
1491+ headers.insert(
15041492 HeaderName::from_static("x-cells-arch"),
15051493 HeaderValue::from_static(std::env::consts::ARCH),
15061494 );
1507- Ok(request)
1495+ Ok((url.into(), headers))
15081496 }
15091497
1510-pub fn start_deploy_agent(s3: S3Client, bucket: String, runtime_ready: Arc<AtomicBool>) -> bool {
1498+pub fn start_deploy_agent(bucket: Bucket, runtime_ready: Arc<AtomicBool>) -> bool {
15111499 let config = match connected_config() {
15121500 Ok(Some(config)) => config,
15131501 Ok(None) => return false,
@@ -1530,7 +1518,7 @@
15301518 let mut consecutive_failures = 0_u32;
15311519 loop {
15321520 let mut delay = Duration::from_secs(60);
1533- match poll_and_apply(&client, &config, &s3, &bucket).await {
1521+ match poll_and_apply(&client, &config, &bucket).await {
15341522 Ok(Some(applied)) => {
15351523 if consecutive_failures > 0 {
15361524 info!(
@@ -1584,7 +1572,7 @@
15841572 true
15851573 }
15861574
1587-pub async fn wait_for_initial_deployment(s3: &S3Client, bucket: &str) -> anyhow::Result<()> {
1575+pub async fn wait_for_initial_deployment(bucket: &Bucket) -> anyhow::Result<()> {
15881576 let config = connected_config()?.context("managed installation is not connected")?;
15891577 let client = reqwest::Client::builder()
15901578 .timeout(Duration::from_secs(30))
@@ -1595,31 +1583,24 @@
15951583 config.control_url.trim_end_matches('/')
15961584 );
15971585 loop {
1598- if deployment_exists(s3, bucket).await? {
1586+ if deployment_exists(bucket).await? {
15991587 return Ok(());
16001588 }
1601- if poll_and_apply(&client, &config, s3, bucket)
1602- .await?
1603- .is_some()
1604- {
1589+ if poll_and_apply(&client, &config, bucket).await?.is_some() {
16051590 return Ok(());
16061591 }
16071592 tokio::time::sleep(Duration::from_secs(2)).await;
16081593 }
16091594 }
16101595
1611-async fn deployment_exists(s3: &S3Client, bucket: &str) -> anyhow::Result<bool> {
1612- let response = s3
1613- .list_objects_v2()
1614- .bucket(bucket)
1615- .prefix("deploy/")
1616- .send()
1596+async fn deployment_exists(bucket: &Bucket) -> anyhow::Result<bool> {
1597+ let objects = bucket
1598+ .list("deploy/")
16171599 .await
16181600 .context("discover managed deployment")?;
1619- Ok(response
1620- .contents()
1601+ Ok(objects
16211602 .iter()
1622- .filter_map(|object| object.key())
1603+ .map(|object| object.location.as_ref())
16231604 .any(|key| {
16241605 key == "deploy/current.json"
16251606 || key
@@ -1655,8 +1636,7 @@
16551636 async fn poll_and_apply(
16561637 client: &reqwest::Client,
16571638 config: &CloudConfig,
1658- s3: &S3Client,
1659- bucket: &str,
1639+ bucket: &Bucket,
16601640 ) -> anyhow::Result<Option<AppliedDeployment>> {
16611641 let token = config
16621642 .installation_token
@@ -1690,7 +1670,7 @@
16901670 ));
16911671 }
16921672
1693- let result = apply_deployment(client, token, s3, bucket, &command.deployment).await;
1673+ let result = apply_deployment(client, token, bucket, &command.deployment).await;
16941674 let failure = result.as_ref().err().map(|error| format!("{error:#}"));
16951675 let completion = client
16961676 .post(format!(
@@ -1720,8 +1700,7 @@
17201700 async fn apply_deployment(
17211701 client: &reqwest::Client,
17221702 token: &str,
1723- s3: &S3Client,
1724- bucket: &str,
1703+ bucket: &Bucket,
17251704 deployment: &AgentDeployment,
17261705 ) -> anyhow::Result<()> {
17271706 if deployment.pointer.version != deployment.version
@@ -1794,20 +1773,14 @@
17941773 for (sha256, bytes) in &unique {
17951774 let key =
17961775 asset_blob_key(sha256).ok_or_else(|| anyhow!("invalid asset digest: {sha256}"))?;
1797- let existing = s3.head_object().bucket(bucket).key(&key).send().await;
1798- if let Ok(existing) = existing {
1799- if existing.content_length().unwrap_or(-1) == *bytes as i64
1800- && existing
1801- .metadata()
1802- .and_then(|metadata| metadata.get("sha256"))
1803- == Some(sha256)
1804- {
1776+ if let Ok(Some((size, meta))) = bucket.head_with_meta(&key, "sha256").await {
1777+ if size == *bytes && meta.as_deref() == Some(sha256.as_str()) {
18051778 continue;
18061779 }
18071780 tracing::warn!(
18081781 event = "asset_blob_repair_required",
18091782 %sha256,
1810- "asset blob exists with invalid size or checksum metadata"
1783+ "asset blob exists with an invalid size or checksum metadata"
18111784 );
18121785 }
18131786
@@ -1835,15 +1808,16 @@
18351808 if hash != *sha256 {
18361809 return Err(anyhow!("asset blob {sha256} checksum mismatch"));
18371810 }
1838- put_asset_object(s3, bucket, &key, sha256, body.to_vec()).await?;
1811+ bucket
1812+ .put_with_meta(&key, body.to_vec(), &[("sha256", sha256)])
1813+ .await?;
18391814 }
1840- put_bucket_object(
1841- s3,
1842- bucket,
1843- &format!("{}/assets.json", deployment.pointer.prefix),
1844- index_bytes.to_vec(),
1845- )
1846- .await?;
1815+ bucket
1816+ .put(
1817+ &format!("{}/assets.json", deployment.pointer.prefix),
1818+ index_bytes.to_vec(),
1819+ )
1820+ .await?;
18471821 asset_files = assets.file_count;
18481822 asset_bytes = assets.total_bytes;
18491823 asset_blobs = unique.len();
@@ -1882,38 +1856,34 @@
18821856 if hash != module.sha256 {
18831857 return Err(anyhow!("module {} checksum mismatch", module.name));
18841858 }
1885- put_bucket_object(
1886- s3,
1887- bucket,
1888- &format!("{}/{}", deployment.pointer.prefix, module.name),
1889- bytes.to_vec(),
1859+ bucket
1860+ .put(
1861+ &format!("{}/{}", deployment.pointer.prefix, module.name),
1862+ bytes.to_vec(),
1863+ )
1864+ .await?;
1865+ }
1866+ bucket
1867+ .put(
1868+ &format!("{}/manifest.json", deployment.pointer.prefix),
1869+ serde_json::to_vec_pretty(&deployment.manifest)?,
18901870 )
18911871 .await?;
1892- }
1893- put_bucket_object(
1894- s3,
1895- bucket,
1896- &format!("{}/manifest.json", deployment.pointer.prefix),
1897- serde_json::to_vec_pretty(&deployment.manifest)?,
1898- )
1899- .await?;
1900- put_bucket_object(
1901- s3,
1902- bucket,
1903- &format!("deploy/{}/current.json", deployment.script_name),
1904- serde_json::to_vec_pretty(&deployment.pointer)?,
1905- )
1906- .await?;
1872+ bucket
1873+ .put(
1874+ &format!("deploy/{}/current.json", deployment.script_name),
1875+ serde_json::to_vec_pretty(&deployment.pointer)?,
1876+ )
1877+ .await?;
19071878 // This fleet-wide pointer is the sole application selector. The named
19081879 // pointer above remains only for resolving service-binding components and
19091880 // for migrating buckets written by older celld releases.
1910- put_bucket_object(
1911- s3,
1912- bucket,
1913- "deploy/current.json",
1914- serde_json::to_vec_pretty(&deployment.pointer)?,
1915- )
1916- .await?;
1881+ bucket
1882+ .put(
1883+ "deploy/current.json",
1884+ serde_json::to_vec_pretty(&deployment.pointer)?,
1885+ )
1886+ .await?;
19171887 info!(
19181888 event = "control_plane_deployment_applied",
19191889 script_name = %deployment.script_name,
@@ -1922,7 +1892,7 @@
19221892 asset_files,
19231893 asset_bytes,
19241894 asset_blobs,
1925- bucket,
1895+ bucket = %bucket.name,
19261896 "deployment artifacts written to fleet bucket"
19271897 );
19281898 Ok(())
@@ -2180,40 +2150,6 @@
21802150 Ok(())
21812151 }
21822152
2183-async fn put_asset_object(
2184- s3: &S3Client,
2185- bucket: &str,
2186- key: &str,
2187- sha256: &str,
2188- body: Vec<u8>,
2189-) -> anyhow::Result<()> {
2190- s3.put_object()
2191- .bucket(bucket)
2192- .key(key)
2193- .metadata("sha256", sha256)
2194- .body(ByteStream::from(body))
2195- .send()
2196- .await
2197- .with_context(|| format!("write s3://{bucket}/{key}"))?;
2198- Ok(())
2199-}
2200-
2201-async fn put_bucket_object(
2202- s3: &S3Client,
2203- bucket: &str,
2204- key: &str,
2205- body: Vec<u8>,
2206-) -> anyhow::Result<()> {
2207- s3.put_object()
2208- .bucket(bucket)
2209- .key(key)
2210- .body(ByteStream::from(body))
2211- .send()
2212- .await
2213- .with_context(|| format!("write s3://{bucket}/{key}"))?;
2214- Ok(())
2215-}
2216-
22172153 async fn connect(options: ConnectOptions, wait: bool) -> anyhow::Result<()> {
22182154 let path = config_path()?;
22192155 connect_at_path(path, options, wait).await
modifiedcrates/celld/dead_node_gc.rs+74−130View file
@@ -1,21 +1,23 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Compatibility garbage collection for dead celld process generations.
24 //!
35 //! Wake entries and lazy ownership takeover provide serving correctness.
46 //! This adapter retires the historical `node-cells/` index debris and expired
57 //! node-session records left in fleet buckets shared with celld.
68
9+use crate::bucket::Bucket;
710 use anyhow::Context as _;
8-use aws_sdk_s3::error::SdkError;
9-use aws_sdk_s3::Client;
1011 use futures_util::stream::{self, StreamExt as _};
1112 use serde::Deserialize;
13+use serde::Serialize;
1214 use std::collections::{HashMap, HashSet};
1315 use std::time::{Duration, Instant};
1416 use tracing::{info, warn};
1517
1618 const MARKER_GC_CONCURRENCY: usize = 64;
1719
18-#[derive(Deserialize)]
20+#[derive(Deserialize, Serialize)]
1921 struct NodeWire {
2022 node: String,
2123 expires_ms: u64,
@@ -56,16 +58,9 @@
5658 /// Run one pass while renewing the advisory fleet-waker role. No task is
5759 /// spawned: the caller's existing wake-loop future polls both work and
5860 /// renewal, and dropping a lost-role pass cancels remaining I/O.
59- pub async fn run_elected_pass(
60- &mut self,
61- client: &Client,
62- bucket: &str,
63- node: &str,
64- tick_ms: u64,
65- ) {
61+ pub async fn run_elected_pass(&mut self, bucket: &Bucket, node: &str, tick_ms: u64) {
6662 let lease_ttl_ms = tick_ms.saturating_mul(3).min(i64::MAX as u64);
6763 if !crate::wake::try_hold_waker(
68- client,
6964 bucket,
7065 node,
7166 crate::ownership_store::now_ms() as i64,
@@ -80,14 +75,13 @@
8075 let mut renewal = tokio::time::interval(Duration::from_millis(renew_ms));
8176 renewal.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Delay);
8277 renewal.tick().await;
83- let pass = self.run_pass(client, bucket, tick_ms);
78+ let pass = self.run_pass(bucket, tick_ms);
8479 tokio::pin!(pass);
8580 loop {
8681 tokio::select! {
8782 _ = &mut pass => return,
8883 _ = renewal.tick() => {
8984 if !crate::wake::try_hold_waker(
90- client,
9185 bucket,
9286 node,
9387 crate::ownership_store::now_ms() as i64,
@@ -101,9 +95,9 @@
10195 }
10296 }
10397
104- async fn run_pass(&mut self, client: &Client, bucket: &str, tick_ms: u64) {
98+ async fn run_pass(&mut self, bucket: &Bucket, tick_ms: u64) {
10599 let observed_ms = crate::ownership_store::now_ms();
106- let dead = dead_nodes(client, bucket, observed_ms).await;
100+ let dead = dead_nodes(bucket, observed_ms).await;
107101 let dead_names: HashSet<&str> = dead.iter().map(|record| record.node.as_str()).collect();
108102 self.swept.retain(|node| dead_names.contains(node.as_str()));
109103 self.retries
@@ -128,7 +122,7 @@
128122 let indexed = if indexed.is_empty() {
129123 Some(HashMap::new())
130124 } else {
131- match cells_indexed_by_nodes(client, bucket, &indexed).await {
125+ match cells_indexed_by_nodes(bucket, &indexed).await {
132126 Ok(indexed) => Some(indexed),
133127 Err(error) => {
134128 warn!(%error, nodes = indexed.len(), "dead-node marker scan failed");
@@ -137,7 +131,7 @@
137131 }
138132 };
139133 let mut summaries = match indexed {
140- Some(indexed) => gc_markers(client, bucket, indexed).await,
134+ Some(indexed) => gc_markers(bucket, indexed).await,
141135 None => HashMap::new(),
142136 };
143137
@@ -190,7 +184,7 @@
190184 self.retries.remove(&node);
191185 self.swept.insert(node.clone());
192186 }
193- match retire_dead_node(client, bucket, &node, observed_ms).await {
187+ match retire_dead_node(bucket, &node, observed_ms).await {
194188 Ok(_) => {
195189 self.swept.remove(&node);
196190 }
@@ -200,58 +194,46 @@
200194 }
201195 }
202196
203-async fn dead_nodes(client: &Client, bucket: &str, now_ms: u64) -> Vec<DeadNode> {
197+async fn dead_nodes(bucket: &Bucket, now_ms: u64) -> Vec<DeadNode> {
204198 let mut dead = Vec::new();
205- let mut token = None;
206- loop {
207- let mut request = client.list_objects_v2().bucket(bucket).prefix("nodes/");
208- if let Some(token) = &token {
209- request = request.continuation_token(token);
199+ let objects = match bucket.list("nodes/").await {
200+ Ok(objects) => objects,
201+ Err(error) => {
202+ warn!(%error, "dead-node scan list failed");
203+ return dead;
210204 }
211- let page = match request.send().await {
212- Ok(page) => page,
213- Err(error) => {
214- warn!(%error, "dead-node scan list failed");
215- break;
216- }
205+ };
206+ for object in objects {
207+ let key = object.location.as_ref();
208+ let Some(node) = key
209+ .strip_prefix("nodes/")
210+ .and_then(|value| value.strip_suffix(".json"))
211+ else {
212+ continue;
217213 };
218- for object in page.contents() {
219- let Some(key) = object.key() else { continue };
220- let Some(node) = key
221- .strip_prefix("nodes/")
222- .and_then(|value| value.strip_suffix(".json"))
223- else {
224- continue;
225- };
226- match read_node(client, bucket, key).await {
227- Ok(Some((record, _)))
228- if celld_logic::dead_node_reconciliation::node_record_is_dead(
229- node,
230- &record.node,
231- record.expires_ms,
232- now_ms,
233- ) =>
234- {
235- dead.push(DeadNode {
236- node: node.to_string(),
237- generation: record.generation,
238- });
239- }
240- Ok(_) => {}
241- Err(error) => warn!(%node, %error, "dead-node scan read failed"),
214+ match read_node(bucket, key).await {
215+ Ok(Some((record, _)))
216+ if celld_logic::dead_node_reconciliation::node_record_is_dead(
217+ node,
218+ &record.node,
219+ record.expires_ms,
220+ now_ms,
221+ ) =>
222+ {
223+ dead.push(DeadNode {
224+ node: node.to_string(),
225+ generation: record.generation,
226+ });
242227 }
228+ Ok(_) => {}
229+ Err(error) => warn!(%node, %error, "dead-node scan read failed"),
243230 }
244- match page.next_continuation_token() {
245- Some(next) => token = Some(next.to_string()),
246- None => break,
247- }
248231 }
249232 dead
250233 }
251234
252235 async fn cells_indexed_by_nodes(
253- client: &Client,
254- bucket: &str,
236+ bucket: &Bucket,
255237 nodes: &HashMap<String, String>,
256238 ) -> anyhow::Result<HashMap<String, IndexedOwnership>> {
257239 let mut indexed: HashMap<String, IndexedOwnership> = nodes
@@ -259,37 +241,20 @@
259241 .cloned()
260242 .map(|node| (node, IndexedOwnership::default()))
261243 .collect();
262- let mut token = None;
263- loop {
264- let mut request = client
265- .list_objects_v2()
266- .bucket(bucket)
267- .prefix("node-cells/");
268- if let Some(token) = &token {
269- request = request.continuation_token(token);
244+ for object in bucket.list("node-cells/").await? {
245+ let key = object.location.as_ref();
246+ let Some((node, _)) = celld_logic::dead_node_reconciliation::parse_marker_key(key) else {
247+ continue;
248+ };
249+ if let Some(entry) = indexed.get_mut(node) {
250+ entry.markers.push(key.to_string());
270251 }
271- let page = request.send().await?;
272- for object in page.contents() {
273- let Some(key) = object.key() else { continue };
274- let Some((node, _)) = celld_logic::dead_node_reconciliation::parse_marker_key(key)
275- else {
276- continue;
277- };
278- if let Some(entry) = indexed.get_mut(node) {
279- entry.markers.push(key.to_string());
280- }
281- }
282- match page.next_continuation_token() {
283- Some(next) => token = Some(next.to_string()),
284- None => break,
285- }
286252 }
287253 Ok(indexed)
288254 }
289255
290256 async fn gc_markers(
291- client: &Client,
292- bucket: &str,
257+ bucket: &Bucket,
293258 indexed: HashMap<String, IndexedOwnership>,
294259 ) -> HashMap<String, MarkerGcSummary> {
295260 let mut summaries = HashMap::new();
@@ -307,12 +272,7 @@
307272 }
308273 let mut results = stream::iter(work)
309274 .map(|(node, marker)| async move {
310- let result = client
311- .delete_object()
312- .bucket(bucket)
313- .key(marker)
314- .send()
315- .await;
275+ let result = bucket.delete(&marker).await;
316276 (node, result)
317277 })
318278 .buffer_unordered(MARKER_GC_CONCURRENCY);
@@ -331,14 +291,9 @@
331291 summaries
332292 }
333293
334-async fn retire_dead_node(
335- client: &Client,
336- bucket: &str,
337- node: &str,
338- now_ms: u64,
339-) -> anyhow::Result<bool> {
294+async fn retire_dead_node(bucket: &Bucket, node: &str, now_ms: u64) -> anyhow::Result<bool> {
340295 let key = format!("nodes/{node}.json");
341- let Some((record, etag)) = read_node(client, bucket, &key).await? else {
296+ let Some((record, etag)) = read_node(bucket, &key).await? else {
342297 return Ok(true);
343298 };
344299 if !celld_logic::dead_node_reconciliation::node_record_is_dead(
@@ -349,39 +304,28 @@
349304 ) {
350305 return Ok(false);
351306 }
352- match client
353- .delete_object()
354- .bucket(bucket)
355- .key(key)
356- .if_match(etag)
357- .send()
358- .await
359- {
360- Ok(_) => Ok(true),
361- Err(SdkError::ServiceError(error)) if error.raw().status().as_u16() == 412 => Ok(false),
362- Err(error) => Err(error.into()),
307+ // No conditional delete in object_store: fence with a CAS tombstone
308+ // (`expires_ms: 0`, still a dead record), then delete. A crash between
309+ // the two leaves a record that still reads as dead and retires on the
310+ // next pass.
311+ let tombstone = serde_json::to_vec(&NodeWire {
312+ expires_ms: 0,
313+ ..record
314+ })?;
315+ match bucket.put_cas(&key, tombstone, Some(&etag)).await? {
316+ Some(_) => {
317+ bucket.delete(&key).await?;
318+ Ok(true)
319+ }
320+ None => Ok(false),
363321 }
364322 }
365323
366-async fn read_node(
367- client: &Client,
368- bucket: &str,
369- key: &str,
370-) -> anyhow::Result<Option<(NodeWire, String)>> {
371- match client.get_object().bucket(bucket).key(key).send().await {
372- Ok(output) => {
373- let etag = output.e_tag().unwrap_or_default().to_string();
374- let bytes = output
375- .body
376- .collect()
377- .await
378- .with_context(|| format!("read body s3://{bucket}/{key}"))?
379- .into_bytes();
380- let record = serde_json::from_slice(&bytes)
381- .with_context(|| format!("decode s3://{bucket}/{key}"))?;
382- Ok(Some((record, etag)))
383- }
384- Err(SdkError::ServiceError(error)) if error.err().is_no_such_key() => Ok(None),
385- Err(error) => Err(error.into()),
386- }
324+async fn read_node(bucket: &Bucket, key: &str) -> anyhow::Result<Option<(NodeWire, String)>> {
325+ let Some((bytes, etag)) = bucket.get(key).await? else {
326+ return Ok(None);
327+ };
328+ let record = serde_json::from_slice(&bytes)
329+ .with_context(|| format!("decode s3://{}/{key}", bucket.name))?;
330+ Ok(Some((record, etag)))
387331 }
modifiedcrates/celld/deploy.rs+38−89View file
@@ -1,16 +1,17 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! `celld deploy` — build a Wrangler project and write it to the fleet bucket.
24 //!
35 //! Bundling is esbuild's job; this module does config, identity, and durable
46 //! bucket publication. Nothing here shells out to wrangler or speaks a
57 //! Cloudflare-shaped API. Config keys are an allowlist: anything we do not
68 //! model is refused, never silently dropped.
9+use crate::bucket::Bucket;
710 use crate::protocol::{
811 asset_blob_key, AssetConfig, AssetEntry, AssetIndex, AssetManifestRef, DeployPointer, Manifest,
912 ModuleRef, Rollout, RunWorkerFirst,
1013 };
1114 use anyhow::{anyhow, bail, Context};
12-use aws_sdk_s3::primitives::ByteStream;
13-use aws_sdk_s3::Client;
1415 use flate2::write::GzEncoder;
1516 use flate2::Compression;
1617 use futures_util::{stream, StreamExt, TryStreamExt};
@@ -329,42 +330,36 @@
329330 })
330331 }
331332
332-pub async fn write(client: &Client, bucket: &str, built: &Built) -> anyhow::Result<()> {
333+pub async fn write(bucket: &Bucket, built: &Built) -> anyhow::Result<()> {
333334 // Asset bodies are fleet-wide and content-addressed. Finish every body
334335 // before publishing the deployment-local index or manifest so a reader
335336 // can never observe a pointer whose assets are incomplete.
336337 if let Some(assets) = &built.assets {
337338 stream::iter(&assets.blobs)
338- .map(|(sha256, body)| ensure_asset_blob(client, bucket, sha256, body))
339+ .map(|(sha256, body)| ensure_asset_blob(bucket, sha256, body))
339340 .buffer_unordered(ASSET_UPLOAD_CONCURRENCY)
340341 .try_collect::<Vec<_>>()
341342 .await?;
342343 }
343344 for (name, bytes) in &built.modules {
344- put(
345- client,
346- bucket,
347- &format!("{}/{name}", built.prefix),
348- bytes.clone(),
349- )
350- .await?;
345+ bucket
346+ .put(&format!("{}/{name}", built.prefix), bytes.clone())
347+ .await?;
351348 }
352349 if let Some(assets) = &built.assets {
353- put(
354- client,
355- bucket,
356- &format!("{}/assets.json", built.prefix),
357- assets.index.clone(),
350+ bucket
351+ .put(
352+ &format!("{}/assets.json", built.prefix),
353+ assets.index.clone(),
354+ )
355+ .await?;
356+ }
357+ bucket
358+ .put(
359+ &format!("{}/manifest.json", built.prefix),
360+ serde_json::to_vec_pretty(&built.manifest)?,
358361 )
359362 .await?;
360- }
361- put(
362- client,
363- bucket,
364- &format!("{}/manifest.json", built.prefix),
365- serde_json::to_vec_pretty(&built.manifest)?,
366- )
367- .await?;
368363 let pointer = DeployPointer {
369364 script_name: Some(built.script_name.clone()),
370365 version: built.version.clone(),
@@ -376,90 +371,44 @@
376371 // one is the sole application selector, so it moves last. A concurrent
377372 // deploy must produce a loser, not a lost write.
378373 put_pointer(
379- client,
380374 bucket,
381375 &format!("deploy/{}/current.json", built.script_name),
382376 encoded.clone(),
383377 )
384378 .await?;
385- put_pointer(client, bucket, "deploy/current.json", encoded).await?;
379+ put_pointer(bucket, "deploy/current.json", encoded).await?;
386380 Ok(())
387381 }
388382
389-async fn ensure_asset_blob(
390- client: &Client,
391- bucket: &str,
392- sha256: &str,
393- body: &[u8],
394-) -> anyhow::Result<()> {
383+async fn ensure_asset_blob(bucket: &Bucket, sha256: &str, body: &[u8]) -> anyhow::Result<()> {
395384 let key = asset_blob_key(sha256).expect("built asset digest is valid");
396- if let Ok(existing) = client.head_object().bucket(bucket).key(&key).send().await {
397- if existing.content_length().unwrap_or(-1) == body.len() as i64
398- && existing
399- .metadata()
400- .and_then(|metadata| metadata.get("sha256"))
401- .is_some_and(|value| value == sha256)
402- {
385+ if let Ok(Some((size, meta))) = bucket.head_with_meta(&key, "sha256").await {
386+ if size == body.len() as u64 && meta.as_deref() == Some(sha256) {
403387 return Ok(());
404388 }
405389 }
406- client
407- .put_object()
408- .bucket(bucket)
409- .key(&key)
410- .metadata("sha256", sha256)
411- .body(ByteStream::from(body.to_vec()))
412- .send()
390+ bucket
391+ .put_with_meta(&key, body.to_vec(), &[("sha256", sha256)])
413392 .await
414- .with_context(|| format!("write s3://{bucket}/{key}"))?;
415- Ok(())
416393 }
417394
418395 /// Compare-and-swap on a pointer: create it if absent, otherwise replace
419396 /// exactly the value we read.
420-async fn put_pointer(
421- client: &Client,
422- bucket: &str,
423- key: &str,
424- body: Vec<u8>,
425-) -> anyhow::Result<()> {
426- let existing = client
427- .head_object()
428- .bucket(bucket)
429- .key(key)
430- .send()
431- .await
432- .ok();
433- let request = client.put_object().bucket(bucket).key(key);
434- let request = match existing.as_ref().and_then(|head| head.e_tag()) {
435- Some(etag) => request.if_match(etag),
436- None => request.if_none_match("*"),
437- };
438- request
439- .body(ByteStream::from(body))
440- .send()
441- .await
442- .map_err(|error| {
443- anyhow!(
444- "write s3://{bucket}/{key}: {error}\n\
445- Another deploy may have landed first; re-run `celld deploy`."
446- )
447- })?;
448- Ok(())
397+async fn put_pointer(bucket: &Bucket, key: &str, body: Vec<u8>) -> anyhow::Result<()> {
398+ let etag = bucket.head(key).await.ok().flatten().map(|(_, etag)| etag);
399+ match bucket.put_cas(key, body, etag.as_deref()).await {
400+ Ok(Some(_)) => Ok(()),
401+ Ok(None) => Err(anyhow!(
402+ "write s3://{}/{key} lost a race\n\
403+ Another deploy may have landed first; re-run `celld deploy`.",
404+ bucket.name
405+ )),
406+ Err(error) => {
407+ Err(error.context("Another deploy may have landed first; re-run `celld deploy`."))
408+ }
409+ }
449410 }
450411
451-async fn put(client: &Client, bucket: &str, key: &str, body: Vec<u8>) -> anyhow::Result<()> {
452- client
453- .put_object()
454- .bucket(bucket)
455- .key(key)
456- .body(ByteStream::from(body))
457- .send()
458- .await
459- .with_context(|| format!("write s3://{bucket}/{key}"))?;
460- Ok(())
461-}
462-
463412 /// A path may name the config itself or the directory holding it; with no
464413 /// path at all, the working directory.
465414 fn resolve_config(given: Option<PathBuf>) -> anyhow::Result<PathBuf> {
modifiedcrates/celld/fault.rs+12−39View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Test-only SQLite fault injection: a wrapper VFS that delegates to the
24 //! process default VFS but fails writes with `SQLITE_IOERR` while the current
35 //! thread has armed the fault. Compiled only into test builds —
@@ -76,34 +78,19 @@
7678 }
7779 file_delegate!(file, xWrite, buf, amt, offset)
7880 }
79-unsafe extern "C" fn shim_truncate(
80- file: *mut ffi::sqlite3_file,
81- size: i64,
82-) -> c_int {
81+unsafe extern "C" fn shim_truncate(file: *mut ffi::sqlite3_file, size: i64) -> c_int {
8382 file_delegate!(file, xTruncate, size)
8483 }
85-unsafe extern "C" fn shim_sync(
86- file: *mut ffi::sqlite3_file,
87- flags: c_int,
88-) -> c_int {
84+unsafe extern "C" fn shim_sync(file: *mut ffi::sqlite3_file, flags: c_int) -> c_int {
8985 file_delegate!(file, xSync, flags)
9086 }
91-unsafe extern "C" fn shim_file_size(
92- file: *mut ffi::sqlite3_file,
93- size: *mut i64,
94-) -> c_int {
87+unsafe extern "C" fn shim_file_size(file: *mut ffi::sqlite3_file, size: *mut i64) -> c_int {
9588 file_delegate!(file, xFileSize, size)
9689 }
97-unsafe extern "C" fn shim_lock(
98- file: *mut ffi::sqlite3_file,
99- level: c_int,
100-) -> c_int {
90+unsafe extern "C" fn shim_lock(file: *mut ffi::sqlite3_file, level: c_int) -> c_int {
10191 file_delegate!(file, xLock, level)
10292 }
103-unsafe extern "C" fn shim_unlock(
104- file: *mut ffi::sqlite3_file,
105- level: c_int,
106-) -> c_int {
93+unsafe extern "C" fn shim_unlock(file: *mut ffi::sqlite3_file, level: c_int) -> c_int {
10794 file_delegate!(file, xUnlock, level)
10895 }
10996 unsafe extern "C" fn shim_check_reserved_lock(
@@ -122,9 +109,7 @@
122109 unsafe extern "C" fn shim_sector_size(file: *mut ffi::sqlite3_file) -> c_int {
123110 file_delegate!(file, xSectorSize)
124111 }
125-unsafe extern "C" fn shim_device_characteristics(
126- file: *mut ffi::sqlite3_file,
127-) -> c_int {
112+unsafe extern "C" fn shim_device_characteristics(file: *mut ffi::sqlite3_file) -> c_int {
128113 file_delegate!(file, xDeviceCharacteristics)
129114 }
130115 unsafe extern "C" fn shim_shm_map(
@@ -147,10 +132,7 @@
147132 unsafe extern "C" fn shim_shm_barrier(file: *mut ffi::sqlite3_file) {
148133 file_delegate!(file, xShmBarrier)
149134 }
150-unsafe extern "C" fn shim_shm_unmap(
151- file: *mut ffi::sqlite3_file,
152- delete_flag: c_int,
153-) -> c_int {
135+unsafe extern "C" fn shim_shm_unmap(file: *mut ffi::sqlite3_file, delete_flag: c_int) -> c_int {
154136 file_delegate!(file, xShmUnmap, delete_flag)
155137 }
156138 unsafe extern "C" fn shim_fetch(
@@ -240,16 +222,10 @@
240222 ) -> c_int {
241223 vfs_delegate!(vfs, xRandomness, length, out)
242224 }
243-unsafe extern "C" fn shim_sleep(
244- vfs: *mut ffi::sqlite3_vfs,
245- microseconds: c_int,
246-) -> c_int {
225+unsafe extern "C" fn shim_sleep(vfs: *mut ffi::sqlite3_vfs, microseconds: c_int) -> c_int {
247226 vfs_delegate!(vfs, xSleep, microseconds)
248227 }
249-unsafe extern "C" fn shim_current_time(
250- vfs: *mut ffi::sqlite3_vfs,
251- out: *mut f64,
252-) -> c_int {
228+unsafe extern "C" fn shim_current_time(vfs: *mut ffi::sqlite3_vfs, out: *mut f64) -> c_int {
253229 vfs_delegate!(vfs, xCurrentTime, out)
254230 }
255231 unsafe extern "C" fn shim_get_last_error(
@@ -259,10 +235,7 @@
259235 ) -> c_int {
260236 vfs_delegate!(vfs, xGetLastError, length, out)
261237 }
262-unsafe extern "C" fn shim_current_time_int64(
263- vfs: *mut ffi::sqlite3_vfs,
264- out: *mut i64,
265-) -> c_int {
238+unsafe extern "C" fn shim_current_time_int64(vfs: *mut ffi::sqlite3_vfs, out: *mut i64) -> c_int {
266239 vfs_delegate!(vfs, xCurrentTimeInt64, out)
267240 }
268241
modifiedcrates/celld/fleet.rs+104−155View file
@@ -1,106 +1,82 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Production bucket deployment adapters reused by the clean-sheet host.
24
5+use crate::bucket::Bucket;
36 use crate::deploy;
47 use crate::js::WorkerConfigOptions;
58 use crate::protocol::{DeployPointer, Manifest};
69 use anyhow::{bail, Context};
7-use aws_sdk_s3::error::SdkError;
8-use aws_sdk_s3::Client;
910 use serde::Deserialize;
1011 use std::collections::BTreeMap;
1112 use std::time::Duration;
1213 use tracing::info;
1314
14-pub async fn s3_client(endpoint: Option<&str>, region: &str) -> Client {
15- s3_client_with_credentials(endpoint, region, None).await
15+pub fn s3_client(bucket: &str, endpoint: Option<&str>, region: &str) -> anyhow::Result<Bucket> {
16+ s3_client_with_credentials(bucket, endpoint, region, None)
1617 }
1718
1819 /// Build the authority-heartbeat client on its own HTTP connection pool.
1920 ///
2021 /// Node lease traffic must not queue behind ordinary ownership, deployment,
21-/// or replica requests. The distinct application name also makes the safety
22-/// lane observable in black-box storage traces.
23-pub async fn s3_lease_client_with_credentials(
22+/// or replica requests. Every `Bucket::open` builds its own transport, so a
23+/// dedicated instance keeps the safety lane isolated, and the `celld-lease`
24+/// app tag labels it in black-box storage traces.
25+pub fn s3_lease_client_with_credentials(
26+ bucket: &str,
2427 endpoint: Option<&str>,
2528 region: &str,
2629 managed: Option<&crate::control_plane::ManagedStorageConfig>,
27-) -> Client {
28- s3_client_with_transport(endpoint, region, managed, true).await
30+) -> anyhow::Result<Bucket> {
31+ open(bucket, endpoint, region, managed, Some("celld-lease"))
2932 }
3033
31-pub async fn s3_client_with_credentials(
34+pub fn s3_client_with_credentials(
35+ bucket: &str,
3236 endpoint: Option<&str>,
3337 region: &str,
3438 managed: Option<&crate::control_plane::ManagedStorageConfig>,
35-) -> Client {
36- s3_client_with_transport(endpoint, region, managed, false).await
39+) -> anyhow::Result<Bucket> {
40+ open(bucket, endpoint, region, managed, None)
3741 }
3842
39-async fn s3_client_with_transport(
43+fn open(
44+ bucket: &str,
4045 endpoint: Option<&str>,
4146 region: &str,
4247 managed: Option<&crate::control_plane::ManagedStorageConfig>,
43- isolated_transport: bool,
44-) -> Client {
45- let timeouts = aws_config::timeout::TimeoutConfig::builder()
46- .connect_timeout(Duration::from_secs(3))
47- .read_timeout(Duration::from_secs(10))
48- .operation_attempt_timeout(Duration::from_secs(15))
49- .operation_timeout(Duration::from_secs(30))
50- .build();
51- let mut loader = aws_config::defaults(aws_config::BehaviorVersion::latest())
52- .timeout_config(timeouts)
53- .region(aws_config::Region::new(region.to_string()));
54- if isolated_transport {
55- let http_client = aws_smithy_http_client::Builder::new()
56- .tls_provider(aws_smithy_http_client::tls::Provider::Rustls(
57- aws_smithy_http_client::tls::rustls_provider::CryptoMode::AwsLc,
58- ))
59- .build_https();
60- loader = loader
61- .http_client(http_client)
62- .app_name(aws_config::AppName::new("celld-lease").expect("valid lease app name"));
63- }
64- if let Some(endpoint) = endpoint {
65- loader = loader.endpoint_url(endpoint);
66- }
67- if let Some(managed) = managed {
68- loader = loader.credentials_provider(aws_credential_types::Credentials::new(
69- managed.access_key_id.clone(),
70- managed.secret_access_key.clone(),
71- managed.session_token.clone(),
72- None,
73- "managed-installation",
74- ));
75- }
76- let shared = loader.load().await;
77- let config = aws_sdk_s3::config::Builder::from(&shared)
78- .force_path_style(endpoint.is_some())
79- .build();
80- Client::from_conf(config)
48+ app: Option<&str>,
49+) -> anyhow::Result<Bucket> {
50+ let credentials = managed.map(|managed| crate::bucket::StaticCredentials {
51+ access_key_id: managed.access_key_id.clone(),
52+ secret_access_key: managed.secret_access_key.clone(),
53+ session_token: managed.session_token.clone(),
54+ });
55+ Bucket::open(bucket, endpoint, region, credentials, app)
8156 }
8257
83-pub async fn validate_bucket(client: &Client, bucket: &str) -> anyhow::Result<()> {
84- client
85- .head_bucket()
86- .bucket(bucket)
87- .send()
58+pub async fn validate_bucket(bucket: &Bucket) -> anyhow::Result<()> {
59+ bucket
60+ .validate()
8861 .await
89- .with_context(|| format!("bucket unavailable or inaccessible: s3://{bucket}"))?;
90- Ok(())
62+ .with_context(|| format!("bucket unavailable or inaccessible: s3://{}", bucket.name))
9163 }
9264
9365 /// Validate storage issued by the Managed Control Plane and preserve the
9466 /// operator-visible failure vocabulary. Newly issued provider credentials can
9567 /// take a moment to propagate, so only the final rejection is authoritative.
96-pub async fn validate_managed_bucket(client: &Client, bucket: &str) -> anyhow::Result<()> {
68+pub async fn validate_managed_bucket(bucket: &Bucket) -> anyhow::Result<()> {
9769 const RETRIES: u32 = 5;
9870 for attempt in 1..=RETRIES {
99- match validate_managed_bucket_once(client, bucket, attempt == RETRIES).await {
71+ match validate_managed_bucket_once(bucket, attempt == RETRIES).await {
10072 Ok(()) => return Ok(()),
10173 Err(error) if attempt == RETRIES => return Err(error),
10274 Err(_) => {
103- info!(bucket, attempt, "storage credential not accepted yet; retrying");
75+ info!(
76+ bucket = %bucket.name,
77+ attempt,
78+ "storage credential not accepted yet; retrying"
79+ );
10480 tokio::time::sleep(Duration::from_millis(500 * u64::from(attempt))).await;
10581 }
10682 }
@@ -108,23 +84,23 @@
10884 unreachable!("loop returns on the final attempt")
10985 }
11086
111-async fn validate_managed_bucket_once(
112- client: &Client,
113- bucket: &str,
114- report: bool,
115-) -> anyhow::Result<()> {
116- match client.head_bucket().bucket(bucket).send().await {
117- Ok(_) => Ok(()),
118- Err(SdkError::ServiceError(error))
119- if matches!(error.raw().status().as_u16(), 401 | 403) =>
120- {
87+async fn validate_managed_bucket_once(bucket: &Bucket, report: bool) -> anyhow::Result<()> {
88+ match bucket.validate().await {
89+ Ok(()) => Ok(()),
90+ Err(error) if crate::bucket::is_unauthorized(&error) => {
12191 if report {
12292 crate::control_plane::report_managed_runtime_state(
12393 crate::control_plane::ManagedRuntimeState::CredentialRevoked,
12494 );
125- bail!("managed storage credential was rejected or revoked for s3://{bucket}");
95+ bail!(
96+ "managed storage credential was rejected or revoked for s3://{}",
97+ bucket.name
98+ );
12699 }
127- bail!("managed storage credential was not accepted yet for s3://{bucket}");
100+ bail!(
101+ "managed storage credential was not accepted yet for s3://{}",
102+ bucket.name
103+ );
128104 }
129105 Err(error) => {
130106 if report {
@@ -132,7 +108,9 @@
132108 crate::control_plane::ManagedRuntimeState::BucketUnavailable,
133109 );
134110 }
135- Err(error).with_context(|| format!("bucket unavailable or inaccessible: s3://{bucket}"))
111+ Err(error).with_context(|| {
112+ format!("bucket unavailable or inaccessible: s3://{}", bucket.name)
113+ })
136114 }
137115 }
138116 }
@@ -151,17 +129,16 @@
151129 }
152130
153131 pub async fn diagnose(
154- client: &Client,
155- bucket: &str,
132+ bucket: &Bucket,
156133 peers: Vec<String>,
157134 unsafe_public_advertise: bool,
158135 ) -> anyhow::Result<()> {
159- validate_bucket(client, bucket).await?;
160- println!("ok bucket s3://{bucket}");
136+ validate_bucket(bucket).await?;
137+ println!("ok bucket s3://{}", bucket.name);
161138
162139 let enumerated = peers.is_empty();
163140 let peers = if enumerated {
164- let peers = diagnostic_node_ids(client, bucket).await?;
141+ let peers = diagnostic_node_ids(bucket).await?;
165142 println!("ok fleet {} node lease(s) enumerated", peers.len());
166143 peers
167144 } else {
@@ -177,13 +154,13 @@
177154 .build()
178155 .context("build peer diagnostic client")?;
179156 let auth = crate::peer_auth::PeerAuth::new(
180- crate::peer_auth::load_existing(client, bucket).await?,
157+ crate::peer_auth::load_existing(bucket).await?,
181158 "diagnostic",
182159 )?;
183160 let mut failures = 0_usize;
184161 let mut expired = 0_usize;
185162 for peer in peers {
186- let node = match diagnostic_node(client, bucket, &peer).await {
163+ let node = match diagnostic_node(bucket, &peer).await {
187164 Ok(Some(node)) => node,
188165 Ok(None) if enumerated => {
189166 expired += 1;
@@ -232,6 +209,14 @@
232209 .saturating_sub(node.load.sampled_ms)
233210 .to_string()
234211 };
212+ // A 1-byte RSS is the sentinel a platform without /proc leaves behind,
213+ // not a measurement. Report it the way the load age already reports a
214+ // missing sample, so no operator reads it as a real number.
215+ let rss_bytes = if node.load.rss_bytes <= 1 {
216+ "unknown".to_string()
217+ } else {
218+ node.load.rss_bytes.to_string()
219+ };
235220 println!(
236221 "ok peer {} at {} (signed direct probe) protocol={} resident_cells={} \
237222 websockets={} rss_bytes={} cpu_percent={:.2} fds={}/{} pressured={} \
@@ -241,7 +226,7 @@
241226 node.peer_protocol,
242227 node.load.resident_cells,
243228 node.load.host_websockets,
244- node.load.rss_bytes,
229+ rss_bytes,
245230 node.load.cpu_percent_x100 as f64 / 100.0,
246231 node.load.open_fds,
247232 node.load.fd_limit,
@@ -259,14 +244,10 @@
259244 Ok(())
260245 }
261246
262-async fn diagnostic_node(
263- client: &Client,
264- bucket: &str,
265- peer: &str,
266-) -> anyhow::Result<Option<DiagnosticNode>> {
247+async fn diagnostic_node(bucket: &Bucket, peer: &str) -> anyhow::Result<Option<DiagnosticNode>> {
267248 let key = format!("nodes/{peer}.json");
268- let node: DiagnosticNode = serde_json::from_str(&get_string(client, bucket, &key).await?)
269- .with_context(|| format!("decode s3://{bucket}/{key}"))?;
249+ let node: DiagnosticNode = serde_json::from_str(&get_string(bucket, &key).await?)
250+ .with_context(|| format!("decode s3://{}/{key}", bucket.name))?;
270251 if node.node != peer {
271252 bail!(
272253 "node lease {key} identifies unexpected node {:?}",
@@ -282,31 +263,24 @@
282263 Ok(Some(node))
283264 }
284265
285-async fn diagnostic_node_ids(client: &Client, bucket: &str) -> anyhow::Result<Vec<String>> {
266+async fn diagnostic_node_ids(bucket: &Bucket) -> anyhow::Result<Vec<String>> {
286267 let mut nodes = Vec::new();
287- let mut token: Option<String> = None;
288- loop {
289- let mut request = client.list_objects_v2().bucket(bucket).prefix("nodes/");
290- if let Some(token) = &token {
291- request = request.continuation_token(token);
268+ for object in bucket
269+ .list("nodes/")
270+ .await
271+ .context("enumerate node leases")?
272+ {
273+ let Some(node) = object
274+ .location
275+ .as_ref()
276+ .strip_prefix("nodes/")
277+ .and_then(|key| key.strip_suffix(".json"))
278+ else {
279+ continue;
280+ };
281+ if !node.is_empty() {
282+ nodes.push(node.to_string());
292283 }
293- let page = request.send().await.context("enumerate node leases")?;
294- for object in page.contents() {
295- let Some(node) = object
296- .key()
297- .and_then(|key| key.strip_prefix("nodes/"))
298- .and_then(|key| key.strip_suffix(".json"))
299- else {
300- continue;
301- };
302- if !node.is_empty() {
303- nodes.push(node.to_string());
304- }
305- }
306- match page.next_continuation_token() {
307- Some(next) => token = Some(next.to_string()),
308- None => break,
309- }
310284 }
311285 nodes.sort();
312286 nodes.dedup();
@@ -349,10 +323,10 @@
349323 .or_else(|| env("AWS_REGION"))
350324 .or_else(|| env("AWS_DEFAULT_REGION"))
351325 .unwrap_or_else(|| "us-east-1".to_string());
352- let client = s3_client(options.endpoint.as_deref(), &region).await;
353- validate_bucket(&client, &bucket).await?;
326+ let store = s3_client(&bucket, options.endpoint.as_deref(), &region)?;
327+ validate_bucket(&store).await?;
354328 let started = std::time::Instant::now();
355- deploy::write(&client, &bucket, &built).await?;
329+ deploy::write(&store, &built).await?;
356330 println!(
357331 "Uploaded {} ({:.2} sec)",
358332 built.script_name,
@@ -364,61 +338,42 @@
364338 Ok(())
365339 }
366340
367-async fn get_string(client: &Client, bucket: &str, key: &str) -> anyhow::Result<String> {
368- let object = client
369- .get_object()
370- .bucket(bucket)
371- .key(key)
372- .send()
373- .await
374- .with_context(|| format!("read s3://{bucket}/{key}"))?;
375- let bytes = object
376- .body
377- .collect()
378- .await
379- .with_context(|| format!("read body s3://{bucket}/{key}"))?
380- .into_bytes();
341+async fn get_string(bucket: &Bucket, key: &str) -> anyhow::Result<String> {
342+ let (bytes, _) = bucket
343+ .get(key)
344+ .await?
345+ .with_context(|| format!("read s3://{}/{key}: no such key", bucket.name))?;
381346 String::from_utf8(bytes.to_vec()).context("deployment module is not UTF-8")
382347 }
383348
384349 pub async fn load_current_worker(
385- client: &Client,
386- bucket: &str,
350+ bucket: &Bucket,
387351 node: String,
388352 ) -> anyhow::Result<LoadedDeployment> {
389- load_worker_from_pointer(client, bucket, "deploy/current.json", node).await
353+ load_worker_from_pointer(bucket, "deploy/current.json", node).await
390354 }
391355
392356 pub async fn load_named_worker(
393- client: &Client,
394- bucket: &str,
357+ bucket: &Bucket,
395358 script: &str,
396359 node: String,
397360 ) -> anyhow::Result<LoadedDeployment> {
398- load_worker_from_pointer(
399- client,
400- bucket,
401- &format!("deploy/{script}/current.json"),
402- node,
403- )
404- .await
361+ load_worker_from_pointer(bucket, &format!("deploy/{script}/current.json"), node).await
405362 }
406363
407364 async fn load_worker_from_pointer(
408- client: &Client,
409- bucket: &str,
365+ bucket: &Bucket,
410366 pointer_key: &str,
411367 node: String,
412368 ) -> anyhow::Result<LoadedDeployment> {
413- let pointer: DeployPointer =
414- serde_json::from_str(&get_string(client, bucket, pointer_key).await?)
415- .with_context(|| format!("decode {pointer_key}"))?;
369+ let pointer: DeployPointer = serde_json::from_str(&get_string(bucket, pointer_key).await?)
370+ .with_context(|| format!("decode {pointer_key}"))?;
416371 let manifest: Manifest = serde_json::from_str(
417- &get_string(client, bucket, &format!("{}/manifest.json", pointer.prefix)).await?,
372+ &get_string(bucket, &format!("{}/manifest.json", pointer.prefix)).await?,
418373 )
419374 .context("decode deployment manifest")?;
420375 let src = match manifest.main_module.as_deref() {
421- Some(main) => get_string(client, bucket, &format!("{}/{main}", pointer.prefix)).await?,
376+ Some(main) => get_string(bucket, &format!("{}/{main}", pointer.prefix)).await?,
422377 None if manifest.assets.is_some() => {
423378 // Ingress is handled by the immutable asset resolver. Keeping a
424379 // synthetic Worker makes the runtime construction path uniform
@@ -433,12 +388,7 @@
433388 if manifest.main_module.as_deref() == Some(module.name.as_str()) {
434389 continue;
435390 }
436- let source = get_string(
437- client,
438- bucket,
439- &format!("{}/{}", pointer.prefix, module.name),
440- )
441- .await?;
391+ let source = get_string(bucket, &format!("{}/{}", pointer.prefix, module.name)).await?;
442392 text.push((format!("./{}", module.name), source));
443393 }
444394 let do_bindings = bindings(&manifest, "durable_object_namespace")
@@ -462,7 +412,6 @@
462412 let assets = match &manifest.assets {
463413 Some(reference) => Some(
464414 crate::assets::AssetResolver::load(
465- client,
466415 bucket,
467416 &pointer.prefix,
468417 reference,
modifiedcrates/celld/js.rs+36−28View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! The JS engine: rusty_v8 directly. One isolate per cell.
24 //!
35 //! This slice runs actual Durable Objects: the worker's default-export `fetch`
@@ -128,8 +130,7 @@
128130 /// has landed. Invariant: an arm the caller has OBSERVED acknowledged
129131 /// (received the response) is covered by a durable entry.
130132 pub struct ArmGate {
131- pub c: aws_sdk_s3::Client,
132- pub bucket: String,
133+ pub bucket: crate::bucket::Bucket,
133134 pub flusher: Arc<crate::wake::WakeFlusher>,
134135 }
135136 static ARM_GATE: OnceLock<ArmGate> = OnceLock::new();
@@ -139,9 +140,7 @@
139140
140141 /// Whether this node still holds a wake entry for `cell`.
141142 pub fn wake_entry_tracked(cell: &str) -> bool {
142- ARM_GATE
143- .get()
144- .is_some_and(|gate| gate.flusher.tracks(cell))
143+ ARM_GATE.get().is_some_and(|gate| gate.flusher.tracks(cell))
145144 }
146145
147146 /// Adopt the wake entry a restored alarm implies, so consuming that alarm
@@ -165,7 +164,7 @@
165164 return;
166165 };
167166 gate.flusher
168- .reconcile(&gate.c, &gate.bucket, cell, next_alarm_ms, consume_durable)
167+ .reconcile(&gate.bucket, cell, next_alarm_ms, consume_durable)
169168 .await;
170169 }
171170
@@ -207,12 +206,8 @@
207206 gate.flusher.await_no_inflight_delete(&cell_).await;
208207 let body = format!("{{\"cell\":{cell_:?},\"due_ms\":{due_ms}}}");
209208 let result = gate
210- .c
211- .put_object()
212- .bucket(&gate.bucket)
213- .key(&key)
214- .body(aws_sdk_s3::primitives::ByteStream::from(body.into_bytes()))
215- .send()
209+ .bucket
210+ .put(&key, body.into_bytes())
216211 .await
217212 .map(|_| gate.flusher.confirm_arm(&cell_, due_ms, key))
218213 .map_err(|e| format!("setAlarm wake entry: {e}"));
@@ -801,7 +796,10 @@
801796 /// sockets go straight out, as they did before the gate existed.
802797 fn ws_gate_may_hold(id: u64) -> bool {
803798 let registry = ws_registry().lock().unwrap();
804- registry.metadata.get(&id).is_some_and(|meta| meta.hibernatable)
799+ registry
800+ .metadata
801+ .get(&id)
802+ .is_some_and(|meta| meta.hibernatable)
805803 }
806804
807805 fn ws_emit(id: u64, out: WsOut) {
@@ -839,7 +837,6 @@
839837 }
840838 }
841839
842-
843840 thread_local! {
844841 // JS promise resolvers awaiting an async op, keyed by the op's id.
845842 static PROMISES: RefCell<HashMap<u64, v8::Global<v8::PromiseResolver>>> =
@@ -1284,7 +1281,10 @@
12841281 // Gate on durability only if this handler advanced the cell's
12851282 // committed-write position past where it was before the handler
12861283 // ran -- a per-request write, not celld's activation writes.
1287- response.write_position = match (writes_before, critical_scope.and_then(storage::write_position)) {
1284+ response.write_position = match (
1285+ writes_before,
1286+ critical_scope.and_then(storage::write_position),
1287+ ) {
12881288 (Some(before), Some(after)) if after > before => Some(after),
12891289 _ => None,
12901290 };
@@ -1840,17 +1840,14 @@
18401840 pub struct Engine;
18411841 impl Engine {
18421842 pub fn init() {
1843- // Load FULL, 16-byte-aligned ICU data before V8 init — the rusty_v8
1844- // prebuilt ships a reduced ICU that lacks regex property-of-strings
1845- // tables (e.g. /\p{RGI_Emoji}/v) real bundles use.
1846- //
1847- // The symbol carries V8's internal ICU major, which went 77 -> 78 with
1848- // v8 152. The data blob did not change: rusty_v8 152's
1849- // `third_party/icu/common/icudtl.dat` is byte-identical to the one
1850- // `deno_core_icudata` ships, so the crate stays.
1851- if let Err(e) = v8::icu::set_common_data_78(deno_core_icudata::ICU_DATA) {
1852- tracing::warn!(code = e, "ICU set_common_data_78 failed");
1853- }
1843+ // No `v8::icu::set_common_data_78` call: the rusty_v8 152 prebuilt
1844+ // statically links the complete ICU data (full locale tables and
1845+ // regex property-of-strings, e.g. /\p{RGI_Emoji}/v — verified
1846+ // empirically), so overriding it with an embedded icudtl.dat only
1847+ // duplicated 10.8 MB in the binary. A test pins that coverage, so a
1848+ // future v8 bump that reduces the builtin data fails rather than
1849+ // silently narrowing it; the fix would be to re-embed rusty_v8's
1850+ // `third_party/icu/common/icudtl.dat`, 16-byte-aligned.
18541851 let platform = v8::new_default_platform(0, false).make_shared();
18551852 v8::V8::initialize_platform(platform);
18561853 v8::V8::initialize();
@@ -3468,11 +3465,22 @@
34683465 mut rv: v8::ReturnValue<v8::Value>,
34693466 ) {
34703467 let cell = args.get(0).to_rust_string_lossy(scope);
3471- let position = args.get(1).to_integer(scope).map(|n| n.value() as u64).unwrap_or(0);
3468+ let position = args
3469+ .get(1)
3470+ .to_integer(scope)
3471+ .map(|n| n.value() as u64)
3472+ .unwrap_or(0);
34723473 let (tx, receive) = tokio::sync::oneshot::channel();
34733474 let sent = GATE_TX
34743475 .get()
3475- .map(|gate| gate.send(GateReq { scope: cell, position, reply: tx }).is_ok())
3476+ .map(|gate| {
3477+ gate.send(GateReq {
3478+ scope: cell,
3479+ position,
3480+ reply: tx,
3481+ })
3482+ .is_ok()
3483+ })
34763484 .unwrap_or(false);
34773485 let id = asyncrt::enqueue(async move {
34783486 if !sent {
modifiedcrates/celld/lib.rs+9−5View file
@@ -1,9 +1,17 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Effect adapters for the clean-sheet core.
24 //!
35 //! The executable owns one serial actor which is the only caller of
46 //! `celld_logic::on_event`. Adapter futures never borrow core state; they send
57 //! versioned completion events back through its mailbox.
68
9+pub mod assets;
10+pub mod asyncrt;
11+pub mod bucket;
12+pub mod control_plane;
13+pub mod dead_node_gc;
14+pub mod deploy;
715 /// Test-only SQLite fault injection, ported from celld unchanged.
816 ///
917 /// Gated to an external conformance build rather than merely `#[cfg(test)]`:
@@ -12,11 +20,6 @@
1220 /// for it.
1321 #[cfg(all(test, celld_internal_tests))]
1422 mod fault;
15-pub mod assets;
16-pub mod asyncrt;
17-pub mod control_plane;
18-pub mod dead_node_gc;
19-pub mod deploy;
2023 pub mod fleet;
2124 pub mod js;
2225 pub mod ltx_repl;
@@ -29,6 +32,7 @@
2932 pub mod startup;
3033 pub mod storage;
3134 pub mod wake;
35+pub mod ws_client;
3236
3337 #[cfg(all(test, celld_internal_tests))]
3438 mod conformance_main_tests {
modifiedcrates/celld/ltx_repl.rs+52−34View file
@@ -1,17 +1,15 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! In-process replication backend built on `celld-ltx`.
24 //!
3-//! The Litestream backend ([`crate::replication::NodeRepl`]) runs an external
4-//! process that watches a directory and answers durability over a control
5-//! socket. `LtxRepl` does the same job inside celld: one shared `object_store`
6-//! client for the whole node, and a managed `celld_ltx::Db` per resident cell
7-//! that captures the cell's committed WAL and uploads it on demand. No process,
8-//! no directory-watch lag — a just-written cell is registered the instant it
9-//! activates, so the output gate can prove a fresh cell durable with no
10-//! cold-start window. Litestream stays reachable behind `CELLD_REPLICATOR`.
5+//! One shared `object_store` client for the whole node, and a managed
6+//! `celld_ltx::Db` per resident cell that captures the cell's committed WAL
7+//! and uploads it on demand. No external process, no directory-watch lag — a
8+//! just-written cell is registered the instant it activates, so the output
9+//! gate can prove a fresh cell durable with no cold-start window.
1110 //!
12-//! The object layout mirrors the Litestream tree (`cells/<cell>/ltx/e<epoch>/`)
13-//! but the files are LTX, not Litestream generations — the two are not
14-//! interoperable, so a bucket is written by one backend or the other.
11+//! The object layout is `cells/<cell>/ltx/e<epoch>/` in the bucket, mirroring
12+//! the local `<watch>/<cell>/ltx/e<epoch>/db.sqlite` tree.
1513
1614 use std::collections::HashMap;
1715 use std::path::Path;
@@ -24,8 +22,6 @@
2422 use std::time::Duration;
2523
2624 use anyhow::anyhow;
27-use tokio::sync::Notify;
28-use tokio::sync::Semaphore;
2925 use celld_ltx::object_store::ObjectStore;
3026 use celld_ltx::replica;
3127 use celld_ltx::Db;
@@ -33,6 +29,8 @@
3329 use celld_ltx::ObjectStoreConfig;
3430 use celld_ltx::Replica;
3531 use celld_ltx::TXID;
32+use tokio::sync::Notify;
33+use tokio::sync::Semaphore;
3634 use tracing::info;
3735 use tracing::warn;
3836
@@ -70,8 +68,7 @@
7068 type CellHandle = Arc<Cell>;
7169
7270 pub struct LtxRepl {
73- /// Local root: cell dbs live at `watch/<cell>/ltx/e<epoch>/db.sqlite`, the
74- /// same layout the Litestream backend uses.
71+ /// Local root: cell dbs live at `watch/<cell>/ltx/e<epoch>/db.sqlite`.
7572 watch: PathBuf,
7673 bucket: String,
7774 endpoint: Option<String>,
@@ -137,8 +134,7 @@
137134 }
138135
139136 /// Highest epoch under `cells/<cell>/ltx/` that holds any LTX — the newest
140- /// durable copy to restore on takeover. Mirrors the Litestream backend's
141- /// `highest_nonempty_epoch`.
137+ /// durable copy to restore on takeover.
142138 async fn highest_nonempty_epoch(&self, cell: &str) -> anyhow::Result<Option<u64>> {
143139 use celld_ltx::object_store::path::Path as ObjPath;
144140 let base = ObjPath::from(format!("cells/{cell}/ltx"));
@@ -176,14 +172,13 @@
176172 epoch,
177173 fresh,
178174 took_over,
179- ..
180175 } = options;
181176 let dst = self.db_path(cell, epoch);
182177 std::fs::create_dir_all(dst.parent().unwrap())?;
183178
184179 // Reuse a preserved local hibernation snapshot when it is safe to: the
185180 // same epoch always, the previous epoch only when we did not take the
186- // cell from another node. Mirrors the Litestream backend.
181+ // cell from another node.
187182 let same_epoch = dst.with_extension("hibernated");
188183 let previous = celld_logic::restore::previous_epoch_reusable(epoch, took_over)
189184 .then(|| self.db_path(cell, epoch - 1).with_extension("hibernated"));
@@ -218,12 +213,24 @@
218213
219214 // Open the managed Db (creates a fresh WAL db when nothing was restored)
220215 // and pair it with this epoch's client. Registration is immediate: the
221- // cell can be proved durable on its very first write.
216+ // cell can be proved durable on its very first write. The just-opened
217+ // db's position is the replica's seed -- 0 for a fresh cell, the
218+ // restored max otherwise, and equal to the remote under epoch fencing --
219+ // so the first sync skips the `calc_pos` listing that otherwise storms a
220+ // rate-limiting store. On the rare decode error we leave it unseeded and
221+ // fall back to that listing.
222222 let dst_ = dst.clone();
223- let db = tokio::task::spawn_blocking(move || Db::open(&dst_))
224- .await?
225- .map_err(|error| anyhow!("open managed db {}: {error}", dst.display()))?;
226- let replica = Replica::new(db, self.client_for(cell, epoch));
223+ let (db, seed) = tokio::task::spawn_blocking(move || {
224+ let mut db = Db::open(&dst_)?;
225+ let seed = db.pos().ok();
226+ anyhow::Ok((db, seed))
227+ })
228+ .await?
229+ .map_err(|error| anyhow!("open managed db {}: {error}", dst.display()))?;
230+ let mut replica = Replica::new(db, self.client_for(cell, epoch));
231+ if let Some(pos) = seed {
232+ replica.seed_pos(pos);
233+ }
227234 self.cells.lock().unwrap().insert(
228235 (cell.to_string(), epoch),
229236 Arc::new(Cell {
@@ -238,8 +245,6 @@
238245 Ok(ActivationResult {
239246 path: dst,
240247 restored,
241- replica_discovery_us: 0,
242- restore_us: 0,
243248 })
244249 }
245250
@@ -257,7 +262,12 @@
257262 epoch: u64,
258263 position: u64,
259264 ) -> anyhow::Result<u64> {
260- let Some(handle) = self.cells.lock().unwrap().get(&(cell.to_string(), epoch)).cloned()
265+ let Some(handle) = self
266+ .cells
267+ .lock()
268+ .unwrap()
269+ .get(&(cell.to_string(), epoch))
270+ .cloned()
261271 else {
262272 anyhow::bail!("ltx cell not resident: {cell} epoch {epoch}");
263273 };
@@ -281,7 +291,12 @@
281291 /// gates (not the hot write path). Also advances the cell's durable position
282292 /// so any output-gate waiters ride it.
283293 pub async fn sync_wait(&self, cell: &str, epoch: u64, _timeout: Duration) -> SyncWait {
284- let Some(handle) = self.cells.lock().unwrap().get(&(cell.to_string(), epoch)).cloned()
294+ let Some(handle) = self
295+ .cells
296+ .lock()
297+ .unwrap()
298+ .get(&(cell.to_string(), epoch))
299+ .cloned()
285300 else {
286301 return SyncWait::Unsupported;
287302 };
@@ -296,7 +311,10 @@
296311 // A final durability pass so no acknowledged write is stranded, then
297312 // drop the managed Db (releasing the WAL) before touching the file.
298313 let _ = self.sync_wait(cell, epoch, Duration::from_secs(10)).await;
299- self.cells.lock().unwrap().remove(&(cell.to_string(), epoch));
314+ self.cells
315+ .lock()
316+ .unwrap()
317+ .remove(&(cell.to_string(), epoch));
300318 let db = self.db_path(cell, epoch);
301319 if preserve_local {
302320 let preserved = db.with_extension("hibernated");
@@ -476,11 +494,11 @@
476494 credentials: Option<&StorageCredentials>,
477495 ) -> ObjectStoreConfig {
478496 let endpoint = endpoint.unwrap_or_default().to_string();
479- // Static credentials come from the managed control plane when present, else
480- // the `AWS_*` env the node already carries for Litestream. Without this,
481- // `build_store` sees empty keys and object_store falls back to the instance
482- // credential provider, which off-EC2 sends unsigned requests (R2 answers
483- // "404 page not found").
497+ // Static credentials come from the managed control plane when present,
498+ // else the `AWS_*` env the node already carries. Without this,
499+ // `build_store` sees empty keys and object_store falls back to the
500+ // instance credential provider, which off-EC2 sends unsigned requests (R2
501+ // answers "404 page not found").
484502 let env = |key: &str| std::env::var(key).ok().filter(|value| !value.is_empty());
485503 let access_key_id = credentials
486504 .map(|c| c.access_key_id.clone())
modifiedcrates/celld/main.rs+438−361View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Runnable celld vertical slice.
24 //!
35 //! One actor serializes every event through `celld-logic`; the actor polls its
@@ -15,14 +17,11 @@
1517 };
1618 use celld::ownership_store::{now_ms, S3Ownership};
1719 use celld::peer_auth::{self, PeerAuth};
18-use celld::runtime::{
19- CohostedWorker, Replication, RuntimeFetch, RuntimeManager, RuntimeOptions,
20-};
20+use celld::runtime::{CohostedWorker, Replication, RuntimeFetch, RuntimeManager, RuntimeOptions};
2121 use celld_logic::{
22- OwnershipOnEvict,
23- on_event, CasGuard, CasOutcome, Config, Effect, Event, Failure, LeaseCasOutcome, OpId,
24- NodeLeaseMode, NodeLeaseRecord, NodeLeaseSpec, OwnerRecord, Phase, RequestError, Route, State,
25- StopCause, Timer, WebSocketKind, WorkerRoute,
22+ on_event, CasGuard, CasOutcome, Config, Effect, Event, Failure, LeaseCasOutcome, NodeLeaseMode,
23+ NodeLeaseRecord, NodeLeaseSpec, OpId, OwnerRecord, OwnershipOnEvict, Phase, RequestError,
24+ Route, State, StopCause, Timer, WebSocketKind, WorkerRoute,
2625 };
2726 use futures_util::stream::{FuturesUnordered, StreamExt};
2827 use http_body_util::combinators::UnsyncBoxBody;
@@ -172,10 +171,9 @@
172171 Self::Memory(memory) => {
173172 let mut memory = memory.lock().await;
174173 let node = memory.node.clone();
175- let releasable = memory
176- .owners
177- .get(cell)
178- .is_some_and(|owner| owner.node.as_deref() == Some(node.as_str()) && owner.epoch == epoch);
174+ let releasable = memory.owners.get(cell).is_some_and(|owner| {
175+ owner.node.as_deref() == Some(node.as_str()) && owner.epoch == epoch
176+ });
179177 if releasable {
180178 let etag = format!("e{}", memory.next_etag);
181179 memory.next_etag += 1;
@@ -258,6 +256,12 @@
258256 },
259257 ActivityFinished {
260258 request: u64,
259+ // The activity drop also observes the cell's alarm. Folded in here so a
260+ // request's completion costs the serial core one message, not two — the
261+ // hot path for every routed DO call.
262+ cell: String,
263+ alarm_at_ms: Option<i64>,
264+ alarm_covered: bool,
261265 },
262266 /// A local request whose handler advanced its cell's committed-write
263267 /// position wrote: open the output gate and hold the response until durable.
@@ -321,6 +325,9 @@
321325 route: Route,
322326 }
323327
328+// Read only by the orphaned `worker_route`; removed with the landing-cell
329+// machinery in the DO-dispatch refactor ([[designs/do-fast-path]]).
330+#[allow(dead_code)]
324331 struct WorkerRouted {
325332 request: u64,
326333 route: Option<WorkerRoute>,
@@ -366,13 +373,11 @@
366373 .runtime
367374 .as_ref()
368375 .is_some_and(|runtime| runtime.alarm_covered(&self.cell, at_ms));
369- let _ = self.tx.send(Message::AlarmObserved {
370- cell: self.cell.clone(),
371- at_ms,
372- covered,
373- });
374376 let _ = self.tx.send(Message::ActivityFinished {
375377 request: self.request,
378+ cell: self.cell.clone(),
379+ alarm_at_ms: at_ms,
380+ alarm_covered: covered,
376381 });
377382 }
378383 }
@@ -542,6 +547,13 @@
542547 receive.await.unwrap_or(Err(RequestError::NodeFenced))
543548 }
544549
550+ // Orphaned by the always-pool Worker entry below. The whole landing-cell
551+ // machinery (this, `Message::WorkerRequest`, `WorkerRouted`,
552+ // `fetch_worker_on_cell`, `CellJob::WorkerFetch`, the logic `worker_request`,
553+ // and the inline co-hosted-write gate) is removed together in the DO-dispatch
554+ // refactor ([[designs/do-fast-path]]) so the RPO=0 co-hosted path is reworked
555+ // coherently rather than unpicked here.
556+ #[allow(dead_code)]
545557 async fn worker_route(&self) -> anyhow::Result<WorkerRouted> {
546558 let (reply, receive) = oneshot::channel();
547559 self.tx
@@ -564,35 +576,17 @@
564576 .as_ref()
565577 .ok_or_else(|| anyhow::anyhow!("Worker runtime unavailable"))?;
566578 let js_request = celld::js::next_request_id();
567- let routed = self.worker_route().await?;
568- // No V8 request exists while the core is choosing a landing cell. Arm
569- // only at the dispatch boundary so dropping a pre-dispatch future does
570- // not leave an unconsumable cancellation tombstone.
579+ // The Worker entry is stateless — run it in the pool, always. Routing it
580+ // to a "landing cell" existed only to make an `env.NS.get(id)` call
581+ // resolve inline; but a cell runs one fetch at a time, so under any real
582+ // concurrency the entry can't be on the cell it calls, and the routing
583+ // round-trip is paid for nothing — on top of the DO call's own routing.
584+ // A DO call reaches its owning cell (with fencing and the output gate) on
585+ // the host path, so one routing round-trip per request, never two.
571586 let mut abort = IngressAbortGuard::new(js_request);
572- let result = match routed.route {
573- Some(route) => {
574- let activity = self.activity(routed.request, route.cell.clone());
575- runtime
576- .fetch_worker_on_cell(
577- route.cell,
578- route.epoch,
579- RuntimeFetch {
580- url,
581- method,
582- body,
583- headers,
584- request_id: Some(js_request),
585- },
586- celld::CellActivityGuard::new(move || drop(activity)),
587- )
588- .await
589- }
590- None => {
591- runtime
592- .fetch_worker_pool(url, method, body, headers, js_request)
593- .await
594- }
595- };
587+ let result = runtime
588+ .fetch_worker_pool(url, method, body, headers, js_request)
589+ .await;
596590 abort.disarm();
597591 result
598592 }
@@ -1084,9 +1078,15 @@
10841078 // The handler wrote: open a barrier holding these frames and
10851079 // gate on durability. A later `ReleaseResponse` settles it.
10861080 Some(position) => {
1087- self.ws_gates.entry(scope.clone()).or_default().barriers.push_back(
1088- WsBarrier { request, settled: None, frames },
1089- );
1081+ self.ws_gates
1082+ .entry(scope.clone())
1083+ .or_default()
1084+ .barriers
1085+ .push_back(WsBarrier {
1086+ request,
1087+ settled: None,
1088+ frames,
1089+ });
10901090 self.ws_gated.insert(request, scope);
10911091 self.drive(Event::Wrote { request, position }, in_flight);
10921092 }
@@ -1101,7 +1101,37 @@
11011101 }
11021102 let _ = reply.send(());
11031103 }
1104- Message::ActivityFinished { request } => {
1104+ Message::ActivityFinished {
1105+ request,
1106+ cell,
1107+ alarm_at_ms,
1108+ alarm_covered,
1109+ } => {
1110+ // Folded from the old AlarmObserved-then-ActivityFinished pair the
1111+ // activity drop sent: observe the alarm and release any retired
1112+ // durability waiters, then finish the activity — same events, same
1113+ // order, one message instead of two.
1114+ let retired_durability = match self.state.phase(&cell) {
1115+ Some(Phase::EnsuringDurability { op, .. }) => Some(*op),
1116+ _ => None,
1117+ };
1118+ self.drive(
1119+ Event::AlarmObserved {
1120+ cell,
1121+ at_ms: alarm_at_ms,
1122+ covered: alarm_covered,
1123+ now_ms: now_ms(),
1124+ now_mono_ms: self.started_at.elapsed().as_millis() as u64,
1125+ },
1126+ in_flight,
1127+ );
1128+ if let Some(op) = retired_durability {
1129+ if let Some((_, waiters)) = self.durability_waiters.remove(&op) {
1130+ for waiter in waiters {
1131+ let _ = waiter.send(());
1132+ }
1133+ }
1134+ }
11051135 self.drive(Event::ActivityFinished { request }, in_flight);
11061136 }
11071137 Message::WebSocketOpened {
@@ -1238,7 +1268,11 @@
12381268 if gate.barriers.iter().any(|b| b.settled == Some(false)) {
12391269 true
12401270 } else {
1241- while gate.barriers.front().is_some_and(|b| b.settled == Some(true)) {
1271+ while gate
1272+ .barriers
1273+ .front()
1274+ .is_some_and(|b| b.settled == Some(true))
1275+ {
12421276 flush.push(gate.barriers.pop_front().unwrap().frames);
12431277 }
12441278 false
@@ -1253,7 +1287,11 @@
12531287 for frames in flush {
12541288 celld::js::ws_emit_batch(frames);
12551289 }
1256- if self.ws_gates.get(&scope).is_some_and(|g| g.barriers.is_empty()) {
1290+ if self
1291+ .ws_gates
1292+ .get(&scope)
1293+ .is_some_and(|g| g.barriers.is_empty())
1294+ {
12571295 self.ws_gates.remove(&scope);
12581296 }
12591297 }
@@ -1460,9 +1498,7 @@
14601498 // cell moves. Gating the CONSUME side on tracking is
14611499 // what keeps alarm-less cells op-quiescent: untracked
14621500 // with no alarm, there is nothing to delete.
1463- if next_alarm_ms >= 0
1464- || celld::js::wake_entry_tracked(&cell)
1465- {
1501+ if next_alarm_ms >= 0 || celld::js::wake_entry_tracked(&cell) {
14661502 let epoch = runtime.published_epoch(&cell).unwrap_or(1);
14671503 tokio::spawn(async move {
14681504 // Only a consumed alarm needs the replication
@@ -1470,14 +1506,10 @@
14701506 // Removing the hint while the commit that consumed
14711507 // the alarm is still local would lose both the
14721508 // alarm and the record that could revive it.
1473- let consume_durable = next_alarm_ms >= 0
1474- || !runtime.sync_refused(&cell, epoch).await;
1475- celld::js::reconcile_wake_entry(
1476- &cell,
1477- next_alarm_ms,
1478- consume_durable,
1479- )
1480- .await;
1509+ let consume_durable =
1510+ next_alarm_ms >= 0 || !runtime.sync_refused(&cell, epoch).await;
1511+ celld::js::reconcile_wake_entry(&cell, next_alarm_ms, consume_durable)
1512+ .await;
14811513 });
14821514 }
14831515 }
@@ -1514,7 +1546,10 @@
15141546 });
15151547 immediate.push_back(Event::RestoreCompleted {
15161548 op,
1517- result: Ok(celld_logic::RestoreOutcome { restored: false, alarm: None }),
1549+ result: Ok(celld_logic::RestoreOutcome {
1550+ restored: false,
1551+ alarm: None,
1552+ }),
15181553 });
15191554 }
15201555 }
@@ -1625,7 +1660,10 @@
16251660 CompletedEffect::plain(Event::DurableReached { op, result })
16261661 }));
16271662 } else {
1628- immediate.push_back(Event::DurableReached { op, result: Ok(position) });
1663+ immediate.push_back(Event::DurableReached {
1664+ op,
1665+ result: Ok(position),
1666+ });
16291667 }
16301668 }
16311669 Effect::ReleaseResponse { request, result } => {
@@ -1836,7 +1874,8 @@
18361874 .saturating_add(started.elapsed().as_micros() as u64);
18371875 }
18381876 let (owner_node, epoch) = owner.unwrap_or(("", 0));
1839- tracing::info!(
1877+ tracing::debug!(
1878+ target: "timing",
18401879 event = "cell_route_timing",
18411880 outcome,
18421881 failure_phase,
@@ -2080,7 +2119,8 @@
20802119 .runtime
20812120 .as_ref()
20822121 .map_or(("", ""), |runtime| (runtime.node(), runtime.region()));
2083- tracing::info!(
2122+ tracing::debug!(
2123+ target: "timing",
20842124 event = "websocket_route_timing",
20852125 outcome,
20862126 route,
@@ -2224,9 +2264,7 @@
22242264 Ok(response) => match response.write_position.filter(|_| app.output_gate) {
22252265 Some(position) => match app.gate_write(request, position).await {
22262266 Ok(()) => Ok(response),
2227- Err(error) => {
2228- Err(anyhow::Error::new(RoutedRequestError(error)))
2229- }
2267+ Err(error) => Err(anyhow::Error::new(RoutedRequestError(error))),
22302268 },
22312269 None => Ok(response),
22322270 },
@@ -2278,11 +2316,8 @@
22782316 &encoded,
22792317 &node,
22802318 )?;
2281- let response = request
2282- .body(encoded)
2283- .send()
2284- .await
2285- .map_err(|error| {
2319+ let response =
2320+ request.body(encoded).send().await.map_err(|error| {
22862321 owner_unreachable(&scope, &addr, anyhow::Error::new(error))
22872322 })?;
22882323 peer_auth::validate_response(response.headers())?;
@@ -2314,12 +2349,6 @@
23142349 } else {
23152350 response.status().as_u16()
23162351 };
2317- // The owner says whether it streamed. Only a streamed body may
2318- // be handed on unread.
2319- let streamed = response
2320- .headers()
2321- .get("x-celld-body-stream")
2322- .is_some_and(|value| value == "1");
23232352 let headers = response
23242353 .headers()
23252354 .iter()
@@ -2336,21 +2365,20 @@
23362365 .collect();
23372366 let (body, stream) = if websocket.is_some() {
23382367 (Vec::new(), None)
2339- } else if streamed {
2340- (Vec::new(), Some(celld::js::reqwest_response_stream(response)))
23412368 } else {
2342- // A body that fails mid-read is a truncated response, not
2343- // an empty one. Reading it here is what tells those apart:
2344- // handing the caller a 200 with no content leaves it no way
2345- // to know the difference from a cell that returned nothing,
2346- // which is silent corruption on the ordinary proxy path.
2347- // The owner already ran the request, so the failure is
2348- // ambiguous -- it must surface, and classify_remote_attempt
2349- // must never redispatch it.
2350- let bytes = response.bytes().await.map_err(|error| {
2351- owner_unreachable(&scope, &addr, anyhow::Error::new(error))
2352- })?;
2353- (bytes.to_vec(), None)
2369+ // Every proxied body streams through, marked or not. The
2370+ // owner already ran the request, so a failure mid-body is
2371+ // ambiguous and must surface without a redispatch -- and
2372+ // streaming makes that structural: the 200 head has gone
2373+ // out before the failure is known, a chunk error aborts
2374+ // the client's read instead of ending it cleanly, and
2375+ // nothing upstream of a sent head can re-send. Buffering
2376+ // here was the old shape; it turned a truncated body into
2377+ // a whole-response failure after the owner had committed.
2378+ (
2379+ Vec::new(),
2380+ Some(celld::js::reqwest_response_stream(response)),
2381+ )
23542382 };
23552383 Ok(HttpResponse {
23562384 status,
@@ -2541,13 +2569,38 @@
25412569 })
25422570 .collect();
25432571 Ok((
2544- format!("http://celld.local{}", parts.uri),
2572+ request_url(&parts),
25452573 parts.method.to_string(),
25462574 body.to_bytes().to_vec(),
25472575 headers,
25482576 ))
25492577 }
25502578
2579+/// `request.url` must name the URL the client asked for, because applications
2580+/// route on its hostname and build absolute redirects from it. Cloudflare
2581+/// reports the real scheme and host, so celld reads the same sources: the
2582+/// absolute-form URI, then the pair an ingress proxy forwards, then Host.
2583+/// `celld.local` remains the fallback for a request that carries none of them.
2584+fn request_url(parts: &hyper::http::request::Parts) -> String {
2585+ if parts.uri.authority().is_some() {
2586+ return parts.uri.to_string();
2587+ }
2588+ let first = |name| {
2589+ parts
2590+ .headers
2591+ .get(name)
2592+ .and_then(|value| value.to_str().ok())
2593+ .and_then(|value| value.split(',').next())
2594+ .map(str::trim)
2595+ .filter(|value| !value.is_empty())
2596+ };
2597+ let host = first("x-forwarded-host")
2598+ .or_else(|| first("host"))
2599+ .unwrap_or("celld.local");
2600+ let scheme = first("x-forwarded-proto").unwrap_or("http");
2601+ format!("{scheme}://{host}{}", parts.uri)
2602+}
2603+
25512604 async fn internal_do(request: Request<Incoming>, app: AppHandle, scope: String) -> HttpReply {
25522605 let method = request.method().clone();
25532606 let path_and_query = request
@@ -2666,6 +2719,23 @@
26662719 {
26672720 Ok(worker_response) => {
26682721 abort.request_id = None;
2722+ // Output gate (RPO=0): a peer-served handler that advanced
2723+ // the cell's committed position holds its reply until the
2724+ // cell is proven durable, exactly as the local dispatch
2725+ // path does. This path used to acknowledge unproven writes
2726+ // — the loss the takeover tests catch. The activity guard
2727+ // is still alive, so the request stays pinned across the
2728+ // wait.
2729+ if let Some(position) =
2730+ worker_response.write_position.filter(|_| app.output_gate)
2731+ {
2732+ if let Err(error) = app.gate_write(request, position).await {
2733+ return peer_response(response(
2734+ StatusCode::INTERNAL_SERVER_ERROR,
2735+ format!("durability unproven: {error:?}"),
2736+ ));
2737+ }
2738+ }
26692739 if let Some(target) = &worker_response.ws {
26702740 let kind = if celld::js::ws_hibernatable(target.id).unwrap_or(false) {
26712741 WebSocketKind::Hibernatable
@@ -2942,8 +3012,13 @@
29423012 if !app.output_gate {
29433013 celld::js::ws_emit_batch(dispatch.frames);
29443014 } else if !dispatch.frames.is_empty() || dispatch.write_position.is_some() {
2945- app.ws_output(request, scope.to_string(), dispatch.frames, dispatch.write_position)
2946- .await;
3015+ app.ws_output(
3016+ request,
3017+ scope.to_string(),
3018+ dispatch.frames,
3019+ dispatch.write_position,
3020+ )
3021+ .await;
29473022 }
29483023 drop(activity);
29493024 Ok(())
@@ -3063,12 +3138,8 @@
30633138 app: AppHandle,
30643139 request: celld::js::OutboundWsReq,
30653140 ) -> anyhow::Result<()> {
3066- use futures_util::{SinkExt, StreamExt as _};
3067- use tokio_tungstenite::tungstenite::client::IntoClientRequest;
3068- use tokio_tungstenite::tungstenite::http::header::{HeaderValue, SEC_WEBSOCKET_PROTOCOL};
3069- use tokio_tungstenite::tungstenite::protocol::frame::coding::CloseCode;
3070- use tokio_tungstenite::tungstenite::protocol::CloseFrame;
3071- use tokio_tungstenite::tungstenite::Message as WsMessage;
3141+ use fastwebsockets::OpCode;
3142+ use hyper::header::{HeaderMap, HeaderName, HeaderValue, SEC_WEBSOCKET_PROTOCOL};
30723143
30733144 let celld::js::OutboundWsReq {
30743145 scope,
@@ -3087,9 +3158,7 @@
30873158 scope: scope.clone(),
30883159 },
30893160 };
3090- let mut handshake = url
3091- .into_client_request()
3092- .context("build outbound WebSocket request")?;
3161+ let mut handshake = HeaderMap::new();
30933162 for (name, value) in &headers {
30943163 if matches!(
30953164 name.to_ascii_lowercase().as_str(),
@@ -3103,30 +3172,29 @@
31033172 continue;
31043173 }
31053174 let (Ok(name), Ok(value)) = (
3106- tokio_tungstenite::tungstenite::http::header::HeaderName::from_bytes(name.as_bytes()),
3175+ HeaderName::from_bytes(name.as_bytes()),
31073176 HeaderValue::from_str(value),
31083177 ) else {
31093178 continue;
31103179 };
3111- handshake.headers_mut().insert(name, value);
3180+ handshake.insert(name, value);
31123181 }
31133182 if !protocols.is_empty() {
3114- handshake.headers_mut().insert(
3183+ handshake.insert(
31153184 SEC_WEBSOCKET_PROTOCOL,
31163185 HeaderValue::from_str(&protocols.join(", "))
31173186 .context("invalid WebSocket subprotocol")?,
31183187 );
31193188 }
31203189 let timeout = std::time::Duration::from_secs(10);
3121- let connected =
3122- tokio::time::timeout(timeout, tokio_tungstenite::connect_async(handshake)).await;
3123- let (mut socket, response) = match connected {
3124- Ok(Ok(value)) => value,
3125- Ok(Err(tokio_tungstenite::tungstenite::Error::Http(http))) if want_response => {
3190+ let connected = tokio::time::timeout(timeout, celld::ws_client::connect(&url, handshake)).await;
3191+ let connection = match connected {
3192+ Ok(Ok(connection)) => connection,
3193+ Ok(Err(celld::ws_client::Error::Declined(declined))) if want_response => {
31263194 let declined = celld::js::DeclinedUpgrade {
3127- status: http.status().as_u16(),
3128- headers: http
3129- .headers()
3195+ status: declined.status.as_u16(),
3196+ headers: declined
3197+ .headers
31303198 .iter()
31313199 .map(|(name, value)| {
31323200 (
@@ -3135,7 +3203,7 @@
31353203 )
31363204 })
31373205 .collect(),
3138- body: http.body().clone().unwrap_or_default(),
3206+ body: declined.body,
31393207 };
31403208 let _ = reply.send(Ok(celld::js::OutboundWsOpen {
31413209 protocol: None,
@@ -3144,7 +3212,7 @@
31443212 return Ok(());
31453213 }
31463214 Ok(Err(error)) => {
3147- let _ = reply.send(Err(anyhow::anyhow!(error)));
3215+ let _ = reply.send(Err(anyhow::anyhow!("{error}")));
31483216 return Ok(());
31493217 }
31503218 Err(_) => {
@@ -3155,8 +3223,9 @@
31553223 return Ok(());
31563224 }
31573225 };
3158- let protocol = response
3159- .headers()
3226+ let mut socket = fastwebsockets::FragmentCollector::new(connection.socket);
3227+ let protocol = connection
3228+ .headers
31603229 .get(SEC_WEBSOCKET_PROTOCOL)
31613230 .and_then(|value| value.to_str().ok())
31623231 .map(str::to_string);
@@ -3200,46 +3269,35 @@
32003269 let mut close = (1006, String::new(), false);
32013270 loop {
32023271 tokio::select! {
3203- incoming = socket.next() => match incoming {
3204- Some(Ok(WsMessage::Text(text))) => {
3205- if sink.message(id, celld::js::WsIn::Text(text.to_string())).await.is_err() {
3272+ // Ping is answered by the collector's auto-pong, as the previous
3273+ // client library also did unprompted.
3274+ incoming = socket.read_frame() => {
3275+ let Ok(frame) = incoming else { break };
3276+ let delivered = match frame.opcode {
3277+ OpCode::Text => sink.message(
3278+ id,
3279+ celld::js::WsIn::Text(
3280+ String::from_utf8_lossy(&frame.payload).into_owned(),
3281+ ),
3282+ ).await,
3283+ OpCode::Binary => sink.message(
3284+ id,
3285+ celld::js::WsIn::Binary(frame.payload.to_vec()),
3286+ ).await,
3287+ OpCode::Close => {
3288+ close = websocket_close_details(&frame.payload);
32063289 break;
32073290 }
3291+ _ => Ok(()),
3292+ };
3293+ if delivered.is_err() { break; }
3294+ }
3295+ output = outputs.recv() => {
3296+ let Some(output) = output else { break };
3297+ if let celld::js::WsOut::Close(code, reason) = &output {
3298+ close = (*code, reason.clone(), true);
32083299 }
3209- Some(Ok(WsMessage::Binary(bytes))) => {
3210- if sink.message(id, celld::js::WsIn::Binary(bytes.to_vec())).await.is_err() {
3211- break;
3212- }
3213- }
3214- Some(Ok(WsMessage::Ping(payload))) => {
3215- if socket.send(WsMessage::Pong(payload)).await.is_err() { break; }
3216- }
3217- Some(Ok(WsMessage::Close(frame))) => {
3218- close = frame
3219- .map(|frame| (u16::from(frame.code), frame.reason.to_string(), true))
3220- .unwrap_or((1005, String::new(), true));
3221- break;
3222- }
3223- Some(Ok(_)) => {}
3224- Some(Err(_)) | None => break,
3225- },
3226- output = outputs.recv() => match output {
3227- Some(celld::js::WsOut::Text(text)) => {
3228- if socket.send(WsMessage::Text(text.into())).await.is_err() { break; }
3229- }
3230- Some(celld::js::WsOut::Binary(bytes)) => {
3231- if socket.send(WsMessage::Binary(bytes.into())).await.is_err() { break; }
3232- }
3233- Some(celld::js::WsOut::Close(code, reason)) => {
3234- let frame = CloseFrame {
3235- code: CloseCode::from(code),
3236- reason: reason.clone().into(),
3237- };
3238- let _ = socket.send(WsMessage::Close(Some(frame))).await;
3239- close = (code, reason, true);
3240- break;
3241- }
3242- None => break,
3300+ if !write_ws_out(&mut socket, output).await { break; }
32433301 }
32443302 }
32453303 }
@@ -3271,10 +3329,7 @@
32713329 S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Unpin,
32723330 {
32733331 use fastwebsockets::Frame;
3274- let keep_open = matches!(
3275- out,
3276- celld::js::WsOut::Text(_) | celld::js::WsOut::Binary(_)
3277- );
3332+ let keep_open = matches!(out, celld::js::WsOut::Text(_) | celld::js::WsOut::Binary(_));
32783333 let frame = match out {
32793334 celld::js::WsOut::Text(text) => Frame::text(text.into_bytes().into()),
32803335 celld::js::WsOut::Binary(data) => Frame::binary(data.into()),
@@ -3355,16 +3410,10 @@
33553410 break;
33563411 }
33573412 }
3358- if let Some(code) = celld_logic::schedule::websocket_echo_close(
3359- close.0,
3360- close.2,
3361- handler_sent_close,
3362- ) {
3363- let _ = write_ws_out(
3364- &mut socket,
3365- celld::js::WsOut::Close(code, close.1),
3366- )
3367- .await;
3413+ if let Some(code) =
3414+ celld_logic::schedule::websocket_echo_close(close.0, close.2, handler_sent_close)
3415+ {
3416+ let _ = write_ws_out(&mut socket, celld::js::WsOut::Close(code, close.1)).await;
33683417 }
33693418 app.websocket_closed(target.scope.clone(), target.id);
33703419 celld::js::ws_unregister(target.id);
@@ -3379,11 +3428,6 @@
33793428 S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Unpin,
33803429 {
33813430 use fastwebsockets::{FragmentCollector, Frame as WsFrame, OpCode};
3382- use futures_util::{SinkExt, StreamExt as _};
3383- use tokio_tungstenite::tungstenite::client::IntoClientRequest;
3384- use tokio_tungstenite::tungstenite::protocol::frame::coding::CloseCode;
3385- use tokio_tungstenite::tungstenite::protocol::CloseFrame;
3386- use tokio_tungstenite::tungstenite::Message as WsMessage;
33873431
33883432 let mut node = target
33893433 .peer_node
@@ -3397,22 +3441,17 @@
33973441 .peer_epoch
33983442 .context("remote WebSocket target has no owner epoch")?;
33993443 let mut dispatcher = celld_logic::routing::Dispatcher::default();
3400- let peer = loop {
3444+ let mut peer = loop {
34013445 let path = format!("/__ws/{}?id={}&epoch={epoch}", target.scope, target.id);
3402- let mut request = format!("ws://{addr}{path}")
3403- .into_client_request()
3404- .context("build peer WebSocket request")?;
3405- request
3406- .headers_mut()
3407- .extend(app.peer_auth.signed_headers("GET", &path, &[], &node)?);
3408- match tokio_tungstenite::connect_async(request).await {
3409- Ok((peer, response)) => {
3410- peer_auth::validate_response(response.headers())?;
3411- break peer;
3446+ let signed = app.peer_auth.signed_headers("GET", &path, &[], &node)?;
3447+ match celld::ws_client::connect(&format!("ws://{addr}{path}"), signed).await {
3448+ Ok(peer) => {
3449+ peer_auth::validate_response(&peer.headers)?;
3450+ break peer.socket;
34123451 }
3413- Err(tokio_tungstenite::tungstenite::Error::Http(response))
3414- if response
3415- .headers()
3452+ Err(celld::ws_client::Error::Declined(declined))
3453+ if declined
3454+ .headers
34163455 .get(STALE_ROUTE_HEADER)
34173456 .is_some_and(|value| value == STALE_ROUTE_VALUE) =>
34183457 {
@@ -3451,38 +3490,34 @@
34513490 }
34523491 }
34533492 Err(error) => {
3454- return Err(error)
3493+ return Err(anyhow::anyhow!("{error}"))
34553494 .with_context(|| format!("connect WebSocket tunnel to peer {node} at {addr}"));
34563495 }
34573496 }
34583497 };
34593498
3499+ // Both halves speak the same implementation, so a frame crosses the hop
3500+ // as itself. The one rewrite left is the close code: 1005 means "no code
3501+ // was sent" and is not transmissible, so it becomes a plain 1000.
34603502 client.set_auto_close(false);
3503+ peer.set_auto_close(false);
34613504 let mut client = FragmentCollector::new(client);
3462- let (mut peer_write, mut peer_read) = peer.split();
3505+ let mut peer = FragmentCollector::new(peer);
34633506 let mut client_open = true;
34643507 loop {
34653508 tokio::select! {
34663509 frame = client.read_frame(), if client_open => {
34673510 let frame = frame.context("read client WebSocket frame")?;
3468- let message = match frame.opcode {
3469- OpCode::Text => WsMessage::Text(
3470- String::from_utf8_lossy(&frame.payload).into_owned().into(),
3471- ),
3472- OpCode::Binary => WsMessage::Binary(frame.payload.to_vec().into()),
3473- OpCode::Ping => WsMessage::Ping(frame.payload.to_vec().into()),
3474- OpCode::Pong => WsMessage::Pong(frame.payload.to_vec().into()),
3511+ let frame = match frame.opcode {
3512+ OpCode::Text | OpCode::Binary | OpCode::Ping | OpCode::Pong => frame,
34753513 OpCode::Close => {
3476- let (code, reason, _) = websocket_close_details(&frame.payload);
34773514 client_open = false;
3478- WsMessage::Close(Some(CloseFrame {
3479- code: CloseCode::from(if code == 1005 { 1000 } else { code }),
3480- reason: reason.into(),
3481- }))
3515+ let (code, reason, _) = websocket_close_details(&frame.payload);
3516+ WsFrame::close(if code == 1005 { 1000 } else { code }, reason.as_bytes())
34823517 }
34833518 _ => continue,
34843519 };
3485- if peer_write.send(message).await.is_err() {
3520+ if peer.write_frame(frame).await.is_err() {
34863521 if client_open {
34873522 let _ = client
34883523 .write_frame(WsFrame::close(1012, b"owner unavailable"))
@@ -3491,50 +3526,31 @@
34913526 break;
34923527 }
34933528 }
3494- message = peer_read.next() => {
3495- let message = match message {
3496- Some(Ok(message)) => message,
3497- Some(Err(error)) => {
3529+ frame = peer.read_frame() => {
3530+ let frame = match frame {
3531+ Ok(frame) => frame,
3532+ Err(error) => {
34983533 if client_open {
34993534 let _ = client
35003535 .write_frame(WsFrame::close(1012, b"owner unavailable"))
35013536 .await;
35023537 }
3503- return Err(error).context("read owner WebSocket frame");
3538+ return Err(anyhow::anyhow!("{error}"))
3539+ .context("read owner WebSocket frame");
35043540 }
3505- None => {
3506- if client_open {
3507- let _ = client
3508- .write_frame(WsFrame::close(1012, b"owner unavailable"))
3509- .await;
3510- }
3511- break;
3512- }
35133541 };
3514- let (frame, keep_open) = match message {
3515- WsMessage::Text(text) => (WsFrame::text(text.as_bytes().to_vec().into()), true),
3516- WsMessage::Binary(bytes) => (WsFrame::binary(bytes.to_vec().into()), true),
3517- WsMessage::Ping(bytes) => (
3518- WsFrame::new(true, OpCode::Ping, None, bytes.to_vec().into()),
3519- true,
3520- ),
3521- WsMessage::Pong(bytes) => (
3522- WsFrame::new(true, OpCode::Pong, None, bytes.to_vec().into()),
3523- true,
3524- ),
3525- WsMessage::Close(frame) => {
3526- let (code, reason) = frame
3527- .map(|frame| (u16::from(frame.code), frame.reason.to_string()))
3528- .unwrap_or((1000, String::new()));
3529- (WsFrame::close(code, reason.as_bytes()), false)
3530- }
3531- WsMessage::Frame(_) => continue,
3542+ let closing = frame.opcode == OpCode::Close;
3543+ let frame = if closing {
3544+ let (code, reason, _) = websocket_close_details(&frame.payload);
3545+ WsFrame::close(if code == 1005 { 1000 } else { code }, reason.as_bytes())
3546+ } else {
3547+ frame
35323548 };
35333549 client
35343550 .write_frame(frame)
35353551 .await
35363552 .context("write client WebSocket frame")?;
3537- if !keep_open {
3553+ if closing {
35383554 break;
35393555 }
35403556 }
@@ -3767,7 +3783,8 @@
37673783 scope,
37683784 status,
37693785 } = event_outcome;
3770- tracing::info!(
3786+ tracing::debug!(
3787+ target: "timing",
37713788 event = "websocket_connection_timing",
37723789 outcome,
37733790 route,
@@ -4253,19 +4270,16 @@
42534270
42544271 fn print_help() {
42554272 println!(
4256- r#"celld — deterministic celld successor
4273+ r#"celld — self-hosted, distributed Durable Objects
42574274
42584275 USAGE:
42594276 celld --bucket s3://NAME [OPTIONS]
4260- celld --control-plane [OPTIONS]
42614277 celld deploy [PROJECT] --bucket s3://NAME [OPTIONS]
42624278 celld diagnose --bucket s3://NAME [OPTIONS] [--peer NODE_ID]...
4263- celld connect [OPTIONS]
42644279
42654280 Production install: celld --bucket s3://NAME [OPTIONS]
42664281
42674282 OPTIONS:
4268- --control-plane Use an enrolled installation
42694283 --bucket s3://NAME Fleet bucket; uses the standard AWS credential chain
42704284 --endpoint URL Optional S3-compatible endpoint
42714285 --region REGION Storage region (default: AWS_REGION or us-east-1)
@@ -4288,8 +4302,8 @@
42884302 CELLD_ADVERTISE Peer-reachable address; same as --advertise
42894303 CELLD_UNSAFE_PUBLIC_ADVERTISE `on` permits a literal public peer IP
42904304 CELLD_NODE Node-session ID (default: generated)
4291- CELLD_WATCH Local SQLite/Litestream working directory
4292- LITESTREAM_BIN, CELLD_ESBUILD Override helper executable paths
4305+ CELLD_WATCH Local SQLite/replication working directory
4306+ CELLD_ESBUILD Override esbuild executable path
42934307 CELLD_WORKERS Stateless Worker pool size
42944308 CELLD_ACTIVATIONS Concurrent cold activations
42954309 CELLD_HIBERNATIONS Concurrent evictions (default: 4)
@@ -4302,18 +4316,17 @@
43024316 CELLD_TTL_MS Node lease lifetime (default: 10000)
43034317 CELLD_IDLE_EVICT_S Idle-cell eviction age (default: 300)
43044318 CELLD_LOCAL_CACHE_MAX_BYTES Hibernated SQLite cache limit (default: 2 GiB; 0 disables)
4305- CELLD_MAX_RESIDENT_CELLS Enable resident-cell pressure shedding
4306- CELLD_RESIDENT_LOW_WATER Resident recovery target
4319+ CELLD_MAX_RESIDENT_CELLS Resident-cell hard cap, enforced at admission
4320+ CELLD_RESIDENT_LOW_WATER Deprecated and ignored
43074321 CELLD_PRESSURE_OWNERSHIP release to rebalance, sticky to cache locally
4308- CELLD_MAX_RSS_MB Linux RSS pressure threshold
4309- CELLD_MAX_CPU_PERCENT Linux CPU pressure threshold
4322+ CELLD_MAX_RSS_MB RSS shed threshold (default: 80% of memory; 0 disables)
4323+ CELLD_MAX_CPU_PERCENT CPU pressure-shedding threshold
43104324 CELLD_ALARM_RESIDENT_MS Near-alarm residency window
43114325 CELLD_WAKER_TICK_MS Orphan-alarm scan interval
43124326 CELLD_V8_HEAP_LIMIT_MB Per-isolate V8 heap limit
43134327 CELLD_FETCH_TIMEOUT_S Outbound fetch timeout
43144328 CELLD_HANDLER_BUDGET_S JavaScript handler budget
43154329 CELLD_TOKIO_THREADS Tokio runtime worker threads
4316- GOMEMLIMIT Litestream Go heap limit
43174330 RUST_LOG Runtime log filter (default: info)
43184331
43194332 EXPERIMENTAL:
@@ -4349,10 +4362,7 @@
43494362 const LOCAL_CACHE_PRUNE_PERIOD: std::time::Duration = std::time::Duration::from_secs(60);
43504363
43514364 fn main() -> anyhow::Result<()> {
4352- if celld::replication::is_litestream_supervisor_invocation() {
4353- return celld::replication::run_litestream_supervisor();
4354- }
4355- rustls::crypto::aws_lc_rs::default_provider()
4365+ rustls::crypto::ring::default_provider()
43564366 .install_default()
43574367 .ok();
43584368 let mut builder = tokio::runtime::Builder::new_multi_thread();
@@ -4371,8 +4381,7 @@
43714381 celld::asyncrt::set_host_handle(tokio::runtime::Handle::current());
43724382 tracing_subscriber::fmt()
43734383 .with_env_filter(
4374- tracing_subscriber::EnvFilter::try_from_default_env()
4375- .unwrap_or_else(|_| "info".into()),
4384+ tracing_subscriber::EnvFilter::try_from_default_env().unwrap_or_else(|_| "info".into()),
43764385 )
43774386 .init();
43784387 let mut settings = match action_from_process()? {
@@ -4412,8 +4421,13 @@
44124421 unsafe_public_advertise: settings.unsafe_public_advertise,
44134422 })
44144423 .await?;
4415- println!("ok listen {}", bound.listen);
4424+ // The bind proves the address is free; diagnose never serves on it,
4425+ // and an operator should not read this line as a running listener.
44164426 println!(
4427+ "ok listen {} (bind check; diagnose does not serve)",
4428+ bound.listen
4429+ );
4430+ println!(
44174431 "ok advertise {} ({}; direct reachability is not inferred)",
44184432 bound.advertise,
44194433 bound.advertise.scope()
@@ -4442,13 +4456,12 @@
44424456 .bucket
44434457 .ok_or_else(|| anyhow::anyhow!("celld diagnose requires --bucket"))?;
44444458 let client = fleet::s3_client_with_credentials(
4459+ &bucket,
44454460 settings.endpoint.as_deref(),
44464461 &settings.region,
44474462 managed_storage.as_ref(),
4448- )
4449- .await;
4450- return fleet::diagnose(&client, &bucket, peers, settings.unsafe_public_advertise)
4451- .await;
4463+ )?;
4464+ return fleet::diagnose(&client, peers, settings.unsafe_public_advertise).await;
44524465 }
44534466 Action::Run(settings) => settings,
44544467 };
@@ -4548,28 +4561,28 @@
45484561 let (runtime, ownership, peer_key, wake_scan, assets, asset_script) =
45494562 if let Some(bucket) = settings.bucket.clone().filter(|_| settings.load_deployment) {
45504563 let client = fleet::s3_client_with_credentials(
4564+ &bucket,
45514565 settings.endpoint.as_deref(),
45524566 &settings.region,
45534567 managed_storage.as_ref(),
4554- )
4555- .await;
4568+ )?;
45564569 if settings.control_plane {
4557- fleet::validate_managed_bucket(&client, &bucket).await?;
4570+ fleet::validate_managed_bucket(&client).await?;
45584571 } else {
4559- fleet::validate_bucket(&client, &bucket).await?;
4572+ fleet::validate_bucket(&client).await?;
45604573 }
45614574 let lease_client = fleet::s3_lease_client_with_credentials(
4575+ &bucket,
45624576 settings.endpoint.as_deref(),
45634577 &settings.region,
45644578 managed_storage.as_ref(),
4565- )
4566- .await;
4579+ )?;
45674580 if settings.control_plane {
4568- celld::control_plane::wait_for_initial_deployment(&client, &bucket).await?;
4569- deploy_agent = Some((client.clone(), bucket.clone()));
4581+ celld::control_plane::wait_for_initial_deployment(&client).await?;
4582+ deploy_agent = Some(client.clone());
45704583 }
4571- let peer_key = peer_auth::load_or_create(&client, &bucket).await?;
4572- let mut deployment = fleet::load_current_worker(&client, &bucket, node.clone()).await?;
4584+ let peer_key = peer_auth::load_or_create(&client).await?;
4585+ let mut deployment = fleet::load_current_worker(&client, node.clone()).await?;
45734586 let primary_script = deployment.script_name.clone();
45744587 let mut asset_resolvers = HashMap::new();
45754588 if let Some(resolver) = deployment.assets.take() {
@@ -4595,7 +4608,7 @@
45954608 "service binding graph exceeds CELLD_MAX_COHOSTED={max_cohosted} at {target}"
45964609 );
45974610 }
4598- let mut loaded = fleet::load_named_worker(&client, &bucket, &target, node.clone())
4611+ let mut loaded = fleet::load_named_worker(&client, &target, node.clone())
45994612 .await
46004613 .with_context(|| format!("load service binding target {target}"))?;
46014614 if loaded.script_name != target {
@@ -4617,19 +4630,16 @@
46174630 }
46184631 let wake = Arc::new(celld::wake::WakeFlusher::new());
46194632 celld::js::set_arm_gate(ArmGate {
4620- c: client.clone(),
4621- bucket: bucket.clone(),
4633+ bucket: client.clone(),
46224634 flusher: wake.clone(),
46234635 });
4624- // celld treats Litestream as a node dependency, not as a property
4625- // of today's manifest. Start and health-check it even for a
4626- // stateless deployment so a later deployment can introduce cells
4627- // without changing the process-fencing contract underneath the
4628- // node.
4636+ // celld treats replication as a node service, not as a property
4637+ // of today's manifest. Start it even for a stateless deployment
4638+ // so a later deployment can introduce cells without changing the
4639+ // durability contract underneath the node.
46294640 let replication = Some(Replication::start(
46304641 client.clone(),
46314642 &data_dir,
4632- bucket.clone(),
46334643 settings.endpoint.clone(),
46344644 settings.region.clone(),
46354645 storage_credentials.clone(),
@@ -4650,15 +4660,16 @@
46504660 node: node.clone(),
46514661 region: settings.region.clone(),
46524662 })?;
4653- let wake_scan = Some((client.clone(), bucket.clone(), wake.clone()));
4654- let ownership = Ownership::S3(Arc::new(S3Ownership::with_probe_public_key(
4655- client,
4656- lease_client,
4657- bucket,
4658- node.clone(),
4659- probe_public_key.clone(),
4660- )
4661- .with_lease_ttl_ms(lease_ttl_ms_from_environment())));
4663+ let wake_scan = Some((client.clone(), wake.clone()));
4664+ let ownership = Ownership::S3(Arc::new(
4665+ S3Ownership::with_probe_public_key(
4666+ client,
4667+ lease_client,
4668+ node.clone(),
4669+ probe_public_key.clone(),
4670+ )
4671+ .with_lease_ttl_ms(lease_ttl_ms_from_environment()),
4672+ ));
46624673 (
46634674 Some(runtime),
46644675 Some(ownership),
@@ -4698,34 +4709,34 @@
46984709 let (ownership, peer_key, wake, wake_scan) = match settings.bucket.clone() {
46994710 Some(bucket) => {
47004711 let client = fleet::s3_client_with_credentials(
4712+ &bucket,
47014713 settings.endpoint.as_deref(),
47024714 &settings.region,
47034715 managed_storage.as_ref(),
4704- )
4705- .await;
4716+ )?;
47064717 let lease_client = fleet::s3_lease_client_with_credentials(
4718+ &bucket,
47074719 settings.endpoint.as_deref(),
47084720 &settings.region,
47094721 managed_storage.as_ref(),
4710- )
4711- .await;
4712- let peer_key = peer_auth::load_or_create(&client, &bucket).await?;
4722+ )?;
4723+ let peer_key = peer_auth::load_or_create(&client).await?;
47134724 let wake = Arc::new(celld::wake::WakeFlusher::new());
47144725 celld::js::set_arm_gate(ArmGate {
4715- c: client.clone(),
4716- bucket: bucket.clone(),
4726+ bucket: client.clone(),
47174727 flusher: wake.clone(),
47184728 });
4719- let wake_scan = Some((client.clone(), bucket.clone(), wake.clone()));
4729+ let wake_scan = Some((client.clone(), wake.clone()));
47204730 (
4721- Some(Ownership::S3(Arc::new(S3Ownership::with_probe_public_key(
4722- client,
4723- lease_client,
4724- bucket,
4725- node.clone(),
4726- probe_public_key.clone(),
4727- )
4728- .with_lease_ttl_ms(lease_ttl_ms_from_environment())))),
4731+ Some(Ownership::S3(Arc::new(
4732+ S3Ownership::with_probe_public_key(
4733+ client,
4734+ lease_client,
4735+ node.clone(),
4736+ probe_public_key.clone(),
4737+ )
4738+ .with_lease_ttl_ms(lease_ttl_ms_from_environment()),
4739+ ))),
47294740 peer_key,
47304741 Some(wake),
47314742 wake_scan,
@@ -4758,27 +4769,28 @@
47584769 let (ownership, peer_key) = match settings.bucket.clone() {
47594770 Some(bucket) => {
47604771 let client = fleet::s3_client_with_credentials(
4772+ &bucket,
47614773 settings.endpoint.as_deref(),
47624774 &settings.region,
47634775 managed_storage.as_ref(),
4764- )
4765- .await;
4776+ )?;
47664777 let lease_client = fleet::s3_lease_client_with_credentials(
4778+ &bucket,
47674779 settings.endpoint.as_deref(),
47684780 &settings.region,
47694781 managed_storage.as_ref(),
4770- )
4771- .await;
4772- let peer_key = peer_auth::load_or_create(&client, &bucket).await?;
4782+ )?;
4783+ let peer_key = peer_auth::load_or_create(&client).await?;
47734784 (
4774- Some(Ownership::S3(Arc::new(S3Ownership::with_probe_public_key(
4775- client,
4776- lease_client,
4777- bucket,
4778- node.clone(),
4779- probe_public_key.clone(),
4780- )
4781- .with_lease_ttl_ms(lease_ttl_ms_from_environment())))),
4785+ Some(Ownership::S3(Arc::new(
4786+ S3Ownership::with_probe_public_key(
4787+ client,
4788+ lease_client,
4789+ node.clone(),
4790+ probe_public_key.clone(),
4791+ )
4792+ .with_lease_ttl_ms(lease_ttl_ms_from_environment()),
4793+ ))),
47824794 peer_key,
47834795 )
47844796 }
@@ -4882,7 +4894,7 @@
48824894 });
48834895 }
48844896
4885- if let Some((client, bucket, wake)) = wake_scan {
4897+ if let Some((client, wake)) = wake_scan {
48864898 let deadline = Instant::now() + std::time::Duration::from_secs(10);
48874899 while !app.healthy().await {
48884900 if Instant::now() >= deadline {
@@ -4890,7 +4902,7 @@
48904902 }
48914903 tokio::time::sleep(std::time::Duration::from_millis(10)).await;
48924904 }
4893- for (cell, due_ms) in celld::wake::due_scan(&client, &bucket, now_ms() as i64).await {
4905+ for (cell, due_ms) in celld::wake::due_scan(&client, now_ms() as i64).await {
48944906 wake.adopt(&cell, due_ms);
48954907 let _ = app.tx.send(Message::WakeHint { cell });
48964908 }
@@ -4920,11 +4932,9 @@
49204932 loop {
49214933 tick.tick().await;
49224934 dead_node_gc
4923- .run_elected_pass(&client, &bucket, &waker_node, tick_ms)
4935+ .run_elected_pass(&client, &waker_node, tick_ms)
49244936 .await;
4925- for (cell, due_ms) in
4926- celld::wake::due_scan(&client, &bucket, now_ms() as i64).await
4927- {
4937+ for (cell, due_ms) in celld::wake::due_scan(&client, now_ms() as i64).await {
49284938 wake.adopt(&cell, due_ms);
49294939 if scan_app.tx.send(Message::WakeHint { cell }).is_err() {
49304940 return;
@@ -4934,16 +4944,11 @@
49344944 });
49354945 }
49364946
4937- if let Some((client, bucket)) = deploy_agent {
4938- celld::control_plane::start_deploy_agent(
4939- client.clone(),
4940- bucket.clone(),
4941- Arc::new(AtomicBool::new(true)),
4942- );
4947+ if let Some(client) = deploy_agent {
4948+ celld::control_plane::start_deploy_agent(client.clone(), Arc::new(AtomicBool::new(true)));
49434949 let presence_app = app.clone();
49444950 celld::control_plane::start_presence_agent(celld::control_plane::PresenceRuntime {
49454951 s3: client,
4946- bucket,
49474952 replication: explorer_replication,
49484953 node_session_id: node,
49494954 advertise,
@@ -5168,7 +5173,10 @@
51685173 #[cfg(target_os = "linux")]
51695174 fn process_cpu_ticks() -> Option<u64> {
51705175 let stat = std::fs::read_to_string("/proc/self/stat").ok()?;
5171- let fields = stat.get(stat.rfind(')')? + 2..)?.split_whitespace().collect::<Vec<_>>();
5176+ let fields = stat
5177+ .get(stat.rfind(')')? + 2..)?
5178+ .split_whitespace()
5179+ .collect::<Vec<_>>();
51725180 Some(fields.get(11)?.parse::<u64>().ok()? + fields.get(12)?.parse::<u64>().ok()?)
51735181 }
51745182
@@ -5180,7 +5188,10 @@
51805188 #[cfg(unix)]
51815189 fn clock_ticks_per_second() -> u64 {
51825190 let ticks = unsafe { libc::sysconf(libc::_SC_CLK_TCK) };
5183- u64::try_from(ticks).ok().filter(|ticks| *ticks > 0).unwrap_or(100)
5191+ u64::try_from(ticks)
5192+ .ok()
5193+ .filter(|ticks| *ticks > 0)
5194+ .unwrap_or(100)
51845195 }
51855196
51865197 #[cfg(not(unix))]
@@ -5197,15 +5208,34 @@
51975208 .unwrap_or(0)
51985209 }
51995210
5200-#[cfg(not(target_os = "linux"))]
5211+#[cfg(target_os = "macos")]
52015212 fn resident_memory_bytes() -> u64 {
5213+ let mut info: libc::proc_taskinfo = unsafe { std::mem::zeroed() };
5214+ let size = std::mem::size_of::<libc::proc_taskinfo>() as libc::c_int;
5215+ let got = unsafe {
5216+ libc::proc_pidinfo(
5217+ std::process::id() as libc::c_int,
5218+ libc::PROC_PIDTASKINFO,
5219+ 0,
5220+ (&raw mut info).cast(),
5221+ size,
5222+ )
5223+ };
5224+ if got == size { info.pti_resident_size } else { 0 }
5225+}
5226+
5227+#[cfg(not(any(target_os = "linux", target_os = "macos")))]
5228+fn resident_memory_bytes() -> u64 {
52025229 0
52035230 }
52045231
52055232 #[cfg(target_os = "linux")]
52065233 fn page_size() -> u64 {
52075234 let bytes = unsafe { libc::sysconf(libc::_SC_PAGESIZE) };
5208- u64::try_from(bytes).ok().filter(|bytes| *bytes > 0).unwrap_or(4096)
5235+ u64::try_from(bytes)
5236+ .ok()
5237+ .filter(|bytes| *bytes > 0)
5238+ .unwrap_or(4096)
52095239 }
52105240
52115241 /// Watermarks from celld's public environment contract.
@@ -5220,8 +5250,7 @@
52205250 /// Matches the fleet and ownership-store clients. Long enough to survive a
52215251 /// slow but live peer, short enough that a stale address does not hold a
52225252 /// request for the kernel's own connect timeout.
5223-const PEER_CONNECT_TIMEOUT: std::time::Duration =
5224- std::time::Duration::from_secs(3);
5253+const PEER_CONNECT_TIMEOUT: std::time::Duration = std::time::Duration::from_secs(3);
52255254
52265255 fn lease_ttl_ms_from_environment() -> u64 {
52275256 std::env::var("CELLD_TTL_MS")
@@ -5243,27 +5272,79 @@
52435272 }
52445273 }
52455274
5246-fn pressure_config_from_environment() -> anyhow::Result<celld_logic::pressure::PressureConfig> {
5247- let resident_high = positive_environment::<usize>("CELLD_MAX_RESIDENT_CELLS")?;
5248- let resident_low = match (
5249- resident_high,
5250- positive_environment::<usize>("CELLD_RESIDENT_LOW_WATER")?,
5251- ) {
5252- (Some(high), Some(low)) if low < high => low,
5253- (Some(high), Some(low)) => anyhow::bail!(
5254- "CELLD_RESIDENT_LOW_WATER ({low}) must be below CELLD_MAX_RESIDENT_CELLS ({high})"
5255- ),
5256- (Some(high), None) => high.saturating_mul(4) / 5,
5257- (None, Some(_)) => {
5258- anyhow::bail!("CELLD_RESIDENT_LOW_WATER requires CELLD_MAX_RESIDENT_CELLS")
5275+/// Total memory this process may use: the cgroup limit when one applies
5276+/// (containers), the machine otherwise.
5277+#[cfg(target_os = "linux")]
5278+fn total_memory_bytes() -> Option<u64> {
5279+ for path in [
5280+ "/sys/fs/cgroup/memory.max",
5281+ "/sys/fs/cgroup/memory/memory.limit_in_bytes",
5282+ ] {
5283+ if let Ok(raw) = std::fs::read_to_string(path) {
5284+ if let Ok(limit) = raw.trim().parse::<u64>() {
5285+ // cgroup v1 reports "no limit" as a huge page-rounded
5286+ // number; anything at or above 1 PiB means unlimited.
5287+ if limit < (1 << 50) {
5288+ return Some(limit);
5289+ }
5290+ }
52595291 }
5260- (None, None) => 0,
5292+ }
5293+ let meminfo = std::fs::read_to_string("/proc/meminfo").ok()?;
5294+ let kb = meminfo
5295+ .lines()
5296+ .find(|line| line.starts_with("MemTotal:"))?
5297+ .split_whitespace()
5298+ .nth(1)?
5299+ .parse::<u64>()
5300+ .ok()?;
5301+ Some(kb.saturating_mul(1024))
5302+}
5303+
5304+#[cfg(target_os = "macos")]
5305+fn total_memory_bytes() -> Option<u64> {
5306+ let mut size: u64 = 0;
5307+ let mut len = std::mem::size_of::<u64>();
5308+ let ok = unsafe {
5309+ libc::sysctlbyname(
5310+ c"hw.memsize".as_ptr(),
5311+ (&raw mut size).cast(),
5312+ &mut len,
5313+ std::ptr::null_mut(),
5314+ 0,
5315+ )
52615316 };
5317+ (ok == 0 && size > 0).then_some(size)
5318+}
5319+
5320+#[cfg(not(any(target_os = "linux", target_os = "macos")))]
5321+fn total_memory_bytes() -> Option<u64> {
5322+ None
5323+}
5324+
5325+fn pressure_config_from_environment() -> anyhow::Result<celld_logic::pressure::PressureConfig> {
5326+ // Residency is a hard cap (`CELLD_MAX_RESIDENT_CELLS` -> `Config::max_resident`),
5327+ // enforced at admission -- not a pressure watermark, so it is not built here.
5328+ // `CELLD_RESIDENT_LOW_WATER` is accepted for compatibility but no longer
5329+ // drives a proactive residency walk down; idle cells are reclaimed on demand
5330+ // and by idle-eviction instead.
5331+ //
5332+ // RSS shedding is on by default: a node that runs into its memory ceiling
5333+ // must give cells back, not OOM. The default ceiling is 80% of what the
5334+ // process may use; an explicit CELLD_MAX_RSS_MB overrides it, and 0
5335+ // disables shedding entirely.
5336+ let rss_high_bytes = match std::env::var("CELLD_MAX_RSS_MB") {
5337+ Err(_) => total_memory_bytes().map(|total| total / 5 * 4),
5338+ Ok(value) => match value.trim().parse::<u64>() {
5339+ Ok(0) => None,
5340+ Ok(megabytes) => Some(megabytes.saturating_mul(1024 * 1024)),
5341+ Err(error) => {
5342+ return Err(anyhow::anyhow!("CELLD_MAX_RSS_MB must be a number: {error}"));
5343+ }
5344+ },
5345+ };
52625346 Ok(celld_logic::pressure::PressureConfig {
5263- resident_high,
5264- resident_low,
5265- rss_high_bytes: positive_environment::<u64>("CELLD_MAX_RSS_MB")?
5266- .map(|megabytes| megabytes.saturating_mul(1024 * 1024)),
5347+ rss_high_bytes,
52675348 cpu_high_x100: positive_environment::<u64>("CELLD_MAX_CPU_PERCENT")?
52685349 .map(|percent| percent.saturating_mul(100)),
52695350 })
@@ -5291,12 +5372,9 @@
52915372 let Ok(value) = std::env::var("CELLD_LOCAL_CACHE_MAX_BYTES") else {
52925373 return Ok(Some(DEFAULT_LOCAL_CACHE_MAX_BYTES));
52935374 };
5294- let bytes = value
5295- .trim()
5296- .parse::<u64>()
5297- .map_err(|error| {
5298- anyhow::anyhow!("CELLD_LOCAL_CACHE_MAX_BYTES must be a byte count: {error}")
5299- })?;
5375+ let bytes = value.trim().parse::<u64>().map_err(|error| {
5376+ anyhow::anyhow!("CELLD_LOCAL_CACHE_MAX_BYTES must be a byte count: {error}")
5377+ })?;
53005378 Ok((bytes > 0).then_some(bytes))
53015379 }
53025380
@@ -5311,7 +5389,6 @@
53115389 }
53125390 }
53135391
5314-
53155392 /// Abandons a forwarded fetch on the owner when the peer connection carrying
53165393 /// it goes away. Disarmed by clearing the id once the fetch has answered.
53175394 struct AbortPeerFetchOnHangUp {
modifiedcrates/celld/ownership_store.rs+74−164View file
@@ -1,13 +1,13 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! S3-compatible ownership effect adapter.
24 //!
35 //! This module deliberately contains serialization, wall-clock sampling, SDK
46 //! configuration and error classification only. Ownership decisions remain in
57 //! `celld-logic`.
68
9+use crate::bucket::Bucket;
710 use anyhow::Context;
8-use aws_sdk_s3::error::SdkError;
9-use aws_sdk_s3::primitives::ByteStream;
10-use aws_sdk_s3::Client;
1111 use celld_logic::{
1212 CapacityPeer, CasGuard, CasOutcome, LeaseCasOutcome, NodeLeaseRecord, OwnerRecord,
1313 };
@@ -15,7 +15,7 @@
1515 use serde::{Deserialize, Serialize};
1616 use std::sync::atomic::{AtomicBool, AtomicU64, AtomicUsize, Ordering};
1717 use std::sync::Arc;
18-use std::time::{Duration, SystemTime, UNIX_EPOCH};
18+use std::time::{SystemTime, UNIX_EPOCH};
1919
2020 #[derive(Serialize)]
2121 struct OwnerWire<'a> {
@@ -81,9 +81,8 @@
8181 /// effects. A failed write is always reported to the core as ambiguous unless
8282 /// S3 definitively returned HTTP 412.
8383 pub struct S3Ownership {
84- client: Client,
85- lease_client: Client,
86- bucket: String,
84+ bucket: Bucket,
85+ lease_bucket: Bucket,
8786 node: String,
8887 probe_public_key: String,
8988 live: Arc<LiveLoad>,
@@ -105,10 +104,9 @@
105104 }
106105
107106 impl S3Ownership {
108- pub fn new(client: Client, bucket: String, node: String) -> Self {
107+ pub fn new(bucket: Bucket, node: String) -> Self {
109108 Self {
110- lease_client: client.clone(),
111- client,
109+ lease_bucket: bucket.clone(),
112110 bucket,
113111 node,
114112 probe_public_key: String::new(),
@@ -121,16 +119,14 @@
121119 /// probes. Read-only ownership adapters deliberately use [`Self::new`]
122120 /// and cannot accidentally publish a lease.
123121 pub fn with_probe_public_key(
124- client: Client,
125- lease_client: Client,
126- bucket: String,
122+ bucket: Bucket,
123+ lease_bucket: Bucket,
127124 node: String,
128125 probe_public_key: String,
129126 ) -> Self {
130127 Self {
131- client,
132- lease_client,
133128 bucket,
129+ lease_bucket,
134130 node,
135131 probe_public_key,
136132 live: Arc::new(LiveLoad::default()),
@@ -144,27 +140,10 @@
144140 .ok()
145141 .or_else(|| std::env::var("AWS_DEFAULT_REGION").ok())
146142 .unwrap_or_else(|| "us-east-1".into());
147-
148- // These bounds are a correctness condition for the node self-fence,
149- // not merely tuning. Keep them aligned with celld while that lease
150- // path is moved into the new core.
151- let timeouts = aws_config::timeout::TimeoutConfig::builder()
152- .connect_timeout(Duration::from_secs(3))
153- .read_timeout(Duration::from_secs(10))
154- .operation_attempt_timeout(Duration::from_secs(15))
155- .operation_timeout(Duration::from_secs(30))
156- .build();
157- let mut loader = aws_config::defaults(aws_config::BehaviorVersion::latest())
158- .timeout_config(timeouts)
159- .region(aws_config::Region::new(region));
160- if let Some(endpoint) = endpoint.as_deref() {
161- loader = loader.endpoint_url(endpoint);
162- }
163- let shared = loader.load().await;
164- let config = aws_sdk_s3::config::Builder::from(&shared)
165- .force_path_style(endpoint.is_some())
166- .build();
167- Ok(Self::new(Client::from_conf(config), bucket, node))
143+ Ok(Self::new(
144+ Bucket::open(&bucket, endpoint.as_deref(), &region, None, None)?,
145+ node,
146+ ))
168147 }
169148
170149 /// The lease lifetime this fleet renews on, used to decide which node
@@ -197,7 +176,7 @@
197176 }
198177
199178 pub async fn read_node_lease(&self, owner: &str) -> anyhow::Result<Option<NodeLeaseRecord>> {
200- self.read_node_lease_with(&self.client, owner).await
179+ self.read_node_lease_with(&self.bucket, owner).await
201180 }
202181
203182 /// Read this process's authority record through the isolated lease pool.
@@ -205,17 +184,17 @@
205184 &self,
206185 owner: &str,
207186 ) -> anyhow::Result<Option<NodeLeaseRecord>> {
208- self.read_node_lease_with(&self.lease_client, owner).await
187+ self.read_node_lease_with(&self.lease_bucket, owner).await
209188 }
210189
211190 async fn read_node_lease_with(
212191 &self,
213- client: &Client,
192+ bucket: &Bucket,
214193 owner: &str,
215194 ) -> anyhow::Result<Option<NodeLeaseRecord>> {
216195 let key = format!("nodes/{owner}.json");
217196 Ok(self
218- .read_json_with::<NodeLeaseWire>(client, &key)
197+ .read_json_with::<NodeLeaseWire>(bucket, &key)
219198 .await?
220199 .map(|(lease, etag)| NodeLeaseRecord {
221200 node: lease.node,
@@ -234,50 +213,39 @@
234213 const READ_CONCURRENCY: usize = 16;
235214 let current_ms = now_ms();
236215 let mut nodes = Vec::new();
237- let mut continuation = None;
238- loop {
239- let mut request = self.client.list_objects_v2().bucket(&self.bucket).prefix("nodes/");
240- if let Some(token) = &continuation {
241- request = request.continuation_token(token);
216+ for object in self.bucket.list("nodes/").await? {
217+ // A record nothing has rewritten in several lease lifetimes
218+ // belongs to a node that is not coming back. Skipping it here
219+ // is the difference between reading the live fleet and
220+ // reading every node that has ever run: the listing is what
221+ // the placement decision costs, and it is paid on every
222+ // unowned cell.
223+ if !capacity_record_is_recent(
224+ object.last_modified.timestamp(),
225+ current_ms,
226+ self.lease_ttl_ms,
227+ ) {
228+ continue;
242229 }
243- let page = request.send().await?;
244- for object in page.contents() {
245- // A record nothing has rewritten in several lease lifetimes
246- // belongs to a node that is not coming back. Skipping it here
247- // is the difference between reading the live fleet and
248- // reading every node that has ever run: the listing is what
249- // the placement decision costs, and it is paid on every
250- // unowned cell.
251- if object.last_modified().is_some_and(|modified| {
252- !capacity_record_is_recent(modified.secs(), current_ms, self.lease_ttl_ms)
253- }) {
254- continue;
255- }
256- let Some(node) = object
257- .key()
258- .and_then(|key| key.strip_prefix("nodes/"))
259- .and_then(|key| key.strip_suffix(".json"))
260- else {
261- continue;
262- };
263- if !node.is_empty() {
264- nodes.push(node.to_string());
265- }
230+ let Some(node) = object
231+ .location
232+ .as_ref()
233+ .strip_prefix("nodes/")
234+ .and_then(|key| key.strip_suffix(".json"))
235+ else {
236+ continue;
237+ };
238+ if !node.is_empty() {
239+ nodes.push(node.to_string());
266240 }
267- match page.next_continuation_token() {
268- Some(token) => continuation = Some(token.to_string()),
269- None => break,
270- }
271241 }
272242 nodes.sort();
273243 nodes.dedup();
274244
275245 let mut reads = stream::iter(nodes.into_iter().map(|node| async move {
276246 let key = format!("nodes/{node}.json");
277- Ok::<_, anyhow::Error>(self
278- .read_json::<NodeLeaseWire>(&key)
279- .await?
280- .map(|(lease, _)| CapacityPeer {
247+ Ok::<_, anyhow::Error>(self.read_json::<NodeLeaseWire>(&key).await?.map(
248+ |(lease, _)| CapacityPeer {
281249 node: lease.node,
282250 addr: lease.addr,
283251 expires_ms: lease.expires_ms,
@@ -287,7 +255,8 @@
287255 host_websockets: lease.load.host_websockets,
288256 rss_bytes: lease.load.rss_bytes,
289257 pressured: lease.load.pressured,
290- }))
258+ },
259+ ))
291260 }))
292261 .buffer_unordered(READ_CONCURRENCY);
293262 let mut peers = Vec::new();
@@ -314,25 +283,10 @@
314283 return Ok(CasOutcome::Rejected);
315284 }
316285 let key = format!("cells/{cell}/own.json");
317- let body = ByteStream::from(serde_json::to_vec(&OwnerWire { node: "", epoch })?);
318- match self
319- .client
320- .put_object()
321- .bucket(&self.bucket)
322- .key(&key)
323- .body(body)
324- .if_match(current.etag)
325- .send()
326- .await
327- {
328- Ok(_) => Ok(CasOutcome::Applied),
329- Err(SdkError::ServiceError(error)) if error.raw().status().as_u16() == 412 => {
330- Ok(CasOutcome::Rejected)
331- }
332- Err(error) => Err(anyhow::anyhow!(error).context(format!(
333- "conditional write s3://{}/{key} may have committed",
334- self.bucket
335- ))),
286+ let body = serde_json::to_vec(&OwnerWire { node: "", epoch })?;
287+ match self.bucket.put_cas(&key, body, Some(&current.etag)).await? {
288+ Some(_) => Ok(CasOutcome::Applied),
289+ None => Ok(CasOutcome::Rejected),
336290 }
337291 }
338292
@@ -343,29 +297,17 @@
343297 epoch: u64,
344298 ) -> anyhow::Result<CasOutcome> {
345299 let key = format!("cells/{cell}/own.json");
346- let body = ByteStream::from(serde_json::to_vec(&OwnerWire {
300+ let body = serde_json::to_vec(&OwnerWire {
347301 node: &self.node,
348302 epoch,
349- })?);
350- let request = self
351- .client
352- .put_object()
353- .bucket(&self.bucket)
354- .key(&key)
355- .body(body);
356- let request = match guard {
357- CasGuard::Absent => request.if_none_match("*"),
358- CasGuard::Match(etag) => request.if_match(etag),
303+ })?;
304+ let etag = match &guard {
305+ CasGuard::Absent => None,
306+ CasGuard::Match(etag) => Some(etag.as_str()),
359307 };
360- match request.send().await {
361- Ok(_) => Ok(CasOutcome::Applied),
362- Err(SdkError::ServiceError(error)) if error.raw().status().as_u16() == 412 => {
363- Ok(CasOutcome::Rejected)
364- }
365- Err(error) => Err(anyhow::anyhow!(error).context(format!(
366- "conditional write s3://{}/{key} may have committed",
367- self.bucket
368- ))),
308+ match self.bucket.put_cas(&key, body, etag).await? {
309+ Some(_) => Ok(CasOutcome::Applied),
310+ None => Ok(CasOutcome::Rejected),
369311 }
370312 }
371313
@@ -380,7 +322,7 @@
380322 ));
381323 }
382324 let key = format!("nodes/{}.json", self.node);
383- let body = ByteStream::from(serde_json::to_vec(&NodeLeaseWire {
325+ let body = serde_json::to_vec(&NodeLeaseWire {
384326 node: record.node.clone(),
385327 expires_ms: record.expires_ms,
386328 addr: record.addr.clone(),
@@ -388,28 +330,14 @@
388330 peer_protocol: record.peer_protocol,
389331 generation: record.generation.clone(),
390332 load: process_load(&self.live),
391- })?);
392- let request = self
393- .lease_client
394- .put_object()
395- .bucket(&self.bucket)
396- .key(&key)
397- .body(body);
398- let request = match guard {
399- CasGuard::Absent => request.if_none_match("*"),
400- CasGuard::Match(etag) => request.if_match(etag),
333+ })?;
334+ let etag = match &guard {
335+ CasGuard::Absent => None,
336+ CasGuard::Match(etag) => Some(etag.as_str()),
401337 };
402- match request.send().await {
403- Ok(output) => Ok(LeaseCasOutcome::Applied {
404- etag: output.e_tag().unwrap_or_default().to_string(),
405- }),
406- Err(SdkError::ServiceError(error)) if error.raw().status().as_u16() == 412 => {
407- Ok(LeaseCasOutcome::Rejected)
408- }
409- Err(error) => Err(anyhow::anyhow!(error).context(format!(
410- "conditional write s3://{}/{key} may have committed",
411- self.bucket
412- ))),
338+ match self.lease_bucket.put_cas(&key, body, etag).await? {
339+ Some(etag) => Ok(LeaseCasOutcome::Applied { etag }),
340+ None => Ok(LeaseCasOutcome::Rejected),
413341 }
414342 }
415343
@@ -417,38 +345,20 @@
417345 &self,
418346 key: &str,
419347 ) -> anyhow::Result<Option<(T, String)>> {
420- self.read_json_with(&self.client, key).await
348+ self.read_json_with(&self.bucket, key).await
421349 }
422350
423351 async fn read_json_with<T: for<'de> Deserialize<'de>>(
424352 &self,
425- client: &Client,
353+ bucket: &Bucket,
426354 key: &str,
427355 ) -> anyhow::Result<Option<(T, String)>> {
428- match client
429- .get_object()
430- .bucket(&self.bucket)
431- .key(key)
432- .send()
433- .await
434- {
435- Ok(output) => {
436- let etag = output.e_tag().unwrap_or_default().to_string();
437- let bytes = output
438- .body
439- .collect()
440- .await
441- .with_context(|| format!("read body s3://{}/{key}", self.bucket))?
442- .into_bytes();
443- let value = serde_json::from_slice(&bytes)
444- .with_context(|| format!("decode s3://{}/{key}", self.bucket))?;
445- Ok(Some((value, etag)))
446- }
447- Err(SdkError::ServiceError(error)) if error.err().is_no_such_key() => Ok(None),
448- Err(error) => {
449- Err(anyhow::anyhow!(error).context(format!("read s3://{}/{key}", self.bucket)))
450- }
451- }
356+ let Some((bytes, etag)) = bucket.get(key).await? else {
357+ return Ok(None);
358+ };
359+ let value = serde_json::from_slice(&bytes)
360+ .with_context(|| format!("decode s3://{}/{key}", bucket.name))?;
361+ Ok(Some((value, etag)))
452362 }
453363 }
454364
modifiedcrates/celld/peer_auth.rs+21−32View file
@@ -1,7 +1,7 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
3+use crate::bucket::Bucket;
14 use anyhow::{anyhow, Context};
2-use aws_sdk_s3::error::SdkError;
3-use aws_sdk_s3::primitives::ByteStream;
4-use aws_sdk_s3::Client;
55 use hmac::{Hmac, Mac};
66 use rand::RngCore;
77 use serde::{Deserialize, Serialize};
@@ -256,8 +256,8 @@
256256 }
257257 }
258258
259-pub async fn load_or_create(c: &Client, bucket: &str) -> anyhow::Result<[u8; 32]> {
260- if let Some(key) = load(c, bucket).await? {
259+pub async fn load_or_create(bucket: &Bucket) -> anyhow::Result<[u8; 32]> {
260+ if let Some(key) = load(bucket).await? {
261261 return Ok(key);
262262 }
263263 let mut key = [0_u8; 32];
@@ -266,43 +266,32 @@
266266 version: SECRET_VERSION,
267267 key: encode_hex(&key),
268268 };
269- match c
270- .put_object()
271- .bucket(bucket)
272- .key(SECRET_KEY)
273- .if_none_match("*")
274- .body(ByteStream::from(serde_json::to_vec(&stored)?))
275- .send()
269+ match bucket
270+ .put_cas(SECRET_KEY, serde_json::to_vec(&stored)?, None)
276271 .await
277272 {
278- Ok(_) => Ok(key),
279- Err(SdkError::ServiceError(error)) if error.raw().status().as_u16() == 412 => {
280- load(c, bucket)
281- .await?
282- .context("peer authentication secret disappeared after create race")
283- }
284- Err(error) => Err(anyhow!("create fleet peer authentication secret: {error}")),
273+ Ok(Some(_)) => Ok(key),
274+ Ok(None) => load(bucket)
275+ .await?
276+ .context("peer authentication secret disappeared after create race"),
277+ Err(error) => Err(error.context("create fleet peer authentication secret")),
285278 }
286279 }
287280
288-pub async fn load_existing(c: &Client, bucket: &str) -> anyhow::Result<[u8; 32]> {
289- load(c, bucket)
281+pub async fn load_existing(bucket: &Bucket) -> anyhow::Result<[u8; 32]> {
282+ load(bucket)
290283 .await?
291284 .context("fleet has no peer authentication secret; start a current celld node first")
292285 }
293286
294-async fn load(c: &Client, bucket: &str) -> anyhow::Result<Option<[u8; 32]>> {
295- let response = match c.get_object().bucket(bucket).key(SECRET_KEY).send().await {
296- Ok(response) => response,
297- Err(SdkError::ServiceError(error)) if error.err().is_no_such_key() => return Ok(None),
298- Err(error) => return Err(anyhow!("read fleet peer authentication secret: {error}")),
299- };
300- let bytes = response
301- .body
302- .collect()
287+async fn load(bucket: &Bucket) -> anyhow::Result<Option<[u8; 32]>> {
288+ let Some((bytes, _)) = bucket
289+ .get(SECRET_KEY)
303290 .await
304- .context("read fleet peer authentication secret body")?
305- .into_bytes();
291+ .context("read fleet peer authentication secret")?
292+ else {
293+ return Ok(None);
294+ };
306295 let stored: StoredSecret =
307296 serde_json::from_slice(&bytes).context("decode fleet peer authentication secret")?;
308297 if stored.version != SECRET_VERSION {
modifiedcrates/celld/peer_probe.rs+2−0View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Challenge-bound proof that a diagnostic reached the node named by a lease.
24
35 use anyhow::{anyhow, Context};
modifiedcrates/celld/protocol.rs+2−0View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Durable types on the bucket contract between deployment tools and celld.
24 //! These objects are the interface; nothing else is exchanged.
35 use serde::{Deserialize, Serialize};
modifiedcrates/celld/replication.rs+134−1165View file
@@ -1,1166 +1,135 @@
1-//! Node-level LTX replication: ONE litestream process per node in
2-//! directory-watch mode (litestream HEAD — fsnotify + Store.Register/
3-//! UnregisterDB). Each cell db lives at
4-//! `<watch>/<cell>/ltx/e<epoch>/db.sqlite` and replicates to
5-//! `cells/<cell>/ltx/e<epoch>/db.sqlite/` in the bucket — epoch-in-prefix is
6-//! the data-path fence: a stale owner writes a dead prefix.
7-//!
8-//! `activate` restores the highest non-empty epoch into a temp file, then
9-//! atomically renames it into the watched tree; litestream registers it live
10-//! (~250ms debounce). `hibernate` deliberately does NOT checkpoint (litestream
11-//! owns the WAL); it waits out the sync interval, then removes the file;
12-//! litestream unregisters it and frees the per-database process memory. One directory-watching process serves every cell on a node.
13-use aws_sdk_s3::Client;
14-use fs2::FileExt;
15-use rusqlite::Connection;
16-use std::fs::{File, OpenOptions};
17-use std::io::Read;
18-use std::path::PathBuf;
19-use std::process::{Child, ChildStdin, Command, Stdio};
20-use std::sync::atomic::AtomicBool;
21-use std::sync::atomic::Ordering;
22-use std::sync::{mpsc, Mutex};
23-use std::thread;
24-use std::time::{Duration, Instant};
25-use tracing::debug;
26-use tracing::info;
27-use tracing::warn;
28-
29-const RUNTIME_LOCK: &str = ".celld-runtime.lock";
30-const SUPERVISOR_ARGUMENT: &str = "__litestream-supervisor";
31-const DEFAULT_LITESTREAM_GOMEMLIMIT: &str = "512MiB";
32-
33-pub struct NodeRepl {
34- watch: PathBuf,
35- /// Litestream control socket (short path: macOS caps UDS paths at 104
36- /// bytes and watch dirs can be deep). Absent for daemons that never
37- /// created it — `sync_wait` then reports `SyncWait::Unsupported`.
38- socket: PathBuf,
39- /// Replica addressing for explicit `POST /register` repair: the directory
40- /// watcher is the primary registration path, but it misses databases at
41- /// density, and an unregistered cell neither replicates nor passes the
42- /// durability gate.
43- bucket: String,
44- endpoint: Option<String>,
45- region: String,
46- sync_unsupported_warned: AtomicBool,
47- child: Mutex<Option<Child>>,
48- supervisor_stdin: Option<ChildStdin>,
49- _runtime_lock: File,
50-}
51-
52-/// Outcome of a blocking replication wait on one cell db.
53-pub enum SyncWait {
54- /// The latest local commit is in the bucket.
55- Durable,
56- /// The daemon has no control socket; the caller decides its fallback.
57- Unsupported,
58- /// Socket present but the wait failed or timed out.
59- Failed,
60-}
61-
62-pub struct RestoredSnapshot {
63- pub epoch: u64,
64- path: PathBuf,
65- directory: PathBuf,
66-}
67-
68-impl RestoredSnapshot {
69- pub fn path(&self) -> &std::path::Path {
70- &self.path
71- }
72-
73- /// Construct a snapshot whose `directory` is removed on drop. Used by the
74- /// in-process replicator ([`crate::ltx_repl`]) to hand back an inspection
75- /// copy with the same RAII cleanup the Litestream path relies on.
76- pub(crate) fn new(epoch: u64, path: PathBuf, directory: PathBuf) -> Self {
77- Self {
78- epoch,
79- path,
80- directory,
81- }
82- }
83-}
84-
85-impl Drop for RestoredSnapshot {
86- fn drop(&mut self) {
87- let _ = std::fs::remove_dir_all(&self.directory);
88- }
89-}
90-
91-struct LocalRecovery {
92- epoch: u64,
93- path: PathBuf,
94- _runtime_lock: Option<File>,
95-}
96-
97-#[derive(Clone)]
98-pub struct StorageCredentials {
99- pub access_key_id: String,
100- pub secret_access_key: String,
101- pub session_token: Option<String>,
102-}
103-
104-pub struct ActivationOptions<'a> {
105- pub client: &'a Client,
106- pub litestream: &'a str,
107- pub bucket: &'a str,
108- pub cell: &'a str,
109- pub epoch: u64,
110- /// The epoch-one ownership record was created conditionally by this
111- /// activation. No earlier replica can exist for this cell.
112- pub fresh: bool,
113- /// This activation seized the cell from a DIFFERENT node. When false the
114- /// ownership record still named us at `epoch - 1`, so no other process
115- /// has written the cell since we hibernated it and our preserved local
116- /// state is authoritative.
117- pub took_over: bool,
118- pub endpoint: Option<&'a str>,
119- pub region: &'a str,
120- pub credentials: Option<&'a StorageCredentials>,
121-}
122-
123-pub struct ActivationResult {
124- pub path: PathBuf,
125- pub restored: bool,
126- pub replica_discovery_us: u64,
127- pub restore_us: u64,
128-}
129-
130-fn ep_host(endpoint: &str) -> &str {
131- endpoint
132- .trim_start_matches("http://")
133- .trim_start_matches("https://")
134-}
135-
136-/// Restore URL for a specific epoch: the per-cell prefix a directory-watch
137-/// replica writes to (base `s3://<bucket>/cells` + relPath `<cell>/ltx/eN/
138-/// db.sqlite`).
139-fn storage_url(base: String, endpoint: Option<&str>, region: &str) -> String {
140- match endpoint {
141- Some(endpoint) => format!(
142- "{base}?endpoint={}&region={region}&force-path-style=true",
143- ep_host(endpoint)
144- ),
145- None => format!("{base}?region={region}"),
146- }
147-}
148-
149-fn restore_url(
150- bucket: &str,
151- cell: &str,
152- epoch: u64,
153- endpoint: Option<&str>,
154- region: &str,
155-) -> String {
156- storage_url(
157- format!("s3://{bucket}/cells/{cell}/ltx/e{epoch}/db.sqlite"),
158- endpoint,
159- region,
160- )
161-}
162-
163-enum SyncIo {
164- Io(std::io::Error),
165- Timeout,
166-}
167-
168-/// One `Connection: close` HTTP POST over the litestream control socket.
169-async fn control_post(
170- socket: &std::path::Path,
171- target: &str,
172- body: &str,
173- timeout: Duration,
174-) -> Result<String, SyncIo> {
175- use tokio::io::AsyncReadExt;
176- use tokio::io::AsyncWriteExt;
177- let request = format!(
178- "POST {target} HTTP/1.1\r\nHost: litestream\r\n\
179- Content-Type: application/json\r\nContent-Length: {}\r\n\
180- Connection: close\r\n\r\n{body}",
181- body.len()
182- );
183- let io = async {
184- let mut stream = tokio::net::UnixStream::connect(socket).await?;
185- stream.write_all(request.as_bytes()).await?;
186- let mut response = String::new();
187- stream.read_to_string(&mut response).await?;
188- Ok::<String, std::io::Error>(response)
189- };
190- match tokio::time::timeout(timeout, io).await {
191- Ok(Ok(response)) => Ok(response),
192- Ok(Err(error)) => Err(SyncIo::Io(error)),
193- Err(_) => Err(SyncIo::Timeout),
194- }
195-}
196-
197-/// Explicitly register one cell db with the litestream daemon. Idempotent:
198-/// the daemon answers 200 for both `registered` and `already_registered`.
199-/// Registered-by-repair databases carry litestream's default checkpoint
200-/// cadence rather than the tuned watcher config — a bounded divergence,
201-/// preferred over a cell that never replicates.
202-async fn register_db(
203- socket: &std::path::Path,
204- db: &std::path::Path,
205- replica_url: &str,
206- timeout: Duration,
207-) -> bool {
208- let body = format!(
209- "{{\"path\":{:?},\"replica_url\":{:?}}}",
210- db.display().to_string(),
211- replica_url,
212- );
213- match control_post(socket, "/register", &body, timeout).await {
214- Ok(response) if response.starts_with("HTTP/1.1 200") => true,
215- Ok(response) => {
216- let status = response.lines().next().unwrap_or("").to_string();
217- warn!(db = %db.display(), %status, "litestream register rejected");
218- false
219- }
220- Err(SyncIo::Io(error)) => {
221- warn!(db = %db.display(), %error, "litestream register failed");
222- false
223- }
224- Err(SyncIo::Timeout) => {
225- warn!(db = %db.display(), "litestream register timed out");
226- false
227- }
228- }
229-}
230-
231-/// Highest epoch prefix under `cells/<cell>/ltx/` that contains objects.
232-/// Fail-closed hibernation check: does the bucket hold ANY replica data for
233-/// this cell at this epoch? Hibernation deletes the local files; doing that
234-/// with an empty replica strands the cell (restore finds "no matching backup
235-/// files"). One LIST per eviction attempt — evictions are rare.
236-pub async fn epoch_replicated(c: &Client, bucket: &str, cell: &str, epoch: u64) -> bool {
237- let prefix = format!("cells/{cell}/ltx/e{epoch}/");
238- match c
239- .list_objects_v2()
240- .bucket(bucket)
241- .prefix(prefix)
242- .max_keys(1)
243- .send()
244- .await
245- {
246- Ok(page) => !page.contents().is_empty(),
247- Err(error) => {
248- tracing::warn!(%error, cell, epoch, "replica check failed");
249- false
250- }
251- }
252-}
253-
254-async fn highest_nonempty_epoch(
255- c: &Client,
256- bucket: &str,
257- cell: &str,
258-) -> anyhow::Result<Option<u64>> {
259- let base = format!("cells/{cell}/ltx/");
260- let mut best: Option<u64> = None;
261- let mut continuation_token: Option<String> = None;
262- loop {
263- let mut request = c
264- .list_objects_v2()
265- .bucket(bucket)
266- .prefix(&base)
267- .delimiter("/");
268- if let Some(token) = continuation_token.as_deref() {
269- request = request.continuation_token(token);
270- }
271- let response = request.send().await?;
272- for prefix in response.common_prefixes() {
273- if let Some(epoch) = prefix
274- .prefix()
275- .and_then(|value| value.trim_end_matches('/').rsplit("/e").next())
276- .and_then(|value| value.parse::<u64>().ok())
277- {
278- best = Some(best.map_or(epoch, |current| current.max(epoch)));
279- }
280- }
281- if !response.is_truncated().unwrap_or(false) {
282- break;
283- }
284- continuation_token = response.next_continuation_token().map(str::to_owned);
285- if continuation_token.is_none() {
286- anyhow::bail!("truncated replication listing omitted its continuation token");
287- }
288- }
289- Ok(best)
290-}
291-
292-/// Restore the latest completed bucket replica for read-only operator
293-/// inspection. This does not claim ownership, create a new epoch, place the
294-/// database under the watched replication tree, or activate Worker code.
295-pub async fn restore_snapshot(
296- c: &Client,
297- litestream: &str,
298- bucket: &str,
299- cell: &str,
300- endpoint: Option<&str>,
301- region: &str,
302- credentials: Option<&StorageCredentials>,
303-) -> anyhow::Result<Option<RestoredSnapshot>> {
304- use anyhow::Context;
305-
306- let Some(epoch) = highest_nonempty_epoch(c, bucket, cell).await? else {
307- return Ok(None);
308- };
309- let directory = std::env::temp_dir().join(format!(
310- "celld-inspect-{}-{:016x}",
311- std::process::id(),
312- rand::random::<u64>(),
313- ));
314- let mut builder = std::fs::DirBuilder::new();
315- #[cfg(unix)]
316- {
317- use std::os::unix::fs::DirBuilderExt;
318- builder.mode(0o700);
319- }
320- builder.create(&directory)?;
321- let path = directory.join("snapshot.sqlite");
322- let url = restore_url(bucket, cell, epoch, endpoint, region);
323- let mut command = Command::new(litestream);
324- command
325- .args(["restore", "-o"])
326- .arg(&path)
327- .arg(&url)
328- .env("AWS_REGION", region);
329- apply_credentials(&mut command, credentials);
330- let snapshot = RestoredSnapshot {
331- epoch,
332- path,
333- directory,
334- };
335- let mut command = tokio::process::Command::from(command);
336- command.kill_on_drop(true);
337- let output = tokio::time::timeout(Duration::from_secs(7), command.output())
338- .await
339- .context("restore replicated snapshot timed out")??;
340- if !output.status.success() {
341- anyhow::bail!(
342- "restore replicated snapshot failed: {}",
343- String::from_utf8_lossy(&output.stderr).trim(),
344- );
345- }
346- Ok(Some(snapshot))
347-}
348-
349-impl NodeRepl {
350- /// Spawn the node's single litestream process in directory-watch mode.
351- /// It replicates every `*.sqlite` under `watch` and tracks membership as
352- /// files come and go. Quiet levels (G0.1: zero idle bucket ops).
353- pub fn start(
354- litestream: &str,
355- watch: &str,
356- bucket: &str,
357- endpoint: Option<&str>,
358- region: &str,
359- credentials: Option<&StorageCredentials>,
360- ) -> anyhow::Result<NodeRepl> {
361- let watch = PathBuf::from(watch);
362- std::fs::create_dir_all(&watch)?;
363- let runtime_lock = OpenOptions::new()
364- .read(true)
365- .write(true)
366- .create(true)
367- .truncate(false)
368- .open(watch.join(RUNTIME_LOCK))?;
369- runtime_lock.try_lock_exclusive().map_err(|error| {
370- anyhow::anyhow!(
371- "runtime directory {} is already in use: {error}",
372- watch.display()
373- )
374- })?;
375- let cfg = watch.join("node.litestream.yml");
376- let url = storage_url(format!("s3://{bucket}/cells"), endpoint, region);
377- // Short, unique control-socket path: macOS caps UDS paths at 104
378- // bytes, and session watch directories can exceed that.
379- let mut socket = std::env::temp_dir().join(format!("celld-ls-{}.sock", std::process::id()));
380- // A long TMPDIR pushes the path past the cap, the daemon's bind
381- // fails, and `sync_wait` degrades to `Unsupported` — every
382- // consume-delete then proceeds ungated with one warning as the only
383- // evidence. Fall back to a short absolute path rather than lose the
384- // replication gate to an environment variable.
385- if socket.as_os_str().len() > 100 {
386- socket = PathBuf::from(format!("/tmp/celld-ls-{}.sock", std::process::id()));
387- }
388- let _ = std::fs::remove_file(&socket);
389- // A time-based checkpoint makes every low-write database periodically
390- // take a writer barrier. At high density those barriers form cohorts
391- // and stall unrelated cells together. Keep checkpoints workload-shaped
392- // and bounded instead: 1,000 pages is about 4 MiB per resident cell.
393- std::fs::write(
394- &cfg,
395- format!(
396- r#"l0-retention: 24h
397-l0-retention-check-interval: 24h
398-levels:
399- - interval: 24h
400-snapshot:
401- interval: 168h
402-socket:
403- enabled: true
404- path: {socket_path}
405-dbs:
406- - dir: {}
407- pattern: "*.sqlite"
408- recursive: true
409- watch: true
410- checkpoint-interval: 0s
411- min-checkpoint-page-count: 1000
412- replica:
413- url: {url}
414- sync-interval: 1s
415-"#,
416- watch.display(),
417- socket_path = socket.display(),
418- ),
419- )?;
420- let (child, supervisor_stdin) =
421- spawn_replicator(litestream, &cfg, &watch, region, credentials)?;
422- debug!(watch = %watch.display(), "node litestream watching");
423- Ok(NodeRepl {
424- watch,
425- socket,
426- bucket: bucket.to_owned(),
427- endpoint: endpoint.map(str::to_owned),
428- region: region.to_owned(),
429- sync_unsupported_warned: std::sync::atomic::AtomicBool::new(false),
430- child: Mutex::new(Some(child)),
431- supervisor_stdin,
432- _runtime_lock: runtime_lock,
433- })
434- }
435-
436- fn db_path(&self, cell: &str, epoch: u64) -> PathBuf {
437- self.watch
438- .join(cell)
439- .join("ltx")
440- .join(format!("e{epoch}"))
441- .join("db.sqlite")
442- }
443-
444- /// Force capture plus a blocking upload of one cell's db and return once
445- /// the latest local commit is in the bucket — the v0.5.15 control
446- /// socket's `POST /sync {wait:true}`. TXID order is commit order, so a
447- /// call issued after a commit proves that commit durable. `Unsupported`
448- /// means the daemon never created the socket (fake or old litestream);
449- /// callers warn once and fall back to ungated behavior.
450- ///
451- /// A 404 means the watcher never registered this db: the cell has been
452- /// replicating NOTHING. Repair by registering explicitly, then ask again
453- /// — without this, hibernation wedges on the same unprovable cohort
454- /// forever (observed latching nine of ten fleet nodes).
455- pub async fn sync_wait(&self, cell: &str, epoch: u64, timeout: Duration) -> SyncWait {
456- if !self.socket.exists() {
457- if !self.sync_unsupported_warned.swap(true, Ordering::Relaxed) {
458- warn!(
459- socket = %self.socket.display(),
460- "litestream control socket absent; sync-wait unsupported"
461- );
462- }
463- return SyncWait::Unsupported;
464- }
465- let db = self.db_path(cell, epoch);
466- let mut repaired = false;
467- loop {
468- let body = format!("{{\"path\":{:?},\"wait\":true}}", db.display().to_string());
469- match control_post(&self.socket, "/sync", &body, timeout).await {
470- Ok(response) if response.starts_with("HTTP/1.1 200") => {
471- return SyncWait::Durable;
472- }
473- Ok(response) if response.starts_with("HTTP/1.1 404") && !repaired => {
474- warn!(cell, epoch, "cell db unregistered; repairing registration");
475- let url = restore_url(
476- &self.bucket,
477- cell,
478- epoch,
479- self.endpoint.as_deref(),
480- &self.region,
481- );
482- if !register_db(&self.socket, &db, &url, timeout).await {
483- return SyncWait::Failed;
484- }
485- repaired = true;
486- }
487- Ok(response) => {
488- let status = response.lines().next().unwrap_or("").to_string();
489- warn!(cell, epoch, %status, "litestream sync-wait rejected");
490- return SyncWait::Failed;
491- }
492- Err(SyncIo::Io(error)) => {
493- warn!(cell, epoch, %error, "litestream sync-wait failed");
494- return SyncWait::Failed;
495- }
496- Err(SyncIo::Timeout) => {
497- warn!(cell, epoch, "litestream sync-wait timed out");
498- return SyncWait::Failed;
499- }
500- }
501- }
502- }
503-
504- /// Copy one resident database into a private, read-only inspection
505- /// snapshot. SQLite's backup API includes committed WAL state without
506- /// checkpointing or interfering with Litestream's ownership of the WAL.
507- ///
508- /// The caller supplies the epoch from the node's resident-cell inventory.
509- /// A missing source means the cell crossed the hibernation boundary while
510- /// the inspection request was in flight.
511- pub fn snapshot_active(
512- &self,
513- cell: &str,
514- epoch: u64,
515- ) -> anyhow::Result<Option<RestoredSnapshot>> {
516- let source = self.db_path(cell, epoch);
517- if !source
518- .symlink_metadata()
519- .map(|metadata| metadata.file_type().is_file())
520- .unwrap_or(false)
521- {
522- return Ok(None);
523- }
524- let directory = std::env::temp_dir().join(format!(
525- "celld-inspect-{}-{:016x}",
526- std::process::id(),
527- rand::random::<u64>(),
528- ));
529- let mut builder = std::fs::DirBuilder::new();
530- #[cfg(unix)]
531- {
532- use std::os::unix::fs::DirBuilderExt;
533- builder.mode(0o700);
534- }
535- builder.create(&directory)?;
536- let path = directory.join("snapshot.sqlite");
537- let snapshot = RestoredSnapshot {
538- epoch,
539- path,
540- directory,
541- };
542- sqlite_snapshot(&source, snapshot.path())?;
543- Ok(Some(snapshot))
544- }
545-
546- /// Poll the node-level replicator without blocking. A returned status is
547- /// terminal: directory-watch replication is expected to live as long as
548- /// celld, so the runtime must stop serving rather than silently extend its
549- /// host-loss durability window.
550- pub fn process_status(&self) -> std::io::Result<Option<std::process::ExitStatus>> {
551- let mut child = self
552- .child
553- .lock()
554- .unwrap_or_else(|poisoned| poisoned.into_inner());
555- match child.as_mut() {
556- Some(child) => child.try_wait(),
557- None => Ok(None),
558- }
559- }
560-
561- /// Find the newest prior epoch left by a dead process on this host.
562- ///
563- /// A sibling runtime directory is eligible only while its process lock can
564- /// be held exclusively. This prevents recovery from reading a database
565- /// that another local celld process may still mutate. Ownership has
566- /// already advanced to `epoch` before this runs, so only lower epochs are
567- /// candidates.
568- fn local_recovery(&self, cell: &str, epoch: u64) -> Option<LocalRecovery> {
569- let root = self.watch.parent()?;
570- let mut best: Option<LocalRecovery> = None;
571- for entry in std::fs::read_dir(root).ok()?.flatten() {
572- if !entry
573- .file_type()
574- .map(|file_type| file_type.is_dir())
575- .unwrap_or(false)
576- {
577- continue;
578- }
579- let candidate_watch = entry.path();
580- let runtime_lock = if candidate_watch == self.watch {
581- None
582- } else {
583- let lock = OpenOptions::new()
584- .read(true)
585- .write(true)
586- .open(candidate_watch.join(RUNTIME_LOCK))
587- .ok();
588- let Some(lock) = lock else {
589- continue;
590- };
591- if lock.try_lock_exclusive().is_err() {
592- continue;
593- }
594- Some(lock)
595- };
596- let Some((candidate_epoch, path)) = newest_epoch_in(&candidate_watch, cell, epoch)
597- else {
598- continue;
599- };
600- if best
601- .as_ref()
602- .is_none_or(|current| candidate_epoch > current.epoch)
603- {
604- best = Some(LocalRecovery {
605- epoch: candidate_epoch,
606- path,
607- _runtime_lock: runtime_lock,
608- });
609- }
610- }
611- best
612- }
613-
614- /// Restore committed state (highest non-empty epoch) and place the db into
615- /// the watched tree so litestream begins replicating THIS epoch. Returns
616- /// the db path for the caller to open. The restore lands on a temp file
617- /// and is renamed in atomically, so the watcher only ever sees a complete
618- /// db.
619- pub async fn activate(
620- &self,
621- options: ActivationOptions<'_>,
622- ) -> anyhow::Result<ActivationResult> {
623- let ActivationOptions {
624- client,
625- litestream,
626- bucket,
627- cell,
628- epoch,
629- fresh,
630- took_over,
631- endpoint,
632- region,
633- credentials,
634- } = options;
635- let dst = self.db_path(cell, epoch);
636- let tmp = dst.with_extension("restoring");
637- // Sticky pressure re-wakes at the SAME epoch, so its cache sits under
638- // this epoch. Ordinary idle hibernation is followed by an epoch
639- // advance, so its cache sits under `epoch - 1` — and is only safe to
640- // reuse when we did not take the cell from another node, which
641- // proves nobody else wrote it while we were hibernated. Without the
642- // previous-epoch lookup the preserved file could never be found and
643- // every wake paid a full remote restore (measured: 46 sequential
644- // storage round trips, 0 local reuses in 910 activations).
645- let same_epoch = dst.with_extension("hibernated");
646- let previous_epoch = celld_logic::restore::previous_epoch_reusable(epoch, took_over)
647- .then(|| self.db_path(cell, epoch - 1).with_extension("hibernated"));
648- let is_file = |path: &PathBuf| {
649- path.symlink_metadata()
650- .map(|metadata| metadata.file_type().is_file())
651- .unwrap_or(false)
652- };
653- let local_hibernated = (!fresh)
654- .then(|| {
655- if is_file(&same_epoch) {
656- Some(same_epoch)
657- } else {
658- previous_epoch.filter(is_file)
659- }
660- })
661- .flatten();
662- let discovery_started = Instant::now();
663- let remote = if fresh || local_hibernated.is_some() {
664- None
665- } else {
666- highest_nonempty_epoch(client, bucket, cell).await?
667- };
668- let local = if local_hibernated.is_some() {
669- None
670- } else {
671- self.local_recovery(cell, epoch)
672- };
673- let replica_discovery_us = discovery_started.elapsed().as_micros() as u64;
674- let litestream = litestream.to_owned();
675- let bucket = bucket.to_owned();
676- let cell_ = cell.to_owned();
677- let cell = cell.to_owned();
678- let endpoint = endpoint.map(str::to_owned);
679- let region = region.to_owned();
680- let credentials = credentials.cloned();
681- let restore_started = Instant::now();
682- let (path, restored) =
683- tokio::task::spawn_blocking(move || -> anyhow::Result<(PathBuf, bool)> {
684- std::fs::create_dir_all(dst.parent().unwrap())?;
685- if let Some(hibernated) = local_hibernated {
686- std::fs::rename(&hibernated, &dst)?;
687- info!(
688- cell,
689- epoch,
690- source = %hibernated.display(),
691- "restored local hibernation snapshot + activated"
692- );
693- return Ok((dst, true));
694- }
695- if let Some(local) = local
696- .as_ref()
697- .filter(|local| celld_logic::restore::local_epoch_wins(local.epoch, remote))
698- {
699- let _ = std::fs::remove_file(&tmp);
700- match sqlite_snapshot(&local.path, &tmp) {
701- Ok(()) => {
702- std::fs::rename(&tmp, &dst)?;
703- info!(
704- cell,
705- from = local.epoch,
706- to = epoch,
707- source = %local.path.display(),
708- "restored local crash epoch + activated"
709- );
710- return Ok((dst, true));
711- }
712- Err(error) if remote.is_some() => {
713- let _ = std::fs::remove_file(&tmp);
714- warn!(
715- cell,
716- from = local.epoch,
717- %error,
718- "local crash recovery failed; falling back to replicated epoch"
719- );
720- }
721- Err(error) => {
722- let _ = std::fs::remove_file(&tmp);
723- anyhow::bail!(
724- "local crash recovery failed for cell {cell} epoch {}: {error}",
725- local.epoch
726- );
727- }
728- }
729- }
730- if let Some(src) = remote {
731- let url = restore_url(&bucket, &cell, src, endpoint.as_deref(), &region);
732- let mut command = Command::new(litestream);
733- command
734- .args(["restore", "-o"])
735- .arg(&tmp)
736- .arg(&url)
737- .env("AWS_REGION", &region);
738- apply_credentials(&mut command, credentials.as_ref());
739- let out = command.output()?;
740- if out.status.success() {
741- std::fs::rename(&tmp, &dst)?;
742- info!(cell, from = src, to = epoch, "restored + activated");
743- Ok((dst, true))
744- } else {
745- let _ = std::fs::remove_file(&tmp);
746- anyhow::bail!(
747- "restore failed for cell {cell} epoch {src}: {}",
748- String::from_utf8_lossy(&out.stderr).trim(),
749- );
750- }
751- } else {
752- Connection::open(&dst)?; // no prior LTX: fresh db in place
753- info!(cell, epoch, "fresh cell activated");
754- Ok((dst, false))
755- }
756- })
757- .await
758- .map_err(|error| anyhow::anyhow!("activation restore task failed: {error}"))??;
759- // Deterministic registration backstop. The watcher usually wins the
760- // race during its ~250ms debounce and keeps the tuned per-db config;
761- // the delayed idempotent register closes its misses so every
762- // activated cell replicates. The test override exists so the process
763- // suite can prove sync_wait's own 404 repair in isolation.
764- if self.socket.exists()
765- && std::env::var_os("CELLD_TEST_SKIP_ACTIVATION_REGISTER").is_none()
766- {
767- let socket = self.socket.clone();
768- let db = path.clone();
769- let url = restore_url(
770- &self.bucket,
771- &cell_,
772- epoch,
773- self.endpoint.as_deref(),
774- &self.region,
775- );
776- tokio::spawn(async move {
777- tokio::time::sleep(Duration::from_secs(2)).await;
778- register_db(&socket, &db, &url, Duration::from_secs(10)).await;
779- });
780- }
781- Ok(ActivationResult {
782- path,
783- restored,
784- replica_discovery_us,
785- restore_us: restore_started.elapsed().as_micros() as u64,
786- })
787- }
788-
789- /// Hibernate a cell: let litestream copy the final WAL frames, then remove
790- /// the file so litestream unregisters it and releases its RSS. The caller
791- /// MUST have closed its own db handle first (isolate torn down).
792- ///
793- /// Crucially we do NOT checkpoint: litestream owns the WAL, and an external
794- /// `wal_checkpoint(TRUNCATE)` truncates frames it has not yet copied — the
795- /// classic footgun that loses the last writes. Cells hibernate only after
796- /// idle_evict seconds, so the periodic sync (1s) has long since captured
797- /// them; the wait below is belt-and-suspenders for a fresh write.
798- /// Delete least-recently-used hibernation caches until the tree fits
799- /// `max_bytes`. The cache is pure optimization — every entry duplicates
800- /// state the bucket already holds — so eviction is always safe and its
801- /// only cost is a future remote restore. Returns (kept, evicted, bytes
802- /// remaining) for the caller to log.
803- pub fn prune_local_cache(&self, max_bytes: u64) -> (usize, usize, u64) {
804- prune_watch(&self.watch, max_bytes)
805- }
806-
807- pub async fn hibernate(&self, cell: &str, epoch: u64, preserve_local: bool) {
808- let db = self.db_path(cell, epoch);
809- tokio::time::sleep(Duration::from_millis(1500)).await; // > sync-interval
810- let mut local_cache = false;
811- if preserve_local {
812- // Sticky pressure eviction is a local residency-cache operation.
813- // Preserve committed WAL state in a standalone SQLite snapshot
814- // whose extension does not match Litestream's watched *.sqlite
815- // pattern. A same-process wake can atomically move it back into
816- // the watched tree without consulting R2; node loss still falls
817- // back to the replica authority.
818- let snapshot_db = db.clone();
819- match tokio::task::spawn_blocking(move || {
820- let cache = snapshot_db.with_extension("hibernated");
821- let cache_tmp = snapshot_db.with_extension("hibernating");
822- let _ = std::fs::remove_file(&cache_tmp);
823- let _ = std::fs::remove_file(&cache);
824- sqlite_snapshot(&snapshot_db, &cache_tmp)
825- .and_then(|()| {
826- std::fs::rename(&cache_tmp, &cache)?;
827- Ok(())
828- })
829- .inspect_err(|_| {
830- let _ = std::fs::remove_file(&cache_tmp);
831- })
832- })
833- .await
834- {
835- Ok(Ok(())) => local_cache = true,
836- Ok(Err(error)) => {
837- warn!(%error, cell, epoch, "could not preserve local hibernation snapshot");
838- }
839- Err(error) => {
840- warn!(%error, cell, epoch, "local hibernation snapshot task failed");
841- }
842- }
843- }
844- for suf in ["", "-wal", "-shm"] {
845- let _ = std::fs::remove_file(format!("{}{suf}", db.display()));
846- }
847- info!(
848- cell,
849- epoch, local_cache, "hibernated (replication released)"
850- );
851- }
852-}
853-
854-fn newest_epoch_in(watch: &std::path::Path, cell: &str, before: u64) -> Option<(u64, PathBuf)> {
855- let epochs = watch.join(cell).join("ltx");
856- let mut best: Option<(u64, PathBuf)> = None;
857- for entry in std::fs::read_dir(epochs).ok()?.flatten() {
858- if !entry
859- .file_type()
860- .map(|file_type| file_type.is_dir())
861- .unwrap_or(false)
862- {
863- continue;
864- }
865- let name = entry.file_name();
866- let Some(epoch) = name
867- .to_str()
868- .and_then(|name| name.strip_prefix('e'))
869- .and_then(|epoch| epoch.parse::<u64>().ok())
870- else {
871- continue;
872- };
873- if !celld_logic::restore::recoverable(epoch, before) {
874- continue;
875- }
876- let path = entry.path().join("db.sqlite");
877- if !path
878- .symlink_metadata()
879- .map(|metadata| metadata.file_type().is_file())
880- .unwrap_or(false)
881- {
882- continue;
883- }
884- if best.as_ref().is_none_or(|(current, _)| epoch > *current) {
885- best = Some((epoch, path));
886- }
887- }
888- best
889-}
890-
891-/// Enforce a byte ceiling over the `.hibernated` snapshots under `watch`,
892-/// evicting least-recently-used first. Shared by both replicators; the walk is
893-/// layout-independent (the `.hibernated` convention is common to both).
894-pub(crate) fn prune_watch(watch: &std::path::Path, max_bytes: u64) -> (usize, usize, u64) {
895- use celld_logic::cache::CacheEntry;
896- let mut paths = Vec::new();
897- let mut entries = Vec::new();
898- let mut stack = vec![watch.to_path_buf()];
899- while let Some(dir) = stack.pop() {
900- let Ok(read) = std::fs::read_dir(&dir) else {
901- continue;
902- };
903- for item in read.flatten() {
904- let path = item.path();
905- let Ok(meta) = item.metadata() else { continue };
906- if meta.is_dir() {
907- stack.push(path);
908- } else if path.extension().is_some_and(|ext| ext == "hibernated") {
909- let last_used_ms = meta
910- .modified()
911- .ok()
912- .and_then(|t| t.duration_since(std::time::UNIX_EPOCH).ok())
913- .map(|d| d.as_millis() as i64)
914- .unwrap_or(0);
915- entries.push(CacheEntry {
916- last_used_ms,
917- bytes: meta.len(),
918- });
919- paths.push(path);
920- }
921- }
922- }
923- let evict = celld_logic::cache::plan_eviction(&entries, max_bytes);
924- for &index in &evict {
925- let _ = std::fs::remove_file(&paths[index]);
926- }
927- let remaining: u64 = entries
928- .iter()
929- .enumerate()
930- .filter(|(index, _)| !evict.contains(index))
931- .map(|(_, entry)| entry.bytes)
932- .sum();
933- (entries.len() - evict.len(), evict.len(), remaining)
934-}
935-
936-pub(crate) fn sqlite_snapshot(
937- source: &std::path::Path,
938- destination: &std::path::Path,
939-) -> anyhow::Result<()> {
940- {
941- let source =
942- Connection::open_with_flags(source, rusqlite::OpenFlags::SQLITE_OPEN_READ_ONLY)?;
943- let mut destination = Connection::open(destination)?;
944- let backup = rusqlite::backup::Backup::new(&source, &mut destination)?;
945- backup.run_to_completion(64, Duration::from_millis(5), None)?;
946- }
947- Ok(())
948-}
949-
950-fn apply_credentials(command: &mut Command, credentials: Option<&StorageCredentials>) {
951- let Some(credentials) = credentials else {
952- return;
953- };
954- command
955- .env("AWS_ACCESS_KEY_ID", &credentials.access_key_id)
956- .env("AWS_SECRET_ACCESS_KEY", &credentials.secret_access_key);
957- if let Some(session_token) = credentials.session_token.as_deref() {
958- command.env("AWS_SESSION_TOKEN", session_token);
959- } else {
960- command.env_remove("AWS_SESSION_TOKEN");
961- }
962-}
963-
964-fn apply_litestream_memory_limit(command: &mut Command) {
965- command.env(
966- "GOMEMLIMIT",
967- std::env::var_os("GOMEMLIMIT").unwrap_or_else(|| DEFAULT_LITESTREAM_GOMEMLIMIT.into()),
968- );
969-}
970-
971-fn pipe_litestream_logs(command: &mut Command) {
972- // Litestream emits operational detail for every database sync. A dense
973- // node can produce thousands of lines per second, so never let the child
974- // inherit the service's journal directly: journal backpressure can stall
975- // Litestream while it owns a SQLite checkpoint lock.
976- command.stdout(Stdio::piped()).stderr(Stdio::piped());
977-}
978-
979-fn forward_litestream_logs(child: &mut Child) {
980- for pipe in [
981- child
982- .stdout
983- .take()
984- .map(|out| Box::new(out) as Box<dyn std::io::Read + Send>),
985- child
986- .stderr
987- .take()
988- .map(|err| Box::new(err) as Box<dyn std::io::Read + Send>),
989- ]
990- .into_iter()
991- .flatten()
992- {
993- std::thread::spawn(move || {
994- use std::io::BufRead;
995- for line in std::io::BufReader::new(pipe).lines().map_while(Result::ok) {
996- debug!(target: "litestream", "{line}");
997- }
998- });
999- }
1000-}
1001-
1002-#[cfg(target_os = "linux")]
1003-fn spawn_replicator(
1004- litestream: &str,
1005- cfg: &std::path::Path,
1006- _watch: &std::path::Path,
1007- region: &str,
1008- credentials: Option<&StorageCredentials>,
1009-) -> anyhow::Result<(Child, Option<ChildStdin>)> {
1010- use anyhow::Context;
1011- use std::os::unix::process::CommandExt;
1012-
1013- let parent = unsafe { libc::getpid() };
1014- let mut command = Command::new(litestream);
1015- command
1016- .args(["replicate", "-config"])
1017- .arg(cfg)
1018- .env("AWS_REGION", region);
1019- pipe_litestream_logs(&mut command);
1020- apply_credentials(&mut command, credentials);
1021- apply_litestream_memory_limit(&mut command);
1022- // SAFETY: this closure runs after fork and before exec. It invokes only
1023- // libc syscalls and constructs an io::Error on the immediate failure path.
1024- unsafe {
1025- command.pre_exec(move || {
1026- if libc::prctl(libc::PR_SET_PDEATHSIG, libc::SIGKILL) != 0 {
1027- return Err(std::io::Error::last_os_error());
1028- }
1029- // Close the fork-to-prctl race: if celld died before the kernel
1030- // installed the signal, terminate before exec instead.
1031- if libc::getppid() != parent {
1032- libc::raise(libc::SIGKILL);
1033- }
1034- Ok(())
1035- });
1036- }
1037- let mut child = command.spawn().context(
1038- "litestream failed to start; install litestream \
1039- (https://litestream.io) or set LITESTREAM_BIN",
1040- )?;
1041- forward_litestream_logs(&mut child);
1042- Ok((child, None))
1043-}
1044-
1045-#[cfg(not(target_os = "linux"))]
1046-fn spawn_replicator(
1047- litestream: &str,
1048- cfg: &std::path::Path,
1049- watch: &std::path::Path,
1050- region: &str,
1051- credentials: Option<&StorageCredentials>,
1052-) -> anyhow::Result<(Child, Option<ChildStdin>)> {
1053- let supervisor_ready = watch.join(".litestream-supervisor-ready");
1054- let _ = std::fs::remove_file(&supervisor_ready);
1055- let mut command = Command::new(std::env::current_exe()?);
1056- command
1057- .arg(SUPERVISOR_ARGUMENT)
1058- .arg(&supervisor_ready)
1059- .arg(litestream)
1060- .args(["replicate", "-config"])
1061- .arg(cfg)
1062- .env("AWS_REGION", region)
1063- .stdin(Stdio::piped());
1064- pipe_litestream_logs(&mut command);
1065- apply_credentials(&mut command, credentials);
1066- apply_litestream_memory_limit(&mut command);
1067- use anyhow::Context;
1068- let mut child = command.spawn().context("litestream failed to start; install litestream (https://litestream.io) or set LITESTREAM_BIN")?;
1069- let supervisor_stdin = child
1070- .stdin
1071- .take()
1072- .ok_or_else(|| anyhow::anyhow!("litestream supervisor stdin was not piped"))?;
1073- forward_litestream_logs(&mut child);
1074- let ready_deadline = Instant::now() + Duration::from_secs(5);
1075- loop {
1076- if supervisor_ready.is_file() {
1077- std::fs::remove_file(&supervisor_ready)?;
1078- break;
1079- }
1080- if let Some(status) = child.try_wait()? {
1081- anyhow::bail!("litestream supervisor exited before startup completed: {status}");
1082- }
1083- if Instant::now() >= ready_deadline {
1084- drop(supervisor_stdin);
1085- let _ = child.wait();
1086- anyhow::bail!("litestream supervisor did not report startup within 5s");
1087- }
1088- thread::sleep(Duration::from_millis(10));
1089- }
1090- Ok((child, Some(supervisor_stdin)))
1091-}
1092-
1093-impl Drop for NodeRepl {
1094- fn drop(&mut self) {
1095- // On platforms without a parent-death signal, closing the keepalive
1096- // pipe asks the supervisor to kill and reap Litestream. Linux launches
1097- // Litestream directly with PR_SET_PDEATHSIG instead.
1098- let supervised = self.supervisor_stdin.take().is_some();
1099- let child = self
1100- .child
1101- .get_mut()
1102- .unwrap_or_else(|poisoned| poisoned.into_inner());
1103- if let Some(mut ch) = child.take() {
1104- if !supervised {
1105- let _ = ch.kill();
1106- }
1107- let _ = ch.wait();
1108- }
1109- }
1110-}
1111-
1112-pub fn is_litestream_supervisor_invocation() -> bool {
1113- std::env::args().nth(1).as_deref() == Some(SUPERVISOR_ARGUMENT)
1114-}
1115-
1116-pub fn run_litestream_supervisor() -> anyhow::Result<()> {
1117- let mut arguments = std::env::args_os().skip(2);
1118- let ready_path = arguments
1119- .next()
1120- .ok_or_else(|| anyhow::anyhow!("litestream supervisor omitted the readiness path"))?;
1121- let litestream = arguments
1122- .next()
1123- .ok_or_else(|| anyhow::anyhow!("litestream supervisor omitted the executable"))?;
1124- use anyhow::Context;
1125- let mut child = Command::new(litestream)
1126- .args(arguments)
1127- .stdin(Stdio::null())
1128- .spawn()
1129- .context("litestream failed to start; install litestream (https://litestream.io) or set LITESTREAM_BIN")?;
1130- if let Err(error) = std::fs::write(&ready_path, b"ready\n") {
1131- let _ = child.kill();
1132- let _ = child.wait();
1133- return Err(error.into());
1134- }
1135-
1136- let (keepalive_closed_tx, keepalive_closed_rx) = mpsc::sync_channel(1);
1137- thread::spawn(move || {
1138- let mut stdin = std::io::stdin();
1139- let mut buffer = [0_u8; 64];
1140- loop {
1141- match stdin.read(&mut buffer) {
1142- Ok(0) | Err(_) => break,
1143- Ok(_) => {}
1144- }
1145- }
1146- let _ = keepalive_closed_tx.send(());
1147- });
1148-
1149- loop {
1150- if let Some(status) = child.try_wait()? {
1151- if status.success() {
1152- return Ok(());
1153- }
1154- anyhow::bail!("litestream exited with {status}");
1155- }
1156- match keepalive_closed_rx.try_recv() {
1157- Ok(()) | Err(mpsc::TryRecvError::Disconnected) => {
1158- let _ = child.kill();
1159- let _ = child.wait();
1160- return Ok(());
1161- }
1162- Err(mpsc::TryRecvError::Empty) => {}
1163- }
1164- thread::sleep(Duration::from_millis(25));
1165- }
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
3+//! Shared replication primitives for the in-process LTX backend
4+//! ([`crate::ltx_repl::LtxRepl`]). Each cell db lives at
5+//! `<watch>/<cell>/ltx/e<epoch>/db.sqlite` and replicates to
6+//! `cells/<cell>/ltx/e<epoch>/` in the bucket — epoch-in-prefix is the
7+//! data-path fence: a stale owner writes a dead prefix.
8+use rusqlite::Connection;
9+use std::path::PathBuf;
10+use std::time::Duration;
11+
12+/// Outcome of a blocking replication wait on one cell db.
13+pub enum SyncWait {
14+ /// The latest local commit is in the bucket.
15+ Durable,
16+ /// The replicator does not track this cell; the caller decides its
17+ /// fallback.
18+ Unsupported,
19+ /// The wait failed or timed out.
20+ Failed,
21+}
22+
23+pub struct RestoredSnapshot {
24+ pub epoch: u64,
25+ path: PathBuf,
26+ directory: PathBuf,
27+}
28+
29+impl RestoredSnapshot {
30+ pub fn path(&self) -> &std::path::Path {
31+ &self.path
32+ }
33+
34+ /// Construct a snapshot whose `directory` is removed on drop, handing the
35+ /// caller an inspection copy with RAII cleanup.
36+ pub(crate) fn new(epoch: u64, path: PathBuf, directory: PathBuf) -> Self {
37+ Self {
38+ epoch,
39+ path,
40+ directory,
41+ }
42+ }
43+}
44+
45+impl Drop for RestoredSnapshot {
46+ fn drop(&mut self) {
47+ let _ = std::fs::remove_dir_all(&self.directory);
48+ }
49+}
50+
51+#[derive(Clone)]
52+pub struct StorageCredentials {
53+ pub access_key_id: String,
54+ pub secret_access_key: String,
55+ pub session_token: Option<String>,
56+}
57+
58+pub struct ActivationOptions<'a> {
59+ pub cell: &'a str,
60+ pub epoch: u64,
61+ /// The epoch-one ownership record was created conditionally by this
62+ /// activation. No earlier replica can exist for this cell.
63+ pub fresh: bool,
64+ /// This activation seized the cell from a DIFFERENT node. When false the
65+ /// ownership record still named us at `epoch - 1`, so no other process
66+ /// has written the cell since we hibernated it and our preserved local
67+ /// state is authoritative.
68+ pub took_over: bool,
69+}
70+
71+pub struct ActivationResult {
72+ pub path: PathBuf,
73+ pub restored: bool,
74+}
75+
76+/// Enforce a byte ceiling over the `.hibernated` snapshots under `watch`,
77+/// evicting least-recently-used first. The walk is layout-independent.
78+pub(crate) fn prune_watch(watch: &std::path::Path, max_bytes: u64) -> (usize, usize, u64) {
79+ use celld_logic::cache::CacheEntry;
80+ let mut paths = Vec::new();
81+ let mut entries = Vec::new();
82+ let mut stack = vec![watch.to_path_buf()];
83+ while let Some(dir) = stack.pop() {
84+ let Ok(read) = std::fs::read_dir(&dir) else {
85+ continue;
86+ };
87+ for item in read.flatten() {
88+ let path = item.path();
89+ let Ok(meta) = item.metadata() else { continue };
90+ if meta.is_dir() {
91+ stack.push(path);
92+ } else if path.extension().is_some_and(|ext| ext == "hibernated") {
93+ let last_used_ms = meta
94+ .modified()
95+ .ok()
96+ .and_then(|t| t.duration_since(std::time::UNIX_EPOCH).ok())
97+ .map(|d| d.as_millis() as i64)
98+ .unwrap_or(0);
99+ entries.push(CacheEntry {
100+ last_used_ms,
101+ bytes: meta.len(),
102+ });
103+ paths.push(path);
104+ }
105+ }
106+ }
107+ let evict = celld_logic::cache::plan_eviction(&entries, max_bytes);
108+ for &index in &evict {
109+ let _ = std::fs::remove_file(&paths[index]);
110+ }
111+ let remaining: u64 = entries
112+ .iter()
113+ .enumerate()
114+ .filter(|(index, _)| !evict.contains(index))
115+ .map(|(_, entry)| entry.bytes)
116+ .sum();
117+ (entries.len() - evict.len(), evict.len(), remaining)
118+}
119+
120+/// Copy a live database into a standalone snapshot. SQLite's backup API
121+/// includes committed WAL state without checkpointing or interfering with the
122+/// replicator's ownership of the WAL.
123+pub(crate) fn sqlite_snapshot(
124+ source: &std::path::Path,
125+ destination: &std::path::Path,
126+) -> anyhow::Result<()> {
127+ {
128+ let source =
129+ Connection::open_with_flags(source, rusqlite::OpenFlags::SQLITE_OPEN_READ_ONLY)?;
130+ let mut destination = Connection::open(destination)?;
131+ let backup = rusqlite::backup::Backup::new(&source, &mut destination)?;
132+ backup.run_to_completion(64, Duration::from_millis(5), None)?;
133+ }
134+ Ok(())
1166135 }
modifiedcrates/celld/runtime.rs+60−131View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! V8 runtime materialization behind core-authorized lifecycle effects.
24 //!
35 //! The manager owns handles and filesystem paths, never lifecycle policy.
@@ -9,11 +11,10 @@
911 self, CellJob, FetchRequest, HttpResponse, Worker, WorkerConfig, WorkerConfigOptions,
1012 };
1113 use crate::ltx_repl::LtxRepl;
12-use crate::replication::{ActivationOptions, NodeRepl, StorageCredentials, SyncWait};
14+use crate::replication::{ActivationOptions, StorageCredentials, SyncWait};
1315 use crate::storage;
1416 use crate::wake::WakeFlusher;
1517 use anyhow::{anyhow, Context};
16-use aws_sdk_s3::Client;
1718 use std::collections::HashMap;
1819 use std::path::{Path, PathBuf};
1920 use std::sync::atomic::{AtomicI64, Ordering};
@@ -96,73 +97,29 @@
9697 pub request_id: Option<js::RequestId>,
9798 }
9899
99-/// The replication engine: the external Litestream process, or the in-process
100-/// `celld-ltx` replicator. Selected once at start by `CELLD_REPLICATOR` and
101-/// hidden behind the `Replication` wrapper so nothing else branches on it.
100+/// The node's replication engine: the in-process `celld-ltx` replicator,
101+/// hidden behind this wrapper so nothing else touches the backend directly.
102102 #[derive(Clone)]
103-enum Backend {
104- Litestream(Arc<NodeRepl>),
105- Ltx(Arc<LtxRepl>),
106-}
107-
108-#[derive(Clone)]
109103 pub struct Replication {
110- backend: Backend,
111- client: Client,
112- litestream: Arc<str>,
113- bucket: Arc<str>,
114- endpoint: Option<Arc<str>>,
115- region: Arc<str>,
116- credentials: Option<StorageCredentials>,
104+ ltx: Arc<LtxRepl>,
117105 }
118106
119107 impl Replication {
120108 pub fn start(
121- client: Client,
109+ bucket: crate::bucket::Bucket,
122110 watch: &Path,
123- bucket: String,
124111 endpoint: Option<String>,
125112 region: String,
126113 credentials: Option<StorageCredentials>,
127114 ) -> anyhow::Result<Self> {
128- let litestream = std::env::var("LITESTREAM_BIN").unwrap_or_else(|_| "litestream".into());
129- // The in-process `celld-ltx` replicator is the default (RPO=0 proved on
130- // the fleet, no cold-start window). `CELLD_REPLICATOR=litestream` keeps
131- // the external process reachable for comparison and fallback.
132- let use_litestream =
133- std::env::var("CELLD_REPLICATOR").as_deref() == Ok("litestream");
134- let backend = if use_litestream {
135- let version = std::process::Command::new(&litestream)
136- .arg("version")
137- .output()
138- .with_context(|| format!("litestream not found at {litestream:?}"))?;
139- let _version = String::from_utf8_lossy(&version.stdout);
140- let watch_str = watch.to_str().context("replication watch path is not UTF-8")?;
141- Backend::Litestream(Arc::new(NodeRepl::start(
142- &litestream,
143- watch_str,
144- &bucket,
145- endpoint.as_deref(),
146- &region,
147- credentials.as_ref(),
148- )?))
149- } else {
150- Backend::Ltx(Arc::new(LtxRepl::start(
151- watch,
152- bucket.clone(),
153- endpoint.clone(),
154- region.clone(),
155- credentials.clone(),
156- )?))
157- };
158115 Ok(Self {
159- backend,
160- client,
161- litestream: Arc::from(litestream),
162- bucket: Arc::from(bucket),
163- endpoint: endpoint.map(Arc::from),
164- region: Arc::from(region),
165- credentials,
116+ ltx: Arc::new(LtxRepl::start(
117+ watch,
118+ bucket.name,
119+ endpoint,
120+ region,
121+ credentials,
122+ )?),
166123 })
167124 }
168125
@@ -172,32 +129,21 @@
172129 spec: &celld_logic::RestoreSpec,
173130 ) -> anyhow::Result<(PathBuf, bool)> {
174131 let options = ActivationOptions {
175- client: &self.client,
176- litestream: &self.litestream,
177- bucket: &self.bucket,
178132 cell,
179133 epoch: spec.epoch,
180134 fresh: spec.fresh,
181135 took_over: spec.took_over,
182- endpoint: self.endpoint.as_deref(),
183- region: &self.region,
184- credentials: self.credentials.as_ref(),
185136 };
186- let activated = match &self.backend {
187- Backend::Litestream(node) => node.activate(options).await?,
188- Backend::Ltx(ltx) => ltx.activate(options).await?,
189- };
137+ let activated = self.ltx.activate(options).await?;
190138 Ok((activated.path, activated.restored))
191139 }
192140
193141 /// Drive/observe this cell's durability, the primitive shared by the two
194142 /// durability gates and the refusal check.
195143 async fn sync_wait(&self, cell: &str, epoch: u64) -> SyncWait {
196- let timeout = Duration::from_secs(10);
197- match &self.backend {
198- Backend::Litestream(node) => node.sync_wait(cell, epoch, timeout).await,
199- Backend::Ltx(ltx) => ltx.sync_wait(cell, epoch, timeout).await,
200- }
144+ self.ltx
145+ .sync_wait(cell, epoch, Duration::from_secs(10))
146+ .await
201147 }
202148
203149 /// True when the replicator actively refused to prove durability (as opposed
@@ -207,10 +153,7 @@
207153 }
208154
209155 pub fn process_status(&self) -> std::io::Result<Option<std::process::ExitStatus>> {
210- match &self.backend {
211- Backend::Litestream(node) => node.process_status(),
212- Backend::Ltx(ltx) => ltx.process_status(),
213- }
156+ self.ltx.process_status()
214157 }
215158
216159 /// Enforce the byte ceiling on preserved hibernation snapshots.
@@ -218,10 +161,7 @@
218161 /// The directory walk is synchronous, so callers must run this on a
219162 /// blocking executor rather than the runtime's serving thread.
220163 pub fn prune_local_cache(&self, max_bytes: u64) -> (usize, usize, u64) {
221- match &self.backend {
222- Backend::Litestream(node) => node.prune_local_cache(max_bytes),
223- Backend::Ltx(ltx) => ltx.prune_local_cache(max_bytes),
224- }
164+ self.ltx.prune_local_cache(max_bytes)
225165 }
226166
227167 /// Copy the exact published epoch into a private read-only snapshot.
@@ -230,10 +170,7 @@
230170 cell: &str,
231171 epoch: u64,
232172 ) -> anyhow::Result<Option<crate::replication::RestoredSnapshot>> {
233- match &self.backend {
234- Backend::Litestream(node) => node.snapshot_active(cell, epoch),
235- Backend::Ltx(ltx) => ltx.snapshot_active(cell, epoch),
236- }
173+ self.ltx.snapshot_active(cell, epoch)
237174 }
238175
239176 /// Restore the newest completed replica without claiming or activating it.
@@ -241,21 +178,7 @@
241178 &self,
242179 cell: &str,
243180 ) -> anyhow::Result<Option<crate::replication::RestoredSnapshot>> {
244- match &self.backend {
245- Backend::Litestream(_) => {
246- crate::replication::restore_snapshot(
247- &self.client,
248- &self.litestream,
249- &self.bucket,
250- cell,
251- self.endpoint.as_deref(),
252- &self.region,
253- self.credentials.as_ref(),
254- )
255- .await
256- }
257- Backend::Ltx(ltx) => ltx.restore_snapshot(cell).await,
258- }
181+ self.ltx.restore_snapshot(cell).await
259182 }
260183
261184 async fn ensure_durable(&self, cell: &str, epoch: u64) -> anyhow::Result<()> {
@@ -272,12 +195,7 @@
272195 // registration is not guaranteed to cover every published cell.
273196 // Hibernation deletes the only local copy, so the last thing checked
274197 // before it goes has to be the artifact itself rather than a report.
275- let replicated = match &self.backend {
276- Backend::Litestream(_) => {
277- crate::replication::epoch_replicated(&self.client, &self.bucket, cell, epoch).await
278- }
279- Backend::Ltx(ltx) => ltx.epoch_replicated(cell, epoch).await,
280- };
198+ let replicated = self.ltx.epoch_replicated(cell, epoch).await;
281199 if !replicated {
282200 return Err(anyhow!(
283201 "no replica objects for {cell} epoch {epoch}; refusing to \
@@ -288,29 +206,15 @@
288206 }
289207
290208 /// The output-gate durability wait: return the committed-write position the
291- /// replica has proved durable, at least covering `position`. The ltx backend
292- /// batches concurrent writes to one cell behind a background sync and reports
293- /// the real durable position; Litestream drives a synchronous sync and, on
294- /// success, echoes `position` (its control socket exposes no finer point).
209+ /// replica has proved durable, at least covering `position`. The replicator
210+ /// batches concurrent writes to one cell behind a background sync and
211+ /// reports the real durable position.
295212 async fn await_durable(&self, cell: &str, epoch: u64, position: u64) -> anyhow::Result<u64> {
296- match &self.backend {
297- Backend::Ltx(ltx) => ltx.await_durable(cell, epoch, position).await,
298- Backend::Litestream(node) => {
299- match node.sync_wait(cell, epoch, Duration::from_secs(10)).await {
300- SyncWait::Durable => Ok(position),
301- SyncWait::Unsupported | SyncWait::Failed => Err(anyhow!(
302- "output-gate durability could not be proved for {cell} epoch {epoch}"
303- )),
304- }
305- }
306- }
213+ self.ltx.await_durable(cell, epoch, position).await
307214 }
308215
309216 async fn hibernate(&self, cell: &str, epoch: u64, preserve_local: bool) {
310- match &self.backend {
311- Backend::Litestream(node) => node.hibernate(cell, epoch, preserve_local).await,
312- Backend::Ltx(ltx) => ltx.hibernate(cell, epoch, preserve_local).await,
313- }
217+ self.ltx.hibernate(cell, epoch, preserve_local).await
314218 }
315219 }
316220
@@ -323,6 +227,13 @@
323227 &self.region
324228 }
325229
230+ /// A deployment with no Durable Object classes can never land a Worker fetch
231+ /// on a cell, so the core's round-robin routing always returns `None`. Lets
232+ /// the request path skip the core round-trip entirely for stateless workers.
233+ pub fn has_cell_classes(&self) -> bool {
234+ !self.cell_configs.is_empty()
235+ }
236+
326237 pub fn start(options: RuntimeOptions) -> anyhow::Result<Self> {
327238 let RuntimeOptions {
328239 worker,
@@ -560,7 +471,11 @@
560471 /// The alarm the restored database already had armed, read directly by
561472 /// path. Read-only, and the connection is dropped here -- the isolate
562473 /// opens the same file moments later through `spawn_cell`.
563- fn restored_alarm(&self, cell: &str, path: &std::path::Path) -> Option<celld_logic::RestoredAlarm> {
474+ fn restored_alarm(
475+ &self,
476+ cell: &str,
477+ path: &std::path::Path,
478+ ) -> Option<celld_logic::RestoredAlarm> {
564479 let (at_ms, ..) = crate::storage::persisted_alarm(&path.to_string_lossy(), cell)?;
565480 // The entry this alarm already has in the bucket was written by
566481 // whoever armed it, which is not this process once the cell has
@@ -583,7 +498,6 @@
583498 }
584499 }
585500
586-
587501 /// Did the replicator refuse to prove this commit durable? Distinct from
588502 /// `ensure_durable`: an absent control socket is not a refusal here, it is
589503 /// the historical ungated behaviour.
@@ -604,7 +518,12 @@
604518 /// The output-gate durability wait (see `Replication::await_durable`).
605519 /// Returns the proved durable position; with no replicator every position is
606520 /// trivially durable.
607- pub async fn await_durable(&self, cell: &str, epoch: u64, position: u64) -> anyhow::Result<u64> {
521+ pub async fn await_durable(
522+ &self,
523+ cell: &str,
524+ epoch: u64,
525+ position: u64,
526+ ) -> anyhow::Result<u64> {
608527 match &self.replication {
609528 Some(replication) => replication.await_durable(cell, epoch, position).await,
610529 None => Ok(position),
@@ -1083,7 +1002,6 @@
10831002 request_id,
10841003 reply,
10851004 } => {
1086- let queue_wait_us = queued_at.elapsed().as_micros() as u64;
10871005 let execution_started = Instant::now();
10881006 let result = worker.fetch_and_reply_id(
10891007 &url,
@@ -1093,9 +1011,20 @@
10931011 request_id,
10941012 reply,
10951013 );
1096- let execution_us = execution_started.elapsed().as_micros() as u64;
1097- if let Some(request_id) = request_id {
1098- tracing::info!(
1014+ // Per-request timing rides the off-by-default
1015+ // `timing` target: an info!-per-request costs real
1016+ // throughput on the hot path, and the `enabled!`
1017+ // guard skips the elapsed math and formatting when
1018+ // the target is off. The lab turns it on with
1019+ // RUST_LOG=info,timing=debug.
1020+ if let Some(request_id) = request_id.filter(|_| {
1021+ tracing::enabled!(target: "timing", tracing::Level::DEBUG)
1022+ }) {
1023+ let queue_wait_us = queued_at.elapsed().as_micros() as u64;
1024+ let execution_us =
1025+ execution_started.elapsed().as_micros() as u64;
1026+ tracing::debug!(
1027+ target: "timing",
10991028 event = "worker_fetch_timing",
11001029 outcome = if result.is_ok() {
11011030 "completed"
modifiedcrates/celld/startup.rs+3−1View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Process startup primitives shared by the standalone and eventual managed
24 //! celld adapters.
35 //!
@@ -108,7 +110,7 @@
108110 const MIN_RESIDENT_CELLS: u64 = 1_000;
109111
110112 /// Raise the descriptor limit to its hard ceiling, and warn when even that
111-/// bounds residency. Litestream inherits this limit as our child.
113+/// bounds residency.
112114 #[cfg(unix)]
113115 pub fn raise_file_limit() {
114116 let mut limit = libc::rlimit {
modifiedcrates/celld/storage.rs+6−3View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Cell storage: SQLite backing for the Durable Object storage API.
24 //!
35 //! DO's `ctx.storage` is async in JS but synchronous underneath (local SQLite).
@@ -115,8 +117,8 @@
115117 // disks; the fsync was the entire single-cell write budget).
116118 // Process crashes lose nothing. An OS/power crash may lose the
117119 // last commits locally — celld's durability boundary for node
118- // loss is Litestream replication either way, and Litestream's own
119- // documentation recommends NORMAL under replication.
120+ // loss is LTX replication either way, and replicated-WAL setups
121+ // conventionally run NORMAL.
120122 c.pragma_update(None, "synchronous", "NORMAL")?;
121123 c.execute(
122124 "CREATE TABLE IF NOT EXISTS kv \
@@ -386,7 +388,8 @@
386388 Ok(())
387389 }
388390
389-/// Drop `scope`'s connection (hibernate) so litestream can release the file.
391+/// Drop `scope`'s connection (hibernate) so the replicator can release the
392+/// file.
390393 pub fn close(scope: &str) {
391394 close_sync_list_cursors(scope);
392395 close_sql_cursors(scope);
modifiedcrates/celld/wake.rs+36−77View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Alarm wake for hibernated cells (on by default).
24 //!
35 //! Committed alarm state is mirrored into the bucket as
@@ -12,8 +14,7 @@
1214 //! stale entry costs one spurious wake, a missing entry costs a lost wake;
1315 //! - the flusher never touches the request path: it reads the lock-free
1416 //! `next_alarm_ms` mirror on the existing 5 s sweep tick.
15-use aws_sdk_s3::primitives::ByteStream;
16-use aws_sdk_s3::Client;
17+use crate::bucket::Bucket;
1718 use celld_logic::wake::parse_entry_key;
1819 use celld_logic::wake::Op;
1920 use celld_logic::wake::Step;
@@ -35,39 +36,27 @@
3536 }
3637
3738 /// Scan the due wake buckets: used by the boot-time orphan scan and the
38-/// Phase 3 waker tick. Keys sort by due minute, so paging stops at the first
39-/// future bucket — the scan is O(due entries), never O(all entries).
39+/// Phase 3 waker tick. The whole `wake/` prefix is listed and filtered
40+/// locally; entries are deleted as their alarms are consumed, so the listing
41+/// stays O(armed entries).
4042 /// Due entries as (cell, minute_ms). The minute is carried out so a reviving
4143 /// node can adopt the entry it acted on: without it, a cell whose restored
4244 /// truth has no alarm leaves the entry that woke it in the bucket forever.
43-pub async fn due_scan(c: &Client, bucket: &str, now_ms: i64) -> Vec<(String, i64)> {
45+pub async fn due_scan(bucket: &Bucket, now_ms: i64) -> Vec<(String, i64)> {
4446 let mut due = Vec::new();
45- let mut token: Option<String> = None;
46- 'pages: loop {
47- let mut req = c.list_objects_v2().bucket(bucket).prefix("wake/");
48- if let Some(t) = &token {
49- req = req.continuation_token(t);
47+ let objects = match bucket.list("wake/").await {
48+ Ok(objects) => objects,
49+ Err(e) => {
50+ warn!(error = %e, "wake due scan list failed");
51+ return due;
5052 }
51- let page = match req.send().await {
52- Ok(page) => page,
53- Err(e) => {
54- warn!(error = %e, "wake due scan list failed");
55- break;
56- }
57- };
58- for object in page.contents() {
59- let Some(key) = object.key() else { continue };
60- if let Some((minute_ms, cell)) = parse_entry_key(key) {
61- if minute_ms > now_ms {
62- break 'pages;
63- } // sorted: all later
53+ };
54+ for object in objects {
55+ if let Some((minute_ms, cell)) = parse_entry_key(object.location.as_ref()) {
56+ if minute_ms <= now_ms {
6457 due.push((cell, minute_ms));
6558 }
6659 }
67- match page.next_continuation_token() {
68- Some(t) => token = Some(t.to_string()),
69- None => break,
70- }
7160 }
7261 due.sort();
7362 due.dedup_by(|a, b| a.0 == b.0);
@@ -77,36 +66,17 @@
7766 /// Advisory waker-role lease: one holder per fleet to avoid N nodes polling.
7867 /// Correctness never depends on it — concurrent wakers race activation CAS
7968 /// harmlessly — so every failure path just returns false and skips a tick.
80-pub async fn try_hold_waker(
81- c: &Client,
82- bucket: &str,
83- node: &str,
84- now_ms: i64,
85- ttl_ms: i64,
86-) -> bool {
69+pub async fn try_hold_waker(bucket: &Bucket, node: &str, now_ms: i64, ttl_ms: i64) -> bool {
8770 const KEY: &str = "wake/waker.json";
88- let body = |expires: i64| {
89- ByteStream::from(format!("{{\"node\":{node:?},\"expires_ms\":{expires}}}").into_bytes())
90- };
91- let current = c.get_object().bucket(bucket).key(KEY).send().await;
92- match current {
93- Err(_) => {
94- // absent (or unreadable): claim if absent
95- c.put_object()
96- .bucket(bucket)
97- .key(KEY)
98- .if_none_match("*")
99- .body(body(now_ms + ttl_ms))
100- .send()
101- .await
102- .is_ok()
103- }
104- Ok(resp) => {
105- let etag = resp.e_tag().unwrap_or_default().to_string();
106- let bytes = match resp.body.collect().await {
107- Ok(b) => b.into_bytes(),
108- Err(_) => return false,
109- };
71+ let body =
72+ |expires: i64| format!("{{\"node\":{node:?},\"expires_ms\":{expires}}}").into_bytes();
73+ match bucket.get(KEY).await {
74+ // absent (or unreadable): claim if absent
75+ Ok(None) | Err(_) => matches!(
76+ bucket.put_cas(KEY, body(now_ms + ttl_ms), None).await,
77+ Ok(Some(_))
78+ ),
79+ Ok(Some((bytes, etag))) => {
11080 let text = String::from_utf8_lossy(&bytes);
11181 let held_by_us = text.contains(&format!("\"node\":{node:?}"));
11282 let expires = text
@@ -115,14 +85,12 @@
11585 .and_then(|t| t.trim_end_matches('}').trim().parse::<i64>().ok())
11686 .unwrap_or(0);
11787 if celld_logic::wake::waker_may_claim(held_by_us, expires, now_ms) {
118- c.put_object()
119- .bucket(bucket)
120- .key(KEY)
121- .if_match(etag)
122- .body(body(now_ms + ttl_ms))
123- .send()
124- .await
125- .is_ok()
88+ matches!(
89+ bucket
90+ .put_cas(KEY, body(now_ms + ttl_ms), Some(&etag))
91+ .await,
92+ Ok(Some(_))
93+ )
12694 } else {
12795 false
12896 }
@@ -183,8 +151,7 @@
183151 /// final delete of a consumed alarm on the consuming commit's replication.
184152 pub async fn reconcile(
185153 &self,
186- c: &Client,
187- bucket: &str,
154+ bucket: &Bucket,
188155 cell: &str,
189156 next_alarm_ms: i64,
190157 consume_durable: bool,
@@ -214,15 +181,8 @@
214181 let Some(step) = step else { break };
215182 match step {
216183 Step::Put { key, due_ms, body } => {
217- match c
218- .put_object()
219- .bucket(bucket)
220- .key(&key)
221- .body(ByteStream::from(body.into_bytes()))
222- .send()
223- .await
224- {
225- Ok(_) => plan.put_done(&mut self.core.lock().unwrap(), key, due_ms),
184+ match bucket.put(&key, body.into_bytes()).await {
185+ Ok(()) => plan.put_done(&mut self.core.lock().unwrap(), key, due_ms),
226186 Err(e) => {
227187 warn!(%cell, %key, error = %e, "wake entry put failed");
228188 plan.put_failed();
@@ -233,7 +193,7 @@
233193 // A failed delete still drops the state: a stale entry is
234194 // one spurious wake, and keeping it would block the arm
235195 // that replaces it.
236- if let Err(e) = c.delete_object().bucket(bucket).key(&key).send().await {
196+ if let Err(e) = bucket.delete(&key).await {
237197 warn!(%cell, %key, error = %e, "wake entry delete failed");
238198 }
239199 plan.delete_done(&mut self.core.lock().unwrap(), &key);
@@ -284,5 +244,4 @@
284244 pub fn forget(&self, cell: &str) {
285245 self.core.lock().unwrap().forget(cell);
286246 }
287-
288247 }
addedcrates/celld/ws_client.rs+206−0View file
@@ -1,0 +1,206 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
3+//! Outbound WebSocket client.
4+//!
5+//! celld serves WebSockets with fastwebsockets, and connects with it too. That
6+//! matters most on the peer hop: a frame relayed from a client to the cell's
7+//! owner is framed, masked, and closed by one implementation on both sides
8+//! rather than translated between two.
9+//!
10+//! What this owns that a client library would have owned: the TLS setup, the
11+//! handshake headers, and the non-101 response. The last one is why
12+//! `fastwebsockets::handshake::client` is not called directly -- it discards
13+//! the response body, and `new WebSocket()` reports a declined upgrade with it.
14+
15+use anyhow::anyhow;
16+use anyhow::Context;
17+use base64::Engine;
18+use fastwebsockets::Role;
19+use fastwebsockets::WebSocket;
20+use http_body_util::BodyExt;
21+use http_body_util::Empty;
22+use hyper::header::HeaderMap;
23+use hyper::header::HeaderValue;
24+use hyper::header::CONNECTION;
25+use hyper::header::HOST;
26+use hyper::header::SEC_WEBSOCKET_ACCEPT;
27+use hyper::header::SEC_WEBSOCKET_KEY;
28+use hyper::header::SEC_WEBSOCKET_VERSION;
29+use hyper::header::UPGRADE;
30+use hyper::upgrade::Upgraded;
31+use hyper::Request;
32+use hyper::StatusCode;
33+use hyper_util::rt::TokioIo;
34+use sha1::Digest;
35+use sha1::Sha1;
36+use std::sync::OnceLock;
37+use tokio::io::AsyncRead;
38+use tokio::io::AsyncWrite;
39+
40+/// A server response that was not a 101.
41+pub struct Declined {
42+ pub status: StatusCode,
43+ pub headers: HeaderMap,
44+ pub body: Vec<u8>,
45+}
46+
47+pub enum Error {
48+ /// The server answered and refused the upgrade. Callers read this: a 401
49+ /// revokes managed credentials, a stale-route header triggers a
50+ /// redispatch, and the isolate surfaces the whole thing to `onerror`.
51+ Declined(Declined),
52+ /// No answer to read -- DNS, TCP, TLS, or a malformed handshake.
53+ Failed(anyhow::Error),
54+}
55+
56+impl From<anyhow::Error> for Error {
57+ fn from(error: anyhow::Error) -> Self {
58+ Error::Failed(error)
59+ }
60+}
61+
62+impl std::fmt::Display for Error {
63+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
64+ match self {
65+ Error::Declined(declined) => {
66+ write!(f, "server refused the upgrade: {}", declined.status)
67+ }
68+ Error::Failed(error) => write!(f, "{error}"),
69+ }
70+ }
71+}
72+
73+pub struct Connection {
74+ pub socket: WebSocket<TokioIo<Upgraded>>,
75+ /// The 101's headers: the negotiated subprotocol, and on the peer hop the
76+ /// signature the caller verifies before trusting the tunnel.
77+ pub headers: HeaderMap,
78+}
79+
80+/// Mozilla's roots, the same set the previous client compiled in. Deliberately
81+/// not the platform store: a downloaded celld should reach `wss://` on a host
82+/// that has no `/etc/ssl/certs`.
83+fn tls_config() -> &'static tokio_rustls::TlsConnector {
84+ static CONFIG: OnceLock<tokio_rustls::TlsConnector> = OnceLock::new();
85+ CONFIG.get_or_init(|| {
86+ let roots = rustls::RootCertStore {
87+ roots: webpki_roots::TLS_SERVER_ROOTS.to_vec(),
88+ };
89+ let config = rustls::ClientConfig::builder()
90+ .with_root_certificates(roots)
91+ .with_no_client_auth();
92+ tokio_rustls::TlsConnector::from(std::sync::Arc::new(config))
93+ })
94+}
95+
96+/// RFC 6455's proof the server read the key rather than blindly answering 101.
97+fn accept_key(key: &str) -> String {
98+ let mut digest = Sha1::new();
99+ digest.update(key.as_bytes());
100+ digest.update(b"258EAFA5-E914-47DA-95CA-C5AB0DC85B11");
101+ base64::engine::general_purpose::STANDARD.encode(digest.finalize())
102+}
103+
104+/// Open a WebSocket to `url`, sending `extra` alongside the handshake headers.
105+///
106+/// The caller owns the timeout: nothing here bounds how long a server may take
107+/// to answer.
108+pub async fn connect(url: &str, extra: HeaderMap) -> Result<Connection, Error> {
109+ let url = url::Url::parse(url).context("parse WebSocket URL")?;
110+ let tls = match url.scheme() {
111+ "ws" => false,
112+ "wss" => true,
113+ scheme => return Err(anyhow!("not a WebSocket scheme: {scheme}").into()),
114+ };
115+ let host = url
116+ .host_str()
117+ .context("WebSocket URL has no host")?
118+ .to_string();
119+ let port = url.port_or_known_default().context("no port")?;
120+ let authority = match (tls, port) {
121+ (false, 80) | (true, 443) => host.clone(),
122+ _ => format!("{host}:{port}"),
123+ };
124+ let target = match url.query() {
125+ Some(query) => format!("{}?{query}", url.path()),
126+ None => url.path().to_string(),
127+ };
128+
129+ let tcp = tokio::net::TcpStream::connect((host.as_str(), port))
130+ .await
131+ .with_context(|| format!("connect {authority}"))?;
132+ let stream: Box<dyn Stream> = if tls {
133+ let name = rustls::pki_types::ServerName::try_from(host.clone())
134+ .map_err(|_| anyhow!("invalid TLS server name: {host}"))?;
135+ Box::new(
136+ tls_config()
137+ .connect(name, tcp)
138+ .await
139+ .with_context(|| format!("TLS handshake with {authority}"))?,
140+ )
141+ } else {
142+ Box::new(tcp)
143+ };
144+
145+ let key = fastwebsockets::handshake::generate_key();
146+ let mut request = Request::builder()
147+ .method("GET")
148+ .uri(&target)
149+ .header(HOST, &authority)
150+ .header(UPGRADE, "websocket")
151+ .header(CONNECTION, "Upgrade")
152+ .header(SEC_WEBSOCKET_KEY, &key)
153+ .header(SEC_WEBSOCKET_VERSION, "13")
154+ .body(Empty::<bytes::Bytes>::new())
155+ .context("build WebSocket handshake")?;
156+ request.headers_mut().extend(extra);
157+
158+ let (mut sender, connection) = hyper::client::conn::http1::handshake(TokioIo::new(stream))
159+ .await
160+ .with_context(|| format!("HTTP handshake with {authority}"))?;
161+ // The upgrade is completed by polling this, so it has to outlive the
162+ // response -- and keep running afterwards to drive the upgraded stream.
163+ tokio::spawn(async move {
164+ let _ = connection.with_upgrades().await;
165+ });
166+
167+ let mut response = sender
168+ .send_request(request)
169+ .await
170+ .with_context(|| format!("WebSocket handshake with {authority}"))?;
171+ if response.status() != StatusCode::SWITCHING_PROTOCOLS {
172+ let status = response.status();
173+ let headers = response.headers().clone();
174+ let body = response
175+ .into_body()
176+ .collect()
177+ .await
178+ .map(|body| body.to_bytes().to_vec())
179+ .unwrap_or_default();
180+ return Err(Error::Declined(Declined {
181+ status,
182+ headers,
183+ body,
184+ }));
185+ }
186+ if response
187+ .headers()
188+ .get(SEC_WEBSOCKET_ACCEPT)
189+ .map(HeaderValue::as_bytes)
190+ != Some(accept_key(&key).as_bytes())
191+ {
192+ return Err(anyhow!("server returned an invalid Sec-WebSocket-Accept").into());
193+ }
194+
195+ let headers = response.headers().clone();
196+ let upgraded = hyper::upgrade::on(&mut response)
197+ .await
198+ .with_context(|| format!("upgrade the connection to {authority}"))?;
199+ Ok(Connection {
200+ socket: WebSocket::after_handshake(TokioIo::new(upgraded), Role::Client),
201+ headers,
202+ })
203+}
204+
205+trait Stream: AsyncRead + AsyncWrite + Send + Unpin {}
206+impl<S: AsyncRead + AsyncWrite + Send + Unpin> Stream for S {}
modifiedcrates/logic/Cargo.toml+2−2View file
@@ -1,9 +1,9 @@
11 [package]
22 name = "celld-logic"
3-version = "0.0.2"
3+version = "0.1.0"
44 edition = "2021"
55 rust-version = "1.94.1"
6-license = "MIT"
6+license = "Apache-2.0"
77
88 # Pure decision core: no async, I/O, clocks, randomness, locks, or dependencies.
99 [lib]
modifiedcrates/logic/alarm.rs+2−0View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Alarm retry policy, reified sans-IO. After a handler fails, `celld` persists
24 //! a backoff in SQLite (`storage.rs`) and abandons the alarm once a bounded
35 //! number of limit-counting failures accrue. That schedule is a pure function
modifiedcrates/logic/cache.rs+2−0View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Local hibernation-cache eviction, sans-IO.
24 //!
35 //! Idle hibernation preserves each cell's SQLite file so a same-node wake is
modifiedcrates/logic/dead_node_reconciliation.rs+2−0View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Sans-I/O decisions for retiring compatibility ownership-index debris.
24 //!
35 //! celld does not create `node-cells/` markers, but it shares fleet buckets
modifiedcrates/logic/lib.rs+62−28View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Clean-sheet celld decision core.
24 //!
35 //! [`on_event`] is the only way behavioral state advances. The production
@@ -1034,6 +1036,10 @@
10341036 /// last measured rather than aiming at a cell count that means nothing to
10351037 /// it.
10361038 shed_floor: usize,
1039+ /// RSS measured when the current shed floor was set. A later latched
1040+ /// sample compares against this: a completed cut that left RSS flat
1041+ /// makes another cut futile.
1042+ shed_cut_rss: Option<u64>,
10371043 /// The shedding latch. celld kept this in the executor, which meant the
10381044 /// hysteresis -- the part with actual behaviour -- was the one piece the
10391045 /// simulation could not reach. It is carried here so a sample
@@ -1084,6 +1090,7 @@
10841090 now_ms: 0,
10851091 now_mono_ms: 0,
10861092 shed_floor: 0,
1093+ shed_cut_rss: None,
10871094 shedding: false,
10881095 shed_reason: None,
10891096 }
@@ -1395,13 +1402,13 @@
13951402 }
13961403
13971404 fn has_capacity(&self) -> bool {
1398- self.occupied() < self.config.max_resident
1399- && pressure::may_admit(
1400- self.occupied(),
1401- 0,
1402- self.config.pressure.resident_high,
1403- self.shedding,
1404- )
1405+ // Residency is a hard cap, known exactly and counted -- never sampled.
1406+ // A node at its cell cap is at capacity, not overloaded: it refuses
1407+ // more and holds what it has, rather than shedding a live cell it must
1408+ // then place again elsewhere. The only sampled fact that refuses
1409+ // admission is genuine resource pressure (RSS/CPU), which a cell count
1410+ // cannot see.
1411+ self.occupied() < self.config.max_resident && !self.shedding
14051412 }
14061413
14071414 pub fn is_active(&self, id: &str) -> bool {
@@ -1570,7 +1577,10 @@
15701577 self.active_requests.insert(request, route.cell.clone());
15711578 if let Some(cell) = self.cells.get_mut(&route.cell) {
15721579 if matches!(cell.phase, Phase::EnsuringDurability { .. }) {
1580+ // Same rescue as `request_authorized`: the permit taken
1581+ // at nomination comes back with the cell.
15731582 cell.phase = Phase::Resident { epoch: route.epoch };
1583+ self.hibernation_permits.remove(&route.cell);
15741584 }
15751585 cell.last_used_mono_ms = self.now_mono_ms;
15761586 }
@@ -2060,6 +2070,7 @@
20602070 }
20612071 }
20622072
2073+
20632074 /// An activation effect outlived its deadline.
20642075 ///
20652076 /// Expiry deliberately reuses each stage's own failure handling rather
@@ -2562,9 +2573,13 @@
25622573 Phase::EnsuringDurability { epoch, .. } => {
25632574 // The runtime is still published, so a new request wins the
25642575 // race with voluntary eviction. Retiring the operation makes
2565- // its eventual durability completion harmless.
2576+ // its eventual durability completion harmless. The permit
2577+ // taken at nomination comes back with the rescue: leaked, it
2578+ // counts against `max_hibernations` forever and eventually
2579+ // stands every future eviction down.
25662580 let epoch = *epoch;
25672581 cell.phase = Phase::Resident { epoch };
2582+ self.hibernation_permits.remove(&id);
25682583 self.complete_request(&id, request, Ok(Route::Local), effects);
25692584 }
25702585 Phase::Remote {
@@ -2730,12 +2745,7 @@
27302745 for request in handoffs {
27312746 cell.requests.remove(&request);
27322747 self.request_cells.remove(&request);
2733- self.complete_request(
2734- id,
2735- request,
2736- Err(RequestError::CapacityExhausted),
2737- effects,
2738- );
2748+ self.complete_request(id, request, Err(RequestError::CapacityExhausted), effects);
27392749 }
27402750
27412751 if cell.requests.is_empty() || !self.config.require_node_lease {
@@ -3466,8 +3476,14 @@
34663476 // that cannot be admitted has no stopping condition, and every
34673477 // completed eviction re-enters here through `pump_capacity` and starts
34683478 // another. That empties the node.
3479+ //
3480+ // Count the evictions already in flight against the waiters: this is
3481+ // reachable from every activity finish and websocket close, and a
3482+ // waiter whose eviction is already under way must not turn each of
3483+ // those triggers into another victim. Spend the cut on commit, never
3484+ // on nomination.
34693485 if self.shedding
3470- || self.capacity_waiters.is_empty()
3486+ || self.capacity_waiters.len() <= self.hibernation_permits.len()
34713487 || self.hibernation_permits.len() >= self.config.max_hibernations
34723488 {
34733489 return;
@@ -3548,21 +3564,35 @@
35483564 .or(state.trigger);
35493565 if !state.shedding {
35503566 // Relieved. Whatever was queued for capacity may proceed.
3567+ self.shed_cut_rss = None;
35513568 self.pump_capacity(effects);
35523569 self.evict_idle(now_mono_ms, effects);
35533570 return;
35543571 }
3555- // How far this sample asks the node to come down. A residency trigger
3556- // aims at the low watermark; a resource trigger takes a proportion of
3557- // what was just measured, because the effect of an eviction on RSS or
3558- // CPU is not visible until the next sample.
3559- let Some(reason) = self.shed_reason else {
3560- return;
3561- };
3562- self.shed_floor = self
3563- .config
3564- .pressure
3565- .release_target(load.resident_cells, reason);
3572+ // Evicting only helps if it returns memory. When the last cut has
3573+ // fully landed and this sample's RSS sits within 5% of what that cut
3574+ // measured, another cut is futile: the latch holds -- the node
3575+ // genuinely is over its ceiling, so admission stays closed -- but the
3576+ // walk down stops spending the working set. Without this stopping
3577+ // condition an unsatisfiable ceiling (one below the process's memory
3578+ // floor) evicts a proportion of whatever remains on every sample and
3579+ // walks the node to zero -- a latched walk down with no stopping
3580+ // condition, the same shape as demand shedding for a waiter that can
3581+ // never be admitted. A
3582+ // sample that moves either way re-arms the walk down.
3583+ if let Some(cut_rss) = self.shed_cut_rss {
3584+ let cut_landed =
3585+ self.occupied() <= self.shed_floor && self.hibernation_permits.is_empty();
3586+ let flat = load.rss_bytes.abs_diff(cut_rss) <= cut_rss / 20;
3587+ if cut_landed && flat {
3588+ return;
3589+ }
3590+ }
3591+ // How far this resource sample asks the node to come down: a proportion
3592+ // of what was just measured, because the effect of an eviction on RSS
3593+ // or CPU is not visible until the next sample.
3594+ self.shed_floor = self.config.pressure.release_target(load.resident_cells);
3595+ self.shed_cut_rss = Some(load.rss_bytes);
35663596 self.shed_toward_floor(effects);
35673597 }
35683598
@@ -3608,7 +3638,11 @@
36083638 // A write still on the output gate keeps its request pinned, so the
36093639 // cell cannot be evicted before the write is proven durable. The unpin
36103640 // moves to whichever path drains the last gate for this request.
3611- if self.gated_writes.values().any(|gate| gate.request == request) {
3641+ if self
3642+ .gated_writes
3643+ .values()
3644+ .any(|gate| gate.request == request)
3645+ {
36123646 self.gate_pinned.insert(request);
36133647 return;
36143648 }
@@ -3737,7 +3771,7 @@
37373771 || (!already_pinned
37383772 && !pressure::may_pin_outbound(
37393773 self.outbound_pinned(),
3740- self.config.pressure.resident_high,
3774+ Some(self.config.max_resident),
37413775 )))
37423776 {
37433777 effects.push(Effect::CloseWebSocket {
modifiedcrates/logic/peer.rs+2−0View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Peer-authentication predicates, reified sans-IO. The signed-request checks in
24 //! `peer_auth::verify` — a well-formed identity, a timestamp within the clock
35 //! window, and replay-cache retention — are pure predicates over scalars, and
modifiedcrates/logic/pressure.rs+48−87View file
@@ -1,21 +1,30 @@
1-//! `PressureConfig::state` reified sans-IO: load shedding is a pure classifier
2-//! of a resource sample plus prior shedding state (the hysteresis latch). No
3-//! I/O, no clock — the env read that builds the config stays at the edge
4-//! (`main.rs`). This is the degenerate case of the pattern: a pure decision
5-//! with no ports and no effects, included to prove the seam is uniform. It is
6-//! the extraction target for `main.rs`'s private `PressureConfig`.
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
72
8-/// Watermarks and ceilings. Built once from the environment by the caller;
9-/// the core never reads the environment itself.
3+//! `PressureConfig::state` reified sans-IO: resource-pressure shedding as a
4+//! pure classifier of a sample plus prior shedding state (the hysteresis
5+//! latch). No I/O, no clock — the env read that builds the config stays at the
6+//! edge (`main.rs`).
7+//!
8+//! Residency is deliberately *not* here. A node's cell count is a hard cap
9+//! enforced at admission ([`crate::State::has_capacity`]), self-limiting and
10+//! known exactly; it is not a resource that needs a proactive walk down. This
11+//! classifier answers only the other question — "is this node out of memory or
12+//! CPU, and must give cells back to recover?" — which a cell count cannot
13+//! answer. Conflating the two produced the placement churn and the admission
14+//! wedge; splitting them is what keeps each decision small.
15+
16+/// Resource watermarks. Built once from the environment by the caller; the
17+/// core never reads the environment itself. Residency has no watermark here —
18+/// it is capped at admission.
1019 #[derive(Clone, Copy, Debug, PartialEq, Eq, Default)]
1120 pub struct PressureConfig {
12- pub resident_high: Option<usize>,
13- pub resident_low: usize,
1421 pub rss_high_bytes: Option<u64>,
1522 pub cpu_high_x100: Option<u64>,
1623 }
1724
18-/// A resource sample — the only input the classifier reads.
25+/// A resource sample — the only input the classifier reads. `resident_cells`
26+/// is carried so a resource trigger can size its walk down as a proportion of
27+/// what is actually resident.
1928 #[derive(Clone, Copy, Debug, PartialEq, Eq)]
2029 pub struct Load {
2130 pub resident_cells: usize,
@@ -25,17 +34,13 @@
2534
2635 #[derive(Clone, Copy, Debug, PartialEq, Eq)]
2736 pub struct PressureState {
28- pub admission_blocked: bool,
2937 pub shedding: bool,
3038 pub trigger: Option<&'static str>,
3139 }
3240
3341 impl PressureConfig {
34- /// The first ceiling the sample crosses, or `None`.
42+ /// The first resource ceiling the sample crosses, or `None`.
3543 pub fn trigger(self, s: Load) -> Option<&'static str> {
36- if self.resident_high.is_some_and(|h| s.resident_cells >= h) {
37- return Some("resident_cells");
38- }
3944 if self.rss_high_bytes.is_some_and(|h| s.rss_bytes >= h) {
4045 return Some("rss");
4146 }
@@ -47,43 +52,32 @@
4752
4853 /// Back under every low watermark (80% of each high) — the latch release.
4954 pub fn relieved(self, s: Load) -> bool {
50- let resident_ok =
51- self.resident_high.is_none_or(|_| s.resident_cells <= self.resident_low);
5255 let rss_ok = self
5356 .rss_high_bytes
5457 .is_none_or(|h| s.rss_bytes <= h.saturating_mul(4) / 5);
5558 let cpu_ok = self
5659 .cpu_high_x100
5760 .is_none_or(|h| s.cpu_percent_x100 <= h.saturating_mul(4) / 5);
58- resident_ok && rss_ok && cpu_ok
61+ rss_ok && cpu_ok
5962 }
6063
61- /// How far to shed down to for a given trigger.
62- pub fn release_target(self, resident_cells: usize, reason: &str) -> usize {
63- if reason == "resident_cells" {
64- self.resident_low
65- } else {
66- resident_cells.saturating_sub((resident_cells / 10).max(1))
67- }
64+ /// How far to shed down to. A resource trigger takes a proportion of what
65+ /// was just measured, because the effect of an eviction on RSS or CPU is
66+ /// not visible until the next sample.
67+ pub fn release_target(self, resident_cells: usize) -> usize {
68+ resident_cells.saturating_sub((resident_cells / 10).max(1))
6869 }
6970
70- /// The resource whose low watermark still holds the shedding latch. An
71- /// instantaneous trigger wins; inside a hysteresis band, preserve the
72- /// resource-specific reason until every configured low watermark clears.
73- pub fn shedding_trigger(
74- self,
75- s: Load,
76- was_shedding: bool,
77- ) -> Option<&'static str> {
71+ /// The resource whose low watermark still holds the latch. An instantaneous
72+ /// trigger wins; inside a hysteresis band, preserve the resource-specific
73+ /// reason until every configured low watermark clears.
74+ pub fn shedding_trigger(self, s: Load, was_shedding: bool) -> Option<&'static str> {
7875 if let Some(trigger) = self.trigger(s) {
7976 return Some(trigger);
8077 }
8178 if !was_shedding || self.relieved(s) {
8279 return None;
8380 }
84- if self.resident_high.is_some() && s.resident_cells > self.resident_low {
85- return Some("resident_cells");
86- }
8781 if self
8882 .rss_high_bytes
8983 .is_some_and(|h| s.rss_bytes > h.saturating_mul(4) / 5)
@@ -102,62 +96,29 @@
10296 /// The transition: `was_shedding` is the only carried state — the latch
10397 /// that keeps shedding between the high crossing and the low release.
10498 pub fn state(self, s: Load, was_shedding: bool) -> PressureState {
105- let trigger = self.trigger(s);
106- let admission_blocked = trigger.is_some();
107- let shedding = self.shedding_trigger(s, was_shedding).is_some();
108- PressureState { admission_blocked, shedding, trigger }
99+ PressureState {
100+ shedding: self.shedding_trigger(s, was_shedding).is_some(),
101+ trigger: self.trigger(s),
102+ }
109103 }
110104 }
111105
112-
113-/// May one more cell be admitted to residency right now?
114-///
115-/// Two independent facts gate admission. Conflating them turns graceful
116-/// degradation under load into a cliff.
117-///
118-/// `sampled_pressure` is the hysteresis latch from [`PressureConfig::state`]:
119-/// a periodic view of RSS, CPU, and residency, and the only thing entitled to
120-/// say "this node is overloaded". The headroom test below is the other, and it
121-/// is instantaneous.
122-///
123-/// A request that merely lost a race for the last slot has learned the second
124-/// fact, not the first. If such a waiter is allowed to assert node-wide
125-/// pressure, every other cell on the node is refused until the next sample —
126-/// including cells that would fit — and the waiters keep the latch hot for one
127-/// another. Capacity that exists then goes unused for a full sampling period.
128-pub fn may_admit(
129- owned: usize,
130- pending: usize,
131- resident_high: Option<usize>,
132- sampled_pressure: bool,
133-) -> bool {
134- if sampled_pressure {
135- return false;
136- }
137- resident_high.is_none_or(|high| owned.saturating_add(pending) < high)
138-}
139-
140106 pub const MAX_OUTBOUND_PIN_PERCENT: usize = 50;
141107
142108 /// May another cell be pinned resident by an outbound WebSocket?
143109 ///
144-/// An outbound socket is not hibernatable, so `plan_candidates` refuses to
145-/// evict its cell for as long as it is open. That is correct — a live host
146-/// transport cannot survive hibernation — but it means every pinned cell is
147-/// permanently removed from the eviction pool. Pin the whole ceiling and the
148-/// sweep has nothing left to nominate: residency can never fall, admission
149-/// waits for capacity that cannot be freed, and the node serves
150-/// `capacity_exhausted` until an application happens to close a socket.
151-///
152-/// A per-cell ceiling does not bound this. One socket each across a thousand
153-/// cells pins a thousand cells. The budget has to be node-wide, counted in
154-/// pinned *cells* rather than sockets, because one socket is enough to pin.
155-pub fn may_pin_outbound(pinned_cells: usize, resident_high: Option<usize>) -> bool {
156- resident_high.is_none_or(|high| {
157- // At least one, always. The share alone rounds to zero below a
158- // ceiling of two, which would make an outbound socket impossible on a
159- // small node rather than merely budgeted -- celld's ceilings were
160- // large enough that the floor never came up.
161- pinned_cells < (high.saturating_mul(MAX_OUTBOUND_PIN_PERCENT) / 100).max(1)
110+/// An outbound socket is not hibernatable, so eviction refuses its cell for as
111+/// long as it is open. That is correct — a live host transport cannot survive
112+/// hibernation — but it means every pinned cell is removed from the eviction
113+/// pool. Pin the whole ceiling and a resource walk down has nothing to
114+/// nominate. The budget is node-wide, counted in pinned *cells* rather than
115+/// sockets, because one socket is enough to pin. `ceiling` is the hard resident
116+/// cap.
117+pub fn may_pin_outbound(pinned_cells: usize, ceiling: Option<usize>) -> bool {
118+ ceiling.is_none_or(|cap| {
119+ // At least one, always. The share alone rounds to zero below a ceiling
120+ // of two, which would make an outbound socket impossible on a small
121+ // node rather than merely budgeted.
122+ pinned_cells < (cap.saturating_mul(MAX_OUTBOUND_PIN_PERCENT) / 100).max(1)
162123 })
163124 }
modifiedcrates/logic/restore.rs+16−23View file
@@ -1,11 +1,20 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Restore-source durability predicates, reified sans-IO. Activation restores a
2-//! cell's SQLite from the newest SAFE source — a local hibernation snapshot, a
3-//! local crash epoch, or the replicated bucket. Which source is a durability
4-//! decision: pick a stale one over a newer replica and the cell serves lost
5-//! writes; pick a needlessly-remote one and pay dozens of sequential round trips
6-//! (measured: 46, 0 local reuses in 910 activations, before the previous-epoch
7-//! lookup). The AVAILABILITY of each source is I/O (file checks, S3 LIST); these
8-//! predicates are the pure choices among them, and the safety fences within.
4+//! cell's SQLite from the newest SAFE source — a local hibernation snapshot or
5+//! the replicated bucket. Which source is a durability decision: pick a stale
6+//! one over a newer replica and the cell serves lost writes; pick a
7+//! needlessly-remote one and pay dozens of sequential round trips (measured:
8+//! 46, 0 local reuses in 910 activations, before the previous-epoch lookup).
9+//! The AVAILABILITY of each source is I/O (file checks, S3 LIST); this
10+//! predicate is the pure choice among them.
11+//!
12+//! Two siblings (`local_epoch_wins`, `recoverable`) guarded the local
13+//! crash-epoch restore, a source the external litestream backend needed and
14+//! the in-process ltx replicator deliberately does not have: a restart
15+//! re-acquires the next epoch from the bucket, so a committed-but-unacked
16+//! write is discarded and RPO=0 covers exactly the acknowledged ones. They
17+//! were deleted with their mechanism.
918
1019 pub type Epoch = u64;
1120
@@ -19,19 +28,3 @@
1928 epoch > 1 && !took_over
2029 }
2130
22-/// Restore the LOCAL crash epoch instead of the replicated bucket? Yes when
23-/// there is no replica, or the local epoch is at least as new as the newest
24-/// replicated one — a local restore is cheap, and a same-or-newer local epoch
25-/// carries every durable write the replica holds. A replica STRICTLY newer than
26-/// the local epoch wins: it may hold writes this node never saw.
27-pub fn local_epoch_wins(local_epoch: Epoch, remote_epoch: Option<Epoch>) -> bool {
28- remote_epoch.is_none_or(|remote| local_epoch >= remote)
29-}
30-
31-/// May a discovered local epoch be recovered during activation of `activating`?
32-/// Only when STRICTLY before it. Recovering an epoch `>= activating` would
33-/// reopen the ownership the activation just advanced past, letting two processes
34-/// open the same db — the strict `<` is the fence, not an optimization.
35-pub fn recoverable(candidate: Epoch, activating: Epoch) -> bool {
36- candidate < activating
37-}
modifiedcrates/logic/routing.rs+2−0View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Whether a failed peer dispatch may be re-sent.
24 //!
35 //! A cell runs on exactly one node, so every other node forwards to the
modifiedcrates/logic/schedule.rs+2−0View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Cell-isolate dispatch decisions, reified sans-IO. A cell isolate runs one
24 //! event at a time. A top-level Worker fetch takes the resident-isolate fast
35 //! path only when the isolate is idle; if the isolate is already pumping an
modifiedcrates/logic/sqlite.rs+2−0View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! SQLite failure classification, reified sans-IO. When a storage operation
24 //! fails, does it POISON the actor — the engine destroyed an active transaction,
35 //! so every later operation on this scope must fail closed — or is it merely
modifiedcrates/logic/wake.rs+13−5View file
@@ -1,3 +1,5 @@
1+// Copyright 2026 Deno Land Inc. Apache-2.0 license.
2+
13 //! Alarm-wake entry reconciliation, sans-IO — plus the wake key scheme.
24 //!
35 //! `WakeCore`'s `decide` is a pure transition; [`Reconcile`] holds the
@@ -225,9 +227,9 @@
225227 /// Is this exact committed alarm durably covered by a proven entry? The
226228 /// fail-closed gate: eviction of an alarm-bearing cell requires it.
227229 pub fn covered(&self, cell: &str, next_alarm_ms: Ms) -> bool {
228- self.flushed.get(cell).is_some_and(|e| {
229- e.verified && !e.deleting && e.key == entry_key(next_alarm_ms, cell)
230- })
230+ self.flushed
231+ .get(cell)
232+ .is_some_and(|e| e.verified && !e.deleting && e.key == entry_key(next_alarm_ms, cell))
231233 }
232234
233235 /// Is a consume-delete for this cell's tracked entry on the wire? Any
@@ -312,8 +314,14 @@
312314 /// here, rather than formatted independently by every executor.
313315 #[derive(Clone, Debug, PartialEq, Eq)]
314316 pub enum Step {
315- Put { key: String, due_ms: Ms, body: String },
316- Delete { key: String },
317+ Put {
318+ key: String,
319+ due_ms: Ms,
320+ body: String,
321+ },
322+ Delete {
323+ key: String,
324+ },
317325 }
318326
319327 /// A reconcile in progress: the ordering rules, without the I/O.
modifiedcrates/ltx/Cargo.toml+16−17View file
@@ -24,24 +24,23 @@
2424 azure = ["object_store/azure"]
2525
2626 [dependencies]
27-tokio = { version = "1", features = ["rt-multi-thread", "macros", "fs", "io-util", "sync", "time"] }
27+tokio = { workspace = true, features = ["rt-multi-thread", "macros", "fs", "io-util", "sync", "time"] }
2828 # Aligned to celld's rusqlite (crates/celld pins 0.31); libsqlite3-sys carries
2929 # links="sqlite3", so the workspace cannot hold two versions.
30-rusqlite = { version = "0.31", features = ["bundled"] }
31-object_store = { version = "0.11", default-features = false }
32-bytes = "1"
33-thiserror = "2"
34-tracing = "0.1"
35-async-trait = "0.1"
36-futures = "0.3"
37-serde = { version = "1", features = ["derive"] }
38-serde_json = "1"
39-reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-native-roots", "http2"], optional = true }
40-lz4_flex = { version = "0.11", features = ["frame"] }
30+rusqlite = { workspace = true, features = ["bundled"] }
31+object_store.workspace = true
32+bytes.workspace = true
33+thiserror.workspace = true
34+tracing.workspace = true
35+async-trait.workspace = true
36+futures-util.workspace = true
37+serde.workspace = true
38+serde_json.workspace = true
39+reqwest = { workspace = true, optional = true }
40+lz4_flex.workspace = true
4141
4242 [dev-dependencies]
43-tokio = { version = "1", features = ["full", "test-util"] }
44-tempfile = "3"
45-proptest = "1"
46-sha2 = "0.10"
47-hex = "0.4"
43+tokio = { workspace = true, features = ["full", "test-util"] }
44+tempfile.workspace = true
45+proptest.workspace = true
46+hex.workspace = true
modifiedcrates/ltx/README.md+1−1View file
@@ -19,7 +19,7 @@
1919 - **rustyriver** — Copyright 2026 The rustyriver authors, licensed under the
2020 Apache License, Version 2.0.
2121 - **Litestream** (https://github.com/benbjohnson/litestream), pinned by celld
22- to tag v0.5.15 — Copyright (c) Ben Johnson and the Litestream authors,
22+ to tag v0.5.11 — Copyright (c) Ben Johnson and the Litestream authors,
2323 licensed under the Apache License, Version 2.0. Replication behavior and test
2424 vectors are ported for wire-compatible interoperability.
2525 - **LTX file format and reference implementation**
modifiedcrates/ltx/src/client/object_store.rs+2−2View file
@@ -31,7 +31,7 @@
3131
3232 use std::sync::Arc;
3333
34-use futures::stream::{FuturesUnordered, StreamExt, TryStreamExt};
34+use futures_util::stream::{FuturesUnordered, StreamExt, TryStreamExt};
3535 use object_store::aws::AmazonS3Builder;
3636 use object_store::path::Path as ObjPath;
3737 use object_store::{
@@ -821,7 +821,7 @@
821821 return Ok(());
822822 }
823823 let owned: Vec<ObjPath> = keys.to_vec();
824- let stream = futures::stream::iter(owned.into_iter().map(Ok));
824+ let stream = futures_util::stream::iter(owned.into_iter().map(Ok));
825825 let mut results = store.delete_stream(stream.boxed());
826826 while let Some(res) = results.next().await {
827827 match res {
modifiedcrates/ltx/src/replica.rs+187−5View file
@@ -54,6 +54,24 @@
5454 /// port that works the moment compaction is added.
5555 pub const SNAPSHOT_LEVEL: i32 = 9;
5656
57+/// Whether a sync error means the cached replica position can no longer be
58+/// trusted and must be re-derived from the store on the next sync.
59+///
60+/// True only for errors that say the local/replica state itself diverged. A
61+/// transient store or IO error is not one of these: a fenced single writer's
62+/// position is still valid, and its re-upload is an idempotent overwrite. See
63+/// [`Replica::sync`] for why celld narrows Litestream's clear-on-any-error.
64+fn pos_untrustworthy(err: &Error) -> bool {
65+ matches!(
66+ err,
67+ Error::NoSnapshots
68+ | Error::ChecksumMismatch
69+ | Error::LTXCorrupted
70+ | Error::LTXMissing
71+ | Error::TxNotAvailable
72+ )
73+}
74+
5775 /// Connects a database to a replication destination via a [`ReplicaClient`].
5876 ///
5977 /// Ported from `Replica` (replica.go:30-59). The Go type also owns the
@@ -73,6 +91,13 @@
7391 /// Current replicated position (`replica.go:33-34` `pos`).
7492 pos: Pos,
7593
94+ /// Whether `pos` is known and needs no `calc_pos` listing to re-derive.
95+ /// Seeded true at activation (see [`Self::seed_pos`]); reset false only when
96+ /// a divergence error says the position can no longer be trusted. Upstream
97+ /// has no equivalent -- it lists whenever `pos` is zero -- which is the
98+ /// listing celld's fencing lets it skip.
99+ pos_known: bool,
100+
76101 /// If true, automatically reset local state when LTX errors are detected
77102 /// (`replica.go:54-58` `AutoRecoverEnabled`). Consulted by the deferred
78103 /// monitor loop; the field is kept so the public surface matches upstream.
@@ -88,6 +113,7 @@
88113 db: Some(db),
89114 client,
90115 pos: Pos::ZERO,
116+ pos_known: false,
91117 auto_recover_enabled: false,
92118 }
93119 }
@@ -99,6 +125,7 @@
99125 db: None,
100126 client,
101127 pos: Pos::ZERO,
128+ pos_known: false,
102129 auto_recover_enabled: false,
103130 }
104131 }
@@ -136,6 +163,17 @@
136163 self.pos = pos;
137164 }
138165
166+ /// Seed the replicated position from the caller's known-durable state and
167+ /// mark it known, so the next sync skips the `calc_pos` listing. A fresh
168+ /// cell seeds 0; a just-restored cell seeds its restored max. celld always
169+ /// knows this at activation -- local equals remote under epoch fencing --
170+ /// so the listing that only existed to re-discover the position, and that
171+ /// storms a rate-limiting store, is not issued on the activation path.
172+ pub fn seed_pos(&mut self, pos: Pos) {
173+ self.pos = pos;
174+ self.pos_known = true;
175+ }
176+
139177 /// Copies new L0 LTX files from the local capture directory to the replica.
140178 ///
141179 /// Ported from `Replica.Sync` (replica.go:132-180). On any error the cached
@@ -145,22 +183,38 @@
145183 match self.sync_inner().await {
146184 Ok(()) => Ok(()),
147185 Err(e) => {
148- // Clear last position if an error occurs during sync
149- // (replica.go:137-143).
150- self.pos = Pos::ZERO;
186+ // Litestream clears the cached position on *any* error so the
187+ // next sync re-derives it with a `calc_pos` listing
188+ // (replica.go:137-143) -- safe there only because it is single-
189+ // node with no fencing. celld fences one writer per epoch
190+ // through the store, so within an epoch a transient store/IO
191+ // error does not invalidate our own position; re-uploads are
192+ // idempotent overwrites. Forget the position only when the
193+ // error says the state itself diverged, else a rate-limiting or
194+ // slow store turns every write into a listing.
195+ if pos_untrustworthy(&e) {
196+ self.pos = Pos::ZERO;
197+ self.pos_known = false;
198+ }
151199 Err(e)
152200 }
153201 }
154202 }
155203
156204 async fn sync_inner(&mut self) -> Result<()> {
157- // Calculate current replica position, if unknown (replica.go:146-152).
158- if self.pos().is_zero() {
205+ // Re-derive the replica position with a listing only when it is not
206+ // already known (replica.go:146-152). celld seeds it at activation from
207+ // local state that equals the remote under epoch fencing, so a listing
208+ // -- which only ever re-discovered a position the owner already knows --
209+ // never runs on the hot path, and a fresh cell's pointless list of an
210+ // empty prefix is skipped entirely.
211+ if !self.pos_known {
159212 let pos = self
160213 .calc_pos()
161214 .await
162215 .map_err(|e| Error::Other(format!("calc pos: {e}").into()))?;
163216 self.set_pos(pos);
217+ self.pos_known = true;
164218 }
165219
166220 // Find current position of the database (replica.go:155-160).
@@ -1103,4 +1157,132 @@
11031157 "page 2 reflects the newest incremental"
11041158 );
11051159 }
1160+
1161+ // A client that fails the first `write_ltx_file` with a preloaded error and
1162+ // then delegates, so a single sync's upload can be made to fail on demand.
1163+ // `poison_list` makes every `ltx_files` (the `calc_pos` listing) fail, so a
1164+ // test can prove a seeded sync never lists.
1165+ struct FaultyClient {
1166+ inner: FileReplicaClient,
1167+ fail_first_write: std::sync::Mutex<Option<Error>>,
1168+ poison_list: bool,
1169+ }
1170+
1171+ impl FaultyClient {
1172+ fn new(inner: FileReplicaClient, err: Error) -> Self {
1173+ Self {
1174+ inner,
1175+ fail_first_write: std::sync::Mutex::new(Some(err)),
1176+ poison_list: false,
1177+ }
1178+ }
1179+ fn poisoning_list(inner: FileReplicaClient) -> Self {
1180+ Self {
1181+ inner,
1182+ fail_first_write: std::sync::Mutex::new(None),
1183+ poison_list: true,
1184+ }
1185+ }
1186+ }
1187+
1188+ #[async_trait::async_trait]
1189+ impl ReplicaClient for FaultyClient {
1190+ fn type_name(&self) -> &str {
1191+ "faulty"
1192+ }
1193+ async fn ltx_files(&self, l: i32, s: TXID, m: bool) -> Result<Vec<FileInfo>> {
1194+ if self.poison_list {
1195+ return Err(Error::Other("list poisoned".into()));
1196+ }
1197+ self.inner.ltx_files(l, s, m).await
1198+ }
1199+ async fn open_ltx_file(
1200+ &self,
1201+ l: i32,
1202+ mn: TXID,
1203+ mx: TXID,
1204+ o: i64,
1205+ s: i64,
1206+ ) -> Result<Vec<u8>> {
1207+ self.inner.open_ltx_file(l, mn, mx, o, s).await
1208+ }
1209+ async fn write_ltx_file(&self, l: i32, mn: TXID, mx: TXID, d: &[u8]) -> Result<FileInfo> {
1210+ if let Some(e) = self.fail_first_write.lock().unwrap().take() {
1211+ return Err(e);
1212+ }
1213+ self.inner.write_ltx_file(l, mn, mx, d).await
1214+ }
1215+ async fn delete_ltx_files(&self, f: &[FileInfo]) -> Result<()> {
1216+ self.inner.delete_ltx_files(f).await
1217+ }
1218+ async fn delete_all(&self) -> Result<()> {
1219+ self.inner.delete_all().await
1220+ }
1221+ }
1222+
1223+ // The classifier that decides whether a sync error invalidates the cached
1224+ // position: only state-divergence errors do; transient store/IO ones do not.
1225+ #[test]
1226+ fn pos_untrustworthy_splits_divergence_from_transient() {
1227+ assert!(pos_untrustworthy(&Error::ChecksumMismatch));
1228+ assert!(pos_untrustworthy(&Error::LTXCorrupted));
1229+ assert!(pos_untrustworthy(&Error::LTXMissing));
1230+ assert!(pos_untrustworthy(&Error::TxNotAvailable));
1231+ assert!(pos_untrustworthy(&Error::NoSnapshots));
1232+ assert!(!pos_untrustworthy(&Error::Other("429 slow down".into())));
1233+ assert!(!pos_untrustworthy(&Error::Io(std::io::Error::from(
1234+ std::io::ErrorKind::TimedOut
1235+ ))));
1236+ }
1237+
1238+ // A failed upload must NOT discard the cached position: a fenced single
1239+ // writer keeps it and retries (an idempotent overwrite) rather than re-
1240+ // deriving it with a `calc_pos` listing. `sync_inner` wraps every store
1241+ // error as `Error::Other`, so this is the shape every real upload/list
1242+ // failure takes -- the exact case the old clear-on-any-error turned into a
1243+ // listing storm on a rate-limiting store.
1244+ #[tokio::test]
1245+ async fn transient_upload_error_keeps_position() {
1246+ let dir = tempfile::tempdir().unwrap();
1247+ let db = Db::open(dir.path().join("test.db")).unwrap();
1248+ let inner =
1249+ FileReplicaClient::new(dir.path().join("replica").to_string_lossy().into_owned());
1250+ let mut r = Replica::new(db, FaultyClient::new(inner, Error::Other("s3: 503".into())));
1251+ // One decodable L0 file at TXID 2 makes db.pos()==2 and is the local
1252+ // file the upload reads before the client write is rigged to fail.
1253+ let l0 = r.db().unwrap().ltx_path(0, TXID(2), TXID(2));
1254+ std::fs::create_dir_all(Path::new(&l0).parent().unwrap()).unwrap();
1255+ std::fs::write(&l0, build_incremental_ltx(TXID(2), TXID(2), 512, 2, 0x22)).unwrap();
1256+ // Seed TXID 1 as known-replicated, so sync tries to upload TXID 2.
1257+ r.seed_pos(Pos::new(TXID(1), 0));
1258+ r.sync().await.expect_err("upload was rigged to fail");
1259+ assert_eq!(
1260+ r.pos().txid,
1261+ TXID(1),
1262+ "a transient error keeps the position"
1263+ );
1264+ }
1265+
1266+ // A seeded position skips the `calc_pos` listing entirely: with listing
1267+ // poisoned, an unseeded replica's first sync would fail there, but a seeded
1268+ // one uploads without ever listing. This is the fix for the activation
1269+ // listing that storms a rate-limiting store on every fresh cell.
1270+ #[tokio::test]
1271+ async fn seeded_position_skips_calc_pos_listing() {
1272+ let dir = tempfile::tempdir().unwrap();
1273+ let db = Db::open(dir.path().join("test.db")).unwrap();
1274+ let inner =
1275+ FileReplicaClient::new(dir.path().join("replica").to_string_lossy().into_owned());
1276+ let mut r = Replica::new(db, FaultyClient::poisoning_list(inner));
1277+ // Local L0 snapshot at TXID 1: db.pos()==1 and a file to upload.
1278+ let l0 = r.db().unwrap().ltx_path(0, TXID(1), TXID(1));
1279+ std::fs::create_dir_all(Path::new(&l0).parent().unwrap()).unwrap();
1280+ std::fs::write(&l0, build_snapshot_ltx(TXID(1), 512, 2)).unwrap();
1281+ // Seed as a fresh cell (known 0); the first sync must not list.
1282+ r.seed_pos(Pos::ZERO);
1283+ r.sync()
1284+ .await
1285+ .expect("a seeded sync must not list, so the poisoned list is never hit");
1286+ assert_eq!(r.pos().txid, TXID(1), "uploaded TXID 1 with no listing");
1287+ }
11061288 }
modifiedcrates/ltx/tests/differential_xtool.rs+1−1View file
@@ -34,11 +34,11 @@
3434 //! cleanest, hermetic way to put both tools on the *same* bytes. The S3/MinIO
3535 //! transport is separately proven end-to-end by T7 (`integration_minio.rs`).
3636
37-use rusqlite::Connection;
3837 use celld_ltx::client::file::FileReplicaClient;
3938 use celld_ltx::db::Db;
4039 use celld_ltx::replica::{self, Replica};
4140 use celld_ltx::TXID;
41+use rusqlite::Connection;
4242 use std::path::Path;
4343 use std::process::Command;
4444
modifiedcrates/ltx/tests/faults_inject.rs+1−1View file
@@ -21,13 +21,13 @@
2121 //! (they assert error/typing/no-panic); the recovery cases that compare DB
2222 //! contents self-skip (never fail) when `sqlite3` is not on PATH.
2323
24-use rusqlite::Connection;
2524 use celld_ltx::client::file::FileReplicaClient;
2625 use celld_ltx::client::ReplicaClient;
2726 use celld_ltx::db::Db;
2827 use celld_ltx::ltx::{self, FileInfo};
2928 use celld_ltx::replica::{self, Replica, SNAPSHOT_LEVEL};
3029 use celld_ltx::{ltx_file_path, Error, TXID};
30+use rusqlite::Connection;
3131 use std::path::{Path, PathBuf};
3232 use std::process::Command;
3333
modifiedcrates/ltx/tests/fuzz_parsers.rs+2−2View file
@@ -380,8 +380,8 @@
380380 /// headers, and an otherwise-valid-looking header with a bogus checksum.
381381 fn adversarial_wal_corpus() -> Vec<Vec<u8>> {
382382 let mut v: Vec<Vec<u8>> = vec![
383- vec![], // empty
384- vec![0x00; 10], // partial header
383+ vec![], // empty
384+ vec![0x00; 10], // partial header
385385 vec![0x00; celld_ltx::WAL_HEADER_SIZE], // zero header (bad magic)
386386 ];
387387
modifiedcrates/ltx/tests/integration_file.rs+1−2View file
@@ -16,12 +16,12 @@
1616 //! anchor for the reader, prefiguring G3/D2) — skipped only if the binary or
1717 //! `sqlite3` is absent from PATH.
1818
19-use rusqlite::Connection;
2019 use celld_ltx::client::file::FileReplicaClient;
2120 use celld_ltx::client::ReplicaClient;
2221 use celld_ltx::db::Db;
2322 use celld_ltx::replica::{self, Replica};
2423 use celld_ltx::TXID;
24+use rusqlite::Connection;
2525 use std::path::Path;
2626 use std::process::Command;
2727
@@ -51,7 +51,6 @@
5151 }
5252 }
5353
54-
5554 /// The real binary under test: `$LITESTREAM_BIN`, or `litestream` on PATH.
5655 /// The oracle is pinned to the v0.5 replica format (v0.5.11); a v0.3-era
5756 /// binary knows nothing of LTX and fails as a baffling "no matching
modifiedcrates/ltx/tests/integration_resilience.rs+1−1View file
@@ -21,12 +21,12 @@
2121 //! Each test self-skips (never fails) when `sqlite3` is not on PATH, since the
2222 //! Oracle needs it; the capture/replicate/restore code is exercised regardless.
2323
24-use rusqlite::Connection;
2524 use celld_ltx::client::file::FileReplicaClient;
2625 use celld_ltx::client::ReplicaClient;
2726 use celld_ltx::db::{CheckpointMode, Db};
2827 use celld_ltx::replica::{self, Replica};
2928 use celld_ltx::TXID;
29+use rusqlite::Connection;
3030 use std::path::Path;
3131 use std::process::Command;
3232
modifiedcrates/ltx/tests/property_roundtrip.rs+2−2View file
@@ -22,11 +22,11 @@
2222 //! The whole suite self-skips (never fails) if `sqlite3` is not on PATH, since
2323 //! the oracle requires it.
2424
25-use proptest::prelude::*;
26-use rusqlite::Connection;
2725 use celld_ltx::client::file::FileReplicaClient;
2826 use celld_ltx::db::{CheckpointMode, Db};
2927 use celld_ltx::replica::Replica;
28+use proptest::prelude::*;
29+use rusqlite::Connection;
3030 use std::path::Path;
3131 use std::process::Command;
3232
modifieddocs/README.md+93−76View file
@@ -1,18 +1,34 @@
11 # celld documentation
22
3-celld runs Cloudflare Workers and Durable Objects on your own machines.
4-Each Durable Object is its own SQLite database with a single writer, addressed
5-by name and replicated to an S3-compatible bucket you own. Writes are durable
6-before they are acknowledged (RPO=0, like Durable Objects): a synchronous output
7-gate holds a write's response until it is replicated, so losing a node cannot
8-lose an acknowledged write. A fleet of celld nodes coordinates through that
9-bucket alone — no control plane, no membership service, no consensus.
3+celld is a stateful distributed system. It runs server-side JavaScript on
4+your machines and keeps all shared data in an S3-compatible bucket that
5+you own. The JavaScript API is the same API that Cloudflare Workers and
6+Durable Objects supply.
107
11-Because state is partitioned into one small database per object from the first
12-line of code, applications shard by construction. The contention, hot spots,
13-and blast-radius failures of a single shared database are designed out rather
14-than managed: a runaway object can only affect its own cell.
8+In Cloudflare terms, a cell is a Durable Object: a small server with a
9+name and a private SQLite database. You make one cell for each user, each
10+document, each chat room, or each AI agent. A cell serves HTTP, holds
11+WebSocket connections, sets alarms, and makes outbound connections. Each
12+cell runs on one thread, so two requests to the same cell never run at
13+the same instant. A second request can interleave only while the first
14+awaits, and storage operations are synchronous, so a storage operation
15+never interleaves at all. The data in a cell therefore stays consistent.
16+Cells share no database, and the application divides into cells from the
17+start.
1518
19+An idle cell hibernates to the bucket, where it is only an object in S3
20+and costs almost zero. A resident cell is in memory. One 8 GB node holds
21+1,000 resident cells, so one resident cell costs approximately $0.05 each
22+month.
23+
24+The bucket is the coordinator. There is no membership protocol, no
25+failure detector, and no consensus service. One atomic write to the
26+bucket gives a node the ownership of a cell. Replication sends the SQLite
27+data of each cell to the bucket, and celld does not acknowledge a write
28+before the data is there (RPO=0). The loss of a node therefore cannot
29+lose an acknowledged write. To add a node to the fleet, point the node at
30+the bucket.
31+
1632 ## Contents
1733
1834 - [Install](#install)
@@ -23,34 +39,34 @@
2339 - [Diagnose a fleet](#diagnose-a-fleet)
2440 - [Environment variables](#environment-variables)
2541 - [Cloudflare compatibility](cloudflare-compat.md)
26-- [Support matrix](support.md)
2742 - [limitations](limitations.md)
2843 - [Security](security.md)
29-- [Simulations](simulations.md)
44+- [Testing](testing.md)
3045
3146 ## Install
3247
33-The installer downloads the `celld` binary. Replication is in-process, so a node
34-needs no external replicator by default; the optional Litestream backend
35-(`CELLD_REPLICATOR=litestream`) needs [Litestream](https://litestream.io) on
36-`PATH` (or `LITESTREAM_BIN`). Worker projects deployed with `celld deploy` need
37-esbuild; asset-only projects do not:
48+The installer downloads the `celld` binary. Replication occurs in the
49+celld process. A node does not need an external replicator. If your
50+project contains Worker code, `celld deploy` needs esbuild. An asset-only
51+project does not need esbuild.
3852
3953 ```sh
4054 curl -fsSL https://celld.dev/install.sh | sh
4155 ```
4256
43-Put `~/.local/bin` on `PATH` if the installer asks you to. Install an exact
44-immutable release by setting `CELLD_VERSION` to its tag, such as `v0.0.1`.
45-Rerun the installer with a previous tag to roll back both binaries. Releases
46-are published on [GitHub](https://github.com/denoland/celld/releases) with
47-GitHub Actions build attestations; verify any downloaded asset with
48-`gh attestation verify <asset> --repo denoland/celld`.
57+If the installer tells you, add `~/.local/bin` to `PATH`. To install one
58+exact release, set `CELLD_VERSION` to the tag of that release, for example
59+`v0.0.1`. To go back to a previous release, run the installer again with
60+the tag of that release. The releases are on
61+[GitHub](https://github.com/denoland/celld/releases). Each release has a
62+GitHub Actions build attestation. To make sure that a downloaded file is
63+correct, run `gh attestation verify <asset> --repo denoland/celld`.
4964
5065 ## Configure object storage
5166
52-celld uses the standard AWS credential chain. For Cloudflare R2, create a
53-bucket and an S3 API token with access to that bucket, then set:
67+celld uses the standard AWS credential chain. For Cloudflare R2, do these
68+steps. Create a bucket. Create an S3 API token that has access to that
69+bucket. Then set these variables:
5470
5571 ```sh
5672 export AWS_ACCESS_KEY_ID=...
@@ -60,14 +76,14 @@
6076 export CELLD_BUCKET=s3://YOUR-BUCKET
6177 ```
6278
63-Treat access to the fleet bucket and its credentials as fleet-administrator
64-access. The bucket contains deployments, SQLite replicas, ownership records,
65-node leases, and the peer-authentication secret.
79+The bucket credentials give full control of the fleet. Keep them safe. The
80+bucket contains the deployments, the SQLite replicas, the ownership
81+records, the node leases, and the peer-authentication secret.
6682
6783 ## Deploy an application
6884
69-Install `esbuild` on `PATH` when the project includes Worker code, then run
70-`celld deploy` from a supported Wrangler project:
85+If the project contains Worker code, install `esbuild` on `PATH`. Then run
86+`celld deploy` from an applicable Wrangler project:
7187
7288 ```sh
7389 git clone https://github.com/denoland/celld
@@ -78,16 +94,16 @@
7894 --region "$AWS_REGION"
7995 ```
8096
81-`celld deploy` supports module Workers, Durable Object bindings, and
82-co-deployed or asset-only static assets. The asset subset includes the assets
83-binding, HTML and not-found handling, worker-first routes, `_headers`, and
84-`_redirects`. It refuses unknown Wrangler configuration rather than silently
85-dropping it. See the [limitations](limitations.md) for the current
86-deployment boundary.
97+`celld deploy` accepts module Workers, Durable Object bindings, and static
98+assets. An asset project can include a Worker or be asset-only. The asset
99+functions include the assets binding, HTML handling, not-found handling,
100+worker-first routes, `_headers`, and `_redirects`. If the Wrangler
101+configuration contains an unknown key, the deploy stops with an error. See
102+the [limitations](limitations.md) for the current deployment boundary.
87103
88104 ## Start a node
89105
90-For local development, the default listener is enough:
106+For local development, the default listener is sufficient:
91107
92108 ```sh
93109 celld \
@@ -96,8 +112,8 @@
96112 --region "$AWS_REGION"
97113 ```
98114
99-For a reachable fleet node, bind the service and advertise the address other
100-nodes and ingress can actually reach:
115+For a fleet node, bind the service. Advertise an address that the other
116+nodes and the ingress can reach:
101117
102118 ```sh
103119 celld \
@@ -110,20 +126,23 @@
110126
111127 ## Add nodes
112128
113-Start every node with the same bucket settings and a distinct reachable
114-`--advertise` address. Nodes discover one another through bucket leases; there
115-is no join command and no fixed membership list.
129+Start each node with the same bucket settings. Give each node a different
130+`--advertise` address that the other nodes can reach. The nodes find each
131+other through the leases in the bucket. There is no join command and no
132+fixed membership list.
116133
117-The bucket provides discovery and authority, not network reachability.
118-Peer HTTP is versioned, body-bound, HMAC-authenticated, clock-bounded, and
119-replay-protected, but celld does not terminate TLS. Put advertised addresses
120-on a trusted private network or an encrypted overlay such as WireGuard or
121-Tailscale. Do not expose the peer port directly to the public internet.
134+The bucket supplies discovery and authority. The bucket does not supply
135+network reachability. The peer HTTP protocol has a version, a body
136+signature, an HMAC, a clock limit, and replay protection. celld does not
137+terminate TLS. Put the advertised addresses on a private network that you
138+trust, or on an encrypted overlay such as WireGuard or Tailscale. Do not
139+show the peer port to the public internet.
122140
123141 ## Diagnose a fleet
124142
125-`celld diagnose` reads the bucket's node leases and directly probes every live
126-peer without acquiring a lease or changing ownership:
143+`celld diagnose` reads the node leases in the bucket. Then it sends a
144+probe to each live peer. It does not get a lease. It does not change
145+ownership.
127146
128147 ```sh
129148 celld diagnose \
@@ -132,38 +151,36 @@
132151 --region "$AWS_REGION"
133152 ```
134153
135-Use `--peer NODE_ID` one or more times to restrict the probes. The report
136-distinguishes expired records, unsafe or malformed advertised addresses,
137-unreachable peers, authentication failures, and protocol incompatibility.
154+To probe only some nodes, use `--peer NODE_ID` one or more times. The
155+report identifies expired records, unsafe or incorrect advertised
156+addresses, peers that it cannot reach, authentication failures, and
157+protocol versions that do not agree.
138158
139159 ## Environment variables
140160
141-`celld -h` is the authoritative compact list. The main settings are:
161+For the full list, run `celld -h`. This table shows the primary settings:
142162
143163 | variable | purpose |
144164 | --- | --- |
145-| `CELLD_BUCKET` | Fleet bucket, equivalent to `--bucket` |
146-| `S3_ENDPOINT` | S3-compatible endpoint, equivalent to `--endpoint` |
147-| `AWS_REGION`, `AWS_DEFAULT_REGION` | Storage region |
148-| `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN` | Explicit AWS credentials; the normal AWS credential chain is also supported |
149-| `CELLD_ADDR` | Listener, equivalent to `--listen` |
150-| `CELLD_ADVERTISE` | Peer-reachable address, equivalent to `--advertise` |
151-| `CELLD_UNSAFE_PUBLIC_ADVERTISE` | Permit a literal public peer IP when set to `on` |
152-| `CELLD_NODE` | Explicit node-session ID |
153-| `CELLD_WATCH` | Local SQLite and replication working directory |
154-| `CELLD_OUTPUT_GATE` | `0` disables the synchronous durability gate (RPO=0), trading it for lower write latency; on by default |
155-| `CELLD_REPLICATOR` | `litestream` selects the external Litestream backend; in-process replication otherwise |
156-| `LITESTREAM_BIN` | Litestream executable path (Litestream backend only) |
157-| `CELLD_ESBUILD` | esbuild executable path |
158-| `CELLD_WORKERS` | Stateless Worker pool size (default: 16) |
159-| `CELLD_ACTIVATIONS` | Concurrent cold-cell activation limit (default: the smaller of Worker count and 128) |
160-| `CELLD_WORKER_LOADER` | Bind a Worker Loader (Code Mode) at this `env` name so a Worker can spawn isolates at runtime; off unless set (experimental) |
161-| `CELLD_MAX_LOADED_WORKERS` | Cap on concurrent dynamically-loaded workers (default: 256) |
162-| `CELLD_MAX_RESIDENT_CELLS`, `CELLD_RESIDENT_LOW_WATER` | Resident-cell pressure thresholds |
163-| `CELLD_MAX_RSS_MB`, `CELLD_MAX_CPU_PERCENT` | Linux process-pressure thresholds |
165+| `CELLD_BUCKET` | The fleet bucket. The same as `--bucket` |
166+| `S3_ENDPOINT` | The S3-compatible endpoint. The same as `--endpoint` |
167+| `AWS_REGION`, `AWS_DEFAULT_REGION` | The storage region |
168+| `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN` | Explicit AWS credentials. The standard AWS credential chain is also available |
169+| `CELLD_ADDR` | The listener. The same as `--listen` |
170+| `CELLD_ADVERTISE` | The address that peers can reach. The same as `--advertise` |
171+| `CELLD_UNSAFE_PUBLIC_ADVERTISE` | Set to `on` to permit a public peer IP |
172+| `CELLD_NODE` | An explicit node-session ID |
173+| `CELLD_WATCH` | The local work directory for SQLite and replication |
174+| `CELLD_ESBUILD` | The path of the esbuild executable |
175+| `CELLD_WORKERS` | The size of the stateless Worker pool (default: 16) |
176+| `CELLD_ACTIVATIONS` | The limit for concurrent cold-cell activations (default: the Worker count or 128, the smaller value) |
177+| `CELLD_WORKER_LOADER` | Bind a Worker Loader (Code Mode) at this `env` name. A Worker can then start isolates at runtime. Off unless set (experimental) |
178+| `CELLD_MAX_LOADED_WORKERS` | The limit for concurrent loaded workers (default: 256) |
179+| `CELLD_MAX_RESIDENT_CELLS` | The hard limit for resident cells, enforced at admission |
180+| `CELLD_MAX_RSS_MB` | The memory threshold for pressure shedding (default: 80% of the available memory; 0 disables it) |
181+| `CELLD_MAX_CPU_PERCENT` | The CPU threshold for pressure shedding (off unless set) |
164182 | `CELLD_VAR_*`, `CELLD_VARS_FILE` | Worker variable overrides |
165-| `GOMEMLIMIT` | Litestream Go heap limit (default child: `512MiB`) |
166-| `RUST_LOG` | Runtime log filter |
183+| `RUST_LOG` | The runtime log filter |
167184
168-The help output also names the advanced runtime tuning switches and their
185+The help output also shows the advanced tuning switches and their
169186 defaults.
modifieddocs/cloudflare-compat.md+92−89View file
@@ -1,139 +1,142 @@
11 # Cloudflare compatibility
22
3-celld runs the Workers runtime — module Workers, fetch, JS RPC, service
4-bindings, static assets — with Durable Objects as its stateful core. That
5-Worker surface is the bulk of this page, documented API by API below. What
6-celld does not run is the rest of the Cloudflare platform, and there the
7-scope rule is simple: **anything built on Durable Objects is in reach; a
8-fundamentally different primitive is out.** Cloudflare builds D1 on Durable
9-Objects, so a D1 binding is a thin layer over what celld already has. KV is
10-a globally-replicated eventually-consistent edge cache and R2 is blob
11-storage — different systems, not on the roadmap.
3+celld runs the Workers runtime, with Durable Objects as the stateful
4+core: module Workers, fetch, JS RPC, service bindings, and static assets.
5+This page shows that Worker surface, API by API. celld does not run the
6+rest of the Cloudflare platform, and the scope rule is simple: if
7+Cloudflare builds a function on Durable Objects, celld can get that
8+function, and a function on a different primitive is out of scope.
9+Cloudflare builds D1 on Durable Objects, so a D1 binding is a thin layer
10+over what celld already has. KV is a global cache with eventual
11+consistency, and R2 is blob storage: different systems, not on the
12+roadmap.
1213
13-Unsupported configuration and bindings should fail loudly at deploy or at
14-first use. Silent compatibility gaps are bugs; the known ones are marked
15-below.
14+A configuration or binding that is not available must fail loudly, at
15+deploy or at first use. A silent compatibility gap is a bug; the known
16+gaps have marks below.
1617
1718 ## Services
1819
1920 | service | notes |
2021 | --- | --- |
2122 | **Workers** | Module Workers: `fetch`, JS RPC, service bindings, Durable Object bindings, `vars`. |
22-| **Durable Objects** | The stateful core. SQLite storage, alarms, inbound hibernatable WebSockets, outbound `ws:`/`wss:` WebSocket clients (constructor and `fetch()` upgrade), single-writer semantics, addressed by name, RPC methods on stubs. |
23-| **Static assets** | Co-deployed immutable files, served from the fleet bucket: `assets.directory`, `binding`, `html_handling`, `not_found_handling`, `run_worker_first`, plus `_headers` and `_redirects`. Asset-only projects deploy without a Worker. |
24-| **Worker Loader (Code Mode)** | Experimental: bind a loader with `CELLD_WORKER_LOADER` and a Worker can spawn sandboxed isolates at runtime. See [Dynamic Worker loading](#dynamic-worker-loading-code-mode). |
23+| **Durable Objects** | The stateful core. SQLite storage, alarms, inbound hibernatable WebSockets, outbound `ws:`/`wss:` WebSocket clients (constructor and `fetch()` upgrade), one writer for each cell, names as addresses, RPC methods on stubs. |
24+| **Static assets** | Immutable files, served from the fleet bucket: `assets.directory`, `binding`, `html_handling`, `not_found_handling`, `run_worker_first`, plus `_headers` and `_redirects`. An asset-only project deploys without a Worker. |
25+| **Worker Loader (Code Mode)** | Experimental. Bind a loader with `CELLD_WORKER_LOADER`. A Worker can then start sandboxed isolates at runtime. See [Dynamic Worker loading](#dynamic-worker-loading-code-mode). |
2526
2627 Planned: **D1** (a D1 database is a Durable Object with a SQL API; celld
27-already has the hard part), **Workflows** (durable execution over cells and
28-alarms), **Queues** (DO-shaped; if demand appears).
28+already has the hard part), **Workflows** (durable execution over cells
29+and alarms), **Queues** (a Durable Object shape; if demand appears).
2930
30-Not planned: **KV** (a different consistency model), **R2** (blob storage is
31-what celld runs *on*, not what it provides — declared `r2_buckets` bindings
32-load, but every method throws), **Cache API**, **Workers AI, Vectorize,
33-Hyperdrive, Browser Rendering, Email** (managed platform services; an
34-experimental HTTP adapter for an AI binding exists behind `CELLD_AI_URL`),
35-**cron triggers, custom domains, TLS termination** (platform surface — celld
36-has its own durable alarms; put TLS in your ingress proxy).
31+Not planned: **KV** (a different consistency model), **R2** (celld runs
32+*on* blob storage; celld does not provide blob storage; declared
33+`r2_buckets` bindings load, but each method throws), **Cache API**,
34+**Workers AI, Vectorize, Hyperdrive, Browser Rendering, Email** (managed
35+platform services; an experimental HTTP adapter for an AI binding exists
36+behind `CELLD_AI_URL`), **cron triggers, custom domains, TLS
37+termination** (platform surface; celld has its own durable alarms; put
38+TLS in your ingress proxy).
3739
3840 ## Runtime APIs
3941
4042 Cloudflare's [Runtime APIs
41-index](https://developers.cloudflare.com/workers/runtime-apis/), category by
42-category:
43+index](https://developers.cloudflare.com/workers/runtime-apis/), category
44+by category:
4345
4446 | API | status |
4547 | --- | --- |
46-| Fetch, Request, Response, Headers | **Yes.** Gaps: `Response.redirect()`/`Response.error()` and the `cache` request option are missing. |
48+| Fetch, Request, Response, Headers | **Yes.** Gaps: `Response.redirect()`, `Response.error()`, and the `cache` request option are missing. |
4749 | Bindings (`env`) | **Yes** for Durable Objects, service bindings, `vars`, assets. Other binding types are out of scope (see Services). |
48-| Context (`ctx`) | **Yes**: `waitUntil`, `props`, `exports`. `passThroughOnException()` is accepted but has no effect — there is no CDN behind it. |
50+| Context (`ctx`) | **Yes**: `waitUntil`, `props`, `exports`. `passThroughOnException()` is accepted but has no effect. There is no CDN behind it. |
4951 | Handlers | `fetch`, `alarm`, `webSocketMessage`/`Close`/`Error`, RPC methods. **No** `scheduled` (cron), `queue`, `tail`, or `email` handlers. |
50-| RPC | **Yes**, substantially — see [RPC](#rpc). |
51-| Streams | **Yes**, including byte streams, BYOB readers, `tee`/`pipeTo`/`pipeThrough`, `IdentityTransformStream`, `FixedLengthStream`, `CompressionStream`/`DecompressionStream`. Gap: `ReadableStream.from()`. |
52-| Encoding | **Yes**: `TextEncoder`/`TextDecoder` (legacy encodings included), encoder/decoder streams, `atob`/`btoa`. |
52+| RPC | **Yes**, for most of the surface. See [RPC](#rpc). |
53+| Streams | **Yes.** This includes byte streams, BYOB readers, `tee`/`pipeTo`/`pipeThrough`, `IdentityTransformStream`, `FixedLengthStream`, and `CompressionStream`/`DecompressionStream`. Gap: `ReadableStream.from()`. |
54+| Encoding | **Yes**: `TextEncoder`/`TextDecoder` (legacy encodings included), encoder and decoder streams, `atob`/`btoa`. |
5355 | WebSockets | **Yes**, inbound (hibernatable, with attachments) and outbound. Gap: auto-response (`WebSocketRequestResponsePair`) and `getTags()`. |
54-| Web Crypto | **Partial**: `digest`, HMAC sign/verify, AES-GCM, RSA-OAEP decrypt, Ed25519/ECDSA-P256 sign, `getRandomValues`, `randomUUID`. Missing: `deriveKey`/`deriveBits`/`wrapKey`/`unwrapKey`, non-HMAC `verify`, `DigestStream`. Unsupported algorithms throw. |
55-| Web standards | **Yes**: `URL`, `URLSearchParams`, `URLPattern`, `AbortController`/`AbortSignal` (incl. `timeout()`, `any()`), `Blob`/`File`/`FormData`, `Event`/`EventTarget`, `DOMException`, `queueMicrotask`, `structuredClone` (non-conformant on exotic types), `navigator.userAgent`. |
56-| WebAssembly | **Yes** (V8's own, unrestricted). |
57-| Performance and timers | `setTimeout`/`clearTimeout`, `setImmediate`, `scheduler.wait()`. `setInterval` throws. `performance.now()` has millisecond resolution and `performance` is otherwise a stub. |
58-| Console | `log`/`info`/`warn`/`error` are real; `debug`/`trace`/`group`/`table` are no-ops; `assert`/`time`/`count` are absent. |
59-| Node.js compatibility | **Partial** — see [node: imports](#node-imports). |
56+| Web Crypto | **Partial**: `digest`, HMAC sign and verify, AES-GCM, RSA-OAEP decrypt, Ed25519 and ECDSA-P256 sign, `getRandomValues`, `randomUUID`. Missing: `deriveKey`/`deriveBits`/`wrapKey`/`unwrapKey`, verify other than HMAC, `DigestStream`. An algorithm that is not available throws. |
57+| Web standards | **Yes**: `URL`, `URLSearchParams`, `URLPattern`, `AbortController`/`AbortSignal` (with `timeout()`, `any()`), `Blob`/`File`/`FormData`, `Event`/`EventTarget`, `DOMException`, `queueMicrotask`, `structuredClone` (not conformant on exotic types), `navigator.userAgent`. |
58+| WebAssembly | **Yes** (V8's own, without restrictions). |
59+| Performance and timers | `setTimeout`/`clearTimeout`, `setImmediate`, `scheduler.wait()`. `setInterval` throws. `performance.now()` has millisecond resolution. The other parts of `performance` are stubs. |
60+| Console | `log`/`info`/`warn`/`error` are real. `debug`/`trace`/`group`/`table` do nothing. `assert`/`time`/`count` are absent. |
61+| Node.js compatibility | **Partial.** See [node: imports](#node-imports). |
6062 | Cache (`caches`) | **No.** |
6163 | HTMLRewriter | **No.** |
62-| TCP sockets (`cloudflare:sockets`) | **No.** Known silent gap: `connect()` currently resolves to an inert stub instead of throwing. |
63-| EventSource, MessageChannel, BroadcastChannel | **No.** The classes exist so bundles load, but they are inert. |
64+| TCP sockets (`cloudflare:sockets`) | **No.** Known silent gap: `connect()` currently gives an inert stub. It does not throw. |
65+| EventSource, MessageChannel, BroadcastChannel | **No.** The classes exist so that bundles load, but they do nothing. |
6466
6567 ## RPC
6668
67-The Workers [JS RPC
68-system](https://developers.cloudflare.com/workers/runtime-apis/rpc/) is
69-implemented: `WorkerEntrypoint` and `RpcTarget` from `cloudflare:workers`,
70-named entrypoints on service bindings, arbitrary method calls on Durable
71-Object stubs (requires `extends DurableObject`, or the `js_rpc` compat
72-flag), structured-clone arguments and returns with stub lifting for
73-functions, streams, and `RpcTarget`s, promise pipelining, `ctx.exports`
74-loopback stubs, and stubs persisted in DO storage.
69+celld implements the Workers [JS RPC
70+system](https://developers.cloudflare.com/workers/runtime-apis/rpc/):
71+`WorkerEntrypoint` and `RpcTarget` from `cloudflare:workers`, named
72+entrypoints on service bindings, and method calls on Durable Object stubs
73+(this needs `extends DurableObject`, or the `js_rpc` compat flag).
74+Arguments and returns use structured clone. Functions, streams, and
75+`RpcTarget`s become stubs. Promise pipelining, `ctx.exports` loopback
76+stubs, and stubs in DO storage are available.
7577
76-Current limits: a cross-isolate service binding with a named entrypoint
77-supports single method calls but not `fetch()`, awaitable properties, or
78-pipelined paths; same-isolate bindings support the full surface.
78+The current limits: a cross-isolate service binding with a named
79+entrypoint can do single method calls, but not `fetch()`, awaitable
80+properties, or pipelined paths; a same-isolate binding has the full
81+surface.
7982
8083 ## Dynamic Worker loading (Code Mode)
8184
82-Set `CELLD_WORKER_LOADER=LOADER` and Workers get `env.LOADER`, an
83-experimental port of Cloudflare's [Worker
84-Loader](https://developers.cloudflare.com/workers/runtime-apis/bindings/worker-loader/):
85-`loader.get(name, getCode)` (memoized) and `loader.load(code)` spawn a fresh
86-isolate per loaded worker; `mainModule`, sibling `modules`,
87-`compatibilityDate`/`Flags`, plain-JSON `env`, and `globalOutbound: null`
88-(deny egress) are honored, with workerd's 64 MiB code and 1 MiB env limits
89-and a `CELLD_MAX_LOADED_WORKERS` cap. Loaded workers serve `fetch()` and
90-single RPC method calls. Not yet: `globalOutbound` as a Fetcher, capability
91-stubs in `env`, awaitable or pipelined properties.
85+Set `CELLD_WORKER_LOADER=LOADER`. Workers then get `env.LOADER`. This is
86+an experimental port of Cloudflare's [Worker
87+Loader](https://developers.cloudflare.com/workers/runtime-apis/bindings/worker-loader/).
88+`loader.get(name, getCode)` (memoized) and `loader.load(code)` start a
89+new isolate for each loaded worker. These inputs are honored:
90+`mainModule`, sibling `modules`, `compatibilityDate`/`Flags`, plain-JSON
91+`env`, and `globalOutbound: null` (no egress). The limits of workerd
92+apply: 64 MiB of code and 1 MiB of env, plus the
93+`CELLD_MAX_LOADED_WORKERS` limit. A loaded worker serves `fetch()` and
94+single RPC method calls. Not yet available: `globalOutbound` as a
95+Fetcher, capability stubs in `env`, awaitable or pipelined properties.
9296
9397 ## node: imports
9498
95-`node:` specifiers are always available — the `nodejs_compat` flag is not
96-required and not read. `celld deploy` externalizes `node:*` at bundle time
97-and the runtime provides its own subset (Wrangler-style unenv polyfills are
98-not used):
99+`node:` specifiers are always available; the `nodejs_compat` flag is not
100+necessary, and celld does not read it. `celld deploy` externalizes
101+`node:*` at bundle time. The runtime supplies its own subset (it does not
102+use the Wrangler-style unenv polyfills):
99103
100104 - **Implemented**: `node:assert`, `node:async_hooks` (a real
101105 `AsyncLocalStorage`), `node:buffer`, `node:events`, `node:path`,
102106 `node:stream` (+ `stream/web`, `stream/promises`, `stream/consumers`),
103107 `node:timers/promises`, `node:util`.
104108 - **Partial**: `node:crypto` (hashes, HMAC, HKDF, PBKDF2, key objects,
105- `webcrypto`; signatures, ciphers, and DH throw), `node:zlib` (sync
106- `gzip`/`deflate` family only), `node:fs` (reads fail with `ENOENT`,
109+ `webcrypto`; signatures, ciphers, and DH throw), `node:zlib` (only the
110+ sync `gzip`/`deflate` family), `node:fs` (reads fail with `ENOENT`,
107111 `existsSync` is `false`).
108-- **Not implemented**: everything else — `node:http(s)`, `node:net`,
109- `node:tls`, `node:dns`, `node:os`, `node:process` (the `process` global
110- exists, the module does not), `node:worker_threads`, `node:vm`,
111- `node:child_process`, and the rest. Known silent gap: these currently
112- resolve to inert stubs instead of failing the import.
112+- **Not implemented**: the rest — `node:http(s)`, `node:net`,
113+ `node:tls`, `node:dns`, `node:os`, `node:process` (the `process`
114+ global exists, the module does not), `node:worker_threads`, `node:vm`,
115+ `node:child_process`, and the others. Known silent gap: these
116+ currently give inert stubs. They do not fail the import.
113117
114118 ## Compatibility flags
115119
116-`compatibility_date` and `compatibility_flags` are honored for the switches
117-celld models: `delete_all_deletes_alarm`, `js_rpc`,
120+`compatibility_date` and `compatibility_flags` are honored for the
121+switches that celld models: `delete_all_deletes_alarm`, `js_rpc`,
118122 `fetcher_no_get_put_delete`, `websocket_standard_binary_type`, and the
119123 assets navigation behavior. `Cloudflare.compatibilityFlags` reports only
120-flags celld actually honors; a flag celld does not model is absent rather
121-than reported as enabled — and is otherwise accepted without effect.
124+the flags that celld honors. A flag that celld does not model is absent
125+rather than reported as enabled, and celld accepts it without effect.
122126
123127 ## Wrangler configuration
124128
125-`celld deploy` builds a standard Wrangler project (esbuild on `PATH`) and
126-accepts `wrangler.jsonc` or `wrangler.json` — not `wrangler.toml`. The
127-supported config keys are `name`, `main`, `compatibility_date`,
128-`compatibility_flags`, `durable_objects`, `migrations`, `assets`,
129-`services`, and `vars`; `main` may be omitted for an asset-only project.
130-Symlinks and special files in the asset directory are refused, and
131-`.assetsignore` still requires Wrangler. Any other key — `routes`,
132-`kv_namespaces`, `triggers`, and the rest — fails the deploy with an error
133-naming it rather than being silently dropped. Remove it or deploy that
134-project with Wrangler.
129+`celld deploy` builds a standard Wrangler project (esbuild on `PATH`)
130+and accepts `wrangler.jsonc` or `wrangler.json`, not `wrangler.toml`.
131+The available config keys are `name`, `main`,
132+`compatibility_date`, `compatibility_flags`, `durable_objects`,
133+`migrations`, `assets`, `services`, and `vars`. An asset-only project can
134+omit `main`. celld refuses symlinks and special files in the asset
135+directory, and `.assetsignore` still needs Wrangler. Each other key —
136+`routes`, `kv_namespaces`, `triggers`, and the rest — stops the deploy
137+with an error that names the key: remove the key, or deploy that project
138+with Wrangler.
135139
136-This page is the definitive reference for the implemented Worker surface.
137-For the operational boundaries of the current release — TLS, platform
138-support, pressure shedding, updates — see the
139-[limitations](limitations.md).
140+This page is the reference for the implemented Worker surface. For the
141+operational boundaries of the current release — TLS, platforms, pressure
142+shedding, updates — see the [limitations](limitations.md).
modifieddocs/limitations.md+35−45View file
@@ -1,48 +1,38 @@
11 # Limitations
22
3-celld is an alpha of the standalone engine, not a drop-in replacement
4-for the entire Cloudflare Workers platform.
3+The boundaries of the current alpha:
54
6-- A fleet runs one application deployment. There is no public multi-tenant
7- scheduler, account service, managed ingress, or global placement layer.
8-- celld's peer HTTP does not terminate TLS. Use a private network or encrypted
9- overlay and terminate public TLS in a separate ingress proxy.
10-- The fleet bucket is administrative authority. celld does not make shared or
11- broadly scoped object-store credentials safe.
12-- `celld deploy` requires `esbuild` on `PATH` for Worker code, accepts
13- `wrangler.json` or `wrangler.jsonc`, and deliberately rejects unsupported
14- configuration instead of silently ignoring it. Static assets are supported,
15- including asset-only projects; symlinks and special files are refused, and
16- `.assetsignore` still requires Wrangler. `wrangler.toml` and routes remain
17- outside the native deploy path.
18-- The implemented Worker surface focuses on modules, Durable Objects, SQLite
19- storage, alarms, service bindings, fetch, and hibernatable WebSockets. It
20- does not promise every Web API, Node API, Cloudflare binding, compatibility
21- flag, or arbitrary untrusted tenant program. The definitive API-by-API
22- reference is [Cloudflare compatibility](cloudflare-compat.md).
23-- WebSocket upgrades and messages route across nodes through the signed
24- peer tunnel, so any node can serve as ingress for any cell. Close-code
25- propagation and reconnect edge cases across nodes have thinner coverage
26- than same-node WebSockets; latency-sensitive deployments still benefit
27- from owner-sticky ingress.
28-- Outbound WebSockets work from both Workers and Durable Objects. A Worker
29- socket lives and dies with its request, as it does on Cloudflare: when the
30- request and its `waitUntil` work finish, the socket is closed. A Durable
31- Object socket outlives individual events and keeps its cell resident for the
32- life of the connection; it does not hibernate or preserve a live transport
33- across node migration, so applications needing failover must persist
34- connection intent and reconnect after activation. A node bounds how much of
35- its residency outbound sockets may pin.
36-- R2 Worker bindings are not implemented. The S3-compatible fleet bucket is
37- celld infrastructure, not an application R2 binding.
38-- Linux is the production target. See [support](support.md) for the macOS
39- replication limitation and exact prebuilt targets.
40-- Pressure shedding is opt-in until release measurements establish safe
41- defaults. A new node receives released cells through ordinary traffic; there
42- is no central placement controller.
43-- Updates are explicit. There is no unattended update agent. The installer
44- retains immutable releases and switches one `current` pointer, so installing
45- an exact previous SHA performs a runtime-pair rollback.
46-
47-If an unsupported deployment key or runtime API is encountered, celld should
48-fail loudly. Silent compatibility gaps are bugs.
5+- A fleet runs one application deployment. There is no multi-tenant
6+ scheduler, no account service, no managed ingress, and no global
7+ placement layer.
8+- The peer HTTP protocol does not terminate TLS. Run the fleet on a
9+ private network or an encrypted overlay, and terminate public TLS in an
10+ ingress proxy.
11+- The fleet bucket is the administrative authority, so give its
12+ credentials a narrow scope; celld does not make shared object-store
13+ credentials safe.
14+- The bucket credentials come from the `AWS_*` environment or from
15+ explicit managed credentials, which includes instance metadata and web
16+ identity tokens. celld does not read `~/.aws` profiles or SSO logins.
17+- The [Cloudflare compatibility](cloudflare-compat.md) page shows what
18+ celld runs of the Workers platform: the available APIs, the deploy
19+ contract, and what is out of scope (KV, R2, `wrangler.toml`, routes).
20+ An unknown key or API causes a loud failure; a silent gap is a bug.
21+- Each node can be the WebSocket ingress for each cell through the signed
22+ peer tunnel, but the test coverage for close codes and reconnections
23+ across nodes is thinner than for one node. If latency is important,
24+ send the traffic of a cell to its owner node.
25+- An outbound Durable Object WebSocket keeps its cell resident, and the
26+ connection does not continue when the cell moves to a different node:
27+ keep the connection intent in storage, and connect again after the
28+ activation. (A Worker's outbound socket stops with its request, the
29+ same as on Cloudflare.) A node limits how much residency the outbound
30+ sockets can hold.
31+- Windows is not available, and Intel Macs get no prebuilt binaries; a
32+ build from source works.
33+- Pressure shedding is off until the release measurements give safe
34+ defaults. A new node receives cells through the usual traffic; there is
35+ no central placement controller.
36+- Updates are manual: the installer keeps immutable releases behind one
37+ `current` pointer, so a previous SHA is the rollback. There is no
38+ automatic update agent.
modifieddocs/security.md+29−26View file
@@ -1,39 +1,42 @@
11 # Security
22
3-celld is an alpha. It is not hardened for hostile multi-tenant use, and
4-security fixes land on the latest release line only — older alpha builds do not
5-receive backports.
3+celld is an alpha. It is not safe for hostile multi-tenant use, and
4+security fixes go to the latest release only; older alpha builds do not
5+receive fixes.
66
7-## Trust rests on your bucket
7+## Trust starts at your bucket
88
9-The fleet's S3-compatible bucket is its root of authority. Ownership of every
10-cell is a compare-and-swap lease recorded in that bucket, and the bucket also
11-holds deployments, cell state, node leases, and the shared peer-authentication
12-secret. Whoever holds the bucket credentials controls the fleet. Treat them as
13-administrator access: scope each credential to a single fleet bucket, and rotate
14-after any suspected exposure.
9+The S3-compatible bucket is the root of authority for the fleet. The
10+ownership of each cell is a compare-and-swap lease in that bucket, which
11+also holds the deployments, the cell state, the node leases, and the
12+shared peer-authentication secret. The person who holds the bucket
13+credentials controls the fleet, so handle the credentials as
14+administrator access: give each credential the scope of one fleet bucket
15+only, and replace a credential if you think that others know it.
1516
1617 ## Peers authenticate, but do not encrypt
1718
18-Node-to-node requests are HMAC-authenticated, body-bound, clock-bounded, and
19-replay-protected, so a peer cannot be impersonated and a captured request cannot
20-be replayed. celld does not, however, terminate TLS on the peer protocol — that
21-traffic is plain HTTP. Advertise nodes only on a trusted private network or an
22-encrypted overlay such as WireGuard or Tailscale, and never expose the peer
23-listener directly to the public internet.
19+Each node-to-node request has an HMAC, a body signature, a clock limit,
20+and replay protection, so a false peer cannot get access and a captured
21+request cannot be sent again. But celld does not terminate TLS on the
22+peer protocol: that traffic is plain HTTP. Advertise the nodes only on a
23+private network that you trust or on an encrypted overlay such as
24+WireGuard or Tailscale, and do not show the peer listener to the public
25+internet.
2426
2527 ## Single-writer isolation
2628
27-Each cell is a single-writer SQLite database owned by exactly one node at a
28-time, fenced by an ownership epoch so a node that has lost its lease cannot
29-corrupt state. There is no shared, multi-tenant scheduler or placement layer: a
30-fleet's blast radius is its own machines, network, and bucket — never another
31-tenant's workload — and a misbehaving cell can only affect its own database.
29+Each cell is a SQLite database with one writer: one node owns a cell at a
30+time, and an ownership epoch fences each cell, so a node that lost its
31+lease cannot damage the state. There is no shared multi-tenant scheduler
32+and no shared placement layer. The damage limit of a fleet is its own
33+machines, its own network, and its own bucket, never the workload of a
34+different tenant, and a defective cell can only touch its own database.
3235
3336 ## The operator's responsibility
3437
35-celld serves requests and coordinates ownership; it does not authenticate your
36-application's end users or terminate public TLS. Front your ingress with your
37-own authentication and TLS, keep peers on trusted networks, and keep the bucket
38-credentials secret. See [limitations](limitations.md) for the complete alpha
39-boundary.
38+celld serves requests and coordinates ownership; it does not authenticate
39+the end users of your application, and it does not terminate public TLS.
40+Put your own authentication and TLS in front of your ingress, keep the
41+peers on networks that you trust, and keep the bucket credentials secret.
42+See the [limitations](limitations.md) for the full alpha boundary.
deleteddocs/simulations.md+0−93
@@ -1,93 +1,0 @@
1-# Simulations
2-
3-Confidence in celld is built up in several ways. This page describes one of
4-them: end-to-end simulations on live fleets, where real nodes coordinate
5-through a real object store under real workloads, and we observe what actually
6-happens when things go wrong.
7-
8-Simulations are empirical evidence at a scale and realism that reasoning alone
9-cannot reach. Running the whole system on many machines, with real storage
10-latency and real network partitions, and then breaking it deliberately, shows
11-whether celld's guarantees hold in practice and not only by design. This page
12-records those runs in broad strokes and grows as we run more of them, across
13-larger fleets, denser cell populations, longer partitions, and more varied
14-failure modes.
15-
16-Every result shares the same substrate: a fleet of celld nodes coordinating
17-only through one S3-compatible bucket, one SQLite database per Durable Object,
18-synchronous durability — a write is replicated to the bucket before its response
19-is released, so an acknowledged write is durable (RPO=0) — and a single
20-authoritative writer per cell fenced by an epoch in the object-store path. Each scenario attacks that substrate at a
21-different seam. Faults are injected between verification passes that fetch cells
22-through arbitrary nodes and check their durable state exactly — status, body,
23-and full message ledger — so every run has a clean before-and-after. A cell may
24-go briefly unavailable while ownership moves, but its committed state must
25-survive intact and be served again from a live node.
26-
27-## What survives
28-
29-**A hard process crash loses no acknowledged write.** Kill a node's process
30-outright — even mid-write-stream — and its resident cells are orphaned instantly.
31-Because the output gate holds each write's response until it is durable, every
32-acknowledged write is already in the bucket: a surviving node re-acquires each
33-cell and serves it from replicated state, at a bounded time-to-availability
34-measured as a distribution.
35-
36-The direct test is deliberately adversarial: issue writes back to back, `SIGKILL`
37-the process mid-stream, then *delete the node's local database* so recovery can
38-only come from the bucket, and cold-restore the cell. Twenty writes acknowledged
39-and killed this way recover all twenty; an eight-cell run of 156 acknowledged
40-writes recovers all 156. **Zero acknowledged writes lost, across every run.**
41-Before the output gate, the same kill dropped the recently-acknowledged writes
42-that had not yet replicated — which is exactly what the gate is there to prevent,
43-and exactly what these runs check for on every fault.
44-
45-**A returning partitioned owner cannot corrupt state.** Freeze a node so it
46-still believes it owns its cells, write to those same cells through peers, then
47-thaw it. It discovers its lease has moved and refuses to serve stale data
48-rather than resurrect it. The peer writes land exactly once, the original state
49-is intact, and ledgers stay consistent — at most one writer per epoch, enforced
50-through the bucket, even against an owner that comes back to life.
51-
52-**A node that cannot replicate stops owning.** Cut a node off from the bucket so
53-it can no longer prove durability, and it self-fences rather than accept writes
54-it cannot replicate. "I can't replicate" is treated as "I must stop owning," not
55-as a degraded-but-serving state.
56-
57-**Losing a whole host is a non-event for the data.** Halt an entire node at the
58-provider level, mid-workload, and its cells move to survivors; when the host
59-returns it rejoins cleanly with no duplicate residency.
60-
61-Across these scenarios, no committed cell state has been lost or corrupted, and
62-between every fault the verification sweeps return zero body, status, or
63-missing-message failures.
64-
65-## A few numbers we trust
66-
67-Confidence is also quantitative. These are the simplest measurements an engineer
68-tends to ask for first; each carries the condition it was taken under, because a
69-number without its conditions is a rumor. Fuller ledgers live in the project's
70-spec sheet.
71-
72-- **A warm resident request is local.** A request to an already-resident Durable
73- Object does zero bucket operations and returns in **p50 ~1.1 ms, p99 ~7 ms**
74- (fixed-host measurement). Only cold activation pays for object storage.
75-- **A durable write costs one bucket round-trip.** That round-trip *is* what
76- RPO=0 means — the response is held until the write is in the bucket — so the
77- single-write latency floor is the storage round-trip, not something the engine
78- can optimize away. Concurrent writes to one cell batch onto a shared upload, so
79- per-cell throughput is not one-round-trip-per-write.
80-- **Ten small nodes held real scale.** A ten-node fleet of 4-vCPU/8-GB machines
81- carried **10,000 resident cells and 20,000 concurrent WebSockets**, and after
82- halting two of the ten, every cell's data was available again on a survivor
83- within ~11 s at the tail (with reserve headroom).
84-
85-## The failure edges we intend to find
86-
87-Confidence also means knowing where a policy stops holding, so those edges are
88-recorded rather than tuned away. The clearest one is reserve headroom: a fleet
89-packed to its hard resident ceiling has nowhere to place cells displaced by a
90-node loss, so simultaneous multi-node failure at the ceiling degrades where a
91-fleet with headroom does not. Measuring both sides of that line — healthy
92-restoration with reserve, and the red case without — is part of the work, not
93-an embarrassment to hide.
deleteddocs/support.md+0−41
@@ -1,41 +1,0 @@
1-# Support matrix
2-
3-celld is a self-supported open-source alpha. The latest published build is
4-the only supported release line; security and correctness fixes are not
5-backported to older alpha commits.
6-
7-## Prebuilt platforms
8-
9-| target | release status | minimum tested environment |
10-| --- | --- | --- |
11-| `x86_64-unknown-linux-gnu` | primary | Ubuntu 22.04 / glibc 2.35 |
12-| `aarch64-unknown-linux-gnu` | primary | Ubuntu 22.04 / glibc 2.35 |
13-| `aarch64-apple-darwin` | development | macOS 14 |
14-
15-Linux is the production target; macOS binaries are for local development. The
16-default in-process replicator (`celld-ltx`) confirms replication on macOS, so
17-durability, hibernation, and failover work there. The one macOS caveat applies
18-only if you opt into the external Litestream backend
19-(`CELLD_REPLICATOR=litestream`): Litestream's live replication on macOS does not
20-provide the replica confirmation celld needs, so in that mode celld keeps
21-affected cells resident rather than claim durability it cannot verify.
22-
23-Other operating systems, Intel macOS, musl Linux, 32-bit systems, and Windows
24-do not have prebuilt artifacts. Building from source on them is experimental.
25-
26-## Supported topology
27-
28-- One node is complete.
29-- Two or more nodes are supported when every peer is directly reachable on a
30- trusted private network or encrypted overlay.
31-- All nodes in a fleet use the same application bucket and compatible celld
32- versions. Replication is in-process by default; a fleet that opts into the
33- Litestream backend pins the same Litestream runtime across nodes.
34-- Cloudflare R2 is the release-tested object store. MinIO is used in
35- conformance and local testing. Other S3-compatible stores must provide the
36- conditional-write semantics celld requires and are not yet release-tested.
37-
38-For bugs and operational questions, include `celld --version`, the target
39-triple, object-store implementation, topology, and a redacted `celld diagnose`
40-report in an email to [[email protected]](mailto:[email protected]). Security reports use
41-the private process in the [security policy](security.md).
addeddocs/testing.md+142−0View file
@@ -1,0 +1,142 @@
1+# Testing
2+
3+celld makes three important promises:
4+
5+- An acknowledged write is durable.
6+- A cell has one writer at a time. It never has two.
7+- Code written for Cloudflare Workers and Durable Objects operates the
8+ same on celld.
9+
10+We try to break each promise at the layer where a failure shows most
11+clearly. We test the API contract with differential execution against the
12+Cloudflare runtime. We test the coordination protocol with deterministic
13+simulation. We test the full system with fault injection on live fleets.
14+
15+## Conformance: two runtimes, one output
16+
17+We test the compatibility promise differentially. We run each Workers and
18+Durable Objects program twice: once on workerd, the runtime binary that
19+Cloudflare operates in production, and once on celld, on identical bytes.
20+The two outputs must be equal. This shows two facts at once: the program
21+is real Cloudflare code, because workerd accepts it, and celld obeys the
22+contract, because the outputs are equal. A test cannot agree with our own
23+runtime by accident.
24+
25+The corpus only grows. When celld gets a new API surface, we add fixtures
26+for that surface, and the fixtures must give equal output on the two
27+engines. We also port test suites from workerd itself: the Durable
28+Objects contract, the web-platform globals, and the upstream Web Platform
29+Tests. Before a release, we also replay scenarios through the full
30+`celld` binary in each deployment mode: storage, SQL, alarms, streams,
31+WebSockets, and lifecycle.
32+
33+## Simulation: the protocol under adversarial schedules
34+
35+The dangerous bugs live in the coordination: a crash during an ownership
36+handoff, a lease renewal that races a takeover, an alarm that fires
37+against a partially restored cell. These windows are nanoseconds wide and
38+open rarely, so a test cannot wait for them.
39+
40+Thus the coordination protocol is a
41+[pure decision core](https://github.com/denoland/celld/tree/main/crates/logic)
42+with no I/O of its own: the clock, the randomness, and the object store
43+are interfaces, and a simulator drives the core. The simulated store
44+injects latency, compare-and-swap races, and lost responses; the clocks
45+drift apart; a node can crash at each await point. Scripted adversaries
46+play the cells: a handler that never returns, a write stream that stops
47+halfway. V8 stays out of the simulation, because V8 is not deterministic.
48+
49+A seeded scheduler drives each run, so a failure is not a fluke: the seed
50+replays it exactly, every time, and we keep the seed until the bug is
51+dead. We examine each property for safety (two writers in one epoch, a
52+lost acknowledged write, an expired lease that comes back) and for
53+liveness (each armed alarm fires, and ownership settles on one node after
54+a crash). A property must survive tens of thousands of seeds, and the
55+core protocols have run through millions of different schedules.
56+
57+Simulation has a known failure mode: the checker that cannot fail. Thus
58+we also test the checkers: we run deliberately broken variants of the
59+protocol against the properties, and the properties must find the damage.
60+A suite that stays green against a broken protocol is a broken suite.
61+
62+## Live fleets: what simulation cannot see
63+
64+Simulation cannot see the real S3 tail latency, the real kernel and
65+filesystem behavior, or V8 under memory pressure. The third layer is
66+therefore a permanent fleet lab: standard VMs from standard providers,
67+and a real bucket. The workloads rotate: chat rooms under many WebSocket
68+connections, working sets that shift across tens of thousands of cells
69+(each cell has a unique checksum), deployment cutovers under load, and
70+runs that fill the nodes to the memory limit. The lab qualifies each
71+release, and between releases it pushes the density and the fault
72+coverage further. Each run makes an archived evidence bundle: the
73+configuration, the verification sweeps, the node journals, the kernel
74+logs, and the phase timings. We keep a red run with the same care as a
75+green run, because a failure that the harness caught is a result, not a
76+retry.
77+
78+We inject the faults between verification passes. A pass fetches each
79+cell through different nodes and compares the durable state exactly: the
80+status, the body, and the full message ledger. Each run therefore has a
81+clean picture before the fault and after it. A cell can be unavailable
82+for a short time while its ownership moves, but its committed state must
83+stay complete, and a live node must serve that state again.
84+
85+The scenarios attack every seam that we know. We stop a node with
86+`SIGKILL` in the middle of a write stream and delete its local database,
87+so the recovery can only come from the bucket: every acknowledged write
88+comes back, because the output gate held each response until the write
89+was durable. We freeze an owner node, write to its cells through other
90+nodes, and unfreeze it: the node sees that its lease moved and refuses to
91+serve the old state, and each write from the other nodes lands exactly
92+one time. One epoch has at most one writer. We cut a node off from the
93+bucket, and it fences itself, because a node that cannot replicate must
94+not own cells. We throttle the bucket, so it answers each request with a
95+429: the engine slows to the write rate of the store and does not amplify
96+the throttle, because a node that knows its replicated position does not
97+ask a slow store for extra listings. We stop a full host at the provider
98+level in the middle of a workload: its cells move to the other nodes, and
99+when the host returns, it joins again with no duplicate residency. Across
100+every run of every scenario, no acknowledged write was lost and no
101+committed state was damaged; the verification sweeps show zero body
102+faults, zero status faults, and zero lost messages.
103+
104+## A few numbers we trust
105+
106+Each number includes the condition of its measurement. A number without
107+its conditions has no value.
108+
109+- **The epoch fence holds under contention.** Five hundred claimants
110+ tried at the same time to own the same cells: 5,500 attempts, one
111+ writer for each epoch, zero violations.
112+- **A warm resident request is local.** A request to a resident cell does
113+ zero bucket operations and returns in p50 ~1.1 ms and p99 ~7 ms (a
114+ fixed-host measurement). Only a cold activation touches object storage.
115+- **A durable write costs one bucket round trip.** The response waits
116+ until the write is in the bucket; that is the meaning of RPO=0, and the
117+ storage round trip is therefore the minimum latency for one write.
118+ Concurrent writes to one cell join one shared upload, so the throughput
119+ of one cell is not one round trip for each write.
120+- **Restores are fast.** A 62 MB cell restores from the bucket in 1.35 s,
121+ and placement handles a restore as normal work, not as an emergency
122+ procedure.
123+- **Ten small nodes held real scale.** A fleet of ten nodes, each with 4
124+ vCPU and 8 GB, held 10,000 resident cells and 20,000 concurrent
125+ WebSocket connections. We stopped two of the ten nodes, and the data of
126+ every cell was available again on another node in ~11 s at the tail
127+ (with reserve headroom).
128+
129+## The failure edges we intend to find
130+
131+We must also know where a policy stops, so we record the edges instead of
132+tuning them away. The clearest edge is the reserve headroom: a fleet that
133+is full to its resident limit has no space for the cells of a lost node,
134+so a failure of more than one node at the limit degrades the service,
135+and a fleet with headroom does not. We measure both sides of that line,
136+the good restoration with reserve and the red case without, because this
137+measurement is part of the work.
138+
139+If you find an edge that we did not find, tell us: a schedule that breaks
140+a promise, a fault that we did not inject, a number that you cannot
141+reproduce. That is exactly the bug report that we want:
142+[github.com/denoland/celld/issues](https://github.com/denoland/celld/issues).