h2corn 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. h2corn-1.0.0/Cargo.lock +645 -0
  2. h2corn-1.0.0/Cargo.toml +46 -0
  3. h2corn-1.0.0/PKG-INFO +484 -0
  4. h2corn-1.0.0/README.md +453 -0
  5. h2corn-1.0.0/bench/bench.py +658 -0
  6. h2corn-1.0.0/bench/bench_app.py +66 -0
  7. h2corn-1.0.0/bench/k6/ws.js +23 -0
  8. h2corn-1.0.0/bench/results/plots/benchmark_http_1_get_1_worker.svg +2311 -0
  9. h2corn-1.0.0/bench/results/plots/benchmark_http_1_get_4_workers.svg +2315 -0
  10. h2corn-1.0.0/bench/results/plots/benchmark_http_1_get_over_uds_1_worker.svg +2337 -0
  11. h2corn-1.0.0/bench/results/plots/benchmark_http_1_get_over_uds_4_workers.svg +2343 -0
  12. h2corn-1.0.0/bench/results/plots/benchmark_http_1_static_file_1_worker.svg +2401 -0
  13. h2corn-1.0.0/bench/results/plots/benchmark_http_1_static_file_4_workers.svg +2358 -0
  14. h2corn-1.0.0/bench/results/plots/benchmark_http_1_streaming_post_1_worker.svg +2403 -0
  15. h2corn-1.0.0/bench/results/plots/benchmark_http_1_streaming_post_4_workers.svg +2361 -0
  16. h2corn-1.0.0/bench/results/plots/benchmark_http_1_websocket_1_worker.svg +2328 -0
  17. h2corn-1.0.0/bench/results/plots/benchmark_http_1_websocket_4_workers.svg +2363 -0
  18. h2corn-1.0.0/bench/results/plots/benchmark_http_2_get_1_worker.svg +2130 -0
  19. h2corn-1.0.0/bench/results/plots/benchmark_http_2_get_4_workers.svg +2210 -0
  20. h2corn-1.0.0/bench/results/plots/benchmark_http_2_static_file_1_worker.svg +2084 -0
  21. h2corn-1.0.0/bench/results/plots/benchmark_http_2_static_file_4_workers.svg +2174 -0
  22. h2corn-1.0.0/bench/results/plots/benchmark_http_2_streaming_post_1_worker.svg +2133 -0
  23. h2corn-1.0.0/bench/results/plots/benchmark_http_2_streaming_post_4_workers.svg +2227 -0
  24. h2corn-1.0.0/build.rs +3 -0
  25. h2corn-1.0.0/pyproject.toml +70 -0
  26. h2corn-1.0.0/python/h2corn/__init__.py +18 -0
  27. h2corn-1.0.0/python/h2corn/_cli.py +151 -0
  28. h2corn-1.0.0/python/h2corn/_config.py +498 -0
  29. h2corn-1.0.0/python/h2corn/_lifespan.py +181 -0
  30. h2corn-1.0.0/python/h2corn/_server.py +129 -0
  31. h2corn-1.0.0/python/h2corn/_socket.py +147 -0
  32. h2corn-1.0.0/python/h2corn/_supervisor.py +445 -0
  33. h2corn-1.0.0/python/h2corn/_types.py +61 -0
  34. h2corn-1.0.0/python/h2corn/py.typed +1 -0
  35. h2corn-1.0.0/src/async_util.rs +53 -0
  36. h2corn-1.0.0/src/bridge/http.rs +168 -0
  37. h2corn-1.0.0/src/bridge/websocket.rs +297 -0
  38. h2corn-1.0.0/src/bridge.rs +799 -0
  39. h2corn-1.0.0/src/buffered_events.rs +39 -0
  40. h2corn-1.0.0/src/config.rs +79 -0
  41. h2corn-1.0.0/src/console.rs +756 -0
  42. h2corn-1.0.0/src/error.rs +636 -0
  43. h2corn-1.0.0/src/ext.rs +45 -0
  44. h2corn-1.0.0/src/frame.rs +576 -0
  45. h2corn-1.0.0/src/h1/http.rs +453 -0
  46. h2corn-1.0.0/src/h1/mod.rs +446 -0
  47. h2corn-1.0.0/src/h1/parse.rs +1079 -0
  48. h2corn-1.0.0/src/h1/websocket.rs +334 -0
  49. h2corn-1.0.0/src/h2/http.rs +551 -0
  50. h2corn-1.0.0/src/h2/mod.rs +1404 -0
  51. h2corn-1.0.0/src/h2/request.rs +492 -0
  52. h2corn-1.0.0/src/h2/state.rs +288 -0
  53. h2corn-1.0.0/src/h2/websocket.rs +172 -0
  54. h2corn-1.0.0/src/h2/writer/driver.rs +923 -0
  55. h2corn-1.0.0/src/h2/writer/flush.rs +644 -0
  56. h2corn-1.0.0/src/h2/writer/header_encode.rs +172 -0
  57. h2corn-1.0.0/src/h2/writer/ingress.rs +179 -0
  58. h2corn-1.0.0/src/h2/writer/mod.rs +138 -0
  59. h2corn-1.0.0/src/h2/writer/stream_state.rs +248 -0
  60. h2corn-1.0.0/src/hpack/decoder.rs +542 -0
  61. h2corn-1.0.0/src/hpack/encoder.rs +356 -0
  62. h2corn-1.0.0/src/hpack/header.rs +238 -0
  63. h2corn-1.0.0/src/hpack/huffman/mod.rs +151 -0
  64. h2corn-1.0.0/src/hpack/huffman/table.rs +5130 -0
  65. h2corn-1.0.0/src/hpack/mod.rs +9 -0
  66. h2corn-1.0.0/src/hpack/static_table.rs +236 -0
  67. h2corn-1.0.0/src/http/analysis.rs +180 -0
  68. h2corn-1.0.0/src/http/app/buffered.rs +155 -0
  69. h2corn-1.0.0/src/http/app.rs +196 -0
  70. h2corn-1.0.0/src/http/body.rs +129 -0
  71. h2corn-1.0.0/src/http/execution.rs +90 -0
  72. h2corn-1.0.0/src/http/header.rs +558 -0
  73. h2corn-1.0.0/src/http/mod.rs +10 -0
  74. h2corn-1.0.0/src/http/pathsend.rs +119 -0
  75. h2corn-1.0.0/src/http/planner.rs +215 -0
  76. h2corn-1.0.0/src/http/response/actions.rs +155 -0
  77. h2corn-1.0.0/src/http/response/controller.rs +642 -0
  78. h2corn-1.0.0/src/http/response/driver.rs +67 -0
  79. h2corn-1.0.0/src/http/response/mod.rs +11 -0
  80. h2corn-1.0.0/src/http/response/transport.rs +67 -0
  81. h2corn-1.0.0/src/http/scope/proxy.rs +263 -0
  82. h2corn-1.0.0/src/http/scope.rs +460 -0
  83. h2corn-1.0.0/src/http/types.rs +553 -0
  84. h2corn-1.0.0/src/lib.rs +469 -0
  85. h2corn-1.0.0/src/proxy.rs +614 -0
  86. h2corn-1.0.0/src/python.rs +494 -0
  87. h2corn-1.0.0/src/runtime.rs +299 -0
  88. h2corn-1.0.0/src/sendfile.rs +49 -0
  89. h2corn-1.0.0/src/server.rs +467 -0
  90. h2corn-1.0.0/src/smallvec_deque.rs +114 -0
  91. h2corn-1.0.0/src/websocket/app.rs +77 -0
  92. h2corn-1.0.0/src/websocket/codec/cursor.rs +104 -0
  93. h2corn-1.0.0/src/websocket/codec/decode.rs +519 -0
  94. h2corn-1.0.0/src/websocket/codec/frame.rs +230 -0
  95. h2corn-1.0.0/src/websocket/codec/mask.rs +114 -0
  96. h2corn-1.0.0/src/websocket/codec/mod.rs +101 -0
  97. h2corn-1.0.0/src/websocket/deflate.rs +254 -0
  98. h2corn-1.0.0/src/websocket/mod.rs +28 -0
  99. h2corn-1.0.0/src/websocket/request.rs +68 -0
  100. h2corn-1.0.0/src/websocket/session/accepted.rs +592 -0
  101. h2corn-1.0.0/src/websocket/session/handshake.rs +548 -0
  102. h2corn-1.0.0/src/websocket/session.rs +399 -0
  103. h2corn-1.0.0/tests/__init__.py +1 -0
  104. h2corn-1.0.0/tests/_support.py +256 -0
  105. h2corn-1.0.0/tests/test_config.py +213 -0
  106. h2corn-1.0.0/tests/test_h2spec.py +34 -0
  107. h2corn-1.0.0/tests/test_http1.py +765 -0
  108. h2corn-1.0.0/tests/test_http2.py +924 -0
  109. h2corn-1.0.0/tests/test_http2_protocol.py +652 -0
  110. h2corn-1.0.0/tests/test_lifespan.py +103 -0
  111. h2corn-1.0.0/tests/test_proxy.py +629 -0
  112. h2corn-1.0.0/tests/test_runtime.py +300 -0
  113. h2corn-1.0.0/tests/test_server_bootstrap.py +271 -0
  114. h2corn-1.0.0/tests/test_websocket.py +1963 -0
