rwebtransport 0.1.0
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 +666 -0
- package/Cargo.toml +31 -0
- package/LICENSE +202 -0
- package/NOTICE +41 -0
- package/README.md +550 -0
- package/crates/echo-server/Cargo.toml +20 -0
- package/crates/echo-server/src/main.rs +666 -0
- package/crates/native/Cargo.toml +23 -0
- package/crates/native/src/config.rs +129 -0
- package/crates/native/src/driver.rs +463 -0
- package/crates/native/src/lib.rs +821 -0
- package/crates/native/src/server.rs +718 -0
- package/crates/native/src/session.rs +1191 -0
- package/crates/native/src/tls.rs +96 -0
- package/crates/wtcore/Cargo.toml +15 -0
- package/crates/wtcore/src/h3.rs +226 -0
- package/crates/wtcore/src/lib.rs +9 -0
- package/dist/datagrams.d.ts +16 -0
- package/dist/errors.d.ts +10 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +1512 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1473 -0
- package/dist/index.mjs.map +1 -0
- package/dist/loader.d.ts +2 -0
- package/dist/native.d.ts +226 -0
- package/dist/server.d.ts +44 -0
- package/dist/streams.d.ts +14 -0
- package/dist/types.d.ts +24 -0
- package/dist/webtransport.d.ts +20 -0
- package/package.json +79 -0
- package/prebuilds/win32-x64/rwebtransport.node +0 -0
- package/scripts/bench.mjs +180 -0
- package/scripts/build.js +67 -0
- package/scripts/postinstall.js +67 -0
- package/scripts/setup-unix.sh +129 -0
- package/scripts/setup-windows.ps1 +229 -0
- package/vendor/quiche/AGENTS.md +75 -0
- package/vendor/quiche/COPYING +23 -0
- package/vendor/quiche/Cargo.lock +1212 -0
- package/vendor/quiche/Cargo.toml +215 -0
- package/vendor/quiche/README.md +466 -0
- package/vendor/quiche/examples/Makefile +46 -0
- package/vendor/quiche/examples/README.md +20 -0
- package/vendor/quiche/examples/cert-big.crt +90 -0
- package/vendor/quiche/examples/cert.crt +18 -0
- package/vendor/quiche/examples/cert.key +28 -0
- package/vendor/quiche/examples/client.c +343 -0
- package/vendor/quiche/examples/client.rs +281 -0
- package/vendor/quiche/examples/gen-certs.sh +15 -0
- package/vendor/quiche/examples/http3-client.c +473 -0
- package/vendor/quiche/examples/http3-client.rs +349 -0
- package/vendor/quiche/examples/http3-server.c +614 -0
- package/vendor/quiche/examples/http3-server.rs +680 -0
- package/vendor/quiche/examples/qpack-decode.rs +87 -0
- package/vendor/quiche/examples/qpack-encode.rs +88 -0
- package/vendor/quiche/examples/rootca.crt +21 -0
- package/vendor/quiche/examples/server.c +529 -0
- package/vendor/quiche/examples/server.rs +529 -0
- package/vendor/quiche/include/quiche.h +1282 -0
- package/vendor/quiche/quiche.svg +1 -0
- package/vendor/quiche/src/buffers.rs +105 -0
- package/vendor/quiche/src/build.rs +66 -0
- package/vendor/quiche/src/cid.rs +1079 -0
- package/vendor/quiche/src/crypto/boringssl.rs +373 -0
- package/vendor/quiche/src/crypto/mod.rs +671 -0
- package/vendor/quiche/src/dgram.rs +118 -0
- package/vendor/quiche/src/error.rs +263 -0
- package/vendor/quiche/src/ffi.rs +2290 -0
- package/vendor/quiche/src/flowcontrol.rs +246 -0
- package/vendor/quiche/src/frame.rs +2172 -0
- package/vendor/quiche/src/h3/AGENTS.md +54 -0
- package/vendor/quiche/src/h3/ffi.rs +442 -0
- package/vendor/quiche/src/h3/frame.rs +1404 -0
- package/vendor/quiche/src/h3/mod.rs +8223 -0
- package/vendor/quiche/src/h3/qpack/decoder.rs +288 -0
- package/vendor/quiche/src/h3/qpack/encoder.rs +235 -0
- package/vendor/quiche/src/h3/qpack/mod.rs +202 -0
- package/vendor/quiche/src/h3/qpack/static_table.rs +323 -0
- package/vendor/quiche/src/h3/stream.rs +1595 -0
- package/vendor/quiche/src/lib.rs +9556 -0
- package/vendor/quiche/src/minmax.rs +446 -0
- package/vendor/quiche/src/packet.rs +2334 -0
- package/vendor/quiche/src/path.rs +1374 -0
- package/vendor/quiche/src/pmtud.rs +652 -0
- package/vendor/quiche/src/rand.rs +64 -0
- package/vendor/quiche/src/range_buf.rs +186 -0
- package/vendor/quiche/src/ranges.rs +755 -0
- package/vendor/quiche/src/recovery/AGENTS.md +80 -0
- package/vendor/quiche/src/recovery/bandwidth.rs +565 -0
- package/vendor/quiche/src/recovery/bytes_in_flight.rs +179 -0
- package/vendor/quiche/src/recovery/congestion/cubic.rs +1038 -0
- package/vendor/quiche/src/recovery/congestion/delivery_rate.rs +514 -0
- package/vendor/quiche/src/recovery/congestion/hystart.rs +241 -0
- package/vendor/quiche/src/recovery/congestion/mod.rs +361 -0
- package/vendor/quiche/src/recovery/congestion/prr.rs +238 -0
- package/vendor/quiche/src/recovery/congestion/recovery.rs +1170 -0
- package/vendor/quiche/src/recovery/congestion/reno.rs +291 -0
- package/vendor/quiche/src/recovery/congestion/test_sender.rs +201 -0
- package/vendor/quiche/src/recovery/gcongestion/bbr/bandwidth_sampler.rs +1947 -0
- package/vendor/quiche/src/recovery/gcongestion/bbr/windowed_filter.rs +158 -0
- package/vendor/quiche/src/recovery/gcongestion/bbr.rs +37 -0
- package/vendor/quiche/src/recovery/gcongestion/bbr2/drain.rs +120 -0
- package/vendor/quiche/src/recovery/gcongestion/bbr2/mode.rs +318 -0
- package/vendor/quiche/src/recovery/gcongestion/bbr2/network_model.rs +784 -0
- package/vendor/quiche/src/recovery/gcongestion/bbr2/probe_bw.rs +729 -0
- package/vendor/quiche/src/recovery/gcongestion/bbr2/probe_rtt.rs +175 -0
- package/vendor/quiche/src/recovery/gcongestion/bbr2/startup.rs +190 -0
- package/vendor/quiche/src/recovery/gcongestion/bbr2.rs +855 -0
- package/vendor/quiche/src/recovery/gcongestion/mod.rs +275 -0
- package/vendor/quiche/src/recovery/gcongestion/pacer.rs +294 -0
- package/vendor/quiche/src/recovery/gcongestion/recovery.rs +1384 -0
- package/vendor/quiche/src/recovery/mod.rs +3086 -0
- package/vendor/quiche/src/recovery/rtt.rs +152 -0
- package/vendor/quiche/src/stream/mod.rs +2210 -0
- package/vendor/quiche/src/stream/recv_buf.rs +1236 -0
- package/vendor/quiche/src/stream/send_buf.rs +849 -0
- package/vendor/quiche/src/test_utils.rs +681 -0
- package/vendor/quiche/src/tests.rs +12922 -0
- package/vendor/quiche/src/tls/boringssl.rs +375 -0
- package/vendor/quiche/src/tls/mod.rs +1245 -0
- package/vendor/quiche/src/transport_params.rs +628 -0
package/Cargo.lock
ADDED
|
@@ -0,0 +1,666 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "aho-corasick"
|
|
7
|
+
version = "1.1.4"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"memchr",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "autocfg"
|
|
16
|
+
version = "1.5.1"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "bindgen"
|
|
22
|
+
version = "0.72.1"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "993776b509cfb49c750f11b8f07a46fa23e0a1386ffc01fb1e7d343efc387895"
|
|
25
|
+
dependencies = [
|
|
26
|
+
"bitflags",
|
|
27
|
+
"cexpr",
|
|
28
|
+
"clang-sys",
|
|
29
|
+
"itertools",
|
|
30
|
+
"proc-macro2",
|
|
31
|
+
"quote",
|
|
32
|
+
"regex",
|
|
33
|
+
"rustc-hash",
|
|
34
|
+
"shlex 1.3.0",
|
|
35
|
+
"syn",
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
[[package]]
|
|
39
|
+
name = "bitflags"
|
|
40
|
+
version = "2.13.0"
|
|
41
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
+
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
|
|
43
|
+
|
|
44
|
+
[[package]]
|
|
45
|
+
name = "boring"
|
|
46
|
+
version = "4.22.0"
|
|
47
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
48
|
+
checksum = "3b0e3bc837369e9e662d3845c374ac3771b054d4bc2dee5457591198d16d684c"
|
|
49
|
+
dependencies = [
|
|
50
|
+
"bitflags",
|
|
51
|
+
"boring-sys",
|
|
52
|
+
"foreign-types",
|
|
53
|
+
"libc",
|
|
54
|
+
"openssl-macros",
|
|
55
|
+
]
|
|
56
|
+
|
|
57
|
+
[[package]]
|
|
58
|
+
name = "boring-sys"
|
|
59
|
+
version = "4.22.0"
|
|
60
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
61
|
+
checksum = "15aad385759d3da2737772aefb391332227bef7cb71fb85c106cadd9d1e63a98"
|
|
62
|
+
dependencies = [
|
|
63
|
+
"bindgen",
|
|
64
|
+
"cmake",
|
|
65
|
+
"fs_extra",
|
|
66
|
+
"fslock",
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
[[package]]
|
|
70
|
+
name = "bytes"
|
|
71
|
+
version = "1.12.1"
|
|
72
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
73
|
+
checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
|
|
74
|
+
|
|
75
|
+
[[package]]
|
|
76
|
+
name = "cc"
|
|
77
|
+
version = "1.2.67"
|
|
78
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
79
|
+
checksum = "e17dd265a7d0f31ef544e1b20e03add05d3b45b491b633b10d67145d2acc1a38"
|
|
80
|
+
dependencies = [
|
|
81
|
+
"find-msvc-tools",
|
|
82
|
+
"shlex 2.0.1",
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
[[package]]
|
|
86
|
+
name = "cexpr"
|
|
87
|
+
version = "0.6.0"
|
|
88
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
89
|
+
checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
|
|
90
|
+
dependencies = [
|
|
91
|
+
"nom",
|
|
92
|
+
]
|
|
93
|
+
|
|
94
|
+
[[package]]
|
|
95
|
+
name = "cfg-if"
|
|
96
|
+
version = "1.0.4"
|
|
97
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
98
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
99
|
+
|
|
100
|
+
[[package]]
|
|
101
|
+
name = "clang-sys"
|
|
102
|
+
version = "1.8.1"
|
|
103
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
+
checksum = "0b023947811758c97c59bf9d1c188fd619ad4718dcaa767947df1cadb14f39f4"
|
|
105
|
+
dependencies = [
|
|
106
|
+
"glob",
|
|
107
|
+
"libc",
|
|
108
|
+
"libloading",
|
|
109
|
+
]
|
|
110
|
+
|
|
111
|
+
[[package]]
|
|
112
|
+
name = "cmake"
|
|
113
|
+
version = "0.1.58"
|
|
114
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
115
|
+
checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678"
|
|
116
|
+
dependencies = [
|
|
117
|
+
"cc",
|
|
118
|
+
]
|
|
119
|
+
|
|
120
|
+
[[package]]
|
|
121
|
+
name = "debug_panic"
|
|
122
|
+
version = "0.2.1"
|
|
123
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
124
|
+
checksum = "9377eb110cece2e9431deb8d7d2ec8c116510b896741f9f2bf02b352147aa2a6"
|
|
125
|
+
|
|
126
|
+
[[package]]
|
|
127
|
+
name = "either"
|
|
128
|
+
version = "1.16.0"
|
|
129
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
130
|
+
checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e"
|
|
131
|
+
|
|
132
|
+
[[package]]
|
|
133
|
+
name = "enum_dispatch"
|
|
134
|
+
version = "0.3.13"
|
|
135
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
136
|
+
checksum = "aa18ce2bc66555b3218614519ac839ddb759a7d6720732f979ef8d13be147ecd"
|
|
137
|
+
dependencies = [
|
|
138
|
+
"once_cell",
|
|
139
|
+
"proc-macro2",
|
|
140
|
+
"quote",
|
|
141
|
+
"syn",
|
|
142
|
+
]
|
|
143
|
+
|
|
144
|
+
[[package]]
|
|
145
|
+
name = "find-msvc-tools"
|
|
146
|
+
version = "0.1.9"
|
|
147
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
148
|
+
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
|
149
|
+
|
|
150
|
+
[[package]]
|
|
151
|
+
name = "foreign-types"
|
|
152
|
+
version = "0.5.0"
|
|
153
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
154
|
+
checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
|
|
155
|
+
dependencies = [
|
|
156
|
+
"foreign-types-macros",
|
|
157
|
+
"foreign-types-shared",
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
[[package]]
|
|
161
|
+
name = "foreign-types-macros"
|
|
162
|
+
version = "0.2.3"
|
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
+
checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
|
|
165
|
+
dependencies = [
|
|
166
|
+
"proc-macro2",
|
|
167
|
+
"quote",
|
|
168
|
+
"syn",
|
|
169
|
+
]
|
|
170
|
+
|
|
171
|
+
[[package]]
|
|
172
|
+
name = "foreign-types-shared"
|
|
173
|
+
version = "0.3.1"
|
|
174
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
175
|
+
checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
|
|
176
|
+
|
|
177
|
+
[[package]]
|
|
178
|
+
name = "fs_extra"
|
|
179
|
+
version = "1.3.0"
|
|
180
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
+
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
|
|
182
|
+
|
|
183
|
+
[[package]]
|
|
184
|
+
name = "fslock"
|
|
185
|
+
version = "0.2.1"
|
|
186
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
187
|
+
checksum = "04412b8935272e3a9bae6f48c7bfff74c2911f60525404edfdd28e49884c3bfb"
|
|
188
|
+
dependencies = [
|
|
189
|
+
"libc",
|
|
190
|
+
"winapi",
|
|
191
|
+
]
|
|
192
|
+
|
|
193
|
+
[[package]]
|
|
194
|
+
name = "getrandom"
|
|
195
|
+
version = "0.2.17"
|
|
196
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
197
|
+
checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
|
|
198
|
+
dependencies = [
|
|
199
|
+
"cfg-if",
|
|
200
|
+
"libc",
|
|
201
|
+
"wasi",
|
|
202
|
+
]
|
|
203
|
+
|
|
204
|
+
[[package]]
|
|
205
|
+
name = "glob"
|
|
206
|
+
version = "0.3.3"
|
|
207
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
208
|
+
checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280"
|
|
209
|
+
|
|
210
|
+
[[package]]
|
|
211
|
+
name = "intrusive-collections"
|
|
212
|
+
version = "0.9.7"
|
|
213
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
214
|
+
checksum = "189d0897e4cbe8c75efedf3502c18c887b05046e59d28404d4d8e46cbc4d1e86"
|
|
215
|
+
dependencies = [
|
|
216
|
+
"memoffset",
|
|
217
|
+
]
|
|
218
|
+
|
|
219
|
+
[[package]]
|
|
220
|
+
name = "itertools"
|
|
221
|
+
version = "0.13.0"
|
|
222
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
223
|
+
checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
|
|
224
|
+
dependencies = [
|
|
225
|
+
"either",
|
|
226
|
+
]
|
|
227
|
+
|
|
228
|
+
[[package]]
|
|
229
|
+
name = "libc"
|
|
230
|
+
version = "0.2.186"
|
|
231
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
232
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
233
|
+
|
|
234
|
+
[[package]]
|
|
235
|
+
name = "libloading"
|
|
236
|
+
version = "0.8.9"
|
|
237
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
238
|
+
checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
|
|
239
|
+
dependencies = [
|
|
240
|
+
"cfg-if",
|
|
241
|
+
"windows-link",
|
|
242
|
+
]
|
|
243
|
+
|
|
244
|
+
[[package]]
|
|
245
|
+
name = "libm"
|
|
246
|
+
version = "0.2.16"
|
|
247
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
248
|
+
checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
|
|
249
|
+
|
|
250
|
+
[[package]]
|
|
251
|
+
name = "linkme"
|
|
252
|
+
version = "0.3.36"
|
|
253
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
254
|
+
checksum = "e83272d46373fb8decca684579ac3e7c8f3d71d4cc3aa693df8759e260ae41cf"
|
|
255
|
+
dependencies = [
|
|
256
|
+
"linkme-impl",
|
|
257
|
+
]
|
|
258
|
+
|
|
259
|
+
[[package]]
|
|
260
|
+
name = "linkme-impl"
|
|
261
|
+
version = "0.3.36"
|
|
262
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
263
|
+
checksum = "32d59e20403c7d08fe62b4376edfe5c7fb2ef1e6b1465379686d0f21c8df444b"
|
|
264
|
+
dependencies = [
|
|
265
|
+
"proc-macro2",
|
|
266
|
+
"quote",
|
|
267
|
+
"syn",
|
|
268
|
+
]
|
|
269
|
+
|
|
270
|
+
[[package]]
|
|
271
|
+
name = "log"
|
|
272
|
+
version = "0.4.33"
|
|
273
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
274
|
+
checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
|
|
275
|
+
|
|
276
|
+
[[package]]
|
|
277
|
+
name = "memchr"
|
|
278
|
+
version = "2.8.3"
|
|
279
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
280
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
281
|
+
|
|
282
|
+
[[package]]
|
|
283
|
+
name = "memoffset"
|
|
284
|
+
version = "0.9.1"
|
|
285
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
286
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
287
|
+
dependencies = [
|
|
288
|
+
"autocfg",
|
|
289
|
+
]
|
|
290
|
+
|
|
291
|
+
[[package]]
|
|
292
|
+
name = "minimal-lexical"
|
|
293
|
+
version = "0.2.1"
|
|
294
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
295
|
+
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
|
296
|
+
|
|
297
|
+
[[package]]
|
|
298
|
+
name = "mio"
|
|
299
|
+
version = "1.2.1"
|
|
300
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
301
|
+
checksum = "02bd0af71c67b473010cbbc60715ee815645a4dc942899111f494b4b737d6fda"
|
|
302
|
+
dependencies = [
|
|
303
|
+
"libc",
|
|
304
|
+
"log",
|
|
305
|
+
"wasi",
|
|
306
|
+
"windows-sys 0.61.2",
|
|
307
|
+
]
|
|
308
|
+
|
|
309
|
+
[[package]]
|
|
310
|
+
name = "neon"
|
|
311
|
+
version = "1.1.1"
|
|
312
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
313
|
+
checksum = "74c1d298c79e60a3f5a1e638ace1f9c1229d2a97bd3a9e40a63b67c8efa0f1e1"
|
|
314
|
+
dependencies = [
|
|
315
|
+
"either",
|
|
316
|
+
"getrandom",
|
|
317
|
+
"libloading",
|
|
318
|
+
"linkme",
|
|
319
|
+
"neon-macros",
|
|
320
|
+
"once_cell",
|
|
321
|
+
"semver",
|
|
322
|
+
"send_wrapper",
|
|
323
|
+
"smallvec",
|
|
324
|
+
]
|
|
325
|
+
|
|
326
|
+
[[package]]
|
|
327
|
+
name = "neon-macros"
|
|
328
|
+
version = "1.1.1"
|
|
329
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
330
|
+
checksum = "c39e43767817fc963f90f400600967a2b2403602c6440685d09a6bc4e02b70b1"
|
|
331
|
+
dependencies = [
|
|
332
|
+
"proc-macro2",
|
|
333
|
+
"quote",
|
|
334
|
+
"syn",
|
|
335
|
+
]
|
|
336
|
+
|
|
337
|
+
[[package]]
|
|
338
|
+
name = "nom"
|
|
339
|
+
version = "7.1.3"
|
|
340
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
341
|
+
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
|
342
|
+
dependencies = [
|
|
343
|
+
"memchr",
|
|
344
|
+
"minimal-lexical",
|
|
345
|
+
]
|
|
346
|
+
|
|
347
|
+
[[package]]
|
|
348
|
+
name = "octets"
|
|
349
|
+
version = "0.3.5"
|
|
350
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
351
|
+
checksum = "8311fa8ab7a57759b4ff1f851a3048d9ef0effaa0130726426b742d26d8a88e7"
|
|
352
|
+
|
|
353
|
+
[[package]]
|
|
354
|
+
name = "once_cell"
|
|
355
|
+
version = "1.21.4"
|
|
356
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
357
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
358
|
+
|
|
359
|
+
[[package]]
|
|
360
|
+
name = "openssl-macros"
|
|
361
|
+
version = "0.1.1"
|
|
362
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
363
|
+
checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
|
|
364
|
+
dependencies = [
|
|
365
|
+
"proc-macro2",
|
|
366
|
+
"quote",
|
|
367
|
+
"syn",
|
|
368
|
+
]
|
|
369
|
+
|
|
370
|
+
[[package]]
|
|
371
|
+
name = "proc-macro2"
|
|
372
|
+
version = "1.0.106"
|
|
373
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
374
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
375
|
+
dependencies = [
|
|
376
|
+
"unicode-ident",
|
|
377
|
+
]
|
|
378
|
+
|
|
379
|
+
[[package]]
|
|
380
|
+
name = "quiche"
|
|
381
|
+
version = "0.29.1"
|
|
382
|
+
dependencies = [
|
|
383
|
+
"boring",
|
|
384
|
+
"bytes",
|
|
385
|
+
"debug_panic",
|
|
386
|
+
"either",
|
|
387
|
+
"enum_dispatch",
|
|
388
|
+
"foreign-types-shared",
|
|
389
|
+
"intrusive-collections",
|
|
390
|
+
"libc",
|
|
391
|
+
"libm",
|
|
392
|
+
"log",
|
|
393
|
+
"octets",
|
|
394
|
+
"slab",
|
|
395
|
+
"smallvec",
|
|
396
|
+
"windows-sys 0.59.0",
|
|
397
|
+
]
|
|
398
|
+
|
|
399
|
+
[[package]]
|
|
400
|
+
name = "quote"
|
|
401
|
+
version = "1.0.46"
|
|
402
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
403
|
+
checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
|
|
404
|
+
dependencies = [
|
|
405
|
+
"proc-macro2",
|
|
406
|
+
]
|
|
407
|
+
|
|
408
|
+
[[package]]
|
|
409
|
+
name = "regex"
|
|
410
|
+
version = "1.13.0"
|
|
411
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
412
|
+
checksum = "2a0e75113e14dc5acb068cd0786884f214f1312650a3d36d269f5c4f3cdee8a2"
|
|
413
|
+
dependencies = [
|
|
414
|
+
"aho-corasick",
|
|
415
|
+
"memchr",
|
|
416
|
+
"regex-automata",
|
|
417
|
+
"regex-syntax",
|
|
418
|
+
]
|
|
419
|
+
|
|
420
|
+
[[package]]
|
|
421
|
+
name = "regex-automata"
|
|
422
|
+
version = "0.4.15"
|
|
423
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
424
|
+
checksum = "1f388202e4b80542a0921078cc23b6333bcf1409c1e3f86404cae4766a6131db"
|
|
425
|
+
dependencies = [
|
|
426
|
+
"aho-corasick",
|
|
427
|
+
"memchr",
|
|
428
|
+
"regex-syntax",
|
|
429
|
+
]
|
|
430
|
+
|
|
431
|
+
[[package]]
|
|
432
|
+
name = "regex-syntax"
|
|
433
|
+
version = "0.8.11"
|
|
434
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
435
|
+
checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
|
|
436
|
+
|
|
437
|
+
[[package]]
|
|
438
|
+
name = "rustc-hash"
|
|
439
|
+
version = "2.1.3"
|
|
440
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
441
|
+
checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
|
|
442
|
+
|
|
443
|
+
[[package]]
|
|
444
|
+
name = "rwebtransport-echo-server"
|
|
445
|
+
version = "0.1.0"
|
|
446
|
+
dependencies = [
|
|
447
|
+
"boring",
|
|
448
|
+
"boring-sys",
|
|
449
|
+
"log",
|
|
450
|
+
"mio",
|
|
451
|
+
"octets",
|
|
452
|
+
"quiche",
|
|
453
|
+
"rwebtransport-wtcore",
|
|
454
|
+
]
|
|
455
|
+
|
|
456
|
+
[[package]]
|
|
457
|
+
name = "rwebtransport-native"
|
|
458
|
+
version = "0.1.0"
|
|
459
|
+
dependencies = [
|
|
460
|
+
"boring",
|
|
461
|
+
"boring-sys",
|
|
462
|
+
"getrandom",
|
|
463
|
+
"log",
|
|
464
|
+
"mio",
|
|
465
|
+
"neon",
|
|
466
|
+
"octets",
|
|
467
|
+
"quiche",
|
|
468
|
+
"rwebtransport-wtcore",
|
|
469
|
+
"socket2",
|
|
470
|
+
]
|
|
471
|
+
|
|
472
|
+
[[package]]
|
|
473
|
+
name = "rwebtransport-wtcore"
|
|
474
|
+
version = "0.1.0"
|
|
475
|
+
dependencies = [
|
|
476
|
+
"octets",
|
|
477
|
+
"quiche",
|
|
478
|
+
]
|
|
479
|
+
|
|
480
|
+
[[package]]
|
|
481
|
+
name = "semver"
|
|
482
|
+
version = "1.0.28"
|
|
483
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
484
|
+
checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
|
|
485
|
+
|
|
486
|
+
[[package]]
|
|
487
|
+
name = "send_wrapper"
|
|
488
|
+
version = "0.6.0"
|
|
489
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
490
|
+
checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73"
|
|
491
|
+
|
|
492
|
+
[[package]]
|
|
493
|
+
name = "shlex"
|
|
494
|
+
version = "1.3.0"
|
|
495
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
496
|
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
|
497
|
+
|
|
498
|
+
[[package]]
|
|
499
|
+
name = "shlex"
|
|
500
|
+
version = "2.0.1"
|
|
501
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
502
|
+
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
|
|
503
|
+
|
|
504
|
+
[[package]]
|
|
505
|
+
name = "slab"
|
|
506
|
+
version = "0.4.12"
|
|
507
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
508
|
+
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
509
|
+
|
|
510
|
+
[[package]]
|
|
511
|
+
name = "smallvec"
|
|
512
|
+
version = "1.15.2"
|
|
513
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
514
|
+
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
|
|
515
|
+
|
|
516
|
+
[[package]]
|
|
517
|
+
name = "socket2"
|
|
518
|
+
version = "0.5.10"
|
|
519
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
520
|
+
checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"
|
|
521
|
+
dependencies = [
|
|
522
|
+
"libc",
|
|
523
|
+
"windows-sys 0.52.0",
|
|
524
|
+
]
|
|
525
|
+
|
|
526
|
+
[[package]]
|
|
527
|
+
name = "syn"
|
|
528
|
+
version = "2.0.118"
|
|
529
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
530
|
+
checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
|
|
531
|
+
dependencies = [
|
|
532
|
+
"proc-macro2",
|
|
533
|
+
"quote",
|
|
534
|
+
"unicode-ident",
|
|
535
|
+
]
|
|
536
|
+
|
|
537
|
+
[[package]]
|
|
538
|
+
name = "unicode-ident"
|
|
539
|
+
version = "1.0.24"
|
|
540
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
541
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
542
|
+
|
|
543
|
+
[[package]]
|
|
544
|
+
name = "wasi"
|
|
545
|
+
version = "0.11.1+wasi-snapshot-preview1"
|
|
546
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
547
|
+
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
|
548
|
+
|
|
549
|
+
[[package]]
|
|
550
|
+
name = "winapi"
|
|
551
|
+
version = "0.3.9"
|
|
552
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
553
|
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
|
554
|
+
dependencies = [
|
|
555
|
+
"winapi-i686-pc-windows-gnu",
|
|
556
|
+
"winapi-x86_64-pc-windows-gnu",
|
|
557
|
+
]
|
|
558
|
+
|
|
559
|
+
[[package]]
|
|
560
|
+
name = "winapi-i686-pc-windows-gnu"
|
|
561
|
+
version = "0.4.0"
|
|
562
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
563
|
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
|
564
|
+
|
|
565
|
+
[[package]]
|
|
566
|
+
name = "winapi-x86_64-pc-windows-gnu"
|
|
567
|
+
version = "0.4.0"
|
|
568
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
569
|
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
|
570
|
+
|
|
571
|
+
[[package]]
|
|
572
|
+
name = "windows-link"
|
|
573
|
+
version = "0.2.1"
|
|
574
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
575
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
576
|
+
|
|
577
|
+
[[package]]
|
|
578
|
+
name = "windows-sys"
|
|
579
|
+
version = "0.52.0"
|
|
580
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
581
|
+
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
|
582
|
+
dependencies = [
|
|
583
|
+
"windows-targets",
|
|
584
|
+
]
|
|
585
|
+
|
|
586
|
+
[[package]]
|
|
587
|
+
name = "windows-sys"
|
|
588
|
+
version = "0.59.0"
|
|
589
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
590
|
+
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
|
591
|
+
dependencies = [
|
|
592
|
+
"windows-targets",
|
|
593
|
+
]
|
|
594
|
+
|
|
595
|
+
[[package]]
|
|
596
|
+
name = "windows-sys"
|
|
597
|
+
version = "0.61.2"
|
|
598
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
599
|
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
600
|
+
dependencies = [
|
|
601
|
+
"windows-link",
|
|
602
|
+
]
|
|
603
|
+
|
|
604
|
+
[[package]]
|
|
605
|
+
name = "windows-targets"
|
|
606
|
+
version = "0.52.6"
|
|
607
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
608
|
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
|
609
|
+
dependencies = [
|
|
610
|
+
"windows_aarch64_gnullvm",
|
|
611
|
+
"windows_aarch64_msvc",
|
|
612
|
+
"windows_i686_gnu",
|
|
613
|
+
"windows_i686_gnullvm",
|
|
614
|
+
"windows_i686_msvc",
|
|
615
|
+
"windows_x86_64_gnu",
|
|
616
|
+
"windows_x86_64_gnullvm",
|
|
617
|
+
"windows_x86_64_msvc",
|
|
618
|
+
]
|
|
619
|
+
|
|
620
|
+
[[package]]
|
|
621
|
+
name = "windows_aarch64_gnullvm"
|
|
622
|
+
version = "0.52.6"
|
|
623
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
624
|
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
|
625
|
+
|
|
626
|
+
[[package]]
|
|
627
|
+
name = "windows_aarch64_msvc"
|
|
628
|
+
version = "0.52.6"
|
|
629
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
630
|
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
|
631
|
+
|
|
632
|
+
[[package]]
|
|
633
|
+
name = "windows_i686_gnu"
|
|
634
|
+
version = "0.52.6"
|
|
635
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
636
|
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
|
637
|
+
|
|
638
|
+
[[package]]
|
|
639
|
+
name = "windows_i686_gnullvm"
|
|
640
|
+
version = "0.52.6"
|
|
641
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
642
|
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
|
643
|
+
|
|
644
|
+
[[package]]
|
|
645
|
+
name = "windows_i686_msvc"
|
|
646
|
+
version = "0.52.6"
|
|
647
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
648
|
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
|
649
|
+
|
|
650
|
+
[[package]]
|
|
651
|
+
name = "windows_x86_64_gnu"
|
|
652
|
+
version = "0.52.6"
|
|
653
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
654
|
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
|
655
|
+
|
|
656
|
+
[[package]]
|
|
657
|
+
name = "windows_x86_64_gnullvm"
|
|
658
|
+
version = "0.52.6"
|
|
659
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
660
|
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
|
661
|
+
|
|
662
|
+
[[package]]
|
|
663
|
+
name = "windows_x86_64_msvc"
|
|
664
|
+
version = "0.52.6"
|
|
665
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
666
|
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
package/Cargo.toml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
2
|
+
[workspace]
|
|
3
|
+
resolver = "2"
|
|
4
|
+
members = ["crates/native", "crates/echo-server", "crates/wtcore"]
|
|
5
|
+
exclude = ["vendor/quiche"]
|
|
6
|
+
|
|
7
|
+
[workspace.package]
|
|
8
|
+
version = "0.1.0"
|
|
9
|
+
edition = "2021"
|
|
10
|
+
license = "Apache-2.0"
|
|
11
|
+
repository = "https://github.com/felixantoinebelleau/rwebtransport"
|
|
12
|
+
|
|
13
|
+
[workspace.dependencies]
|
|
14
|
+
wtcore = { package = "rwebtransport-wtcore", path = "crates/wtcore" }
|
|
15
|
+
quiche = { path = "vendor/quiche", default-features = false, features = ["boringssl-boring-crate"] }
|
|
16
|
+
boring = "4.22"
|
|
17
|
+
boring-sys = "4.22"
|
|
18
|
+
octets = { version = "0.3.5", features = ["huffman_hpack"] }
|
|
19
|
+
log = "0.4"
|
|
20
|
+
mio = { version = "1", features = ["net", "os-poll"] }
|
|
21
|
+
getrandom = "0.2"
|
|
22
|
+
socket2 = { version = "0.5", features = ["all"] }
|
|
23
|
+
|
|
24
|
+
# Release profile tuned for a shippable native addon without pathological compile times.
|
|
25
|
+
# NOTE: panic must stay "unwind" (the default) so neon can catch Rust panics at the
|
|
26
|
+
# N-API boundary and turn them into JS exceptions instead of aborting the Node process.
|
|
27
|
+
[profile.release]
|
|
28
|
+
opt-level = 3
|
|
29
|
+
lto = "thin"
|
|
30
|
+
codegen-units = 1
|
|
31
|
+
strip = true
|