Commit 4cf92344dd

4cf92344ddbc1da8cf48e9a1f05fd3bdcedb0931

parent: 773d7f6e7f

Unsigned

Wraient <wraient.911@gmail.com> · 2024-10-02 08:47 UTC

working aniskip

Layout: unified · split

Cargo.lock +1239 −1
@@ -3,5 +3,1243 @@
33version = 3
44
55[[package]]
6name = "curd"
6name = "addr2line"
7version = "0.24.1"
8source = "registry+https://github.com/rust-lang/crates.io-index"
9checksum = "f5fb1d8e4442bd405fdfd1dacb42792696b0cf9cb15882e5d097b742a676d375"
10dependencies = [
11 "gimli",
12]
13
14[[package]]
15name = "adler2"
16version = "2.0.0"
17source = "registry+https://github.com/rust-lang/crates.io-index"
18checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
19
20[[package]]
21name = "atomic-waker"
22version = "1.1.2"
23source = "registry+https://github.com/rust-lang/crates.io-index"
24checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
25
26[[package]]
27name = "autocfg"
28version = "1.4.0"
29source = "registry+https://github.com/rust-lang/crates.io-index"
30checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
31
32[[package]]
33name = "backtrace"
34version = "0.3.74"
35source = "registry+https://github.com/rust-lang/crates.io-index"
36checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a"
37dependencies = [
38 "addr2line",
39 "cfg-if",
40 "libc",
41 "miniz_oxide",
42 "object",
43 "rustc-demangle",
44 "windows-targets",
45]
46
47[[package]]
48name = "base64"
49version = "0.22.1"
50source = "registry+https://github.com/rust-lang/crates.io-index"
51checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
52
53[[package]]
54name = "bitflags"
55version = "2.6.0"
56source = "registry+https://github.com/rust-lang/crates.io-index"
57checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de"
58
59[[package]]
60name = "bumpalo"
61version = "3.16.0"
62source = "registry+https://github.com/rust-lang/crates.io-index"
63checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
64
65[[package]]
66name = "bytes"
67version = "1.7.2"
68source = "registry+https://github.com/rust-lang/crates.io-index"
69checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3"
70
71[[package]]
72name = "cc"
73version = "1.1.24"
74source = "registry+https://github.com/rust-lang/crates.io-index"
75checksum = "812acba72f0a070b003d3697490d2b55b837230ae7c6c6497f05cc2ddbb8d938"
76dependencies = [
77 "shlex",
78]
79
80[[package]]
81name = "cfg-if"
82version = "1.0.0"
83source = "registry+https://github.com/rust-lang/crates.io-index"
84checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
85
86[[package]]
87name = "core-foundation"
88version = "0.9.4"
89source = "registry+https://github.com/rust-lang/crates.io-index"
90checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
91dependencies = [
92 "core-foundation-sys",
93 "libc",
94]
95
96[[package]]
97name = "core-foundation-sys"
98version = "0.8.7"
99source = "registry+https://github.com/rust-lang/crates.io-index"
100checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
101
102[[package]]
103name = "curd-rust"
104version = "0.1.0"
105dependencies = [
106 "reqwest",
107 "serde",
108 "serde_json",
109 "tokio",
110]
111
112[[package]]
113name = "encoding_rs"
114version = "0.8.34"
115source = "registry+https://github.com/rust-lang/crates.io-index"
116checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59"
117dependencies = [
118 "cfg-if",
119]
120
121[[package]]
122name = "equivalent"
123version = "1.0.1"
124source = "registry+https://github.com/rust-lang/crates.io-index"
125checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
126
127[[package]]
128name = "errno"
129version = "0.3.9"
130source = "registry+https://github.com/rust-lang/crates.io-index"
131checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba"
132dependencies = [
133 "libc",
134 "windows-sys 0.52.0",
135]
136
137[[package]]
138name = "fastrand"
139version = "2.1.1"
140source = "registry+https://github.com/rust-lang/crates.io-index"
141checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6"
142
143[[package]]
144name = "fnv"
145version = "1.0.7"
146source = "registry+https://github.com/rust-lang/crates.io-index"
147checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
148
149[[package]]
150name = "foreign-types"
151version = "0.3.2"
152source = "registry+https://github.com/rust-lang/crates.io-index"
153checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
154dependencies = [
155 "foreign-types-shared",
156]
157
158[[package]]
159name = "foreign-types-shared"
160version = "0.1.1"
161source = "registry+https://github.com/rust-lang/crates.io-index"
162checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
163
164[[package]]
165name = "form_urlencoded"
166version = "1.2.1"
167source = "registry+https://github.com/rust-lang/crates.io-index"
168checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
169dependencies = [
170 "percent-encoding",
171]
172
173[[package]]
174name = "futures-channel"
175version = "0.3.30"
176source = "registry+https://github.com/rust-lang/crates.io-index"
177checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78"
178dependencies = [
179 "futures-core",
180 "futures-sink",
181]
182
183[[package]]
184name = "futures-core"
185version = "0.3.30"
186source = "registry+https://github.com/rust-lang/crates.io-index"
187checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d"
188
189[[package]]
190name = "futures-io"
191version = "0.3.30"
192source = "registry+https://github.com/rust-lang/crates.io-index"
193checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1"
194
195[[package]]
196name = "futures-sink"
197version = "0.3.30"
198source = "registry+https://github.com/rust-lang/crates.io-index"
199checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5"
200
201[[package]]
202name = "futures-task"
203version = "0.3.30"
204source = "registry+https://github.com/rust-lang/crates.io-index"
205checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004"
206
207[[package]]
208name = "futures-util"
209version = "0.3.30"
210source = "registry+https://github.com/rust-lang/crates.io-index"
211checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48"
212dependencies = [
213 "futures-core",
214 "futures-io",
215 "futures-sink",
216 "futures-task",
217 "memchr",
218 "pin-project-lite",
219 "pin-utils",
220 "slab",
221]
222
223[[package]]
224name = "getrandom"
225version = "0.2.15"
226source = "registry+https://github.com/rust-lang/crates.io-index"
227checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
228dependencies = [
229 "cfg-if",
230 "libc",
231 "wasi",
232]
233
234[[package]]
235name = "gimli"
236version = "0.31.0"
237source = "registry+https://github.com/rust-lang/crates.io-index"
238checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64"
239
240[[package]]
241name = "h2"
242version = "0.4.6"
243source = "registry+https://github.com/rust-lang/crates.io-index"
244checksum = "524e8ac6999421f49a846c2d4411f337e53497d8ec55d67753beffa43c5d9205"
245dependencies = [
246 "atomic-waker",
247 "bytes",
248 "fnv",
249 "futures-core",
250 "futures-sink",
251 "http",
252 "indexmap",
253 "slab",
254 "tokio",
255 "tokio-util",
256 "tracing",
257]
258
259[[package]]
260name = "hashbrown"
261version = "0.15.0"
262source = "registry+https://github.com/rust-lang/crates.io-index"
263checksum = "1e087f84d4f86bf4b218b927129862374b72199ae7d8657835f1e89000eea4fb"
264
265[[package]]
266name = "hermit-abi"
267version = "0.3.9"
268source = "registry+https://github.com/rust-lang/crates.io-index"
269checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024"
270
271[[package]]
272name = "http"
273version = "1.1.0"
274source = "registry+https://github.com/rust-lang/crates.io-index"
275checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258"
276dependencies = [
277 "bytes",
278 "fnv",
279 "itoa",
280]
281
282[[package]]
283name = "http-body"
284version = "1.0.1"
285source = "registry+https://github.com/rust-lang/crates.io-index"
286checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
287dependencies = [
288 "bytes",
289 "http",
290]
291
292[[package]]
293name = "http-body-util"
294version = "0.1.2"
295source = "registry+https://github.com/rust-lang/crates.io-index"
296checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f"
297dependencies = [
298 "bytes",
299 "futures-util",
300 "http",
301 "http-body",
302 "pin-project-lite",
303]
304
305[[package]]
306name = "httparse"
307version = "1.9.5"
308source = "registry+https://github.com/rust-lang/crates.io-index"
309checksum = "7d71d3574edd2771538b901e6549113b4006ece66150fb69c0fb6d9a2adae946"
310
311[[package]]
312name = "hyper"
313version = "1.4.1"
314source = "registry+https://github.com/rust-lang/crates.io-index"
315checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05"
316dependencies = [
317 "bytes",
318 "futures-channel",
319 "futures-util",
320 "h2",
321 "http",
322 "http-body",
323 "httparse",
324 "itoa",
325 "pin-project-lite",
326 "smallvec",
327 "tokio",
328 "want",
329]
330
331[[package]]
332name = "hyper-rustls"
333version = "0.27.3"
334source = "registry+https://github.com/rust-lang/crates.io-index"
335checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333"
336dependencies = [
337 "futures-util",
338 "http",
339 "hyper",
340 "hyper-util",
341 "rustls",
342 "rustls-pki-types",
343 "tokio",
344 "tokio-rustls",
345 "tower-service",
346]
347
348[[package]]
349name = "hyper-tls"
350version = "0.6.0"
351source = "registry+https://github.com/rust-lang/crates.io-index"
352checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
353dependencies = [
354 "bytes",
355 "http-body-util",
356 "hyper",
357 "hyper-util",
358 "native-tls",
359 "tokio",
360 "tokio-native-tls",
361 "tower-service",
362]
363
364[[package]]
365name = "hyper-util"
366version = "0.1.9"
367source = "registry+https://github.com/rust-lang/crates.io-index"
368checksum = "41296eb09f183ac68eec06e03cdbea2e759633d4067b2f6552fc2e009bcad08b"
369dependencies = [
370 "bytes",
371 "futures-channel",
372 "futures-util",
373 "http",
374 "http-body",
375 "hyper",
376 "pin-project-lite",
377 "socket2",
378 "tokio",
379 "tower-service",
380 "tracing",
381]
382
383[[package]]
384name = "idna"
385version = "0.5.0"
386source = "registry+https://github.com/rust-lang/crates.io-index"
387checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6"
388dependencies = [
389 "unicode-bidi",
390 "unicode-normalization",
391]
392
393[[package]]
394name = "indexmap"
395version = "2.6.0"
396source = "registry+https://github.com/rust-lang/crates.io-index"
397checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da"
398dependencies = [
399 "equivalent",
400 "hashbrown",
401]
402
403[[package]]
404name = "ipnet"
405version = "2.10.0"
406source = "registry+https://github.com/rust-lang/crates.io-index"
407checksum = "187674a687eed5fe42285b40c6291f9a01517d415fad1c3cbc6a9f778af7fcd4"
408
409[[package]]
410name = "itoa"
411version = "1.0.11"
412source = "registry+https://github.com/rust-lang/crates.io-index"
413checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
414
415[[package]]
416name = "js-sys"
417version = "0.3.70"
418source = "registry+https://github.com/rust-lang/crates.io-index"
419checksum = "1868808506b929d7b0cfa8f75951347aa71bb21144b7791bae35d9bccfcfe37a"
420dependencies = [
421 "wasm-bindgen",
422]
423
424[[package]]
425name = "libc"
426version = "0.2.159"
427source = "registry+https://github.com/rust-lang/crates.io-index"
428checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5"
429
430[[package]]
431name = "linux-raw-sys"
432version = "0.4.14"
433source = "registry+https://github.com/rust-lang/crates.io-index"
434checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89"
435
436[[package]]
437name = "log"
438version = "0.4.22"
439source = "registry+https://github.com/rust-lang/crates.io-index"
440checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24"
441
442[[package]]
443name = "memchr"
444version = "2.7.4"
445source = "registry+https://github.com/rust-lang/crates.io-index"
446checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
447
448[[package]]
449name = "mime"
450version = "0.3.17"
451source = "registry+https://github.com/rust-lang/crates.io-index"
452checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
453
454[[package]]
455name = "miniz_oxide"
456version = "0.8.0"
457source = "registry+https://github.com/rust-lang/crates.io-index"
458checksum = "e2d80299ef12ff69b16a84bb182e3b9df68b5a91574d3d4fa6e41b65deec4df1"
459dependencies = [
460 "adler2",
461]
462
463[[package]]
464name = "mio"
465version = "1.0.2"
466source = "registry+https://github.com/rust-lang/crates.io-index"
467checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec"
468dependencies = [
469 "hermit-abi",
470 "libc",
471 "wasi",
472 "windows-sys 0.52.0",
473]
474
475[[package]]
476name = "native-tls"
477version = "0.2.12"
478source = "registry+https://github.com/rust-lang/crates.io-index"
479checksum = "a8614eb2c83d59d1c8cc974dd3f920198647674a0a035e1af1fa58707e317466"
480dependencies = [
481 "libc",
482 "log",
483 "openssl",
484 "openssl-probe",
485 "openssl-sys",
486 "schannel",
487 "security-framework",
488 "security-framework-sys",
489 "tempfile",
490]
491
492[[package]]
493name = "object"
494version = "0.36.4"
495source = "registry+https://github.com/rust-lang/crates.io-index"
496checksum = "084f1a5821ac4c651660a94a7153d27ac9d8a53736203f58b31945ded098070a"
497dependencies = [
498 "memchr",
499]
500
501[[package]]
502name = "once_cell"
503version = "1.20.1"
504source = "registry+https://github.com/rust-lang/crates.io-index"
505checksum = "82881c4be219ab5faaf2ad5e5e5ecdff8c66bd7402ca3160975c93b24961afd1"
506dependencies = [
507 "portable-atomic",
508]
509
510[[package]]
511name = "openssl"
512version = "0.10.66"
513source = "registry+https://github.com/rust-lang/crates.io-index"
514checksum = "9529f4786b70a3e8c61e11179af17ab6188ad8d0ded78c5529441ed39d4bd9c1"
515dependencies = [
516 "bitflags",
517 "cfg-if",
518 "foreign-types",
519 "libc",
520 "once_cell",
521 "openssl-macros",
522 "openssl-sys",
523]
524
525[[package]]
526name = "openssl-macros"
527version = "0.1.1"
528source = "registry+https://github.com/rust-lang/crates.io-index"
529checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
530dependencies = [
531 "proc-macro2",
532 "quote",
533 "syn",
534]
535
536[[package]]
537name = "openssl-probe"
538version = "0.1.5"
539source = "registry+https://github.com/rust-lang/crates.io-index"
540checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
541
542[[package]]
543name = "openssl-sys"
544version = "0.9.103"
545source = "registry+https://github.com/rust-lang/crates.io-index"
546checksum = "7f9e8deee91df40a943c71b917e5874b951d32a802526c85721ce3b776c929d6"
547dependencies = [
548 "cc",
549 "libc",
550 "pkg-config",
551 "vcpkg",
552]
553
554[[package]]
555name = "percent-encoding"
556version = "2.3.1"
557source = "registry+https://github.com/rust-lang/crates.io-index"
558checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
559
560[[package]]
561name = "pin-project-lite"
562version = "0.2.14"
563source = "registry+https://github.com/rust-lang/crates.io-index"
564checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02"
565
566[[package]]
567name = "pin-utils"
568version = "0.1.0"
569source = "registry+https://github.com/rust-lang/crates.io-index"
570checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
571
572[[package]]
573name = "pkg-config"
574version = "0.3.31"
575source = "registry+https://github.com/rust-lang/crates.io-index"
576checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2"
577
578[[package]]
579name = "portable-atomic"
580version = "1.9.0"
581source = "registry+https://github.com/rust-lang/crates.io-index"
582checksum = "cc9c68a3f6da06753e9335d63e27f6b9754dd1920d941135b7ea8224f141adb2"
583
584[[package]]
585name = "proc-macro2"
586version = "1.0.86"
587source = "registry+https://github.com/rust-lang/crates.io-index"
588checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77"
589dependencies = [
590 "unicode-ident",
591]
592
593[[package]]
594name = "quote"
595version = "1.0.37"
596source = "registry+https://github.com/rust-lang/crates.io-index"
597checksum = "b5b9d34b8991d19d98081b46eacdd8eb58c6f2b201139f7c5f643cc155a633af"
598dependencies = [
599 "proc-macro2",
600]
601
602[[package]]
603name = "reqwest"
604version = "0.12.8"
605source = "registry+https://github.com/rust-lang/crates.io-index"
606checksum = "f713147fbe92361e52392c73b8c9e48c04c6625bce969ef54dc901e58e042a7b"
607dependencies = [
608 "base64",
609 "bytes",
610 "encoding_rs",
611 "futures-channel",
612 "futures-core",
613 "futures-util",
614 "h2",
615 "http",
616 "http-body",
617 "http-body-util",
618 "hyper",
619 "hyper-rustls",
620 "hyper-tls",
621 "hyper-util",
622 "ipnet",
623 "js-sys",
624 "log",
625 "mime",
626 "native-tls",
627 "once_cell",
628 "percent-encoding",
629 "pin-project-lite",
630 "rustls-pemfile",
631 "serde",
632 "serde_json",
633 "serde_urlencoded",
634 "sync_wrapper",
635 "system-configuration",
636 "tokio",
637 "tokio-native-tls",
638 "tower-service",
639 "url",
640 "wasm-bindgen",
641 "wasm-bindgen-futures",
642 "web-sys",
643 "windows-registry",
644]
645
646[[package]]
647name = "ring"
648version = "0.17.8"
649source = "registry+https://github.com/rust-lang/crates.io-index"
650checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d"
651dependencies = [
652 "cc",
653 "cfg-if",
654 "getrandom",
655 "libc",
656 "spin",
657 "untrusted",
658 "windows-sys 0.52.0",
659]
660
661[[package]]
662name = "rustc-demangle"
663version = "0.1.24"
664source = "registry+https://github.com/rust-lang/crates.io-index"
665checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
666
667[[package]]
668name = "rustix"
669version = "0.38.37"
670source = "registry+https://github.com/rust-lang/crates.io-index"
671checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811"
672dependencies = [
673 "bitflags",
674 "errno",
675 "libc",
676 "linux-raw-sys",
677 "windows-sys 0.52.0",
678]
679
680[[package]]
681name = "rustls"
682version = "0.23.13"
683source = "registry+https://github.com/rust-lang/crates.io-index"
684checksum = "f2dabaac7466917e566adb06783a81ca48944c6898a1b08b9374106dd671f4c8"
685dependencies = [
686 "once_cell",
687 "rustls-pki-types",
688 "rustls-webpki",
689 "subtle",
690 "zeroize",
691]
692
693[[package]]
694name = "rustls-pemfile"
695version = "2.2.0"
696source = "registry+https://github.com/rust-lang/crates.io-index"
697checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"
698dependencies = [
699 "rustls-pki-types",
700]
701
702[[package]]
703name = "rustls-pki-types"
704version = "1.9.0"
705source = "registry+https://github.com/rust-lang/crates.io-index"
706checksum = "0e696e35370c65c9c541198af4543ccd580cf17fc25d8e05c5a242b202488c55"
707
708[[package]]
709name = "rustls-webpki"
710version = "0.102.8"
711source = "registry+https://github.com/rust-lang/crates.io-index"
712checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"
713dependencies = [
714 "ring",
715 "rustls-pki-types",
716 "untrusted",
717]
718
719[[package]]
720name = "ryu"
721version = "1.0.18"
722source = "registry+https://github.com/rust-lang/crates.io-index"
723checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f"
724
725[[package]]
726name = "schannel"
727version = "0.1.24"
728source = "registry+https://github.com/rust-lang/crates.io-index"
729checksum = "e9aaafd5a2b6e3d657ff009d82fbd630b6bd54dd4eb06f21693925cdf80f9b8b"
730dependencies = [
731 "windows-sys 0.59.0",
732]
733
734[[package]]
735name = "security-framework"
736version = "2.11.1"
737source = "registry+https://github.com/rust-lang/crates.io-index"
738checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
739dependencies = [
740 "bitflags",
741 "core-foundation",
742 "core-foundation-sys",
743 "libc",
744 "security-framework-sys",
745]
746
747[[package]]
748name = "security-framework-sys"
749version = "2.12.0"
750source = "registry+https://github.com/rust-lang/crates.io-index"
751checksum = "ea4a292869320c0272d7bc55a5a6aafaff59b4f63404a003887b679a2e05b4b6"
752dependencies = [
753 "core-foundation-sys",
754 "libc",
755]
756
757[[package]]
758name = "serde"
759version = "1.0.210"
760source = "registry+https://github.com/rust-lang/crates.io-index"
761checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a"
762dependencies = [
763 "serde_derive",
764]
765
766[[package]]
767name = "serde_derive"
768version = "1.0.210"
769source = "registry+https://github.com/rust-lang/crates.io-index"
770checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f"
771dependencies = [
772 "proc-macro2",
773 "quote",
774 "syn",
775]
776
777[[package]]
778name = "serde_json"
779version = "1.0.128"
780source = "registry+https://github.com/rust-lang/crates.io-index"
781checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8"
782dependencies = [
783 "itoa",
784 "memchr",
785 "ryu",
786 "serde",
787]
788
789[[package]]
790name = "serde_urlencoded"
791version = "0.7.1"
792source = "registry+https://github.com/rust-lang/crates.io-index"
793checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
794dependencies = [
795 "form_urlencoded",
796 "itoa",
797 "ryu",
798 "serde",
799]
800
801[[package]]
802name = "shlex"
803version = "1.3.0"
804source = "registry+https://github.com/rust-lang/crates.io-index"
805checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
806
807[[package]]
808name = "slab"
809version = "0.4.9"
810source = "registry+https://github.com/rust-lang/crates.io-index"
811checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
812dependencies = [
813 "autocfg",
814]
815
816[[package]]
817name = "smallvec"
818version = "1.13.2"
819source = "registry+https://github.com/rust-lang/crates.io-index"
820checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
821
822[[package]]
823name = "socket2"
824version = "0.5.7"
825source = "registry+https://github.com/rust-lang/crates.io-index"
826checksum = "ce305eb0b4296696835b71df73eb912e0f1ffd2556a501fcede6e0c50349191c"
827dependencies = [
828 "libc",
829 "windows-sys 0.52.0",
830]
831
832[[package]]
833name = "spin"
834version = "0.9.8"
835source = "registry+https://github.com/rust-lang/crates.io-index"
836checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
837
838[[package]]
839name = "subtle"
840version = "2.6.1"
841source = "registry+https://github.com/rust-lang/crates.io-index"
842checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
843
844[[package]]
845name = "syn"
846version = "2.0.79"
847source = "registry+https://github.com/rust-lang/crates.io-index"
848checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590"
849dependencies = [
850 "proc-macro2",
851 "quote",
852 "unicode-ident",
853]
854
855[[package]]
856name = "sync_wrapper"
857version = "1.0.1"
858source = "registry+https://github.com/rust-lang/crates.io-index"
859checksum = "a7065abeca94b6a8a577f9bd45aa0867a2238b74e8eb67cf10d492bc39351394"
860dependencies = [
861 "futures-core",
862]
863
864[[package]]
865name = "system-configuration"
866version = "0.6.1"
867source = "registry+https://github.com/rust-lang/crates.io-index"
868checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
869dependencies = [
870 "bitflags",
871 "core-foundation",
872 "system-configuration-sys",
873]
874
875[[package]]
876name = "system-configuration-sys"
877version = "0.6.0"
878source = "registry+https://github.com/rust-lang/crates.io-index"
879checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
880dependencies = [
881 "core-foundation-sys",
882 "libc",
883]
884
885[[package]]
886name = "tempfile"
887version = "3.13.0"
888source = "registry+https://github.com/rust-lang/crates.io-index"
889checksum = "f0f2c9fc62d0beef6951ccffd757e241266a2c833136efbe35af6cd2567dca5b"
890dependencies = [
891 "cfg-if",
892 "fastrand",
893 "once_cell",
894 "rustix",
895 "windows-sys 0.59.0",
896]
897
898[[package]]
899name = "tinyvec"
900version = "1.8.0"
901source = "registry+https://github.com/rust-lang/crates.io-index"
902checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938"
903dependencies = [
904 "tinyvec_macros",
905]
906
907[[package]]
908name = "tinyvec_macros"
909version = "0.1.1"
910source = "registry+https://github.com/rust-lang/crates.io-index"
911checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
912
913[[package]]
914name = "tokio"
915version = "1.40.0"
916source = "registry+https://github.com/rust-lang/crates.io-index"
917checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998"
918dependencies = [
919 "backtrace",
920 "bytes",
921 "libc",
922 "mio",
923 "pin-project-lite",
924 "socket2",
925 "windows-sys 0.52.0",
926]
927
928[[package]]
929name = "tokio-native-tls"
930version = "0.3.1"
931source = "registry+https://github.com/rust-lang/crates.io-index"
932checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
933dependencies = [
934 "native-tls",
935 "tokio",
936]
937
938[[package]]
939name = "tokio-rustls"
940version = "0.26.0"
941source = "registry+https://github.com/rust-lang/crates.io-index"
942checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4"
943dependencies = [
944 "rustls",
945 "rustls-pki-types",
946 "tokio",
947]
948
949[[package]]
950name = "tokio-util"
951version = "0.7.12"
952source = "registry+https://github.com/rust-lang/crates.io-index"
953checksum = "61e7c3654c13bcd040d4a03abee2c75b1d14a37b423cf5a813ceae1cc903ec6a"
954dependencies = [
955 "bytes",
956 "futures-core",
957 "futures-sink",
958 "pin-project-lite",
959 "tokio",
960]
961
962[[package]]
963name = "tower-service"
964version = "0.3.3"
965source = "registry+https://github.com/rust-lang/crates.io-index"
966checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
967
968[[package]]
969name = "tracing"
970version = "0.1.40"
971source = "registry+https://github.com/rust-lang/crates.io-index"
972checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef"
973dependencies = [
974 "pin-project-lite",
975 "tracing-core",
976]
977
978[[package]]
979name = "tracing-core"
980version = "0.1.32"
981source = "registry+https://github.com/rust-lang/crates.io-index"
982checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54"
983dependencies = [
984 "once_cell",
985]
986
987[[package]]
988name = "try-lock"
989version = "0.2.5"
990source = "registry+https://github.com/rust-lang/crates.io-index"
991checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
992
993[[package]]
994name = "unicode-bidi"
995version = "0.3.15"
996source = "registry+https://github.com/rust-lang/crates.io-index"
997checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75"
998
999[[package]]
1000name = "unicode-ident"
1001version = "1.0.13"
1002source = "registry+https://github.com/rust-lang/crates.io-index"
1003checksum = "e91b56cd4cadaeb79bbf1a5645f6b4f8dc5bde8834ad5894a8db35fda9efa1fe"
1004
1005[[package]]
1006name = "unicode-normalization"
1007version = "0.1.24"
1008source = "registry+https://github.com/rust-lang/crates.io-index"
1009checksum = "5033c97c4262335cded6d6fc3e5c18ab755e1a3dc96376350f3d8e9f009ad956"
1010dependencies = [
1011 "tinyvec",
1012]
1013
1014[[package]]
1015name = "untrusted"
1016version = "0.9.0"
1017source = "registry+https://github.com/rust-lang/crates.io-index"
1018checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
1019
1020[[package]]
1021name = "url"
1022version = "2.5.2"
1023source = "registry+https://github.com/rust-lang/crates.io-index"
1024checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c"
1025dependencies = [
1026 "form_urlencoded",
1027 "idna",
1028 "percent-encoding",
1029]
1030
1031[[package]]
1032name = "vcpkg"
1033version = "0.2.15"
1034source = "registry+https://github.com/rust-lang/crates.io-index"
1035checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
1036
1037[[package]]
1038name = "want"
1039version = "0.3.1"
1040source = "registry+https://github.com/rust-lang/crates.io-index"
1041checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
1042dependencies = [
1043 "try-lock",
1044]
1045
1046[[package]]
1047name = "wasi"
1048version = "0.11.0+wasi-snapshot-preview1"
1049source = "registry+https://github.com/rust-lang/crates.io-index"
1050checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
1051
1052[[package]]
1053name = "wasm-bindgen"
1054version = "0.2.93"
1055source = "registry+https://github.com/rust-lang/crates.io-index"
1056checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5"
1057dependencies = [
1058 "cfg-if",
1059 "once_cell",
1060 "wasm-bindgen-macro",
1061]
1062
1063[[package]]
1064name = "wasm-bindgen-backend"
1065version = "0.2.93"
1066source = "registry+https://github.com/rust-lang/crates.io-index"
1067checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b"
1068dependencies = [
1069 "bumpalo",
1070 "log",
1071 "once_cell",
1072 "proc-macro2",
1073 "quote",
1074 "syn",
1075 "wasm-bindgen-shared",
1076]
1077
1078[[package]]
1079name = "wasm-bindgen-futures"
1080version = "0.4.43"
1081source = "registry+https://github.com/rust-lang/crates.io-index"
1082checksum = "61e9300f63a621e96ed275155c108eb6f843b6a26d053f122ab69724559dc8ed"
1083dependencies = [
1084 "cfg-if",
1085 "js-sys",
1086 "wasm-bindgen",
1087 "web-sys",
1088]
1089
1090[[package]]
1091name = "wasm-bindgen-macro"
1092version = "0.2.93"
1093source = "registry+https://github.com/rust-lang/crates.io-index"
1094checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf"
1095dependencies = [
1096 "quote",
1097 "wasm-bindgen-macro-support",
1098]
1099
1100[[package]]
1101name = "wasm-bindgen-macro-support"
1102version = "0.2.93"
1103source = "registry+https://github.com/rust-lang/crates.io-index"
1104checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836"
1105dependencies = [
1106 "proc-macro2",
1107 "quote",
1108 "syn",
1109 "wasm-bindgen-backend",
1110 "wasm-bindgen-shared",
1111]
1112
1113[[package]]
1114name = "wasm-bindgen-shared"
1115version = "0.2.93"
1116source = "registry+https://github.com/rust-lang/crates.io-index"
1117checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484"
1118
1119[[package]]
1120name = "web-sys"
1121version = "0.3.70"
1122source = "registry+https://github.com/rust-lang/crates.io-index"
1123checksum = "26fdeaafd9bd129f65e7c031593c24d62186301e0c72c8978fa1678be7d532c0"
1124dependencies = [
1125 "js-sys",
1126 "wasm-bindgen",
1127]
1128
1129[[package]]
1130name = "windows-registry"
1131version = "0.2.0"
1132source = "registry+https://github.com/rust-lang/crates.io-index"
1133checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0"
1134dependencies = [
1135 "windows-result",
1136 "windows-strings",
1137 "windows-targets",
1138]
1139
1140[[package]]
1141name = "windows-result"
1142version = "0.2.0"
1143source = "registry+https://github.com/rust-lang/crates.io-index"
1144checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"
1145dependencies = [
1146 "windows-targets",
1147]
1148
1149[[package]]
1150name = "windows-strings"
71151version = "0.1.0"
1152source = "registry+https://github.com/rust-lang/crates.io-index"
1153checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"
1154dependencies = [
1155 "windows-result",
1156 "windows-targets",
1157]
1158
1159[[package]]
1160name = "windows-sys"
1161version = "0.52.0"
1162source = "registry+https://github.com/rust-lang/crates.io-index"
1163checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
1164dependencies = [
1165 "windows-targets",
1166]
1167
1168[[package]]
1169name = "windows-sys"
1170version = "0.59.0"
1171source = "registry+https://github.com/rust-lang/crates.io-index"
1172checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
1173dependencies = [
1174 "windows-targets",
1175]
1176
1177[[package]]
1178name = "windows-targets"
1179version = "0.52.6"
1180source = "registry+https://github.com/rust-lang/crates.io-index"
1181checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
1182dependencies = [
1183 "windows_aarch64_gnullvm",
1184 "windows_aarch64_msvc",
1185 "windows_i686_gnu",
1186 "windows_i686_gnullvm",
1187 "windows_i686_msvc",
1188 "windows_x86_64_gnu",
1189 "windows_x86_64_gnullvm",
1190 "windows_x86_64_msvc",
1191]
1192
1193[[package]]
1194name = "windows_aarch64_gnullvm"
1195version = "0.52.6"
1196source = "registry+https://github.com/rust-lang/crates.io-index"
1197checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
1198
1199[[package]]
1200name = "windows_aarch64_msvc"
1201version = "0.52.6"
1202source = "registry+https://github.com/rust-lang/crates.io-index"
1203checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
1204
1205[[package]]
1206name = "windows_i686_gnu"
1207version = "0.52.6"
1208source = "registry+https://github.com/rust-lang/crates.io-index"
1209checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
1210
1211[[package]]
1212name = "windows_i686_gnullvm"
1213version = "0.52.6"
1214source = "registry+https://github.com/rust-lang/crates.io-index"
1215checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
1216
1217[[package]]
1218name = "windows_i686_msvc"
1219version = "0.52.6"
1220source = "registry+https://github.com/rust-lang/crates.io-index"
1221checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
1222
1223[[package]]
1224name = "windows_x86_64_gnu"
1225version = "0.52.6"
1226source = "registry+https://github.com/rust-lang/crates.io-index"
1227checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
1228
1229[[package]]
1230name = "windows_x86_64_gnullvm"
1231version = "0.52.6"
1232source = "registry+https://github.com/rust-lang/crates.io-index"
1233checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
1234
1235[[package]]
1236name = "windows_x86_64_msvc"
1237version = "0.52.6"
1238source = "registry+https://github.com/rust-lang/crates.io-index"
1239checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
1240
1241[[package]]
1242name = "zeroize"
1243version = "1.8.1"
1244source = "registry+https://github.com/rust-lang/crates.io-index"
1245checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
Cargo.toml +5 −1
@@ -1,6 +1,10 @@
11[package]
2name = "curd"
2name = "curd-rust"
33version = "0.1.0"
44edition = "2021"
55
66[dependencies]
7reqwest = { version = "0.12.8", features = ["blocking"] }
8serde = {version = "1.0.210", features = ["derive"] }
9serde_json = "1.0.128"
10tokio = "1.40.0"
\ No newline at end of file
src/aniskip.rs added +139
@@ -0,0 +1,139 @@
1use reqwest::{blocking, Response};
2use serde::{Deserialize, Serialize};
3use std::{error::Error};
4use serde_json;
5
6// Define the enum for SkipType
7#[derive(Debug, Deserialize)]
8pub enum SkipType {
9 #[serde(rename = "op")]
10 Op,
11 #[serde(rename = "ed")]
12 Ed,
13}
14
15// Define the struct for the interval part
16#[derive(Debug, Deserialize)]
17pub struct Interval {
18 #[serde(rename = "start_time")]
19 pub start: f64,
20 #[serde(rename = "end_time")]
21 pub end: f64,
22}
23
24// Define the struct for the response result
25#[derive(Debug, Deserialize)]
26pub struct SkipResult {
27 pub interval: Interval,
28 #[serde(rename = "skip_type")]
29 pub kind: SkipType,
30 #[serde(rename = "episode_length")]
31 pub episode_length: f64,
32}
33
34// Define the struct for the entire response
35#[derive(Debug, Deserialize)]
36pub struct AniskipResponse {
37 pub found: bool,
38 pub results: Vec<SkipResult>,
39}
40
41// Struct to represent the simplified skip time
42#[derive(Debug)]
43pub struct SkipTime {
44 pub kind: SkipType,
45 pub intervals: SkipInterval,
46}
47
48// Interval struct for simplified handling
49#[derive(Debug)]
50pub struct SkipInterval {
51 pub start: i32,
52 pub end: i32,
53}
54
55impl SkipTime {
56 // Constructor for SkipTime
57 pub fn new(kind: SkipType, start: i32, end: i32) -> Self {
58 SkipTime {
59 kind,
60 intervals: SkipInterval { start, end },
61 }
62 }
63}
64
65// Function to get aniskip data
66pub fn get_aniskip_data(anime_id: i32, episode_number: i32) -> Result<String, Box<dyn Error>> {
67 let base_url = "https://api.aniskip.com/v1/skip-times";
68 let url = format!("{base_url}/{anime_id}/{episode_number}?types=op&types=ed");
69
70 let response = blocking::get(url)?;
71 // Check if the request was successful
72 if response.status().is_success() {
73 // Return the response body
74 let body = response.text()?;
75 Ok(body)
76 } else {
77 Err(format!("Failed to retrieve the page. Status: {}", response.status()).into())
78 }
79}
80
81// Function to parse the Aniskip response and return SkipTime structs
82pub fn parse_aniskip_response(response_text: &String) -> Result<Vec<SkipTime>, Box<dyn Error>> {
83 // Deserialize the JSON into AniskipResponse
84 let parsed_data: AniskipResponse = serde_json::from_str(response_text)?;
85
86 // If no skips are found, return an empty vector
87 if !parsed_data.found {
88 return Ok(Vec::new());
89 }
90
91 // Convert the parsed results into SkipTime structs
92 let skip_times: Vec<SkipTime> = parsed_data.results.into_iter().map(|result| {
93 SkipTime::new(
94 result.kind,
95 result.interval.start as i32,
96 result.interval.end as i32,
97 )
98 }).collect();
99
100 Ok(skip_times)
101}
102
103// Unit tests
104#[cfg(test)]
105mod tests {
106 use super::*; // Import the functions and types from the current module
107
108 #[test]
109 fn test_skip_time_creation() {
110 let skip = SkipTime::new(SkipType::Op, 10, 30);
111
112 match skip.kind {
113 SkipType::Op => assert_eq!(skip.intervals.start, 10),
114 _ => panic!("Expected SkipType::Op"),
115 }
116 }
117
118 #[test]
119 fn test_skip_time_ed_creation() {
120 let skip = SkipTime::new(SkipType::Ed, 1100, 1130);
121
122 match skip.kind {
123 SkipType::Ed => {
124 assert_eq!(skip.intervals.start, 1100);
125 assert_eq!(skip.intervals.end, 1130);
126 }
127 _ => panic!("Expected SkipType::Ed"),
128 }
129 }
130
131 #[test]
132 fn tmp(){
133 // let skip = SkipTime::new(SkipType::Ed, 1100, 1130);
134 // println!("{}", skip);
135 }
136
137}
138
139
src/lib.rs added +1
@@ -0,0 +1 @@
1pub mod aniskip;
\ No newline at end of file
src/main.rs +34 −2
@@ -1,3 +1,35 @@
1use std::process::exit;
2use curd_rust::aniskip::{get_aniskip_data, parse_aniskip_response, SkipInterval, SkipType, SkipResult, SkipTime};
3
14fn main() {
2 println!("Hello, world!");
3}
5 let anime_id = 21;
6 let episode_no = 1;
7
8 let mut response_text = get_aniskip_data(anime_id, episode_no);
9
10 match response_text{
11 Ok(response_text) => {
12 let skip_times = parse_aniskip_response(&response_text);
13 // println!("{:?}", skip_times);
14 match skip_times{
15 Ok(skip_times) => {
16 for skip in skip_times {
17 println!("{:?} skips from {} to {}", skip.kind, skip.intervals.start, skip.intervals.end);
18 }
19 }
20 Err(e) => {
21 eprintln!("Error: {e}")
22 }
23 }
24 },
25 Err(e) => {
26 eprintln!("Error fetching Aniskip data: {}", e);
27 }
28 }
29
30
31 // Ok(())
32
33 // let number: f32 = 35.303;
34 // println!("{}", number.round());
35}
\ No newline at end of file