@@ -0,0 +1,645 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "adler2"
7
+ version = "2.0.1"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
10
+
11
+ [[package]]
12
+ name = "anstream"
13
+ version = "0.6.21"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a"
16
+ dependencies = [
17
+ "anstyle",
18
+ "anstyle-parse",
19
+ "anstyle-query",
20
+ "anstyle-wincon",
21
+ "colorchoice",
22
+ "is_terminal_polyfill",
23
+ "utf8parse",
24
+ ]
25
+
26
+ [[package]]
27
+ name = "anstyle"
28
+ version = "1.0.14"
29
+ source = "registry+https://github.com/rust-lang/crates.io-index"
30
+ checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
31
+
32
+ [[package]]
33
+ name = "anstyle-parse"
34
+ version = "0.2.7"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2"
37
+ dependencies = [
38
+ "utf8parse",
39
+ ]
40
+
41
+ [[package]]
42
+ name = "anstyle-query"
43
+ version = "1.1.5"
44
+ source = "registry+https://github.com/rust-lang/crates.io-index"
45
+ checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
46
+ dependencies = [
47
+ "windows-sys",
48
+ ]
49
+
50
+ [[package]]
51
+ name = "anstyle-wincon"
52
+ version = "3.0.11"
53
+ source = "registry+https://github.com/rust-lang/crates.io-index"
54
+ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
55
+ dependencies = [
56
+ "anstyle",
57
+ "once_cell_polyfill",
58
+ "windows-sys",
59
+ ]
60
+
61
+ [[package]]
62
+ name = "atoi_simd"
63
+ version = "0.18.1"
64
+ source = "registry+https://github.com/rust-lang/crates.io-index"
65
+ checksum = "f3cdb3708a128e559a30fb830e8a77a5022ee6902806925c216658652b452a44"
66
+ dependencies = [
67
+ "debug_unsafe",
68
+ "rustversion",
69
+ ]
70
+
71
+ [[package]]
72
+ name = "bitflags"
73
+ version = "2.11.1"
74
+ source = "registry+https://github.com/rust-lang/crates.io-index"
75
+ checksum = "c4512299f36f043ab09a583e57bceb5a5aab7a73db1805848e8fef3c9e8c78b3"
76
+
77
+ [[package]]
78
+ name = "bytes"
79
+ version = "1.11.1"
80
+ source = "registry+https://github.com/rust-lang/crates.io-index"
81
+ checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
82
+
83
+ [[package]]
84
+ name = "cfg-if"
85
+ version = "1.0.4"
86
+ source = "registry+https://github.com/rust-lang/crates.io-index"
87
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
88
+
89
+ [[package]]
90
+ name = "colorchoice"
91
+ version = "1.0.5"
92
+ source = "registry+https://github.com/rust-lang/crates.io-index"
93
+ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
94
+
95
+ [[package]]
96
+ name = "debug_unsafe"
97
+ version = "0.1.4"
98
+ source = "registry+https://github.com/rust-lang/crates.io-index"
99
+ checksum = "7eed2c4702fa172d1ce21078faa7c5203e69f5394d48cc436d25928394a867a2"
100
+
101
+ [[package]]
102
+ name = "errno"
103
+ version = "0.3.14"
104
+ source = "registry+https://github.com/rust-lang/crates.io-index"
105
+ checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
106
+ dependencies = [
107
+ "libc",
108
+ "windows-sys",
109
+ ]
110
+
111
+ [[package]]
112
+ name = "flate2"
113
+ version = "1.1.9"
114
+ source = "registry+https://github.com/rust-lang/crates.io-index"
115
+ checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
116
+ dependencies = [
117
+ "miniz_oxide",
118
+ "zlib-rs",
119
+ ]
120
+
121
+ [[package]]
122
+ name = "futures-channel"
123
+ version = "0.3.32"
124
+ source = "registry+https://github.com/rust-lang/crates.io-index"
125
+ checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"
126
+ dependencies = [
127
+ "futures-core",
128
+ ]
129
+
130
+ [[package]]
131
+ name = "futures-core"
132
+ version = "0.3.32"
133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
134
+ checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
135
+
136
+ [[package]]
137
+ name = "futures-macro"
138
+ version = "0.3.32"
139
+ source = "registry+https://github.com/rust-lang/crates.io-index"
140
+ checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"
141
+ dependencies = [
142
+ "proc-macro2",
143
+ "quote",
144
+ "syn",
145
+ ]
146
+
147
+ [[package]]
148
+ name = "futures-task"
149
+ version = "0.3.32"
150
+ source = "registry+https://github.com/rust-lang/crates.io-index"
151
+ checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
152
+
153
+ [[package]]
154
+ name = "futures-util"
155
+ version = "0.3.32"
156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
157
+ checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
158
+ dependencies = [
159
+ "futures-core",
160
+ "futures-macro",
161
+ "futures-task",
162
+ "pin-project-lite",
163
+ "slab",
164
+ ]
165
+
166
+ [[package]]
167
+ name = "h2corn"
168
+ version = "1.0.0"
169
+ dependencies = [
170
+ "anstream",
171
+ "atoi_simd",
172
+ "bytes",
173
+ "flate2",
174
+ "http",
175
+ "itoa",
176
+ "memchr",
177
+ "nohash-hasher",
178
+ "owo-colors",
179
+ "parking_lot",
180
+ "pyo3",
181
+ "pyo3-async-runtimes",
182
+ "pyo3-build-config",
183
+ "rustix",
184
+ "smallvec",
185
+ "thiserror",
186
+ "tokio",
187
+ "zerocopy",
188
+ ]
189
+
190
+ [[package]]
191
+ name = "heck"
192
+ version = "0.5.0"
193
+ source = "registry+https://github.com/rust-lang/crates.io-index"
194
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
195
+
196
+ [[package]]
197
+ name = "hermit-abi"
198
+ version = "0.5.2"
199
+ source = "registry+https://github.com/rust-lang/crates.io-index"
200
+ checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
201
+
202
+ [[package]]
203
+ name = "http"
204
+ version = "1.4.0"
205
+ source = "registry+https://github.com/rust-lang/crates.io-index"
206
+ checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a"
207
+ dependencies = [
208
+ "bytes",
209
+ "itoa",
210
+ ]
211
+
212
+ [[package]]
213
+ name = "is-terminal"
214
+ version = "0.4.17"
215
+ source = "registry+https://github.com/rust-lang/crates.io-index"
216
+ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"
217
+ dependencies = [
218
+ "hermit-abi",
219
+ "libc",
220
+ "windows-sys",
221
+ ]
222
+
223
+ [[package]]
224
+ name = "is_ci"
225
+ version = "1.2.0"
226
+ source = "registry+https://github.com/rust-lang/crates.io-index"
227
+ checksum = "7655c9839580ee829dfacba1d1278c2b7883e50a277ff7541299489d6bdfdc45"
228
+
229
+ [[package]]
230
+ name = "is_terminal_polyfill"
231
+ version = "1.70.2"
232
+ source = "registry+https://github.com/rust-lang/crates.io-index"
233
+ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
234
+
235
+ [[package]]
236
+ name = "itoa"
237
+ version = "1.0.18"
238
+ source = "registry+https://github.com/rust-lang/crates.io-index"
239
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
240
+
241
+ [[package]]
242
+ name = "libc"
243
+ version = "0.2.185"
244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
245
+ checksum = "52ff2c0fe9bc6cb6b14a0592c2ff4fa9ceb83eea9db979b0487cd054946a2b8f"
246
+
247
+ [[package]]
248
+ name = "linux-raw-sys"
249
+ version = "0.12.1"
250
+ source = "registry+https://github.com/rust-lang/crates.io-index"
251
+ checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
252
+
253
+ [[package]]
254
+ name = "lock_api"
255
+ version = "0.4.14"
256
+ source = "registry+https://github.com/rust-lang/crates.io-index"
257
+ checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
258
+ dependencies = [
259
+ "scopeguard",
260
+ ]
261
+
262
+ [[package]]
263
+ name = "memchr"
264
+ version = "2.8.0"
265
+ source = "registry+https://github.com/rust-lang/crates.io-index"
266
+ checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
267
+
268
+ [[package]]
269
+ name = "miniz_oxide"
270
+ version = "0.8.9"
271
+ source = "registry+https://github.com/rust-lang/crates.io-index"
272
+ checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
273
+ dependencies = [
274
+ "adler2",
275
+ "simd-adler32",
276
+ ]
277
+
278
+ [[package]]
279
+ name = "mio"
280
+ version = "1.2.0"
281
+ source = "registry+https://github.com/rust-lang/crates.io-index"
282
+ checksum = "50b7e5b27aa02a74bac8c3f23f448f8d87ff11f92d3aac1a6ed369ee08cc56c1"
283
+ dependencies = [
284
+ "libc",
285
+ "wasi",
286
+ "windows-sys",
287
+ ]
288
+
289
+ [[package]]
290
+ name = "nohash-hasher"
291
+ version = "0.2.0"
292
+ source = "registry+https://github.com/rust-lang/crates.io-index"
293
+ checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
294
+
295
+ [[package]]
296
+ name = "once_cell"
297
+ version = "1.21.4"
298
+ source = "registry+https://github.com/rust-lang/crates.io-index"
299
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
300
+
301
+ [[package]]
302
+ name = "once_cell_polyfill"
303
+ version = "1.70.2"
304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
305
+ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
306
+
307
+ [[package]]
308
+ name = "owo-colors"
309
+ version = "4.3.0"
310
+ source = "registry+https://github.com/rust-lang/crates.io-index"
311
+ checksum = "d211803b9b6b570f68772237e415a029d5a50c65d382910b879fb19d3271f94d"
312
+ dependencies = [
313
+ "supports-color 2.1.0",
314
+ "supports-color 3.0.2",
315
+ ]
316
+
317
+ [[package]]
318
+ name = "parking_lot"
319
+ version = "0.12.5"
320
+ source = "registry+https://github.com/rust-lang/crates.io-index"
321
+ checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
322
+ dependencies = [
323
+ "lock_api",
324
+ "parking_lot_core",
325
+ ]
326
+
327
+ [[package]]
328
+ name = "parking_lot_core"
329
+ version = "0.9.12"
330
+ source = "registry+https://github.com/rust-lang/crates.io-index"
331
+ checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
332
+ dependencies = [
333
+ "cfg-if",
334
+ "libc",
335
+ "redox_syscall",
336
+ "smallvec",
337
+ "windows-link",
338
+ ]
339
+
340
+ [[package]]
341
+ name = "pin-project-lite"
342
+ version = "0.2.17"
343
+ source = "registry+https://github.com/rust-lang/crates.io-index"
344
+ checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
345
+
346
+ [[package]]
347
+ name = "portable-atomic"
348
+ version = "1.13.1"
349
+ source = "registry+https://github.com/rust-lang/crates.io-index"
350
+ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
351
+
352
+ [[package]]
353
+ name = "proc-macro2"
354
+ version = "1.0.106"
355
+ source = "registry+https://github.com/rust-lang/crates.io-index"
356
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
357
+ dependencies = [
358
+ "unicode-ident",
359
+ ]
360
+
361
+ [[package]]
362
+ name = "pyo3"
363
+ version = "0.28.3"
364
+ source = "registry+https://github.com/rust-lang/crates.io-index"
365
+ checksum = "91fd8e38a3b50ed1167fb981cd6fd60147e091784c427b8f7183a7ee32c31c12"
366
+ dependencies = [
367
+ "bytes",
368
+ "libc",
369
+ "once_cell",
370
+ "portable-atomic",
371
+ "pyo3-build-config",
372
+ "pyo3-ffi",
373
+ "pyo3-macros",
374
+ ]
375
+
376
+ [[package]]
377
+ name = "pyo3-async-runtimes"
378
+ version = "0.28.0"
379
+ source = "registry+https://github.com/rust-lang/crates.io-index"
380
+ checksum = "9e7364a95bf00e8377bbf9b0f09d7ff9715a29d8fcf93b47d1a967363b973178"
381
+ dependencies = [
382
+ "futures-channel",
383
+ "futures-util",
384
+ "once_cell",
385
+ "pin-project-lite",
386
+ "pyo3",
387
+ "tokio",
388
+ ]
389
+
390
+ [[package]]
391
+ name = "pyo3-build-config"
392
+ version = "0.28.3"
393
+ source = "registry+https://github.com/rust-lang/crates.io-index"
394
+ checksum = "e368e7ddfdeb98c9bca7f8383be1648fd84ab466bf2bc015e94008db6d35611e"
395
+ dependencies = [
396
+ "target-lexicon",
397
+ ]
398
+
399
+ [[package]]
400
+ name = "pyo3-ffi"
401
+ version = "0.28.3"
402
+ source = "registry+https://github.com/rust-lang/crates.io-index"
403
+ checksum = "7f29e10af80b1f7ccaf7f69eace800a03ecd13e883acfacc1e5d0988605f651e"
404
+ dependencies = [
405
+ "libc",
406
+ "pyo3-build-config",
407
+ ]
408
+
409
+ [[package]]
410
+ name = "pyo3-macros"
411
+ version = "0.28.3"
412
+ source = "registry+https://github.com/rust-lang/crates.io-index"
413
+ checksum = "df6e520eff47c45997d2fc7dd8214b25dd1310918bbb2642156ef66a67f29813"
414
+ dependencies = [
415
+ "proc-macro2",
416
+ "pyo3-macros-backend",
417
+ "quote",
418
+ "syn",
419
+ ]
420
+
421
+ [[package]]
422
+ name = "pyo3-macros-backend"
423
+ version = "0.28.3"
424
+ source = "registry+https://github.com/rust-lang/crates.io-index"
425
+ checksum = "c4cdc218d835738f81c2338f822078af45b4afdf8b2e33cbb5916f108b813acb"
426
+ dependencies = [
427
+ "heck",
428
+ "proc-macro2",
429
+ "pyo3-build-config",
430
+ "quote",
431
+ "syn",
432
+ ]
433
+
434
+ [[package]]
435
+ name = "quote"
436
+ version = "1.0.45"
437
+ source = "registry+https://github.com/rust-lang/crates.io-index"
438
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
439
+ dependencies = [
440
+ "proc-macro2",
441
+ ]
442
+
443
+ [[package]]
444
+ name = "redox_syscall"
445
+ version = "0.5.18"
446
+ source = "registry+https://github.com/rust-lang/crates.io-index"
447
+ checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
448
+ dependencies = [
449
+ "bitflags",
450
+ ]
451
+
452
+ [[package]]
453
+ name = "rustix"
454
+ version = "1.1.4"
455
+ source = "registry+https://github.com/rust-lang/crates.io-index"
456
+ checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
457
+ dependencies = [
458
+ "bitflags",
459
+ "errno",
460
+ "libc",
461
+ "linux-raw-sys",
462
+ "windows-sys",
463
+ ]
464
+
465
+ [[package]]
466
+ name = "rustversion"
467
+ version = "1.0.22"
468
+ source = "registry+https://github.com/rust-lang/crates.io-index"
469
+ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
470
+
471
+ [[package]]
472
+ name = "scopeguard"
473
+ version = "1.2.0"
474
+ source = "registry+https://github.com/rust-lang/crates.io-index"
475
+ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
476
+
477
+ [[package]]
478
+ name = "simd-adler32"
479
+ version = "0.3.9"
480
+ source = "registry+https://github.com/rust-lang/crates.io-index"
481
+ checksum = "703d5c7ef118737c72f1af64ad2f6f8c5e1921f818cdcb97b8fe6fc69bf66214"
482
+
483
+ [[package]]
484
+ name = "slab"
485
+ version = "0.4.12"
486
+ source = "registry+https://github.com/rust-lang/crates.io-index"
487
+ checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
488
+
489
+ [[package]]
490
+ name = "smallvec"
491
+ version = "1.15.1"
492
+ source = "registry+https://github.com/rust-lang/crates.io-index"
493
+ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
494
+
495
+ [[package]]
496
+ name = "socket2"
497
+ version = "0.6.3"
498
+ source = "registry+https://github.com/rust-lang/crates.io-index"
499
+ checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"
500
+ dependencies = [
501
+ "libc",
502
+ "windows-sys",
503
+ ]
504
+
505
+ [[package]]
506
+ name = "supports-color"
507
+ version = "2.1.0"
508
+ source = "registry+https://github.com/rust-lang/crates.io-index"
509
+ checksum = "d6398cde53adc3c4557306a96ce67b302968513830a77a95b2b17305d9719a89"
510
+ dependencies = [
511
+ "is-terminal",
512
+ "is_ci",
513
+ ]
514
+
515
+ [[package]]
516
+ name = "supports-color"
517
+ version = "3.0.2"
518
+ source = "registry+https://github.com/rust-lang/crates.io-index"
519
+ checksum = "c64fc7232dd8d2e4ac5ce4ef302b1d81e0b80d055b9d77c7c4f51f6aa4c867d6"
520
+ dependencies = [
521
+ "is_ci",
522
+ ]
523
+
524
+ [[package]]
525
+ name = "syn"
526
+ version = "2.0.117"
527
+ source = "registry+https://github.com/rust-lang/crates.io-index"
528
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
529
+ dependencies = [
530
+ "proc-macro2",
531
+ "quote",
532
+ "unicode-ident",
533
+ ]
534
+
535
+ [[package]]
536
+ name = "target-lexicon"
537
+ version = "0.13.5"
538
+ source = "registry+https://github.com/rust-lang/crates.io-index"
539
+ checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
540
+
541
+ [[package]]
542
+ name = "thiserror"
543
+ version = "2.0.18"
544
+ source = "registry+https://github.com/rust-lang/crates.io-index"
545
+ checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
546
+ dependencies = [
547
+ "thiserror-impl",
548
+ ]
549
+
550
+ [[package]]
551
+ name = "thiserror-impl"
552
+ version = "2.0.18"
553
+ source = "registry+https://github.com/rust-lang/crates.io-index"
554
+ checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
555
+ dependencies = [
556
+ "proc-macro2",
557
+ "quote",
558
+ "syn",
559
+ ]
560
+
561
+ [[package]]
562
+ name = "tokio"
563
+ version = "1.52.1"
564
+ source = "registry+https://github.com/rust-lang/crates.io-index"
565
+ checksum = "b67dee974fe86fd92cc45b7a95fdd2f99a36a6d7b0d431a231178d3d670bbcc6"
566
+ dependencies = [
567
+ "bytes",
568
+ "libc",
569
+ "mio",
570
+ "parking_lot",
571
+ "pin-project-lite",
572
+ "socket2",
573
+ "tokio-macros",
574
+ "windows-sys",
575
+ ]
576
+
577
+ [[package]]
578
+ name = "tokio-macros"
579
+ version = "2.7.0"
580
+ source = "registry+https://github.com/rust-lang/crates.io-index"
581
+ checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
582
+ dependencies = [
583
+ "proc-macro2",
584
+ "quote",
585
+ "syn",
586
+ ]
587
+
588
+ [[package]]
589
+ name = "unicode-ident"
590
+ version = "1.0.24"
591
+ source = "registry+https://github.com/rust-lang/crates.io-index"
592
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
593
+
594
+ [[package]]
595
+ name = "utf8parse"
596
+ version = "0.2.2"
597
+ source = "registry+https://github.com/rust-lang/crates.io-index"
598
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
599
+
600
+ [[package]]
601
+ name = "wasi"
602
+ version = "0.11.1+wasi-snapshot-preview1"
603
+ source = "registry+https://github.com/rust-lang/crates.io-index"
604
+ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
605
+
606
+ [[package]]
607
+ name = "windows-link"
608
+ version = "0.2.1"
609
+ source = "registry+https://github.com/rust-lang/crates.io-index"
610
+ checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
611
+
612
+ [[package]]
613
+ name = "windows-sys"
614
+ version = "0.61.2"
615
+ source = "registry+https://github.com/rust-lang/crates.io-index"
616
+ checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
617
+ dependencies = [
618
+ "windows-link",
619
+ ]
620
+
621
+ [[package]]
622
+ name = "zerocopy"
623
+ version = "0.8.48"
624
+ source = "registry+https://github.com/rust-lang/crates.io-index"
625
+ checksum = "eed437bf9d6692032087e337407a86f04cd8d6a16a37199ed57949d415bd68e9"
626
+ dependencies = [
627
+ "zerocopy-derive",
628
+ ]
629
+
630
+ [[package]]
631
+ name = "zerocopy-derive"
632
+ version = "0.8.48"
633
+ source = "registry+https://github.com/rust-lang/crates.io-index"
634
+ checksum = "70e3cd084b1788766f53af483dd21f93881ff30d7320490ec3ef7526d203bad4"
635
+ dependencies = [
636
+ "proc-macro2",
637
+ "quote",
638
+ "syn",
639
+ ]
640
+
641
+ [[package]]
642
+ name = "zlib-rs"
643
+ version = "0.6.3"
644
+ source = "registry+https://github.com/rust-lang/crates.io-index"
645
+ checksum = "3be3d40e40a133f9c916ee3f9f4fa2d9d63435b5fbe1bfc6d9dae0aa0ada1513"
@@ -0,0 +1,46 @@
1
+ [package]
2
+ name = "h2corn"
3
+ version = "1.0.0"
4
+ edition = "2024"
5
+ readme = "README.md"
6
+ license = "MIT"
7
+
8
+ [lib]
9
+ crate-type = ["cdylib"]
10
+ name = "_lib"
11
+
12
+ [dependencies]
13
+ anstream = "0.6"
14
+ atoi_simd = "0.18"
15
+ bytes = "1.11"
16
+ flate2 = { version = "1.1", default-features = false, features = ["zlib-rs"] }
17
+ http = "1.3"
18
+ itoa = "1.0"
19
+ memchr = "2.8"
20
+ nohash-hasher = "0.2"
21
+ owo-colors = { version = "4.2", features = ["supports-colors"] }
22
+ parking_lot = "0.12"
23
+ pyo3 = { version = "0.28.2", features = ["bytes"] }
24
+ pyo3-async-runtimes = { version = "0.28.0", features = ["tokio-runtime"] }
25
+ rustix = { version = "1.1", features = ["fs", "net"] }
26
+ smallvec = { version = "1.15", features = ["const_generics", "union"] }
27
+ thiserror = "2.0"
28
+ tokio = { version = "1.48", features = [
29
+ "fs",
30
+ "io-util",
31
+ "macros",
32
+ "net",
33
+ "parking_lot",
34
+ "rt-multi-thread",
35
+ "sync",
36
+ "time"
37
+ ] }
38
+ zerocopy = { version = "0.8", features = ["derive"] }
39
+
40
+ [build-dependencies]
41
+ pyo3-build-config = { version = "0.28.3", features = ["resolve-config"] }
42
+
43
+ [profile.release]
44
+ lto = "thin"
45
+ panic = "abort"
46
+ codegen-units = 1