rwebtransport 0.2.1 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Cargo.lock +462 -6
- package/README.md +5 -1
- package/crates/native/Cargo.toml +2 -0
- package/crates/native/src/config.rs +56 -7
- package/crates/native/src/driver.rs +11 -1
- package/crates/native/src/lib.rs +134 -47
- package/crates/native/src/parser_memory.rs +202 -0
- package/crates/native/src/server.rs +19 -2
- package/crates/native/src/session.rs +1068 -122
- package/crates/native/src/test_support.rs +119 -0
- package/crates/wtcore/Cargo.toml +1 -0
- package/crates/wtcore/src/h3.rs +85 -37
- package/dist/index.js +133 -37
- package/dist/index.js.map +7 -1
- package/dist/index.mjs +129 -31
- package/dist/index.mjs.map +7 -1
- package/dist/native.d.ts +1 -0
- package/dist/server.d.ts +1 -0
- package/package.json +81 -78
- package/prebuilds/darwin-arm64/rwebtransport.node +0 -0
- package/prebuilds/linux-arm64/rwebtransport.node +0 -0
- package/prebuilds/linux-x64/rwebtransport.node +0 -0
- package/prebuilds/win32-x64/rwebtransport.node +0 -0
- package/scripts/build-ts.js +41 -0
- package/vendor/quiche/src/lib.rs +15 -0
- package/vendor/quiche/src/stream/recv_buf.rs +5 -0
- package/vendor/quiche/src/stream/send_buf.rs +5 -0
package/Cargo.lock
CHANGED
|
@@ -17,6 +17,12 @@ version = "1.5.1"
|
|
|
17
17
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
18
|
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
19
19
|
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "base64"
|
|
22
|
+
version = "0.22.1"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
|
25
|
+
|
|
20
26
|
[[package]]
|
|
21
27
|
name = "bindgen"
|
|
22
28
|
version = "0.72.1"
|
|
@@ -32,7 +38,7 @@ dependencies = [
|
|
|
32
38
|
"regex",
|
|
33
39
|
"rustc-hash",
|
|
34
40
|
"shlex 1.3.0",
|
|
35
|
-
"syn",
|
|
41
|
+
"syn 2.0.118",
|
|
36
42
|
]
|
|
37
43
|
|
|
38
44
|
[[package]]
|
|
@@ -117,12 +123,39 @@ dependencies = [
|
|
|
117
123
|
"cc",
|
|
118
124
|
]
|
|
119
125
|
|
|
126
|
+
[[package]]
|
|
127
|
+
name = "core-foundation"
|
|
128
|
+
version = "0.10.1"
|
|
129
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
130
|
+
checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
|
|
131
|
+
dependencies = [
|
|
132
|
+
"core-foundation-sys",
|
|
133
|
+
"libc",
|
|
134
|
+
]
|
|
135
|
+
|
|
136
|
+
[[package]]
|
|
137
|
+
name = "core-foundation-sys"
|
|
138
|
+
version = "0.8.7"
|
|
139
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
140
|
+
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
|
141
|
+
|
|
120
142
|
[[package]]
|
|
121
143
|
name = "debug_panic"
|
|
122
144
|
version = "0.2.1"
|
|
123
145
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
124
146
|
checksum = "9377eb110cece2e9431deb8d7d2ec8c116510b896741f9f2bf02b352147aa2a6"
|
|
125
147
|
|
|
148
|
+
[[package]]
|
|
149
|
+
name = "displaydoc"
|
|
150
|
+
version = "0.2.7"
|
|
151
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
152
|
+
checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
|
|
153
|
+
dependencies = [
|
|
154
|
+
"proc-macro2",
|
|
155
|
+
"quote",
|
|
156
|
+
"syn 3.0.9",
|
|
157
|
+
]
|
|
158
|
+
|
|
126
159
|
[[package]]
|
|
127
160
|
name = "either"
|
|
128
161
|
version = "1.16.0"
|
|
@@ -138,9 +171,15 @@ dependencies = [
|
|
|
138
171
|
"once_cell",
|
|
139
172
|
"proc-macro2",
|
|
140
173
|
"quote",
|
|
141
|
-
"syn",
|
|
174
|
+
"syn 2.0.118",
|
|
142
175
|
]
|
|
143
176
|
|
|
177
|
+
[[package]]
|
|
178
|
+
name = "equivalent"
|
|
179
|
+
version = "1.0.2"
|
|
180
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
|
182
|
+
|
|
144
183
|
[[package]]
|
|
145
184
|
name = "find-msvc-tools"
|
|
146
185
|
version = "0.1.9"
|
|
@@ -165,7 +204,7 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
|
|
|
165
204
|
dependencies = [
|
|
166
205
|
"proc-macro2",
|
|
167
206
|
"quote",
|
|
168
|
-
"syn",
|
|
207
|
+
"syn 2.0.118",
|
|
169
208
|
]
|
|
170
209
|
|
|
171
210
|
[[package]]
|
|
@@ -174,6 +213,15 @@ version = "0.3.1"
|
|
|
174
213
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
175
214
|
checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
|
|
176
215
|
|
|
216
|
+
[[package]]
|
|
217
|
+
name = "form_urlencoded"
|
|
218
|
+
version = "1.2.2"
|
|
219
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
220
|
+
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
|
|
221
|
+
dependencies = [
|
|
222
|
+
"percent-encoding",
|
|
223
|
+
]
|
|
224
|
+
|
|
177
225
|
[[package]]
|
|
178
226
|
name = "fs_extra"
|
|
179
227
|
version = "1.3.0"
|
|
@@ -207,6 +255,126 @@ version = "0.3.3"
|
|
|
207
255
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
208
256
|
checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
209
257
|
|
|
258
|
+
[[package]]
|
|
259
|
+
name = "hashbrown"
|
|
260
|
+
version = "0.17.1"
|
|
261
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
262
|
+
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
|
|
263
|
+
|
|
264
|
+
[[package]]
|
|
265
|
+
name = "icu_collections"
|
|
266
|
+
version = "2.3.0"
|
|
267
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
268
|
+
checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513"
|
|
269
|
+
dependencies = [
|
|
270
|
+
"displaydoc",
|
|
271
|
+
"potential_utf",
|
|
272
|
+
"utf8_iter",
|
|
273
|
+
"yoke",
|
|
274
|
+
"zerofrom",
|
|
275
|
+
"zerovec",
|
|
276
|
+
]
|
|
277
|
+
|
|
278
|
+
[[package]]
|
|
279
|
+
name = "icu_locale_core"
|
|
280
|
+
version = "2.3.0"
|
|
281
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
282
|
+
checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb"
|
|
283
|
+
dependencies = [
|
|
284
|
+
"displaydoc",
|
|
285
|
+
"litemap",
|
|
286
|
+
"tinystr",
|
|
287
|
+
"writeable",
|
|
288
|
+
"zerovec",
|
|
289
|
+
]
|
|
290
|
+
|
|
291
|
+
[[package]]
|
|
292
|
+
name = "icu_normalizer"
|
|
293
|
+
version = "2.3.0"
|
|
294
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
295
|
+
checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f"
|
|
296
|
+
dependencies = [
|
|
297
|
+
"icu_collections",
|
|
298
|
+
"icu_normalizer_data",
|
|
299
|
+
"icu_properties",
|
|
300
|
+
"icu_provider",
|
|
301
|
+
"smallvec",
|
|
302
|
+
"zerovec",
|
|
303
|
+
]
|
|
304
|
+
|
|
305
|
+
[[package]]
|
|
306
|
+
name = "icu_normalizer_data"
|
|
307
|
+
version = "2.3.0"
|
|
308
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
309
|
+
checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0"
|
|
310
|
+
|
|
311
|
+
[[package]]
|
|
312
|
+
name = "icu_properties"
|
|
313
|
+
version = "2.3.0"
|
|
314
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
315
|
+
checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148"
|
|
316
|
+
dependencies = [
|
|
317
|
+
"displaydoc",
|
|
318
|
+
"icu_collections",
|
|
319
|
+
"icu_locale_core",
|
|
320
|
+
"icu_properties_data",
|
|
321
|
+
"icu_provider",
|
|
322
|
+
"zerotrie",
|
|
323
|
+
"zerovec",
|
|
324
|
+
]
|
|
325
|
+
|
|
326
|
+
[[package]]
|
|
327
|
+
name = "icu_properties_data"
|
|
328
|
+
version = "2.3.0"
|
|
329
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
330
|
+
checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa"
|
|
331
|
+
|
|
332
|
+
[[package]]
|
|
333
|
+
name = "icu_provider"
|
|
334
|
+
version = "2.3.1"
|
|
335
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
336
|
+
checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73"
|
|
337
|
+
dependencies = [
|
|
338
|
+
"displaydoc",
|
|
339
|
+
"icu_locale_core",
|
|
340
|
+
"writeable",
|
|
341
|
+
"yoke",
|
|
342
|
+
"zerofrom",
|
|
343
|
+
"zerotrie",
|
|
344
|
+
"zerovec",
|
|
345
|
+
]
|
|
346
|
+
|
|
347
|
+
[[package]]
|
|
348
|
+
name = "idna"
|
|
349
|
+
version = "1.1.0"
|
|
350
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
351
|
+
checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
|
|
352
|
+
dependencies = [
|
|
353
|
+
"idna_adapter",
|
|
354
|
+
"smallvec",
|
|
355
|
+
"utf8_iter",
|
|
356
|
+
]
|
|
357
|
+
|
|
358
|
+
[[package]]
|
|
359
|
+
name = "idna_adapter"
|
|
360
|
+
version = "1.2.2"
|
|
361
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
362
|
+
checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
|
|
363
|
+
dependencies = [
|
|
364
|
+
"icu_normalizer",
|
|
365
|
+
"icu_properties",
|
|
366
|
+
]
|
|
367
|
+
|
|
368
|
+
[[package]]
|
|
369
|
+
name = "indexmap"
|
|
370
|
+
version = "2.14.2"
|
|
371
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
372
|
+
checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
|
|
373
|
+
dependencies = [
|
|
374
|
+
"equivalent",
|
|
375
|
+
"hashbrown",
|
|
376
|
+
]
|
|
377
|
+
|
|
210
378
|
[[package]]
|
|
211
379
|
name = "intrusive-collections"
|
|
212
380
|
version = "0.9.7"
|
|
@@ -264,9 +432,15 @@ checksum = "32d59e20403c7d08fe62b4376edfe5c7fb2ef1e6b1465379686d0f21c8df444b"
|
|
|
264
432
|
dependencies = [
|
|
265
433
|
"proc-macro2",
|
|
266
434
|
"quote",
|
|
267
|
-
"syn",
|
|
435
|
+
"syn 2.0.118",
|
|
268
436
|
]
|
|
269
437
|
|
|
438
|
+
[[package]]
|
|
439
|
+
name = "litemap"
|
|
440
|
+
version = "0.8.3"
|
|
441
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
442
|
+
checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
|
|
443
|
+
|
|
270
444
|
[[package]]
|
|
271
445
|
name = "log"
|
|
272
446
|
version = "0.4.33"
|
|
@@ -331,7 +505,7 @@ checksum = "c39e43767817fc963f90f400600967a2b2403602c6440685d09a6bc4e02b70b1"
|
|
|
331
505
|
dependencies = [
|
|
332
506
|
"proc-macro2",
|
|
333
507
|
"quote",
|
|
334
|
-
"syn",
|
|
508
|
+
"syn 2.0.118",
|
|
335
509
|
]
|
|
336
510
|
|
|
337
511
|
[[package]]
|
|
@@ -364,7 +538,28 @@ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
|
|
|
364
538
|
dependencies = [
|
|
365
539
|
"proc-macro2",
|
|
366
540
|
"quote",
|
|
367
|
-
"syn",
|
|
541
|
+
"syn 2.0.118",
|
|
542
|
+
]
|
|
543
|
+
|
|
544
|
+
[[package]]
|
|
545
|
+
name = "openssl-probe"
|
|
546
|
+
version = "0.2.1"
|
|
547
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
548
|
+
checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe"
|
|
549
|
+
|
|
550
|
+
[[package]]
|
|
551
|
+
name = "percent-encoding"
|
|
552
|
+
version = "2.3.2"
|
|
553
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
554
|
+
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
|
555
|
+
|
|
556
|
+
[[package]]
|
|
557
|
+
name = "potential_utf"
|
|
558
|
+
version = "0.1.6"
|
|
559
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
560
|
+
checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
|
|
561
|
+
dependencies = [
|
|
562
|
+
"zerovec",
|
|
368
563
|
]
|
|
369
564
|
|
|
370
565
|
[[package]]
|
|
@@ -405,6 +600,26 @@ dependencies = [
|
|
|
405
600
|
"proc-macro2",
|
|
406
601
|
]
|
|
407
602
|
|
|
603
|
+
[[package]]
|
|
604
|
+
name = "ref-cast"
|
|
605
|
+
version = "1.0.27"
|
|
606
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
607
|
+
checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3"
|
|
608
|
+
dependencies = [
|
|
609
|
+
"ref-cast-impl",
|
|
610
|
+
]
|
|
611
|
+
|
|
612
|
+
[[package]]
|
|
613
|
+
name = "ref-cast-impl"
|
|
614
|
+
version = "1.0.27"
|
|
615
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
616
|
+
checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
|
|
617
|
+
dependencies = [
|
|
618
|
+
"proc-macro2",
|
|
619
|
+
"quote",
|
|
620
|
+
"syn 3.0.9",
|
|
621
|
+
]
|
|
622
|
+
|
|
408
623
|
[[package]]
|
|
409
624
|
name = "regex"
|
|
410
625
|
version = "1.13.0"
|
|
@@ -440,6 +655,27 @@ version = "2.1.3"
|
|
|
440
655
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
441
656
|
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
|
|
442
657
|
|
|
658
|
+
[[package]]
|
|
659
|
+
name = "rustls-native-certs"
|
|
660
|
+
version = "0.8.4"
|
|
661
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
662
|
+
checksum = "dab5152771c58876a2146916e53e35057e1a4dfa2b9df0f0305b07f611fdea4d"
|
|
663
|
+
dependencies = [
|
|
664
|
+
"openssl-probe",
|
|
665
|
+
"rustls-pki-types",
|
|
666
|
+
"schannel",
|
|
667
|
+
"security-framework",
|
|
668
|
+
]
|
|
669
|
+
|
|
670
|
+
[[package]]
|
|
671
|
+
name = "rustls-pki-types"
|
|
672
|
+
version = "1.15.1"
|
|
673
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
674
|
+
checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
|
|
675
|
+
dependencies = [
|
|
676
|
+
"zeroize",
|
|
677
|
+
]
|
|
678
|
+
|
|
443
679
|
[[package]]
|
|
444
680
|
name = "rwebtransport-echo-server"
|
|
445
681
|
version = "0.1.0"
|
|
@@ -465,8 +701,10 @@ dependencies = [
|
|
|
465
701
|
"neon",
|
|
466
702
|
"octets",
|
|
467
703
|
"quiche",
|
|
704
|
+
"rustls-native-certs",
|
|
468
705
|
"rwebtransport-wtcore",
|
|
469
706
|
"socket2",
|
|
707
|
+
"url",
|
|
470
708
|
]
|
|
471
709
|
|
|
472
710
|
[[package]]
|
|
@@ -475,6 +713,39 @@ version = "0.1.0"
|
|
|
475
713
|
dependencies = [
|
|
476
714
|
"octets",
|
|
477
715
|
"quiche",
|
|
716
|
+
"sfv",
|
|
717
|
+
]
|
|
718
|
+
|
|
719
|
+
[[package]]
|
|
720
|
+
name = "schannel"
|
|
721
|
+
version = "0.1.29"
|
|
722
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
723
|
+
checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939"
|
|
724
|
+
dependencies = [
|
|
725
|
+
"windows-sys 0.61.2",
|
|
726
|
+
]
|
|
727
|
+
|
|
728
|
+
[[package]]
|
|
729
|
+
name = "security-framework"
|
|
730
|
+
version = "3.7.0"
|
|
731
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
732
|
+
checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
|
|
733
|
+
dependencies = [
|
|
734
|
+
"bitflags",
|
|
735
|
+
"core-foundation",
|
|
736
|
+
"core-foundation-sys",
|
|
737
|
+
"libc",
|
|
738
|
+
"security-framework-sys",
|
|
739
|
+
]
|
|
740
|
+
|
|
741
|
+
[[package]]
|
|
742
|
+
name = "security-framework-sys"
|
|
743
|
+
version = "2.17.0"
|
|
744
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
745
|
+
checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
|
|
746
|
+
dependencies = [
|
|
747
|
+
"core-foundation-sys",
|
|
748
|
+
"libc",
|
|
478
749
|
]
|
|
479
750
|
|
|
480
751
|
[[package]]
|
|
@@ -489,6 +760,46 @@ version = "0.6.0"
|
|
|
489
760
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
490
761
|
checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73"
|
|
491
762
|
|
|
763
|
+
[[package]]
|
|
764
|
+
name = "serde"
|
|
765
|
+
version = "1.0.229"
|
|
766
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
767
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
768
|
+
dependencies = [
|
|
769
|
+
"serde_core",
|
|
770
|
+
]
|
|
771
|
+
|
|
772
|
+
[[package]]
|
|
773
|
+
name = "serde_core"
|
|
774
|
+
version = "1.0.229"
|
|
775
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
776
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
777
|
+
dependencies = [
|
|
778
|
+
"serde_derive",
|
|
779
|
+
]
|
|
780
|
+
|
|
781
|
+
[[package]]
|
|
782
|
+
name = "serde_derive"
|
|
783
|
+
version = "1.0.229"
|
|
784
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
785
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
786
|
+
dependencies = [
|
|
787
|
+
"proc-macro2",
|
|
788
|
+
"quote",
|
|
789
|
+
"syn 3.0.9",
|
|
790
|
+
]
|
|
791
|
+
|
|
792
|
+
[[package]]
|
|
793
|
+
name = "sfv"
|
|
794
|
+
version = "0.16.0"
|
|
795
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
796
|
+
checksum = "459c6f5820787bedb86fee2279ad39e89c31a3ede6354a0f6439a012467c5416"
|
|
797
|
+
dependencies = [
|
|
798
|
+
"base64",
|
|
799
|
+
"indexmap",
|
|
800
|
+
"ref-cast",
|
|
801
|
+
]
|
|
802
|
+
|
|
492
803
|
[[package]]
|
|
493
804
|
name = "shlex"
|
|
494
805
|
version = "1.3.0"
|
|
@@ -523,6 +834,12 @@ dependencies = [
|
|
|
523
834
|
"windows-sys 0.52.0",
|
|
524
835
|
]
|
|
525
836
|
|
|
837
|
+
[[package]]
|
|
838
|
+
name = "stable_deref_trait"
|
|
839
|
+
version = "1.2.1"
|
|
840
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
841
|
+
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
|
|
842
|
+
|
|
526
843
|
[[package]]
|
|
527
844
|
name = "syn"
|
|
528
845
|
version = "2.0.118"
|
|
@@ -534,12 +851,62 @@ dependencies = [
|
|
|
534
851
|
"unicode-ident",
|
|
535
852
|
]
|
|
536
853
|
|
|
854
|
+
[[package]]
|
|
855
|
+
name = "syn"
|
|
856
|
+
version = "3.0.9"
|
|
857
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
858
|
+
checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
|
|
859
|
+
dependencies = [
|
|
860
|
+
"proc-macro2",
|
|
861
|
+
"quote",
|
|
862
|
+
"unicode-ident",
|
|
863
|
+
]
|
|
864
|
+
|
|
865
|
+
[[package]]
|
|
866
|
+
name = "synstructure"
|
|
867
|
+
version = "0.14.0"
|
|
868
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
869
|
+
checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
|
|
870
|
+
dependencies = [
|
|
871
|
+
"proc-macro2",
|
|
872
|
+
"quote",
|
|
873
|
+
"syn 3.0.9",
|
|
874
|
+
]
|
|
875
|
+
|
|
876
|
+
[[package]]
|
|
877
|
+
name = "tinystr"
|
|
878
|
+
version = "0.8.4"
|
|
879
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
880
|
+
checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643"
|
|
881
|
+
dependencies = [
|
|
882
|
+
"displaydoc",
|
|
883
|
+
"zerovec",
|
|
884
|
+
]
|
|
885
|
+
|
|
537
886
|
[[package]]
|
|
538
887
|
name = "unicode-ident"
|
|
539
888
|
version = "1.0.24"
|
|
540
889
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
541
890
|
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
542
891
|
|
|
892
|
+
[[package]]
|
|
893
|
+
name = "url"
|
|
894
|
+
version = "2.5.8"
|
|
895
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
896
|
+
checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
|
|
897
|
+
dependencies = [
|
|
898
|
+
"form_urlencoded",
|
|
899
|
+
"idna",
|
|
900
|
+
"percent-encoding",
|
|
901
|
+
"serde",
|
|
902
|
+
]
|
|
903
|
+
|
|
904
|
+
[[package]]
|
|
905
|
+
name = "utf8_iter"
|
|
906
|
+
version = "1.0.4"
|
|
907
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
908
|
+
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
|
909
|
+
|
|
543
910
|
[[package]]
|
|
544
911
|
name = "wasi"
|
|
545
912
|
version = "0.11.1+wasi-snapshot-preview1"
|
|
@@ -664,3 +1031,92 @@ name = "windows_x86_64_msvc"
|
|
|
664
1031
|
version = "0.52.6"
|
|
665
1032
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
666
1033
|
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
|
1034
|
+
|
|
1035
|
+
[[package]]
|
|
1036
|
+
name = "writeable"
|
|
1037
|
+
version = "0.6.4"
|
|
1038
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1039
|
+
checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
|
|
1040
|
+
|
|
1041
|
+
[[package]]
|
|
1042
|
+
name = "yoke"
|
|
1043
|
+
version = "0.8.3"
|
|
1044
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1045
|
+
checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
|
|
1046
|
+
dependencies = [
|
|
1047
|
+
"stable_deref_trait",
|
|
1048
|
+
"yoke-derive",
|
|
1049
|
+
"zerofrom",
|
|
1050
|
+
]
|
|
1051
|
+
|
|
1052
|
+
[[package]]
|
|
1053
|
+
name = "yoke-derive"
|
|
1054
|
+
version = "0.8.4"
|
|
1055
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1056
|
+
checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
|
|
1057
|
+
dependencies = [
|
|
1058
|
+
"proc-macro2",
|
|
1059
|
+
"quote",
|
|
1060
|
+
"syn 3.0.9",
|
|
1061
|
+
"synstructure",
|
|
1062
|
+
]
|
|
1063
|
+
|
|
1064
|
+
[[package]]
|
|
1065
|
+
name = "zerofrom"
|
|
1066
|
+
version = "0.1.8"
|
|
1067
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1068
|
+
checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
|
|
1069
|
+
dependencies = [
|
|
1070
|
+
"zerofrom-derive",
|
|
1071
|
+
]
|
|
1072
|
+
|
|
1073
|
+
[[package]]
|
|
1074
|
+
name = "zerofrom-derive"
|
|
1075
|
+
version = "0.1.8"
|
|
1076
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1077
|
+
checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
|
|
1078
|
+
dependencies = [
|
|
1079
|
+
"proc-macro2",
|
|
1080
|
+
"quote",
|
|
1081
|
+
"syn 3.0.9",
|
|
1082
|
+
"synstructure",
|
|
1083
|
+
]
|
|
1084
|
+
|
|
1085
|
+
[[package]]
|
|
1086
|
+
name = "zeroize"
|
|
1087
|
+
version = "1.9.1"
|
|
1088
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1089
|
+
checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879"
|
|
1090
|
+
|
|
1091
|
+
[[package]]
|
|
1092
|
+
name = "zerotrie"
|
|
1093
|
+
version = "0.2.5"
|
|
1094
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1095
|
+
checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
|
|
1096
|
+
dependencies = [
|
|
1097
|
+
"displaydoc",
|
|
1098
|
+
"yoke",
|
|
1099
|
+
"zerofrom",
|
|
1100
|
+
]
|
|
1101
|
+
|
|
1102
|
+
[[package]]
|
|
1103
|
+
name = "zerovec"
|
|
1104
|
+
version = "0.11.8"
|
|
1105
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1106
|
+
checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8"
|
|
1107
|
+
dependencies = [
|
|
1108
|
+
"yoke",
|
|
1109
|
+
"zerofrom",
|
|
1110
|
+
"zerovec-derive",
|
|
1111
|
+
]
|
|
1112
|
+
|
|
1113
|
+
[[package]]
|
|
1114
|
+
name = "zerovec-derive"
|
|
1115
|
+
version = "0.11.6"
|
|
1116
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
1117
|
+
checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da"
|
|
1118
|
+
dependencies = [
|
|
1119
|
+
"proc-macro2",
|
|
1120
|
+
"quote",
|
|
1121
|
+
"syn 3.0.9",
|
|
1122
|
+
]
|
package/README.md
CHANGED
|
@@ -554,7 +554,7 @@ The suite covers the QUIC handshake, Extended CONNECT, bidirectional and unidire
|
|
|
554
554
|
The native core treats the peer and the caller as untrusted, on both the client and the server:
|
|
555
555
|
|
|
556
556
|
- **A panic can never crash Node.** The entire driver thread runs inside a panic boundary; a panic (or a fatal setup error) is surfaced as an `error` event that rejects `ready`/`closed`. It never aborts the process and never silently hangs the session.
|
|
557
|
-
- **Bounded
|
|
557
|
+
- **Bounded receive queues and parsers.** Event delivery to the JS loop is backpressured (unread stream data stays flow-controlled in QUIC, excess datagrams are dropped), servers queue at most 128 unread sessions, each incoming stream direction queues at most 128 unread streams, and finished native streams are pruned. HTTP/3 and capsule parser allocations are limited to 8 MiB per connection and 64 MiB across a server. Exceeding a queue or parser budget terminates the affected session.
|
|
558
558
|
- **No blocking on the event loop.** DNS resolution, the socket bind, and the QUIC handshake all run on the driver thread, so the constructor never blocks Node.
|
|
559
559
|
- **Hostile input is fail-closed.** Malformed HTTP/3, bad QPACK, oversized frames, unexpected resets, and out-of-range numbers from JS are handled by rejecting or closing cleanly rather than panicking.
|
|
560
560
|
|
|
@@ -575,3 +575,7 @@ Certificate verification follows the WebTransport model: full PKI validation by
|
|
|
575
575
|
<div align="center">
|
|
576
576
|
<sub>Built by <a href="https://github.com/dacely-cloud">Dacely Cloud</a>.</sub>
|
|
577
577
|
</div>
|
|
578
|
+
|
|
579
|
+
### Development checks
|
|
580
|
+
|
|
581
|
+
`npm test` runs the Node suite. `npm run test:browser` runs Chrome interoperability tests against the native server; Chrome must be installed, and WebdriverIO manages the driver. `npm run test:all` runs both suites. `npm run test:coverage` runs both with V8 coverage reports in `coverage/`. These commands build the native addon, TypeScript output, and Rust test fixtures first. Native protocol regressions run with `cargo test --release -p rwebtransport-native -p rwebtransport-wtcore`.
|