tangled
alpha
login
or
join now
bad-example.com
/
at-advent
forked from
oppi.li/at-advent
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
1
pipelines
init
Signed-off-by: oppiliappan <me@oppi.li>
oppi.li
7 months ago
829e0683
+737
4 changed files
expand all
collapse all
unified
split
.gitignore
Cargo.lock
Cargo.toml
src
main.rs
+1
.gitignore
···
1
1
+
/target
+713
Cargo.lock
···
1
1
+
# This file is automatically @generated by Cargo.
2
2
+
# It is not intended for manual editing.
3
3
+
version = 4
4
4
+
5
5
+
[[package]]
6
6
+
name = "addr2line"
7
7
+
version = "0.24.2"
8
8
+
source = "registry+https://github.com/rust-lang/crates.io-index"
9
9
+
checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
10
10
+
dependencies = [
11
11
+
"gimli",
12
12
+
]
13
13
+
14
14
+
[[package]]
15
15
+
name = "adler2"
16
16
+
version = "2.0.1"
17
17
+
source = "registry+https://github.com/rust-lang/crates.io-index"
18
18
+
checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
19
19
+
20
20
+
[[package]]
21
21
+
name = "at-advent"
22
22
+
version = "0.1.0"
23
23
+
dependencies = [
24
24
+
"axum",
25
25
+
"tokio",
26
26
+
]
27
27
+
28
28
+
[[package]]
29
29
+
name = "autocfg"
30
30
+
version = "1.5.0"
31
31
+
source = "registry+https://github.com/rust-lang/crates.io-index"
32
32
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
33
33
+
34
34
+
[[package]]
35
35
+
name = "axum"
36
36
+
version = "0.8.4"
37
37
+
source = "registry+https://github.com/rust-lang/crates.io-index"
38
38
+
checksum = "021e862c184ae977658b36c4500f7feac3221ca5da43e3f25bd04ab6c79a29b5"
39
39
+
dependencies = [
40
40
+
"axum-core",
41
41
+
"bytes",
42
42
+
"form_urlencoded",
43
43
+
"futures-util",
44
44
+
"http",
45
45
+
"http-body",
46
46
+
"http-body-util",
47
47
+
"hyper",
48
48
+
"hyper-util",
49
49
+
"itoa",
50
50
+
"matchit",
51
51
+
"memchr",
52
52
+
"mime",
53
53
+
"percent-encoding",
54
54
+
"pin-project-lite",
55
55
+
"rustversion",
56
56
+
"serde",
57
57
+
"serde_json",
58
58
+
"serde_path_to_error",
59
59
+
"serde_urlencoded",
60
60
+
"sync_wrapper",
61
61
+
"tokio",
62
62
+
"tower",
63
63
+
"tower-layer",
64
64
+
"tower-service",
65
65
+
"tracing",
66
66
+
]
67
67
+
68
68
+
[[package]]
69
69
+
name = "axum-core"
70
70
+
version = "0.5.2"
71
71
+
source = "registry+https://github.com/rust-lang/crates.io-index"
72
72
+
checksum = "68464cd0412f486726fb3373129ef5d2993f90c34bc2bc1c1e9943b2f4fc7ca6"
73
73
+
dependencies = [
74
74
+
"bytes",
75
75
+
"futures-core",
76
76
+
"http",
77
77
+
"http-body",
78
78
+
"http-body-util",
79
79
+
"mime",
80
80
+
"pin-project-lite",
81
81
+
"rustversion",
82
82
+
"sync_wrapper",
83
83
+
"tower-layer",
84
84
+
"tower-service",
85
85
+
"tracing",
86
86
+
]
87
87
+
88
88
+
[[package]]
89
89
+
name = "backtrace"
90
90
+
version = "0.3.75"
91
91
+
source = "registry+https://github.com/rust-lang/crates.io-index"
92
92
+
checksum = "6806a6321ec58106fea15becdad98371e28d92ccbc7c8f1b3b6dd724fe8f1002"
93
93
+
dependencies = [
94
94
+
"addr2line",
95
95
+
"cfg-if",
96
96
+
"libc",
97
97
+
"miniz_oxide",
98
98
+
"object",
99
99
+
"rustc-demangle",
100
100
+
"windows-targets",
101
101
+
]
102
102
+
103
103
+
[[package]]
104
104
+
name = "bitflags"
105
105
+
version = "2.9.1"
106
106
+
source = "registry+https://github.com/rust-lang/crates.io-index"
107
107
+
checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
108
108
+
109
109
+
[[package]]
110
110
+
name = "bytes"
111
111
+
version = "1.10.1"
112
112
+
source = "registry+https://github.com/rust-lang/crates.io-index"
113
113
+
checksum = "d71b6127be86fdcfddb610f7182ac57211d4b18a3e9c82eb2d17662f2227ad6a"
114
114
+
115
115
+
[[package]]
116
116
+
name = "cfg-if"
117
117
+
version = "1.0.1"
118
118
+
source = "registry+https://github.com/rust-lang/crates.io-index"
119
119
+
checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
120
120
+
121
121
+
[[package]]
122
122
+
name = "fnv"
123
123
+
version = "1.0.7"
124
124
+
source = "registry+https://github.com/rust-lang/crates.io-index"
125
125
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
126
126
+
127
127
+
[[package]]
128
128
+
name = "form_urlencoded"
129
129
+
version = "1.2.1"
130
130
+
source = "registry+https://github.com/rust-lang/crates.io-index"
131
131
+
checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
132
132
+
dependencies = [
133
133
+
"percent-encoding",
134
134
+
]
135
135
+
136
136
+
[[package]]
137
137
+
name = "futures-channel"
138
138
+
version = "0.3.31"
139
139
+
source = "registry+https://github.com/rust-lang/crates.io-index"
140
140
+
checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
141
141
+
dependencies = [
142
142
+
"futures-core",
143
143
+
]
144
144
+
145
145
+
[[package]]
146
146
+
name = "futures-core"
147
147
+
version = "0.3.31"
148
148
+
source = "registry+https://github.com/rust-lang/crates.io-index"
149
149
+
checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
150
150
+
151
151
+
[[package]]
152
152
+
name = "futures-task"
153
153
+
version = "0.3.31"
154
154
+
source = "registry+https://github.com/rust-lang/crates.io-index"
155
155
+
checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
156
156
+
157
157
+
[[package]]
158
158
+
name = "futures-util"
159
159
+
version = "0.3.31"
160
160
+
source = "registry+https://github.com/rust-lang/crates.io-index"
161
161
+
checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
162
162
+
dependencies = [
163
163
+
"futures-core",
164
164
+
"futures-task",
165
165
+
"pin-project-lite",
166
166
+
"pin-utils",
167
167
+
]
168
168
+
169
169
+
[[package]]
170
170
+
name = "gimli"
171
171
+
version = "0.31.1"
172
172
+
source = "registry+https://github.com/rust-lang/crates.io-index"
173
173
+
checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
174
174
+
175
175
+
[[package]]
176
176
+
name = "http"
177
177
+
version = "1.3.1"
178
178
+
source = "registry+https://github.com/rust-lang/crates.io-index"
179
179
+
checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565"
180
180
+
dependencies = [
181
181
+
"bytes",
182
182
+
"fnv",
183
183
+
"itoa",
184
184
+
]
185
185
+
186
186
+
[[package]]
187
187
+
name = "http-body"
188
188
+
version = "1.0.1"
189
189
+
source = "registry+https://github.com/rust-lang/crates.io-index"
190
190
+
checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
191
191
+
dependencies = [
192
192
+
"bytes",
193
193
+
"http",
194
194
+
]
195
195
+
196
196
+
[[package]]
197
197
+
name = "http-body-util"
198
198
+
version = "0.1.3"
199
199
+
source = "registry+https://github.com/rust-lang/crates.io-index"
200
200
+
checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
201
201
+
dependencies = [
202
202
+
"bytes",
203
203
+
"futures-core",
204
204
+
"http",
205
205
+
"http-body",
206
206
+
"pin-project-lite",
207
207
+
]
208
208
+
209
209
+
[[package]]
210
210
+
name = "httparse"
211
211
+
version = "1.10.1"
212
212
+
source = "registry+https://github.com/rust-lang/crates.io-index"
213
213
+
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
214
214
+
215
215
+
[[package]]
216
216
+
name = "httpdate"
217
217
+
version = "1.0.3"
218
218
+
source = "registry+https://github.com/rust-lang/crates.io-index"
219
219
+
checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9"
220
220
+
221
221
+
[[package]]
222
222
+
name = "hyper"
223
223
+
version = "1.6.0"
224
224
+
source = "registry+https://github.com/rust-lang/crates.io-index"
225
225
+
checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80"
226
226
+
dependencies = [
227
227
+
"bytes",
228
228
+
"futures-channel",
229
229
+
"futures-util",
230
230
+
"http",
231
231
+
"http-body",
232
232
+
"httparse",
233
233
+
"httpdate",
234
234
+
"itoa",
235
235
+
"pin-project-lite",
236
236
+
"smallvec",
237
237
+
"tokio",
238
238
+
]
239
239
+
240
240
+
[[package]]
241
241
+
name = "hyper-util"
242
242
+
version = "0.1.16"
243
243
+
source = "registry+https://github.com/rust-lang/crates.io-index"
244
244
+
checksum = "8d9b05277c7e8da2c93a568989bb6207bef0112e8d17df7a6eda4a3cf143bc5e"
245
245
+
dependencies = [
246
246
+
"bytes",
247
247
+
"futures-core",
248
248
+
"http",
249
249
+
"http-body",
250
250
+
"hyper",
251
251
+
"pin-project-lite",
252
252
+
"tokio",
253
253
+
"tower-service",
254
254
+
]
255
255
+
256
256
+
[[package]]
257
257
+
name = "io-uring"
258
258
+
version = "0.7.9"
259
259
+
source = "registry+https://github.com/rust-lang/crates.io-index"
260
260
+
checksum = "d93587f37623a1a17d94ef2bc9ada592f5465fe7732084ab7beefabe5c77c0c4"
261
261
+
dependencies = [
262
262
+
"bitflags",
263
263
+
"cfg-if",
264
264
+
"libc",
265
265
+
]
266
266
+
267
267
+
[[package]]
268
268
+
name = "itoa"
269
269
+
version = "1.0.15"
270
270
+
source = "registry+https://github.com/rust-lang/crates.io-index"
271
271
+
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
272
272
+
273
273
+
[[package]]
274
274
+
name = "libc"
275
275
+
version = "0.2.174"
276
276
+
source = "registry+https://github.com/rust-lang/crates.io-index"
277
277
+
checksum = "1171693293099992e19cddea4e8b849964e9846f4acee11b3948bcc337be8776"
278
278
+
279
279
+
[[package]]
280
280
+
name = "lock_api"
281
281
+
version = "0.4.13"
282
282
+
source = "registry+https://github.com/rust-lang/crates.io-index"
283
283
+
checksum = "96936507f153605bddfcda068dd804796c84324ed2510809e5b2a624c81da765"
284
284
+
dependencies = [
285
285
+
"autocfg",
286
286
+
"scopeguard",
287
287
+
]
288
288
+
289
289
+
[[package]]
290
290
+
name = "log"
291
291
+
version = "0.4.27"
292
292
+
source = "registry+https://github.com/rust-lang/crates.io-index"
293
293
+
checksum = "13dc2df351e3202783a1fe0d44375f7295ffb4049267b0f3018346dc122a1d94"
294
294
+
295
295
+
[[package]]
296
296
+
name = "matchit"
297
297
+
version = "0.8.4"
298
298
+
source = "registry+https://github.com/rust-lang/crates.io-index"
299
299
+
checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3"
300
300
+
301
301
+
[[package]]
302
302
+
name = "memchr"
303
303
+
version = "2.7.5"
304
304
+
source = "registry+https://github.com/rust-lang/crates.io-index"
305
305
+
checksum = "32a282da65faaf38286cf3be983213fcf1d2e2a58700e808f83f4ea9a4804bc0"
306
306
+
307
307
+
[[package]]
308
308
+
name = "mime"
309
309
+
version = "0.3.17"
310
310
+
source = "registry+https://github.com/rust-lang/crates.io-index"
311
311
+
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
312
312
+
313
313
+
[[package]]
314
314
+
name = "miniz_oxide"
315
315
+
version = "0.8.9"
316
316
+
source = "registry+https://github.com/rust-lang/crates.io-index"
317
317
+
checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
318
318
+
dependencies = [
319
319
+
"adler2",
320
320
+
]
321
321
+
322
322
+
[[package]]
323
323
+
name = "mio"
324
324
+
version = "1.0.4"
325
325
+
source = "registry+https://github.com/rust-lang/crates.io-index"
326
326
+
checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c"
327
327
+
dependencies = [
328
328
+
"libc",
329
329
+
"wasi",
330
330
+
"windows-sys 0.59.0",
331
331
+
]
332
332
+
333
333
+
[[package]]
334
334
+
name = "object"
335
335
+
version = "0.36.7"
336
336
+
source = "registry+https://github.com/rust-lang/crates.io-index"
337
337
+
checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
338
338
+
dependencies = [
339
339
+
"memchr",
340
340
+
]
341
341
+
342
342
+
[[package]]
343
343
+
name = "once_cell"
344
344
+
version = "1.21.3"
345
345
+
source = "registry+https://github.com/rust-lang/crates.io-index"
346
346
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
347
347
+
348
348
+
[[package]]
349
349
+
name = "parking_lot"
350
350
+
version = "0.12.4"
351
351
+
source = "registry+https://github.com/rust-lang/crates.io-index"
352
352
+
checksum = "70d58bf43669b5795d1576d0641cfb6fbb2057bf629506267a92807158584a13"
353
353
+
dependencies = [
354
354
+
"lock_api",
355
355
+
"parking_lot_core",
356
356
+
]
357
357
+
358
358
+
[[package]]
359
359
+
name = "parking_lot_core"
360
360
+
version = "0.9.11"
361
361
+
source = "registry+https://github.com/rust-lang/crates.io-index"
362
362
+
checksum = "bc838d2a56b5b1a6c25f55575dfc605fabb63bb2365f6c2353ef9159aa69e4a5"
363
363
+
dependencies = [
364
364
+
"cfg-if",
365
365
+
"libc",
366
366
+
"redox_syscall",
367
367
+
"smallvec",
368
368
+
"windows-targets",
369
369
+
]
370
370
+
371
371
+
[[package]]
372
372
+
name = "percent-encoding"
373
373
+
version = "2.3.1"
374
374
+
source = "registry+https://github.com/rust-lang/crates.io-index"
375
375
+
checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
376
376
+
377
377
+
[[package]]
378
378
+
name = "pin-project-lite"
379
379
+
version = "0.2.16"
380
380
+
source = "registry+https://github.com/rust-lang/crates.io-index"
381
381
+
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
382
382
+
383
383
+
[[package]]
384
384
+
name = "pin-utils"
385
385
+
version = "0.1.0"
386
386
+
source = "registry+https://github.com/rust-lang/crates.io-index"
387
387
+
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
388
388
+
389
389
+
[[package]]
390
390
+
name = "proc-macro2"
391
391
+
version = "1.0.95"
392
392
+
source = "registry+https://github.com/rust-lang/crates.io-index"
393
393
+
checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
394
394
+
dependencies = [
395
395
+
"unicode-ident",
396
396
+
]
397
397
+
398
398
+
[[package]]
399
399
+
name = "quote"
400
400
+
version = "1.0.40"
401
401
+
source = "registry+https://github.com/rust-lang/crates.io-index"
402
402
+
checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
403
403
+
dependencies = [
404
404
+
"proc-macro2",
405
405
+
]
406
406
+
407
407
+
[[package]]
408
408
+
name = "redox_syscall"
409
409
+
version = "0.5.13"
410
410
+
source = "registry+https://github.com/rust-lang/crates.io-index"
411
411
+
checksum = "0d04b7d0ee6b4a0207a0a7adb104d23ecb0b47d6beae7152d0fa34b692b29fd6"
412
412
+
dependencies = [
413
413
+
"bitflags",
414
414
+
]
415
415
+
416
416
+
[[package]]
417
417
+
name = "rustc-demangle"
418
418
+
version = "0.1.25"
419
419
+
source = "registry+https://github.com/rust-lang/crates.io-index"
420
420
+
checksum = "989e6739f80c4ad5b13e0fd7fe89531180375b18520cc8c82080e4dc4035b84f"
421
421
+
422
422
+
[[package]]
423
423
+
name = "rustversion"
424
424
+
version = "1.0.21"
425
425
+
source = "registry+https://github.com/rust-lang/crates.io-index"
426
426
+
checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
427
427
+
428
428
+
[[package]]
429
429
+
name = "ryu"
430
430
+
version = "1.0.20"
431
431
+
source = "registry+https://github.com/rust-lang/crates.io-index"
432
432
+
checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
433
433
+
434
434
+
[[package]]
435
435
+
name = "scopeguard"
436
436
+
version = "1.2.0"
437
437
+
source = "registry+https://github.com/rust-lang/crates.io-index"
438
438
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
439
439
+
440
440
+
[[package]]
441
441
+
name = "serde"
442
442
+
version = "1.0.219"
443
443
+
source = "registry+https://github.com/rust-lang/crates.io-index"
444
444
+
checksum = "5f0e2c6ed6606019b4e29e69dbaba95b11854410e5347d525002456dbbb786b6"
445
445
+
dependencies = [
446
446
+
"serde_derive",
447
447
+
]
448
448
+
449
449
+
[[package]]
450
450
+
name = "serde_derive"
451
451
+
version = "1.0.219"
452
452
+
source = "registry+https://github.com/rust-lang/crates.io-index"
453
453
+
checksum = "5b0276cf7f2c73365f7157c8123c21cd9a50fbbd844757af28ca1f5925fc2a00"
454
454
+
dependencies = [
455
455
+
"proc-macro2",
456
456
+
"quote",
457
457
+
"syn",
458
458
+
]
459
459
+
460
460
+
[[package]]
461
461
+
name = "serde_json"
462
462
+
version = "1.0.141"
463
463
+
source = "registry+https://github.com/rust-lang/crates.io-index"
464
464
+
checksum = "30b9eff21ebe718216c6ec64e1d9ac57087aad11efc64e32002bce4a0d4c03d3"
465
465
+
dependencies = [
466
466
+
"itoa",
467
467
+
"memchr",
468
468
+
"ryu",
469
469
+
"serde",
470
470
+
]
471
471
+
472
472
+
[[package]]
473
473
+
name = "serde_path_to_error"
474
474
+
version = "0.1.17"
475
475
+
source = "registry+https://github.com/rust-lang/crates.io-index"
476
476
+
checksum = "59fab13f937fa393d08645bf3a84bdfe86e296747b506ada67bb15f10f218b2a"
477
477
+
dependencies = [
478
478
+
"itoa",
479
479
+
"serde",
480
480
+
]
481
481
+
482
482
+
[[package]]
483
483
+
name = "serde_urlencoded"
484
484
+
version = "0.7.1"
485
485
+
source = "registry+https://github.com/rust-lang/crates.io-index"
486
486
+
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
487
487
+
dependencies = [
488
488
+
"form_urlencoded",
489
489
+
"itoa",
490
490
+
"ryu",
491
491
+
"serde",
492
492
+
]
493
493
+
494
494
+
[[package]]
495
495
+
name = "signal-hook-registry"
496
496
+
version = "1.4.5"
497
497
+
source = "registry+https://github.com/rust-lang/crates.io-index"
498
498
+
checksum = "9203b8055f63a2a00e2f593bb0510367fe707d7ff1e5c872de2f537b339e5410"
499
499
+
dependencies = [
500
500
+
"libc",
501
501
+
]
502
502
+
503
503
+
[[package]]
504
504
+
name = "slab"
505
505
+
version = "0.4.10"
506
506
+
source = "registry+https://github.com/rust-lang/crates.io-index"
507
507
+
checksum = "04dc19736151f35336d325007ac991178d504a119863a2fcb3758cdb5e52c50d"
508
508
+
509
509
+
[[package]]
510
510
+
name = "smallvec"
511
511
+
version = "1.15.1"
512
512
+
source = "registry+https://github.com/rust-lang/crates.io-index"
513
513
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
514
514
+
515
515
+
[[package]]
516
516
+
name = "socket2"
517
517
+
version = "0.5.10"
518
518
+
source = "registry+https://github.com/rust-lang/crates.io-index"
519
519
+
checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"
520
520
+
dependencies = [
521
521
+
"libc",
522
522
+
"windows-sys 0.52.0",
523
523
+
]
524
524
+
525
525
+
[[package]]
526
526
+
name = "syn"
527
527
+
version = "2.0.104"
528
528
+
source = "registry+https://github.com/rust-lang/crates.io-index"
529
529
+
checksum = "17b6f705963418cdb9927482fa304bc562ece2fdd4f616084c50b7023b435a40"
530
530
+
dependencies = [
531
531
+
"proc-macro2",
532
532
+
"quote",
533
533
+
"unicode-ident",
534
534
+
]
535
535
+
536
536
+
[[package]]
537
537
+
name = "sync_wrapper"
538
538
+
version = "1.0.2"
539
539
+
source = "registry+https://github.com/rust-lang/crates.io-index"
540
540
+
checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
541
541
+
542
542
+
[[package]]
543
543
+
name = "tokio"
544
544
+
version = "1.46.1"
545
545
+
source = "registry+https://github.com/rust-lang/crates.io-index"
546
546
+
checksum = "0cc3a2344dafbe23a245241fe8b09735b521110d30fcefbbd5feb1797ca35d17"
547
547
+
dependencies = [
548
548
+
"backtrace",
549
549
+
"bytes",
550
550
+
"io-uring",
551
551
+
"libc",
552
552
+
"mio",
553
553
+
"parking_lot",
554
554
+
"pin-project-lite",
555
555
+
"signal-hook-registry",
556
556
+
"slab",
557
557
+
"socket2",
558
558
+
"tokio-macros",
559
559
+
"windows-sys 0.52.0",
560
560
+
]
561
561
+
562
562
+
[[package]]
563
563
+
name = "tokio-macros"
564
564
+
version = "2.5.0"
565
565
+
source = "registry+https://github.com/rust-lang/crates.io-index"
566
566
+
checksum = "6e06d43f1345a3bcd39f6a56dbb7dcab2ba47e68e8ac134855e7e2bdbaf8cab8"
567
567
+
dependencies = [
568
568
+
"proc-macro2",
569
569
+
"quote",
570
570
+
"syn",
571
571
+
]
572
572
+
573
573
+
[[package]]
574
574
+
name = "tower"
575
575
+
version = "0.5.2"
576
576
+
source = "registry+https://github.com/rust-lang/crates.io-index"
577
577
+
checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"
578
578
+
dependencies = [
579
579
+
"futures-core",
580
580
+
"futures-util",
581
581
+
"pin-project-lite",
582
582
+
"sync_wrapper",
583
583
+
"tokio",
584
584
+
"tower-layer",
585
585
+
"tower-service",
586
586
+
"tracing",
587
587
+
]
588
588
+
589
589
+
[[package]]
590
590
+
name = "tower-layer"
591
591
+
version = "0.3.3"
592
592
+
source = "registry+https://github.com/rust-lang/crates.io-index"
593
593
+
checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
594
594
+
595
595
+
[[package]]
596
596
+
name = "tower-service"
597
597
+
version = "0.3.3"
598
598
+
source = "registry+https://github.com/rust-lang/crates.io-index"
599
599
+
checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
600
600
+
601
601
+
[[package]]
602
602
+
name = "tracing"
603
603
+
version = "0.1.41"
604
604
+
source = "registry+https://github.com/rust-lang/crates.io-index"
605
605
+
checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
606
606
+
dependencies = [
607
607
+
"log",
608
608
+
"pin-project-lite",
609
609
+
"tracing-core",
610
610
+
]
611
611
+
612
612
+
[[package]]
613
613
+
name = "tracing-core"
614
614
+
version = "0.1.34"
615
615
+
source = "registry+https://github.com/rust-lang/crates.io-index"
616
616
+
checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678"
617
617
+
dependencies = [
618
618
+
"once_cell",
619
619
+
]
620
620
+
621
621
+
[[package]]
622
622
+
name = "unicode-ident"
623
623
+
version = "1.0.18"
624
624
+
source = "registry+https://github.com/rust-lang/crates.io-index"
625
625
+
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
626
626
+
627
627
+
[[package]]
628
628
+
name = "wasi"
629
629
+
version = "0.11.1+wasi-snapshot-preview1"
630
630
+
source = "registry+https://github.com/rust-lang/crates.io-index"
631
631
+
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
632
632
+
633
633
+
[[package]]
634
634
+
name = "windows-sys"
635
635
+
version = "0.52.0"
636
636
+
source = "registry+https://github.com/rust-lang/crates.io-index"
637
637
+
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
638
638
+
dependencies = [
639
639
+
"windows-targets",
640
640
+
]
641
641
+
642
642
+
[[package]]
643
643
+
name = "windows-sys"
644
644
+
version = "0.59.0"
645
645
+
source = "registry+https://github.com/rust-lang/crates.io-index"
646
646
+
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
647
647
+
dependencies = [
648
648
+
"windows-targets",
649
649
+
]
650
650
+
651
651
+
[[package]]
652
652
+
name = "windows-targets"
653
653
+
version = "0.52.6"
654
654
+
source = "registry+https://github.com/rust-lang/crates.io-index"
655
655
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
656
656
+
dependencies = [
657
657
+
"windows_aarch64_gnullvm",
658
658
+
"windows_aarch64_msvc",
659
659
+
"windows_i686_gnu",
660
660
+
"windows_i686_gnullvm",
661
661
+
"windows_i686_msvc",
662
662
+
"windows_x86_64_gnu",
663
663
+
"windows_x86_64_gnullvm",
664
664
+
"windows_x86_64_msvc",
665
665
+
]
666
666
+
667
667
+
[[package]]
668
668
+
name = "windows_aarch64_gnullvm"
669
669
+
version = "0.52.6"
670
670
+
source = "registry+https://github.com/rust-lang/crates.io-index"
671
671
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
672
672
+
673
673
+
[[package]]
674
674
+
name = "windows_aarch64_msvc"
675
675
+
version = "0.52.6"
676
676
+
source = "registry+https://github.com/rust-lang/crates.io-index"
677
677
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
678
678
+
679
679
+
[[package]]
680
680
+
name = "windows_i686_gnu"
681
681
+
version = "0.52.6"
682
682
+
source = "registry+https://github.com/rust-lang/crates.io-index"
683
683
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
684
684
+
685
685
+
[[package]]
686
686
+
name = "windows_i686_gnullvm"
687
687
+
version = "0.52.6"
688
688
+
source = "registry+https://github.com/rust-lang/crates.io-index"
689
689
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
690
690
+
691
691
+
[[package]]
692
692
+
name = "windows_i686_msvc"
693
693
+
version = "0.52.6"
694
694
+
source = "registry+https://github.com/rust-lang/crates.io-index"
695
695
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
696
696
+
697
697
+
[[package]]
698
698
+
name = "windows_x86_64_gnu"
699
699
+
version = "0.52.6"
700
700
+
source = "registry+https://github.com/rust-lang/crates.io-index"
701
701
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
702
702
+
703
703
+
[[package]]
704
704
+
name = "windows_x86_64_gnullvm"
705
705
+
version = "0.52.6"
706
706
+
source = "registry+https://github.com/rust-lang/crates.io-index"
707
707
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
708
708
+
709
709
+
[[package]]
710
710
+
name = "windows_x86_64_msvc"
711
711
+
version = "0.52.6"
712
712
+
source = "registry+https://github.com/rust-lang/crates.io-index"
713
713
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+8
Cargo.toml
···
1
1
+
[package]
2
2
+
name = "at-advent"
3
3
+
version = "0.1.0"
4
4
+
edition = "2024"
5
5
+
6
6
+
[dependencies]
7
7
+
axum = "0.8.4"
8
8
+
tokio = { version = "1.46.1", features = ["full"] }
+15
src/main.rs
···
1
1
+
use axum::{Router, routing::get};
2
2
+
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
3
3
+
4
4
+
#[tokio::main]
5
5
+
async fn main() {
6
6
+
let app = Router::new().route("/", get(handler));
7
7
+
let addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(127, 0, 0, 1)), 7878);
8
8
+
let listener = tokio::net::TcpListener::bind(addr).await.unwrap();
9
9
+
println!("listening on {}", addr);
10
10
+
axum::serve(listener, app).await.unwrap();
11
11
+
}
12
12
+
13
13
+
async fn handler() -> &'static str {
14
14
+
"hello, world!"
15
15
+
}