diff --git a/src-rust/rsc/translate_article_template.md b/src-rust/rsc/translate_article_template.md deleted file mode 100644 index 0d01272..0000000 --- a/src-rust/rsc/translate_article_template.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -title: <标题> -date: <发布时间> -author: - - fosscope-translation-team - - <译者ID> - - <校对者ID> -banner: <封面图片地址> -cover: <封面图片地址(与 banner 一致)> -categories: - - 翻译 - - <类型> -tags: - - <标签> -authorInfo: | - via: <原文链接> - - 作者:[<原作者>](<原作者信息页>) - 选题:[<选题者ID>](https://github.com/<选题者ID>) - 译者:[<译者ID>](https://github.com/<译者ID>) - 校对:[<校对者ID>](https://github.com/<校对者ID>) - - 本文由 [FOSScope翻译组](https://github.com/FOSScope/TranslateProject) 原创编译,[开源观察](https://fosscope.com/) 荣誉推出 ---- - - - -<摘要> - - - -<正文> diff --git a/src-rust/tauri-backend/Cargo.lock b/src-rust/tauri-backend/Cargo.lock index 77b35e6..6fcb9e9 100644 --- a/src-rust/tauri-backend/Cargo.lock +++ b/src-rust/tauri-backend/Cargo.lock @@ -8,7 +8,7 @@ version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e4503c46a5c0c7844e948c9a4d6acd9f50cccb4de1c48eb9e291ea17470c678" dependencies = [ - "gimli", + "gimli", ] [[package]] @@ -23,7 +23,7 @@ version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" dependencies = [ - "memchr", + "memchr", ] [[package]] @@ -38,7 +38,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" dependencies = [ - "alloc-no-stdlib", + "alloc-no-stdlib", ] [[package]] @@ -53,7 +53,7 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" dependencies = [ - "libc", + "libc", ] [[package]] @@ -68,10 +68,10 @@ version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c3d816ce6f0e2909a96830d6911c2aff044370b1ef92d7f267b43bae5addedd" dependencies = [ - "atk-sys", - "bitflags 1.3.2", - "glib", - "libc", + "atk-sys", + "bitflags 1.3.2", + "glib", + "libc", ] [[package]] @@ -80,10 +80,10 @@ version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "58aeb089fb698e06db8089971c7ee317ab9644bade33383f63631437b03aafb6" dependencies = [ - "glib-sys", - "gobject-sys", - "libc", - "system-deps 6.2.2", + "glib-sys", + "gobject-sys", + "libc", + "system-deps 6.2.2", ] [[package]] @@ -98,13 +98,13 @@ version = "0.3.73" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5cc23269a4f8976d0a4d2e7109211a419fe30e8d88d677cd60b6bc79c5732e0a" dependencies = [ - "addr2line", - "cc", - "cfg-if", - "libc", - "miniz_oxide", - "object", - "rustc-demangle", + "addr2line", + "cc", + "cfg-if", + "libc", + "miniz_oxide", + "object", + "rustc-demangle", ] [[package]] @@ -149,7 +149,7 @@ version = "0.10.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" dependencies = [ - "generic-array", + "generic-array", ] [[package]] @@ -158,9 +158,9 @@ version = "3.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d640d25bc63c50fb1f0b545ffd80207d2e10a4c965530809b40ba3386825c391" dependencies = [ - "alloc-no-stdlib", - "alloc-stdlib", - "brotli-decompressor", + "alloc-no-stdlib", + "alloc-stdlib", + "brotli-decompressor", ] [[package]] @@ -169,8 +169,8 @@ version = "2.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4e2e4afe60d7dd600fdd3de8d0f08c2b7ec039712e3b6137ff98b7004e82de4f" dependencies = [ - "alloc-no-stdlib", - "alloc-stdlib", + "alloc-no-stdlib", + "alloc-stdlib", ] [[package]] @@ -179,8 +179,8 @@ version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706" dependencies = [ - "memchr", - "serde", + "memchr", + "serde", ] [[package]] @@ -213,11 +213,11 @@ version = "0.15.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c76ee391b03d35510d9fa917357c7f1855bd9a6659c95a1b392e33f49b3369bc" dependencies = [ - "bitflags 1.3.2", - "cairo-sys-rs", - "glib", - "libc", - "thiserror", + "bitflags 1.3.2", + "cairo-sys-rs", + "glib", + "libc", + "thiserror", ] [[package]] @@ -226,9 +226,9 @@ version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c55d429bef56ac9172d25fecb85dc8068307d17acd74b377866b7a1ef25d3c8" dependencies = [ - "glib-sys", - "libc", - "system-deps 6.2.2", + "glib-sys", + "libc", + "system-deps 6.2.2", ] [[package]] @@ -237,8 +237,8 @@ version = "0.15.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "599aa35200ffff8f04c1925aa1acc92fa2e08874379ef42e210a80e527e60838" dependencies = [ - "serde", - "toml 0.7.8", + "serde", + "toml 0.7.8", ] [[package]] @@ -259,9 +259,9 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" dependencies = [ - "byteorder", - "fnv", - "uuid", + "byteorder", + "fnv", + "uuid", ] [[package]] @@ -270,7 +270,7 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3431df59f28accaf4cb4eed4a9acc66bea3f3c3753aa6cdc2f024174ef232af7" dependencies = [ - "smallvec", + "smallvec", ] [[package]] @@ -279,8 +279,8 @@ version = "0.15.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" dependencies = [ - "smallvec", - "target-lexicon", + "smallvec", + "target-lexicon", ] [[package]] @@ -295,11 +295,11 @@ version = "0.4.38" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a21f936df1771bf62b77f047b726c4625ff2e8aa607c01ec06e5a05bd8463401" dependencies = [ - "android-tzdata", - "iana-time-zone", - "num-traits", - "serde", - "windows-targets 0.52.5", + "android-tzdata", + "iana-time-zone", + "num-traits", + "serde", + "windows-targets 0.52.5", ] [[package]] @@ -308,14 +308,14 @@ version = "0.24.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f425db7937052c684daec3bd6375c8abe2d146dca4b8b143d6db777c39138f3a" dependencies = [ - "bitflags 1.3.2", - "block", - "cocoa-foundation", - "core-foundation", - "core-graphics", - "foreign-types", - "libc", - "objc", + "bitflags 1.3.2", + "block", + "cocoa-foundation", + "core-foundation", + "core-graphics", + "foreign-types", + "libc", + "objc", ] [[package]] @@ -324,12 +324,12 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8c6234cbb2e4c785b456c0644748b1ac416dd045799740356f8363dfe00c93f7" dependencies = [ - "bitflags 1.3.2", - "block", - "core-foundation", - "core-graphics-types", - "libc", - "objc", + "bitflags 1.3.2", + "block", + "core-foundation", + "core-graphics-types", + "libc", + "objc", ] [[package]] @@ -344,8 +344,8 @@ version = "4.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" dependencies = [ - "bytes", - "memchr", + "bytes", + "memchr", ] [[package]] @@ -360,8 +360,8 @@ version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" dependencies = [ - "core-foundation-sys", - "libc", + "core-foundation-sys", + "libc", ] [[package]] @@ -376,11 +376,11 @@ version = "0.22.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2581bbab3b8ffc6fcbd550bf46c355135d16e9ff2a6ea032ad6b9bf1d7efe4fb" dependencies = [ - "bitflags 1.3.2", - "core-foundation", - "core-graphics-types", - "foreign-types", - "libc", + "bitflags 1.3.2", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", ] [[package]] @@ -389,9 +389,9 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf" dependencies = [ - "bitflags 1.3.2", - "core-foundation", - "libc", + "bitflags 1.3.2", + "core-foundation", + "libc", ] [[package]] @@ -400,7 +400,7 @@ version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504" dependencies = [ - "libc", + "libc", ] [[package]] @@ -409,7 +409,7 @@ version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ - "cfg-if", + "cfg-if", ] [[package]] @@ -418,7 +418,7 @@ version = "0.5.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33480d6946193aa8033910124896ca395333cae7e2d1113d1fef6c3272217df2" dependencies = [ - "crossbeam-utils", + "crossbeam-utils", ] [[package]] @@ -427,8 +427,8 @@ version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d" dependencies = [ - "crossbeam-epoch", - "crossbeam-utils", + "crossbeam-epoch", + "crossbeam-utils", ] [[package]] @@ -437,7 +437,7 @@ version = "0.9.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e" dependencies = [ - "crossbeam-utils", + "crossbeam-utils", ] [[package]] @@ -452,8 +452,8 @@ version = "0.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" dependencies = [ - "generic-array", - "typenum", + "generic-array", + "typenum", ] [[package]] @@ -462,15 +462,15 @@ version = "0.27.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "754b69d351cdc2d8ee09ae203db831e005560fc6030da058f86ad60c92a9cb0a" dependencies = [ - "cssparser-macros", - "dtoa-short", - "itoa 0.4.8", - "matches", - "phf 0.8.0", - "proc-macro2", - "quote", - "smallvec", - "syn 1.0.109", + "cssparser-macros", + "dtoa-short", + "itoa 0.4.8", + "matches", + "phf 0.8.0", + "proc-macro2", + "quote", + "smallvec", + "syn 1.0.109", ] [[package]] @@ -479,8 +479,8 @@ version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" dependencies = [ - "quote", - "syn 2.0.66", + "quote", + "syn 2.0.66", ] [[package]] @@ -489,8 +489,8 @@ version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "edb49164822f3ee45b17acd4a208cfc1251410cf0cad9a833234c9890774dd9f" dependencies = [ - "quote", - "syn 2.0.66", + "quote", + "syn 2.0.66", ] [[package]] @@ -499,8 +499,8 @@ version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "83b2eb4d90d12bdda5ed17de686c2acb4c57914f8f921b8da7e112b5a36f3fe1" dependencies = [ - "darling_core", - "darling_macro", + "darling_core", + "darling_macro", ] [[package]] @@ -509,12 +509,12 @@ version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "622687fe0bac72a04e5599029151f5796111b90f1baaa9b544d807a5e31cd120" dependencies = [ - "fnv", - "ident_case", - "proc-macro2", - "quote", - "strsim", - "syn 2.0.66", + "fnv", + "ident_case", + "proc-macro2", + "quote", + "strsim", + "syn 2.0.66", ] [[package]] @@ -523,9 +523,9 @@ version = "0.20.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "733cabb43482b1a1b53eee8583c2b9e8684d592215ea83efd305dd31bc2f0178" dependencies = [ - "darling_core", - "quote", - "syn 2.0.66", + "darling_core", + "quote", + "syn 2.0.66", ] [[package]] @@ -534,8 +534,8 @@ version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b42b6fa04a440b495c8b04d0e71b707c585f83cb9cb28cf8cd0d976c315e31b4" dependencies = [ - "powerfmt", - "serde", + "powerfmt", + "serde", ] [[package]] @@ -544,11 +544,11 @@ version = "0.99.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f33878137e4dafd7fa914ad4e259e18a4e8e532b9617a2d0150262bf53abfce" dependencies = [ - "convert_case", - "proc-macro2", - "quote", - "rustc_version", - "syn 2.0.66", + "convert_case", + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.66", ] [[package]] @@ -557,8 +557,8 @@ version = "0.10.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" dependencies = [ - "block-buffer", - "crypto-common", + "block-buffer", + "crypto-common", ] [[package]] @@ -567,8 +567,8 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1" dependencies = [ - "cfg-if", - "dirs-sys-next", + "cfg-if", + "dirs-sys-next", ] [[package]] @@ -577,9 +577,9 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" dependencies = [ - "libc", - "redox_users", - "winapi", + "libc", + "redox_users", + "winapi", ] [[package]] @@ -594,9 +594,9 @@ version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "487585f4d0c6655fe74905e2504d8ad6908e4db67f744eb140876906c2f3175d" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", + "proc-macro2", + "quote", + "syn 2.0.66", ] [[package]] @@ -611,7 +611,7 @@ version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" dependencies = [ - "dtoa", + "dtoa", ] [[package]] @@ -626,12 +626,12 @@ version = "2.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c6985554d0688b687c5cb73898a34fbe3ad6c24c58c238a4d91d5e840670ee9d" dependencies = [ - "cc", - "memchr", - "rustc_version", - "toml 0.8.14", - "vswhom", - "winreg", + "cc", + "memchr", + "rustc_version", + "toml 0.8.14", + "vswhom", + "winreg", ] [[package]] @@ -646,7 +646,7 @@ version = "0.8.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b45de904aa0b010bce2ab45264d0631681847fa7b6f2eaa7dab7619943bc4f59" dependencies = [ - "cfg-if", + "cfg-if", ] [[package]] @@ -661,8 +661,8 @@ version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" dependencies = [ - "libc", - "windows-sys 0.52.0", + "libc", + "windows-sys 0.52.0", ] [[package]] @@ -677,7 +677,7 @@ version = "0.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4f9bfee30e4dedf0ab8b422f03af778d9612b63f502710fc500a334ebe2de645" dependencies = [ - "simd-adler32", + "simd-adler32", ] [[package]] @@ -686,8 +686,8 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" dependencies = [ - "memoffset", - "rustc_version", + "memoffset", + "rustc_version", ] [[package]] @@ -696,10 +696,10 @@ version = "0.2.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ee447700ac8aa0b2f2bd7bc4462ad686ba06baa6727ac149a2d6277f0d240fd" dependencies = [ - "cfg-if", - "libc", - "redox_syscall 0.4.1", - "windows-sys 0.52.0", + "cfg-if", + "libc", + "redox_syscall 0.4.1", + "windows-sys 0.52.0", ] [[package]] @@ -708,8 +708,8 @@ version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae" dependencies = [ - "crc32fast", - "miniz_oxide", + "crc32fast", + "miniz_oxide", ] [[package]] @@ -724,7 +724,7 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" dependencies = [ - "foreign-types-shared", + "foreign-types-shared", ] [[package]] @@ -739,17 +739,17 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ - "percent-encoding", + "percent-encoding", ] [[package]] name = "fosscopetoolkit" version = "0.1.0-dev" dependencies = [ - "serde", - "serde_json", - "tauri", - "tauri-build", + "serde", + "serde_json", + "tauri", + "tauri-build", ] [[package]] @@ -758,8 +758,8 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843" dependencies = [ - "mac", - "new_debug_unreachable", + "mac", + "new_debug_unreachable", ] [[package]] @@ -768,7 +768,7 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ - "futures-core", + "futures-core", ] [[package]] @@ -783,9 +783,9 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" dependencies = [ - "futures-core", - "futures-task", - "futures-util", + "futures-core", + "futures-task", + "futures-util", ] [[package]] @@ -800,9 +800,9 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", + "proc-macro2", + "quote", + "syn 2.0.66", ] [[package]] @@ -817,12 +817,12 @@ version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ - "futures-core", - "futures-macro", - "futures-task", - "pin-project-lite", - "pin-utils", - "slab", + "futures-core", + "futures-macro", + "futures-task", + "pin-project-lite", + "pin-utils", + "slab", ] [[package]] @@ -831,7 +831,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" dependencies = [ - "byteorder", + "byteorder", ] [[package]] @@ -840,14 +840,14 @@ version = "0.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a6e05c1f572ab0e1f15be94217f0dc29088c248b14f792a5ff0af0d84bcda9e8" dependencies = [ - "bitflags 1.3.2", - "cairo-rs", - "gdk-pixbuf", - "gdk-sys", - "gio", - "glib", - "libc", - "pango", + "bitflags 1.3.2", + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", ] [[package]] @@ -856,11 +856,11 @@ version = "0.15.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ad38dd9cc8b099cceecdf41375bb6d481b1b5a7cd5cd603e10a69a9383f8619a" dependencies = [ - "bitflags 1.3.2", - "gdk-pixbuf-sys", - "gio", - "glib", - "libc", + "bitflags 1.3.2", + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", ] [[package]] @@ -869,11 +869,11 @@ version = "0.15.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "140b2f5378256527150350a8346dbdb08fadc13453a7a2d73aecd5fab3c402a7" dependencies = [ - "gio-sys", - "glib-sys", - "gobject-sys", - "libc", - "system-deps 6.2.2", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps 6.2.2", ] [[package]] @@ -882,15 +882,15 @@ version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32e7a08c1e8f06f4177fb7e51a777b8c1689f743a7bc11ea91d44d2226073a88" dependencies = [ - "cairo-sys-rs", - "gdk-pixbuf-sys", - "gio-sys", - "glib-sys", - "gobject-sys", - "libc", - "pango-sys", - "pkg-config", - "system-deps 6.2.2", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps 6.2.2", ] [[package]] @@ -899,12 +899,12 @@ version = "0.15.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cca49a59ad8cfdf36ef7330fe7bdfbe1d34323220cc16a0de2679ee773aee2c2" dependencies = [ - "gdk-sys", - "glib-sys", - "gobject-sys", - "libc", - "pkg-config", - "system-deps 6.2.2", + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps 6.2.2", ] [[package]] @@ -913,11 +913,11 @@ version = "0.15.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4b7f8c7a84b407aa9b143877e267e848ff34106578b64d1e0a24bf550716178" dependencies = [ - "gdk-sys", - "glib-sys", - "libc", - "system-deps 6.2.2", - "x11", + "gdk-sys", + "glib-sys", + "libc", + "system-deps 6.2.2", + "x11", ] [[package]] @@ -926,11 +926,11 @@ version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5cc16584ff22b460a382b7feec54b23d2908d858152e5739a120b949293bd74e" dependencies = [ - "cc", - "libc", - "log", - "rustversion", - "windows 0.48.0", + "cc", + "libc", + "log", + "rustversion", + "windows 0.48.0", ] [[package]] @@ -939,8 +939,8 @@ version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" dependencies = [ - "typenum", - "version_check", + "typenum", + "version_check", ] [[package]] @@ -949,9 +949,9 @@ version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" dependencies = [ - "cfg-if", - "libc", - "wasi 0.9.0+wasi-snapshot-preview1", + "cfg-if", + "libc", + "wasi 0.9.0+wasi-snapshot-preview1", ] [[package]] @@ -960,9 +960,9 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ - "cfg-if", - "libc", - "wasi 0.11.0+wasi-snapshot-preview1", + "cfg-if", + "libc", + "wasi 0.11.0+wasi-snapshot-preview1", ] [[package]] @@ -977,15 +977,15 @@ version = "0.15.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68fdbc90312d462781a395f7a16d96a2b379bb6ef8cd6310a2df272771c4283b" dependencies = [ - "bitflags 1.3.2", - "futures-channel", - "futures-core", - "futures-io", - "gio-sys", - "glib", - "libc", - "once_cell", - "thiserror", + "bitflags 1.3.2", + "futures-channel", + "futures-core", + "futures-io", + "gio-sys", + "glib", + "libc", + "once_cell", + "thiserror", ] [[package]] @@ -994,11 +994,11 @@ version = "0.15.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32157a475271e2c4a023382e9cab31c4584ee30a97da41d3c4e9fdd605abcf8d" dependencies = [ - "glib-sys", - "gobject-sys", - "libc", - "system-deps 6.2.2", - "winapi", + "glib-sys", + "gobject-sys", + "libc", + "system-deps 6.2.2", + "winapi", ] [[package]] @@ -1007,18 +1007,18 @@ version = "0.15.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "edb0306fbad0ab5428b0ca674a23893db909a98582969c9b537be4ced78c505d" dependencies = [ - "bitflags 1.3.2", - "futures-channel", - "futures-core", - "futures-executor", - "futures-task", - "glib-macros", - "glib-sys", - "gobject-sys", - "libc", - "once_cell", - "smallvec", - "thiserror", + "bitflags 1.3.2", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "glib-macros", + "glib-sys", + "gobject-sys", + "libc", + "once_cell", + "smallvec", + "thiserror", ] [[package]] @@ -1027,13 +1027,13 @@ version = "0.15.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "10c6ae9f6fa26f4fb2ac16b528d138d971ead56141de489f8111e259b9df3c4a" dependencies = [ - "anyhow", - "heck 0.4.1", - "proc-macro-crate", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 1.0.109", + "anyhow", + "heck 0.4.1", + "proc-macro-crate", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] @@ -1042,8 +1042,8 @@ version = "0.15.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef4b192f8e65e9cf76cbf4ea71fa8e3be4a0e18ffe3d68b8da6836974cc5bad4" dependencies = [ - "libc", - "system-deps 6.2.2", + "libc", + "system-deps 6.2.2", ] [[package]] @@ -1058,11 +1058,11 @@ version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57da3b9b5b85bd66f31093f8c408b90a74431672542466497dcbdfdc02034be1" dependencies = [ - "aho-corasick", - "bstr", - "log", - "regex-automata 0.4.7", - "regex-syntax 0.8.4", + "aho-corasick", + "bstr", + "log", + "regex-automata 0.4.7", + "regex-syntax 0.8.4", ] [[package]] @@ -1071,9 +1071,9 @@ version = "0.15.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0d57ce44246becd17153bd035ab4d32cfee096a657fc01f2231c9278378d1e0a" dependencies = [ - "glib-sys", - "libc", - "system-deps 6.2.2", + "glib-sys", + "libc", + "system-deps 6.2.2", ] [[package]] @@ -1082,21 +1082,21 @@ version = "0.15.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "92e3004a2d5d6d8b5057d2b57b3712c9529b62e82c77f25c1fecde1fd5c23bd0" dependencies = [ - "atk", - "bitflags 1.3.2", - "cairo-rs", - "field-offset", - "futures-channel", - "gdk", - "gdk-pixbuf", - "gio", - "glib", - "gtk-sys", - "gtk3-macros", - "libc", - "once_cell", - "pango", - "pkg-config", + "atk", + "bitflags 1.3.2", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "once_cell", + "pango", + "pkg-config", ] [[package]] @@ -1105,16 +1105,16 @@ version = "0.15.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d5bc2f0587cba247f60246a0ca11fe25fb733eabc3de12d1965fc07efab87c84" dependencies = [ - "atk-sys", - "cairo-sys-rs", - "gdk-pixbuf-sys", - "gdk-sys", - "gio-sys", - "glib-sys", - "gobject-sys", - "libc", - "pango-sys", - "system-deps 6.2.2", + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps 6.2.2", ] [[package]] @@ -1123,12 +1123,12 @@ version = "0.15.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "684c0456c086e8e7e9af73ec5b84e35938df394712054550e81558d21c44ab0d" dependencies = [ - "anyhow", - "proc-macro-crate", - "proc-macro-error", - "proc-macro2", - "quote", - "syn 1.0.109", + "anyhow", + "proc-macro-crate", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] @@ -1149,7 +1149,7 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c" dependencies = [ - "unicode-segmentation", + "unicode-segmentation", ] [[package]] @@ -1182,12 +1182,12 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bea68cab48b8459f17cf1c944c67ddc572d272d9f2b274140f223ecb1da4a3b7" dependencies = [ - "log", - "mac", - "markup5ever", - "proc-macro2", - "quote", - "syn 1.0.109", + "log", + "mac", + "markup5ever", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] @@ -1196,9 +1196,9 @@ version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" dependencies = [ - "bytes", - "fnv", - "itoa 1.0.11", + "bytes", + "fnv", + "itoa 1.0.11", ] [[package]] @@ -1213,12 +1213,12 @@ version = "0.1.60" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141" dependencies = [ - "android_system_properties", - "core-foundation-sys", - "iana-time-zone-haiku", - "js-sys", - "wasm-bindgen", - "windows-core", + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "wasm-bindgen", + "windows-core", ] [[package]] @@ -1227,7 +1227,7 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" dependencies = [ - "cc", + "cc", ] [[package]] @@ -1236,8 +1236,8 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3804960be0bb5e4edb1e1ad67afd321a9ecfd875c3e65c099468fd2717d7cae" dependencies = [ - "byteorder", - "png", + "byteorder", + "png", ] [[package]] @@ -1246,10 +1246,10 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526" dependencies = [ - "displaydoc", - "yoke", - "zerofrom", - "zerovec", + "displaydoc", + "yoke", + "zerofrom", + "zerovec", ] [[package]] @@ -1258,11 +1258,11 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637" dependencies = [ - "displaydoc", - "litemap", - "tinystr", - "writeable", - "zerovec", + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", ] [[package]] @@ -1271,12 +1271,12 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e" dependencies = [ - "displaydoc", - "icu_locid", - "icu_locid_transform_data", - "icu_provider", - "tinystr", - "zerovec", + "displaydoc", + "icu_locid", + "icu_locid_transform_data", + "icu_provider", + "tinystr", + "zerovec", ] [[package]] @@ -1291,16 +1291,16 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f" dependencies = [ - "displaydoc", - "icu_collections", - "icu_normalizer_data", - "icu_properties", - "icu_provider", - "smallvec", - "utf16_iter", - "utf8_iter", - "write16", - "zerovec", + "displaydoc", + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "utf16_iter", + "utf8_iter", + "write16", + "zerovec", ] [[package]] @@ -1315,13 +1315,13 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f8ac670d7422d7f76b32e17a5db556510825b29ec9154f235977c9caba61036" dependencies = [ - "displaydoc", - "icu_collections", - "icu_locid_transform", - "icu_properties_data", - "icu_provider", - "tinystr", - "zerovec", + "displaydoc", + "icu_collections", + "icu_locid_transform", + "icu_properties_data", + "icu_provider", + "tinystr", + "zerovec", ] [[package]] @@ -1336,15 +1336,15 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9" dependencies = [ - "displaydoc", - "icu_locid", - "icu_provider_macros", - "stable_deref_trait", - "tinystr", - "writeable", - "yoke", - "zerofrom", - "zerovec", + "displaydoc", + "icu_locid", + "icu_provider_macros", + "stable_deref_trait", + "tinystr", + "writeable", + "yoke", + "zerofrom", + "zerovec", ] [[package]] @@ -1353,9 +1353,9 @@ version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", + "proc-macro2", + "quote", + "syn 2.0.66", ] [[package]] @@ -1370,10 +1370,10 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4716a3a0933a1d01c2f72450e89596eb51dd34ef3c211ccd875acdf1f8fe47ed" dependencies = [ - "icu_normalizer", - "icu_properties", - "smallvec", - "utf8_iter", + "icu_normalizer", + "icu_properties", + "smallvec", + "utf8_iter", ] [[package]] @@ -1382,14 +1382,14 @@ version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b46810df39e66e925525d6e38ce1e7f6e1d208f72dc39757880fcb66e2c58af1" dependencies = [ - "crossbeam-deque", - "globset", - "log", - "memchr", - "regex-automata 0.4.7", - "same-file", - "walkdir", - "winapi-util", + "crossbeam-deque", + "globset", + "log", + "memchr", + "regex-automata 0.4.7", + "same-file", + "walkdir", + "winapi-util", ] [[package]] @@ -1398,10 +1398,10 @@ version = "0.24.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5690139d2f55868e080017335e4b94cb7414274c74f1669c84fb5feba2c9f69d" dependencies = [ - "bytemuck", - "byteorder", - "color_quant", - "num-traits", + "bytemuck", + "byteorder", + "color_quant", + "num-traits", ] [[package]] @@ -1410,9 +1410,9 @@ version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ - "autocfg", - "hashbrown 0.12.3", - "serde", + "autocfg", + "hashbrown 0.12.3", + "serde", ] [[package]] @@ -1421,9 +1421,9 @@ version = "2.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "168fb715dda47215e360912c096649d23d58bf392ac62f73919e831745e40f26" dependencies = [ - "equivalent", - "hashbrown 0.14.5", - "serde", + "equivalent", + "hashbrown 0.14.5", + "serde", ] [[package]] @@ -1432,7 +1432,7 @@ version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f551f8c3a39f68f986517db0d1759de85881894fdc7db798bd2a9df9cb04b7fc" dependencies = [ - "cfb", + "cfb", ] [[package]] @@ -1441,7 +1441,7 @@ version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e0242819d153cba4b4b05a5a8f2a7e9bbf97b6055b2a002b395c96b5ff3c0222" dependencies = [ - "cfg-if", + "cfg-if", ] [[package]] @@ -1462,9 +1462,9 @@ version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bf053e7843f2812ff03ef5afe34bb9c06ffee120385caad4f6b9967fcd37d41c" dependencies = [ - "bitflags 1.3.2", - "glib", - "javascriptcore-rs-sys", + "bitflags 1.3.2", + "glib", + "javascriptcore-rs-sys", ] [[package]] @@ -1473,10 +1473,10 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "905fbb87419c5cde6e3269537e4ea7d46431f3008c5d057e915ef3f115e7793c" dependencies = [ - "glib-sys", - "gobject-sys", - "libc", - "system-deps 5.0.0", + "glib-sys", + "gobject-sys", + "libc", + "system-deps 5.0.0", ] [[package]] @@ -1485,12 +1485,12 @@ version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "039022cdf4d7b1cf548d31f60ae783138e5fd42013f6271049d7df7afadef96c" dependencies = [ - "cesu8", - "combine", - "jni-sys", - "log", - "thiserror", - "walkdir", + "cesu8", + "combine", + "jni-sys", + "log", + "thiserror", + "walkdir", ] [[package]] @@ -1505,7 +1505,7 @@ version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" dependencies = [ - "wasm-bindgen", + "wasm-bindgen", ] [[package]] @@ -1514,9 +1514,9 @@ version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec9ad60d674508f3ca8f380a928cfe7b096bc729c4e2dbfe3852bc45da3ab30b" dependencies = [ - "serde", - "serde_json", - "thiserror", + "serde", + "serde_json", + "thiserror", ] [[package]] @@ -1525,11 +1525,11 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f29e4755b7b995046f510a7520c42b2fed58b77bd94d5a87a8eb43d2fd126da8" dependencies = [ - "cssparser", - "html5ever", - "indexmap 1.9.3", - "matches", - "selectors", + "cssparser", + "html5ever", + "indexmap 1.9.3", + "matches", + "selectors", ] [[package]] @@ -1550,8 +1550,8 @@ version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d" dependencies = [ - "bitflags 2.5.0", - "libc", + "bitflags 2.5.0", + "libc", ] [[package]] @@ -1578,8 +1578,8 @@ version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" dependencies = [ - "autocfg", - "scopeguard", + "autocfg", + "scopeguard", ] [[package]] @@ -1594,13 +1594,13 @@ version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ff50ecb28bb86013e935fb6683ab1f6d3a20016f123c76fd4c27470076ac30f5" dependencies = [ - "cfg-if", - "generator", - "scoped-tls", - "serde", - "serde_json", - "tracing", - "tracing-subscriber", + "cfg-if", + "generator", + "scoped-tls", + "serde", + "serde_json", + "tracing", + "tracing-subscriber", ] [[package]] @@ -1615,7 +1615,7 @@ version = "0.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" dependencies = [ - "libc", + "libc", ] [[package]] @@ -1624,12 +1624,12 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a2629bb1404f3d34c2e921f21fd34ba00b206124c81f65c50b43b6aaefeb016" dependencies = [ - "log", - "phf 0.10.1", - "phf_codegen 0.10.0", - "string_cache", - "string_cache_codegen", - "tendril", + "log", + "phf 0.10.1", + "phf_codegen 0.10.0", + "string_cache", + "string_cache_codegen", + "tendril", ] [[package]] @@ -1638,7 +1638,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8263075bb86c5a1b1427b5ae862e8889656f126e9f77c484496e8b47cf5c5558" dependencies = [ - "regex-automata 0.1.10", + "regex-automata 0.1.10", ] [[package]] @@ -1659,7 +1659,7 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" dependencies = [ - "autocfg", + "autocfg", ] [[package]] @@ -1668,8 +1668,8 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8a240ddb74feaf34a79a7add65a741f3167852fba007066dcac1ca548d89c08" dependencies = [ - "adler", - "simd-adler32", + "adler", + "simd-adler32", ] [[package]] @@ -1678,11 +1678,11 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2032c77e030ddee34a6787a64166008da93f6a352b629261d0fee232b8742dd4" dependencies = [ - "bitflags 1.3.2", - "jni-sys", - "ndk-sys", - "num_enum", - "thiserror", + "bitflags 1.3.2", + "jni-sys", + "ndk-sys", + "num_enum", + "thiserror", ] [[package]] @@ -1697,7 +1697,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e5a6ae77c8ee183dcbbba6150e2e6b9f3f4196a7666c02a715a95692ec1fa97" dependencies = [ - "jni-sys", + "jni-sys", ] [[package]] @@ -1718,8 +1718,8 @@ version = "0.46.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77a8165726e8236064dbb45459242600304b42a5ea24ee2948e18e023bf7ba84" dependencies = [ - "overload", - "winapi", + "overload", + "winapi", ] [[package]] @@ -1734,7 +1734,7 @@ version = "0.2.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" dependencies = [ - "autocfg", + "autocfg", ] [[package]] @@ -1743,8 +1743,8 @@ version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi", - "libc", + "hermit-abi", + "libc", ] [[package]] @@ -1753,7 +1753,7 @@ version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9" dependencies = [ - "num_enum_derive", + "num_enum_derive", ] [[package]] @@ -1762,10 +1762,10 @@ version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799" dependencies = [ - "proc-macro-crate", - "proc-macro2", - "quote", - "syn 1.0.109", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] @@ -1774,8 +1774,8 @@ version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" dependencies = [ - "malloc_buf", - "objc_exception", + "malloc_buf", + "objc_exception", ] [[package]] @@ -1784,7 +1784,7 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4" dependencies = [ - "cc", + "cc", ] [[package]] @@ -1793,7 +1793,7 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b" dependencies = [ - "objc", + "objc", ] [[package]] @@ -1802,7 +1802,7 @@ version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "576dfe1fc8f9df304abb159d767a29d0476f7750fbf8aa7ad07816004a207434" dependencies = [ - "memchr", + "memchr", ] [[package]] @@ -1817,8 +1817,8 @@ version = "3.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2078c0039e6a54a0c42c28faa984e115fb4c2d5bf2208f77d1961002df8576f8" dependencies = [ - "pathdiff", - "windows-sys 0.42.0", + "pathdiff", + "windows-sys 0.42.0", ] [[package]] @@ -1833,11 +1833,11 @@ version = "0.15.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22e4045548659aee5313bde6c582b0d83a627b7904dd20dc2d9ef0895d414e4f" dependencies = [ - "bitflags 1.3.2", - "glib", - "libc", - "once_cell", - "pango-sys", + "bitflags 1.3.2", + "glib", + "libc", + "once_cell", + "pango-sys", ] [[package]] @@ -1846,10 +1846,10 @@ version = "0.15.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d2a00081cde4661982ed91d80ef437c20eacaf6aa1a5962c0279ae194662c3aa" dependencies = [ - "glib-sys", - "gobject-sys", - "libc", - "system-deps 6.2.2", + "glib-sys", + "gobject-sys", + "libc", + "system-deps 6.2.2", ] [[package]] @@ -1858,8 +1858,8 @@ version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1bf18183cf54e8d6059647fc3063646a1801cf30896933ec2311622cc4b9a27" dependencies = [ - "lock_api", - "parking_lot_core", + "lock_api", + "parking_lot_core", ] [[package]] @@ -1868,11 +1868,11 @@ version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e401f977ab385c9e4e3ab30627d6f26d00e2c73eef317493c4ec6d468726cf8" dependencies = [ - "cfg-if", - "libc", - "redox_syscall 0.5.2", - "smallvec", - "windows-targets 0.52.5", + "cfg-if", + "libc", + "redox_syscall 0.5.2", + "smallvec", + "windows-targets 0.52.5", ] [[package]] @@ -1893,9 +1893,9 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" dependencies = [ - "phf_macros 0.8.0", - "phf_shared 0.8.0", - "proc-macro-hack", + "phf_macros 0.8.0", + "phf_shared 0.8.0", + "proc-macro-hack", ] [[package]] @@ -1904,7 +1904,7 @@ version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" dependencies = [ - "phf_shared 0.10.0", + "phf_shared 0.10.0", ] [[package]] @@ -1913,8 +1913,8 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc" dependencies = [ - "phf_macros 0.11.2", - "phf_shared 0.11.2", + "phf_macros 0.11.2", + "phf_shared 0.11.2", ] [[package]] @@ -1923,8 +1923,8 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cbffee61585b0411840d3ece935cce9cb6321f01c45477d30066498cd5e1a815" dependencies = [ - "phf_generator 0.8.0", - "phf_shared 0.8.0", + "phf_generator 0.8.0", + "phf_shared 0.8.0", ] [[package]] @@ -1933,8 +1933,8 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fb1c3a8bc4dd4e5cfce29b44ffc14bedd2ee294559a294e2a4d4c9e9a6a13cd" dependencies = [ - "phf_generator 0.10.0", - "phf_shared 0.10.0", + "phf_generator 0.10.0", + "phf_shared 0.10.0", ] [[package]] @@ -1943,8 +1943,8 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17367f0cc86f2d25802b2c26ee58a7b23faeccf78a396094c13dced0d0182526" dependencies = [ - "phf_shared 0.8.0", - "rand 0.7.3", + "phf_shared 0.8.0", + "rand 0.7.3", ] [[package]] @@ -1953,8 +1953,8 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5d5285893bb5eb82e6aaf5d59ee909a06a16737a8970984dd7746ba9283498d6" dependencies = [ - "phf_shared 0.10.0", - "rand 0.8.5", + "phf_shared 0.10.0", + "rand 0.8.5", ] [[package]] @@ -1963,8 +1963,8 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0" dependencies = [ - "phf_shared 0.11.2", - "rand 0.8.5", + "phf_shared 0.11.2", + "rand 0.8.5", ] [[package]] @@ -1973,12 +1973,12 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f6fde18ff429ffc8fe78e2bf7f8b7a5a5a6e2a8b58bc5a9ac69198bbda9189c" dependencies = [ - "phf_generator 0.8.0", - "phf_shared 0.8.0", - "proc-macro-hack", - "proc-macro2", - "quote", - "syn 1.0.109", + "phf_generator 0.8.0", + "phf_shared 0.8.0", + "proc-macro-hack", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] @@ -1987,11 +1987,11 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b" dependencies = [ - "phf_generator 0.11.2", - "phf_shared 0.11.2", - "proc-macro2", - "quote", - "syn 2.0.66", + "phf_generator 0.11.2", + "phf_shared 0.11.2", + "proc-macro2", + "quote", + "syn 2.0.66", ] [[package]] @@ -2000,7 +2000,7 @@ version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" dependencies = [ - "siphasher", + "siphasher", ] [[package]] @@ -2009,7 +2009,7 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" dependencies = [ - "siphasher", + "siphasher", ] [[package]] @@ -2018,7 +2018,7 @@ version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b" dependencies = [ - "siphasher", + "siphasher", ] [[package]] @@ -2045,12 +2045,12 @@ version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9d34169e64b3c7a80c8621a48adaf44e0cf62c78a9b25dd9dd35f1881a17cf9" dependencies = [ - "base64 0.21.7", - "indexmap 2.2.6", - "line-wrap", - "quick-xml", - "serde", - "time", + "base64 0.21.7", + "indexmap 2.2.6", + "line-wrap", + "quick-xml", + "serde", + "time", ] [[package]] @@ -2059,11 +2059,11 @@ version = "0.17.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "06e4b0d3d1312775e782c86c91a111aa1f910cbb65e1337f9975b5f9a554b5e1" dependencies = [ - "bitflags 1.3.2", - "crc32fast", - "fdeflate", - "flate2", - "miniz_oxide", + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", ] [[package]] @@ -2090,8 +2090,8 @@ version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" dependencies = [ - "once_cell", - "toml_edit 0.19.15", + "once_cell", + "toml_edit 0.19.15", ] [[package]] @@ -2100,11 +2100,11 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c" dependencies = [ - "proc-macro-error-attr", - "proc-macro2", - "quote", - "syn 1.0.109", - "version_check", + "proc-macro-error-attr", + "proc-macro2", + "quote", + "syn 1.0.109", + "version_check", ] [[package]] @@ -2113,9 +2113,9 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ - "proc-macro2", - "quote", - "version_check", + "proc-macro2", + "quote", + "version_check", ] [[package]] @@ -2130,7 +2130,7 @@ version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "22244ce15aa966053a896d1accb3a6e68469b97c7f33f284b99f0d576879fc23" dependencies = [ - "unicode-ident", + "unicode-ident", ] [[package]] @@ -2139,7 +2139,7 @@ version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33" dependencies = [ - "memchr", + "memchr", ] [[package]] @@ -2148,7 +2148,7 @@ version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ - "proc-macro2", + "proc-macro2", ] [[package]] @@ -2157,12 +2157,12 @@ version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" dependencies = [ - "getrandom 0.1.16", - "libc", - "rand_chacha 0.2.2", - "rand_core 0.5.1", - "rand_hc", - "rand_pcg", + "getrandom 0.1.16", + "libc", + "rand_chacha 0.2.2", + "rand_core 0.5.1", + "rand_hc", + "rand_pcg", ] [[package]] @@ -2171,9 +2171,9 @@ version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ - "libc", - "rand_chacha 0.3.1", - "rand_core 0.6.4", + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", ] [[package]] @@ -2182,8 +2182,8 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" dependencies = [ - "ppv-lite86", - "rand_core 0.5.1", + "ppv-lite86", + "rand_core 0.5.1", ] [[package]] @@ -2192,8 +2192,8 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ - "ppv-lite86", - "rand_core 0.6.4", + "ppv-lite86", + "rand_core 0.6.4", ] [[package]] @@ -2202,7 +2202,7 @@ version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" dependencies = [ - "getrandom 0.1.16", + "getrandom 0.1.16", ] [[package]] @@ -2211,7 +2211,7 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.15", + "getrandom 0.2.15", ] [[package]] @@ -2220,7 +2220,7 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" dependencies = [ - "rand_core 0.5.1", + "rand_core 0.5.1", ] [[package]] @@ -2229,7 +2229,7 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" dependencies = [ - "rand_core 0.5.1", + "rand_core 0.5.1", ] [[package]] @@ -2244,7 +2244,7 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" dependencies = [ - "bitflags 1.3.2", + "bitflags 1.3.2", ] [[package]] @@ -2253,7 +2253,7 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c82cf8cff14456045f55ec4241383baeff27af886adb72ffb2162f99911de0fd" dependencies = [ - "bitflags 2.5.0", + "bitflags 2.5.0", ] [[package]] @@ -2262,9 +2262,9 @@ version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bd283d9651eeda4b2a83a43c1c91b266c40fd76ecd39a50a8c630ae69dc72891" dependencies = [ - "getrandom 0.2.15", - "libredox", - "thiserror", + "getrandom 0.2.15", + "libredox", + "thiserror", ] [[package]] @@ -2273,10 +2273,10 @@ version = "1.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" dependencies = [ - "aho-corasick", - "memchr", - "regex-automata 0.4.7", - "regex-syntax 0.8.4", + "aho-corasick", + "memchr", + "regex-automata 0.4.7", + "regex-syntax 0.8.4", ] [[package]] @@ -2285,7 +2285,7 @@ version = "0.1.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c230d73fb8d8c1b9c0b3135c5142a8acee3a0558fb8db5cf1cb65f8d7862132" dependencies = [ - "regex-syntax 0.6.29", + "regex-syntax 0.6.29", ] [[package]] @@ -2294,9 +2294,9 @@ version = "0.4.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" dependencies = [ - "aho-corasick", - "memchr", - "regex-syntax 0.8.4", + "aho-corasick", + "memchr", + "regex-syntax 0.8.4", ] [[package]] @@ -2323,7 +2323,7 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" dependencies = [ - "semver", + "semver", ] [[package]] @@ -2332,11 +2332,11 @@ version = "0.38.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" dependencies = [ - "bitflags 2.5.0", - "errno", - "libc", - "linux-raw-sys", - "windows-sys 0.52.0", + "bitflags 2.5.0", + "errno", + "libc", + "linux-raw-sys", + "windows-sys 0.52.0", ] [[package]] @@ -2357,7 +2357,7 @@ version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" dependencies = [ - "winapi-util", + "winapi-util", ] [[package]] @@ -2378,18 +2378,18 @@ version = "0.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "df320f1889ac4ba6bc0cdc9c9af7af4bd64bb927bccdf32d81140dc1f9be12fe" dependencies = [ - "bitflags 1.3.2", - "cssparser", - "derive_more", - "fxhash", - "log", - "matches", - "phf 0.8.0", - "phf_codegen 0.8.0", - "precomputed-hash", - "servo_arc", - "smallvec", - "thin-slice", + "bitflags 1.3.2", + "cssparser", + "derive_more", + "fxhash", + "log", + "matches", + "phf 0.8.0", + "phf_codegen 0.8.0", + "precomputed-hash", + "servo_arc", + "smallvec", + "thin-slice", ] [[package]] @@ -2398,7 +2398,7 @@ version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" dependencies = [ - "serde", + "serde", ] [[package]] @@ -2407,7 +2407,7 @@ version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7253ab4de971e72fb7be983802300c30b5a7f0c2e56fab8abfc6a214307c0094" dependencies = [ - "serde_derive", + "serde_derive", ] [[package]] @@ -2416,9 +2416,9 @@ version = "1.0.203" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "500cbc0ebeb6f46627f50f3f5811ccf6bf00643be300b4c3eabc0ef55dc5b5ba" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", + "proc-macro2", + "quote", + "syn 2.0.66", ] [[package]] @@ -2427,10 +2427,10 @@ version = "1.0.117" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "455182ea6142b14f93f4bc5320a2b31c1f266b66a4a5c858b013302a5d8cbfc3" dependencies = [ - "indexmap 2.2.6", - "itoa 1.0.11", - "ryu", - "serde", + "indexmap 2.2.6", + "itoa 1.0.11", + "ryu", + "serde", ] [[package]] @@ -2439,9 +2439,9 @@ version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", + "proc-macro2", + "quote", + "syn 2.0.66", ] [[package]] @@ -2450,7 +2450,7 @@ version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "79e674e01f999af37c49f70a6ede167a8a60b2503e56c5599532a65baa5969a0" dependencies = [ - "serde", + "serde", ] [[package]] @@ -2459,16 +2459,16 @@ version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ad483d2ab0149d5a5ebcd9972a3852711e0153d863bf5a5d0391d28883c4a20" dependencies = [ - "base64 0.22.1", - "chrono", - "hex", - "indexmap 1.9.3", - "indexmap 2.2.6", - "serde", - "serde_derive", - "serde_json", - "serde_with_macros", - "time", + "base64 0.22.1", + "chrono", + "hex", + "indexmap 1.9.3", + "indexmap 2.2.6", + "serde", + "serde_derive", + "serde_json", + "serde_with_macros", + "time", ] [[package]] @@ -2477,10 +2477,10 @@ version = "3.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "65569b702f41443e8bc8bbb1c5779bd0450bbe723b56198980e80ec45780bce2" dependencies = [ - "darling", - "proc-macro2", - "quote", - "syn 2.0.66", + "darling", + "proc-macro2", + "quote", + "syn 2.0.66", ] [[package]] @@ -2489,9 +2489,9 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c9823f2d3b6a81d98228151fdeaf848206a7855a7a042bbf9bf870449a66cafb" dependencies = [ - "serde", - "serde_json", - "serialize-to-javascript-impl", + "serde", + "serde_json", + "serialize-to-javascript-impl", ] [[package]] @@ -2500,9 +2500,9 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "74064874e9f6a15f04c1f3cb627902d0e6b410abbf36668afa873c61889f1763" dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] @@ -2511,8 +2511,8 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d98238b800e0d1576d8b6e3de32827c2d74bee68bb97748dcf5071fb53965432" dependencies = [ - "nodrop", - "stable_deref_trait", + "nodrop", + "stable_deref_trait", ] [[package]] @@ -2521,9 +2521,9 @@ version = "0.10.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "793db75ad2bcafc3ffa7c68b215fee268f537982cd901d132f89c6343f3a3dc8" dependencies = [ - "cfg-if", - "cpufeatures", - "digest", + "cfg-if", + "cpufeatures", + "digest", ] [[package]] @@ -2532,7 +2532,7 @@ version = "0.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" dependencies = [ - "lazy_static", + "lazy_static", ] [[package]] @@ -2553,7 +2553,7 @@ version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" dependencies = [ - "autocfg", + "autocfg", ] [[package]] @@ -2568,12 +2568,12 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2b4d76501d8ba387cf0fefbe055c3e0a59891d09f0f995ae4e4b16f6b60f3c0" dependencies = [ - "bitflags 1.3.2", - "gio", - "glib", - "libc", - "once_cell", - "soup2-sys", + "bitflags 1.3.2", + "gio", + "glib", + "libc", + "once_cell", + "soup2-sys", ] [[package]] @@ -2582,12 +2582,12 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "009ef427103fcb17f802871647a7fa6c60cbb654b4c4e4c0ac60a31c5f6dc9cf" dependencies = [ - "bitflags 1.3.2", - "gio-sys", - "glib-sys", - "gobject-sys", - "libc", - "system-deps 5.0.0", + "bitflags 1.3.2", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps 5.0.0", ] [[package]] @@ -2602,7 +2602,7 @@ version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dbe866e1e51e8260c9eed836a042a5e7f6726bb2b411dffeaa712e19c388f23b" dependencies = [ - "loom", + "loom", ] [[package]] @@ -2611,12 +2611,12 @@ version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f91138e76242f575eb1d3b38b4f1362f10d3a43f47d182a5b359af488a02293b" dependencies = [ - "new_debug_unreachable", - "once_cell", - "parking_lot", - "phf_shared 0.10.0", - "precomputed-hash", - "serde", + "new_debug_unreachable", + "once_cell", + "parking_lot", + "phf_shared 0.10.0", + "precomputed-hash", + "serde", ] [[package]] @@ -2625,10 +2625,10 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6bb30289b722be4ff74a408c3cc27edeaad656e06cb1fe8fa9231fa59c728988" dependencies = [ - "phf_generator 0.10.0", - "phf_shared 0.10.0", - "proc-macro2", - "quote", + "phf_generator 0.10.0", + "phf_shared 0.10.0", + "proc-macro2", + "quote", ] [[package]] @@ -2643,9 +2643,9 @@ version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", + "proc-macro2", + "quote", + "unicode-ident", ] [[package]] @@ -2654,9 +2654,9 @@ version = "2.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", + "proc-macro2", + "quote", + "unicode-ident", ] [[package]] @@ -2665,9 +2665,9 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", + "proc-macro2", + "quote", + "syn 2.0.66", ] [[package]] @@ -2676,11 +2676,11 @@ version = "5.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "18db855554db7bd0e73e06cf7ba3df39f97812cb11d3f75e71c39bf45171797e" dependencies = [ - "cfg-expr 0.9.1", - "heck 0.3.3", - "pkg-config", - "toml 0.5.11", - "version-compare 0.0.11", + "cfg-expr 0.9.1", + "heck 0.3.3", + "pkg-config", + "toml 0.5.11", + "version-compare 0.0.11", ] [[package]] @@ -2689,11 +2689,11 @@ version = "6.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" dependencies = [ - "cfg-expr 0.15.8", - "heck 0.5.0", - "pkg-config", - "toml 0.8.14", - "version-compare 0.2.0", + "cfg-expr 0.15.8", + "heck 0.5.0", + "pkg-config", + "toml 0.8.14", + "version-compare 0.2.0", ] [[package]] @@ -2702,45 +2702,45 @@ version = "0.16.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "575c856fc21e551074869dcfaad8f706412bd5b803dfa0fbf6881c4ff4bfafab" dependencies = [ - "bitflags 1.3.2", - "cairo-rs", - "cc", - "cocoa", - "core-foundation", - "core-graphics", - "crossbeam-channel", - "dispatch", - "gdk", - "gdk-pixbuf", - "gdk-sys", - "gdkwayland-sys", - "gdkx11-sys", - "gio", - "glib", - "glib-sys", - "gtk", - "image", - "instant", - "jni", - "lazy_static", - "libc", - "log", - "ndk", - "ndk-context", - "ndk-sys", - "objc", - "once_cell", - "parking_lot", - "png", - "raw-window-handle", - "scopeguard", - "serde", - "tao-macros", - "unicode-segmentation", - "uuid", - "windows 0.39.0", - "windows-implement", - "x11-dl", + "bitflags 1.3.2", + "cairo-rs", + "cc", + "cocoa", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dispatch", + "gdk", + "gdk-pixbuf", + "gdk-sys", + "gdkwayland-sys", + "gdkx11-sys", + "gio", + "glib", + "glib-sys", + "gtk", + "image", + "instant", + "jni", + "lazy_static", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "objc", + "once_cell", + "parking_lot", + "png", + "raw-window-handle", + "scopeguard", + "serde", + "tao-macros", + "unicode-segmentation", + "uuid", + "windows 0.39.0", + "windows-implement", + "x11-dl", ] [[package]] @@ -2749,9 +2749,9 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec114582505d158b669b136e6851f85840c109819d77c42bb7c0709f727d18c2" dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] @@ -2760,9 +2760,9 @@ version = "0.4.41" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cb797dad5fb5b76fcf519e702f4a589483b5ef06567f160c392832c1f5e44909" dependencies = [ - "filetime", - "libc", - "xattr", + "filetime", + "libc", + "xattr", ] [[package]] @@ -2777,47 +2777,47 @@ version = "1.6.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "77567d2b3b74de4588d544147142d02297f3eaa171a25a065252141d8597a516" dependencies = [ - "anyhow", - "cocoa", - "dirs-next", - "dunce", - "embed_plist", - "encoding_rs", - "flate2", - "futures-util", - "getrandom 0.2.15", - "glib", - "glob", - "gtk", - "heck 0.5.0", - "http", - "ignore", - "objc", - "once_cell", - "open", - "percent-encoding", - "rand 0.8.5", - "raw-window-handle", - "regex", - "semver", - "serde", - "serde_json", - "serde_repr", - "serialize-to-javascript", - "state", - "tar", - "tauri-macros", - "tauri-runtime", - "tauri-runtime-wry", - "tauri-utils", - "tempfile", - "thiserror", - "tokio", - "url", - "uuid", - "webkit2gtk", - "webview2-com", - "windows 0.39.0", + "anyhow", + "cocoa", + "dirs-next", + "dunce", + "embed_plist", + "encoding_rs", + "flate2", + "futures-util", + "getrandom 0.2.15", + "glib", + "glob", + "gtk", + "heck 0.5.0", + "http", + "ignore", + "objc", + "once_cell", + "open", + "percent-encoding", + "rand 0.8.5", + "raw-window-handle", + "regex", + "semver", + "serde", + "serde_json", + "serde_repr", + "serialize-to-javascript", + "state", + "tar", + "tauri-macros", + "tauri-runtime", + "tauri-runtime-wry", + "tauri-utils", + "tempfile", + "thiserror", + "tokio", + "url", + "uuid", + "webkit2gtk", + "webview2-com", + "windows 0.39.0", ] [[package]] @@ -2826,17 +2826,17 @@ version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab30cba12974d0f9b09794f61e72cad6da2142d3ceb81e519321bab86ce53312" dependencies = [ - "anyhow", - "cargo_toml", - "dirs-next", - "heck 0.5.0", - "json-patch", - "semver", - "serde", - "serde_json", - "tauri-utils", - "tauri-winres", - "walkdir", + "anyhow", + "cargo_toml", + "dirs-next", + "heck 0.5.0", + "json-patch", + "semver", + "serde", + "serde_json", + "tauri-utils", + "tauri-winres", + "walkdir", ] [[package]] @@ -2845,24 +2845,24 @@ version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3a1d90db526a8cdfd54444ad3f34d8d4d58fa5c536463915942393743bd06f8" dependencies = [ - "base64 0.21.7", - "brotli", - "ico", - "json-patch", - "plist", - "png", - "proc-macro2", - "quote", - "regex", - "semver", - "serde", - "serde_json", - "sha2", - "tauri-utils", - "thiserror", - "time", - "uuid", - "walkdir", + "base64 0.21.7", + "brotli", + "ico", + "json-patch", + "plist", + "png", + "proc-macro2", + "quote", + "regex", + "semver", + "serde", + "serde_json", + "sha2", + "tauri-utils", + "thiserror", + "time", + "uuid", + "walkdir", ] [[package]] @@ -2871,12 +2871,12 @@ version = "1.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a582d75414250122e4a597b9dd7d3c910a2c77906648fc2ac9353845ff0feec" dependencies = [ - "heck 0.5.0", - "proc-macro2", - "quote", - "syn 1.0.109", - "tauri-codegen", - "tauri-utils", + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 1.0.109", + "tauri-codegen", + "tauri-utils", ] [[package]] @@ -2885,19 +2885,19 @@ version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cd7ffddf36d450791018e63a3ddf54979b9581d9644c584a5fb5611e6b5f20b4" dependencies = [ - "gtk", - "http", - "http-range", - "rand 0.8.5", - "raw-window-handle", - "serde", - "serde_json", - "tauri-utils", - "thiserror", - "url", - "uuid", - "webview2-com", - "windows 0.39.0", + "gtk", + "http", + "http-range", + "rand 0.8.5", + "raw-window-handle", + "serde", + "serde_json", + "tauri-utils", + "thiserror", + "url", + "uuid", + "webview2-com", + "windows 0.39.0", ] [[package]] @@ -2906,18 +2906,18 @@ version = "0.14.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1989b3b4d611f5428b3414a4abae6fa6df30c7eb8ed33250ca90a5f7e5bb3655" dependencies = [ - "cocoa", - "gtk", - "percent-encoding", - "rand 0.8.5", - "raw-window-handle", - "tauri-runtime", - "tauri-utils", - "uuid", - "webkit2gtk", - "webview2-com", - "windows 0.39.0", - "wry", + "cocoa", + "gtk", + "percent-encoding", + "rand 0.8.5", + "raw-window-handle", + "tauri-runtime", + "tauri-utils", + "uuid", + "webkit2gtk", + "webview2-com", + "windows 0.39.0", + "wry", ] [[package]] @@ -2926,28 +2926,28 @@ version = "1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "450b17a7102e5d46d4bdabae0d1590fd27953e704e691fc081f06c06d2253b35" dependencies = [ - "brotli", - "ctor", - "dunce", - "glob", - "heck 0.5.0", - "html5ever", - "infer", - "json-patch", - "kuchikiki", - "log", - "memchr", - "phf 0.11.2", - "proc-macro2", - "quote", - "semver", - "serde", - "serde_json", - "serde_with", - "thiserror", - "url", - "walkdir", - "windows-version", + "brotli", + "ctor", + "dunce", + "glob", + "heck 0.5.0", + "html5ever", + "infer", + "json-patch", + "kuchikiki", + "log", + "memchr", + "phf 0.11.2", + "proc-macro2", + "quote", + "semver", + "serde", + "serde_json", + "serde_with", + "thiserror", + "url", + "walkdir", + "windows-version", ] [[package]] @@ -2956,8 +2956,8 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5993dc129e544393574288923d1ec447c857f3f644187f4fbf7d9a875fbfc4fb" dependencies = [ - "embed-resource", - "toml 0.7.8", + "embed-resource", + "toml 0.7.8", ] [[package]] @@ -2966,10 +2966,10 @@ version = "3.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "85b77fafb263dd9d05cbeac119526425676db3784113aa9295c88498cbf8bff1" dependencies = [ - "cfg-if", - "fastrand", - "rustix", - "windows-sys 0.52.0", + "cfg-if", + "fastrand", + "rustix", + "windows-sys 0.52.0", ] [[package]] @@ -2978,9 +2978,9 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0" dependencies = [ - "futf", - "mac", - "utf-8", + "futf", + "mac", + "utf-8", ] [[package]] @@ -2995,7 +2995,7 @@ version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709" dependencies = [ - "thiserror-impl", + "thiserror-impl", ] [[package]] @@ -3004,9 +3004,9 @@ version = "1.0.61" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", + "proc-macro2", + "quote", + "syn 2.0.66", ] [[package]] @@ -3015,8 +3015,8 @@ version = "1.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8b9ef9bad013ada3808854ceac7b46812a6465ba368859a37e2100283d2d719c" dependencies = [ - "cfg-if", - "once_cell", + "cfg-if", + "once_cell", ] [[package]] @@ -3025,13 +3025,13 @@ version = "0.3.36" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5dfd88e563464686c916c7e46e623e520ddc6d79fa6641390f2e3fa86e83e885" dependencies = [ - "deranged", - "itoa 1.0.11", - "num-conv", - "powerfmt", - "serde", - "time-core", - "time-macros", + "deranged", + "itoa 1.0.11", + "num-conv", + "powerfmt", + "serde", + "time-core", + "time-macros", ] [[package]] @@ -3046,8 +3046,8 @@ version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f252a68540fde3a3877aeea552b832b40ab9a69e318efd078774a01ddee1ccf" dependencies = [ - "num-conv", - "time-core", + "num-conv", + "time-core", ] [[package]] @@ -3056,8 +3056,8 @@ version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f" dependencies = [ - "displaydoc", - "zerovec", + "displaydoc", + "zerovec", ] [[package]] @@ -3066,10 +3066,10 @@ version = "1.38.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba4f4a02a7a80d6f274636f0aa95c7e383b912d41fe721a31f29e29698585a4a" dependencies = [ - "backtrace", - "bytes", - "num_cpus", - "pin-project-lite", + "backtrace", + "bytes", + "num_cpus", + "pin-project-lite", ] [[package]] @@ -3078,7 +3078,7 @@ version = "0.5.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234" dependencies = [ - "serde", + "serde", ] [[package]] @@ -3087,10 +3087,10 @@ version = "0.7.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dd79e69d3b627db300ff956027cc6c3798cef26d22526befdfcd12feeb6d2257" dependencies = [ - "serde", - "serde_spanned", - "toml_datetime", - "toml_edit 0.19.15", + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit 0.19.15", ] [[package]] @@ -3099,10 +3099,10 @@ version = "0.8.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f49eb2ab21d2f26bd6db7bf383edc527a7ebaee412d17af4d40fdccd442f335" dependencies = [ - "serde", - "serde_spanned", - "toml_datetime", - "toml_edit 0.22.14", + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit 0.22.14", ] [[package]] @@ -3111,7 +3111,7 @@ version = "0.6.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4badfd56924ae69bcc9039335b2e017639ce3f9b001c393c1b2d1ef846ce2cbf" dependencies = [ - "serde", + "serde", ] [[package]] @@ -3120,11 +3120,11 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.2.6", - "serde", - "serde_spanned", - "toml_datetime", - "winnow 0.5.40", + "indexmap 2.2.6", + "serde", + "serde_spanned", + "toml_datetime", + "winnow 0.5.40", ] [[package]] @@ -3133,11 +3133,11 @@ version = "0.22.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f21c7aaf97f1bd9ca9d4f9e73b0a6c74bd5afef56f2bc931943a6e1c37e04e38" dependencies = [ - "indexmap 2.2.6", - "serde", - "serde_spanned", - "toml_datetime", - "winnow 0.6.13", + "indexmap 2.2.6", + "serde", + "serde_spanned", + "toml_datetime", + "winnow 0.6.13", ] [[package]] @@ -3146,9 +3146,9 @@ version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "pin-project-lite", - "tracing-attributes", - "tracing-core", + "pin-project-lite", + "tracing-attributes", + "tracing-core", ] [[package]] @@ -3157,9 +3157,9 @@ version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", + "proc-macro2", + "quote", + "syn 2.0.66", ] [[package]] @@ -3168,8 +3168,8 @@ version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" dependencies = [ - "once_cell", - "valuable", + "once_cell", + "valuable", ] [[package]] @@ -3178,9 +3178,9 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" dependencies = [ - "log", - "once_cell", - "tracing-core", + "log", + "once_cell", + "tracing-core", ] [[package]] @@ -3189,16 +3189,16 @@ version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" dependencies = [ - "matchers", - "nu-ansi-term", - "once_cell", - "regex", - "sharded-slab", - "smallvec", - "thread_local", - "tracing", - "tracing-core", - "tracing-log", + "matchers", + "nu-ansi-term", + "once_cell", + "regex", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", ] [[package]] @@ -3225,10 +3225,10 @@ version = "2.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7c25da092f0a868cdf09e8674cd3b7ef3a7d92a24253e663a2fb85e2496de56" dependencies = [ - "form_urlencoded", - "idna", - "percent-encoding", - "serde", + "form_urlencoded", + "idna", + "percent-encoding", + "serde", ] [[package]] @@ -3255,7 +3255,7 @@ version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" dependencies = [ - "getrandom 0.2.15", + "getrandom 0.2.15", ] [[package]] @@ -3288,8 +3288,8 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b" dependencies = [ - "libc", - "vswhom-sys", + "libc", + "vswhom-sys", ] [[package]] @@ -3298,8 +3298,8 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d3b17ae1f6c8a2b28506cd96d412eebf83b4a0ff2cbefeeb952f2f9dfa44ba18" dependencies = [ - "cc", - "libc", + "cc", + "libc", ] [[package]] @@ -3308,8 +3308,8 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" dependencies = [ - "same-file", - "winapi-util", + "same-file", + "winapi-util", ] [[package]] @@ -3330,8 +3330,8 @@ version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ - "cfg-if", - "wasm-bindgen-macro", + "cfg-if", + "wasm-bindgen-macro", ] [[package]] @@ -3340,13 +3340,13 @@ version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" dependencies = [ - "bumpalo", - "log", - "once_cell", - "proc-macro2", - "quote", - "syn 2.0.66", - "wasm-bindgen-shared", + "bumpalo", + "log", + "once_cell", + "proc-macro2", + "quote", + "syn 2.0.66", + "wasm-bindgen-shared", ] [[package]] @@ -3355,8 +3355,8 @@ version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" dependencies = [ - "quote", - "wasm-bindgen-macro-support", + "quote", + "wasm-bindgen-macro-support", ] [[package]] @@ -3365,11 +3365,11 @@ version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", - "wasm-bindgen-backend", - "wasm-bindgen-shared", + "proc-macro2", + "quote", + "syn 2.0.66", + "wasm-bindgen-backend", + "wasm-bindgen-shared", ] [[package]] @@ -3384,22 +3384,22 @@ version = "0.18.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b8f859735e4a452aeb28c6c56a852967a8a76c8eb1cc32dbf931ad28a13d6370" dependencies = [ - "bitflags 1.3.2", - "cairo-rs", - "gdk", - "gdk-sys", - "gio", - "gio-sys", - "glib", - "glib-sys", - "gobject-sys", - "gtk", - "gtk-sys", - "javascriptcore-rs", - "libc", - "once_cell", - "soup2", - "webkit2gtk-sys", + "bitflags 1.3.2", + "cairo-rs", + "gdk", + "gdk-sys", + "gio", + "gio-sys", + "glib", + "glib-sys", + "gobject-sys", + "gtk", + "gtk-sys", + "javascriptcore-rs", + "libc", + "once_cell", + "soup2", + "webkit2gtk-sys", ] [[package]] @@ -3408,21 +3408,21 @@ version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d76ca6ecc47aeba01ec61e480139dda143796abcae6f83bcddf50d6b5b1dcf3" dependencies = [ - "atk-sys", - "bitflags 1.3.2", - "cairo-sys-rs", - "gdk-pixbuf-sys", - "gdk-sys", - "gio-sys", - "glib-sys", - "gobject-sys", - "gtk-sys", - "javascriptcore-rs-sys", - "libc", - "pango-sys", - "pkg-config", - "soup2-sys", - "system-deps 6.2.2", + "atk-sys", + "bitflags 1.3.2", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pango-sys", + "pkg-config", + "soup2-sys", + "system-deps 6.2.2", ] [[package]] @@ -3431,10 +3431,10 @@ version = "0.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4a769c9f1a64a8734bde70caafac2b96cada12cd4aefa49196b3a386b8b4178" dependencies = [ - "webview2-com-macros", - "webview2-com-sys", - "windows 0.39.0", - "windows-implement", + "webview2-com-macros", + "webview2-com-sys", + "windows 0.39.0", + "windows-implement", ] [[package]] @@ -3443,9 +3443,9 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eaebe196c01691db62e9e4ca52c5ef1e4fd837dcae27dae3ada599b5a8fd05ac" dependencies = [ - "proc-macro2", - "quote", - "syn 1.0.109", + "proc-macro2", + "quote", + "syn 1.0.109", ] [[package]] @@ -3454,13 +3454,13 @@ version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aac48ef20ddf657755fdcda8dfed2a7b4fc7e4581acce6fe9b88c3d64f29dee7" dependencies = [ - "regex", - "serde", - "serde_json", - "thiserror", - "windows 0.39.0", - "windows-bindgen", - "windows-metadata", + "regex", + "serde", + "serde_json", + "thiserror", + "windows 0.39.0", + "windows-bindgen", + "windows-metadata", ] [[package]] @@ -3469,8 +3469,8 @@ version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", ] [[package]] @@ -3485,7 +3485,7 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.52.0", ] [[package]] @@ -3500,12 +3500,12 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1c4bd0a50ac6020f65184721f758dba47bb9fbc2133df715ec74a237b26794a" dependencies = [ - "windows-implement", - "windows_aarch64_msvc 0.39.0", - "windows_i686_gnu 0.39.0", - "windows_i686_msvc 0.39.0", - "windows_x86_64_gnu 0.39.0", - "windows_x86_64_msvc 0.39.0", + "windows-implement", + "windows_aarch64_msvc 0.39.0", + "windows_i686_gnu 0.39.0", + "windows_i686_msvc 0.39.0", + "windows_x86_64_gnu 0.39.0", + "windows_x86_64_msvc 0.39.0", ] [[package]] @@ -3514,7 +3514,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f" dependencies = [ - "windows-targets 0.48.5", + "windows-targets 0.48.5", ] [[package]] @@ -3523,8 +3523,8 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68003dbd0e38abc0fb85b939240f4bce37c43a5981d3df37ccbaaa981b47cb41" dependencies = [ - "windows-metadata", - "windows-tokens", + "windows-metadata", + "windows-tokens", ] [[package]] @@ -3533,7 +3533,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" dependencies = [ - "windows-targets 0.52.5", + "windows-targets 0.52.5", ] [[package]] @@ -3542,8 +3542,8 @@ version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ba01f98f509cb5dc05f4e5fc95e535f78260f15fea8fe1a8abdd08f774f1cee7" dependencies = [ - "syn 1.0.109", - "windows-tokens", + "syn 1.0.109", + "windows-tokens", ] [[package]] @@ -3558,13 +3558,13 @@ version = "0.42.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" dependencies = [ - "windows_aarch64_gnullvm 0.42.2", - "windows_aarch64_msvc 0.42.2", - "windows_i686_gnu 0.42.2", - "windows_i686_msvc 0.42.2", - "windows_x86_64_gnu 0.42.2", - "windows_x86_64_gnullvm 0.42.2", - "windows_x86_64_msvc 0.42.2", + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] [[package]] @@ -3573,7 +3573,7 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets 0.48.5", + "windows-targets 0.48.5", ] [[package]] @@ -3582,7 +3582,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.5", + "windows-targets 0.52.5", ] [[package]] @@ -3591,13 +3591,13 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ - "windows_aarch64_gnullvm 0.48.5", - "windows_aarch64_msvc 0.48.5", - "windows_i686_gnu 0.48.5", - "windows_i686_msvc 0.48.5", - "windows_x86_64_gnu 0.48.5", - "windows_x86_64_gnullvm 0.48.5", - "windows_x86_64_msvc 0.48.5", + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", ] [[package]] @@ -3606,14 +3606,14 @@ version = "0.52.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6f0713a46559409d202e70e28227288446bf7841d3211583a4b53e3f6d96e7eb" dependencies = [ - "windows_aarch64_gnullvm 0.52.5", - "windows_aarch64_msvc 0.52.5", - "windows_i686_gnu 0.52.5", - "windows_i686_gnullvm", - "windows_i686_msvc 0.52.5", - "windows_x86_64_gnu 0.52.5", - "windows_x86_64_gnullvm 0.52.5", - "windows_x86_64_msvc 0.52.5", + "windows_aarch64_gnullvm 0.52.5", + "windows_aarch64_msvc 0.52.5", + "windows_i686_gnu 0.52.5", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.5", + "windows_x86_64_gnu 0.52.5", + "windows_x86_64_gnullvm 0.52.5", + "windows_x86_64_msvc 0.52.5", ] [[package]] @@ -3628,7 +3628,7 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6998aa457c9ba8ff2fb9f13e9d2a930dabcea28f1d0ab94d687d8b3654844515" dependencies = [ - "windows-targets 0.52.5", + "windows-targets 0.52.5", ] [[package]] @@ -3799,7 +3799,7 @@ version = "0.5.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" dependencies = [ - "memchr", + "memchr", ] [[package]] @@ -3808,7 +3808,7 @@ version = "0.6.13" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "59b5e5f6c299a3c7890b876a2a587f3115162487e704907d9b6cd29473052ba1" dependencies = [ - "memchr", + "memchr", ] [[package]] @@ -3817,8 +3817,8 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" dependencies = [ - "cfg-if", - "windows-sys 0.48.0", + "cfg-if", + "windows-sys 0.48.0", ] [[package]] @@ -3839,36 +3839,36 @@ version = "0.24.10" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "00711278ed357350d44c749c286786ecac644e044e4da410d466212152383b45" dependencies = [ - "base64 0.13.1", - "block", - "cocoa", - "core-graphics", - "crossbeam-channel", - "dunce", - "gdk", - "gio", - "glib", - "gtk", - "html5ever", - "http", - "kuchikiki", - "libc", - "log", - "objc", - "objc_id", - "once_cell", - "serde", - "serde_json", - "sha2", - "soup2", - "tao", - "thiserror", - "url", - "webkit2gtk", - "webkit2gtk-sys", - "webview2-com", - "windows 0.39.0", - "windows-implement", + "base64 0.13.1", + "block", + "cocoa", + "core-graphics", + "crossbeam-channel", + "dunce", + "gdk", + "gio", + "glib", + "gtk", + "html5ever", + "http", + "kuchikiki", + "libc", + "log", + "objc", + "objc_id", + "once_cell", + "serde", + "serde_json", + "sha2", + "soup2", + "tao", + "thiserror", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows 0.39.0", + "windows-implement", ] [[package]] @@ -3877,8 +3877,8 @@ version = "2.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" dependencies = [ - "libc", - "pkg-config", + "libc", + "pkg-config", ] [[package]] @@ -3887,9 +3887,9 @@ version = "2.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" dependencies = [ - "libc", - "once_cell", - "pkg-config", + "libc", + "once_cell", + "pkg-config", ] [[package]] @@ -3898,9 +3898,9 @@ version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8da84f1a25939b27f6820d92aed108f83ff920fdf11a7b19366c27c4cda81d4f" dependencies = [ - "libc", - "linux-raw-sys", - "rustix", + "libc", + "linux-raw-sys", + "rustix", ] [[package]] @@ -3909,10 +3909,10 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6c5b1314b079b0930c31e3af543d8ee1757b1951ae1e1565ec704403a7240ca5" dependencies = [ - "serde", - "stable_deref_trait", - "yoke-derive", - "zerofrom", + "serde", + "stable_deref_trait", + "yoke-derive", + "zerofrom", ] [[package]] @@ -3921,10 +3921,10 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28cc31741b18cb6f1d5ff12f5b7523e3d6eb0852bbbad19d73905511d9849b95" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", - "synstructure", + "proc-macro2", + "quote", + "syn 2.0.66", + "synstructure", ] [[package]] @@ -3933,7 +3933,7 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91ec111ce797d0e0784a1116d0ddcdbea84322cd79e5d5ad173daeba4f93ab55" dependencies = [ - "zerofrom-derive", + "zerofrom-derive", ] [[package]] @@ -3942,10 +3942,10 @@ version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ea7b4a3637ea8669cedf0f1fd5c286a17f3de97b8dd5a70a6c167a1730e63a5" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", - "synstructure", + "proc-macro2", + "quote", + "syn 2.0.66", + "synstructure", ] [[package]] @@ -3954,9 +3954,9 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bb2cc8827d6c0994478a15c53f374f46fbd41bea663d809b14744bc42e6b109c" dependencies = [ - "yoke", - "zerofrom", - "zerovec-derive", + "yoke", + "zerofrom", + "zerovec-derive", ] [[package]] @@ -3965,7 +3965,7 @@ version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97cf56601ee5052b4417d90c8755c6683473c926039908196cf35d99f893ebe7" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.66", + "proc-macro2", + "quote", + "syn 2.0.66", ] diff --git a/src-rust/toolkit-cli/src/config/config.rs b/src-rust/toolkit-cli/src/config/config.rs deleted file mode 100644 index 6c3602b..0000000 --- a/src-rust/toolkit-cli/src/config/config.rs +++ /dev/null @@ -1,57 +0,0 @@ -use std::io::{stdin, stdout, Write}; - -#[derive(serde::Serialize, serde::Deserialize)] -pub struct Config { - pub editor: String, -} - -impl Config { - pub fn new(editor: String) -> Self { - Self { - editor, - } - } -} - -pub fn get_config() -> Config { - let config_file = std::fs::File::open(".fosscope_toolkit/config.json").unwrap(); - let reader = std::io::BufReader::new(config_file); - let config: Result = serde_json::from_reader(reader); - match config { - Ok(config) => config, - Err(_) => { - eprintln!("Failed to read the configuration file."); - std::process::exit(1); - } - } -} - -pub fn initial_configuration_process() -> Result { - let dir_path = std::path::Path::new(".fosscope_toolkit"); - if !dir_path.exists() { - std::fs::create_dir_all(".fosscope_toolkit").unwrap(); - } - - let file_path = std::path::Path::new(".fosscope_toolkit/config.json"); - if !file_path.exists() { - let mut user_input = String::new(); - print!("Enter the terminal command that you use to open your text editor, \ - or enter nothing to not use any terminal text editor: "); - let _= stdout().flush(); - stdin().read_line(&mut user_input).unwrap_or(0); - let user_input = user_input.trim().to_string(); - let config = Config::new(user_input); - let config_json = serde_json::to_string(&config); - match config_json { - Ok(config_json) => { - let mut file = std::fs::File::create(".fosscope_toolkit/config.json").unwrap(); - file.write_all(config_json.as_bytes()).unwrap(); - Ok(config) - }, - Err(_) => Err("Failed to create the configuration file.".to_string()) - } - - } else { - Ok(get_config()) - } -} diff --git a/src-rust/toolkit-cli/src/config/github/mod.rs b/src-rust/toolkit-cli/src/config/github/mod.rs deleted file mode 100644 index 01f5373..0000000 --- a/src-rust/toolkit-cli/src/config/github/mod.rs +++ /dev/null @@ -1 +0,0 @@ -pub mod github_account; diff --git a/src-rust/toolkit-cli/src/config/mod.rs b/src-rust/toolkit-cli/src/config/mod.rs deleted file mode 100644 index 540c045..0000000 --- a/src-rust/toolkit-cli/src/config/mod.rs +++ /dev/null @@ -1,4 +0,0 @@ -pub mod github; -mod config; - -pub use config::*; \ No newline at end of file diff --git a/src-rust/toolkit-cli/src/main.rs b/src-rust/toolkit-cli/src/main.rs index 09fc8cf..9461e0b 100644 --- a/src-rust/toolkit-cli/src/main.rs +++ b/src-rust/toolkit-cli/src/main.rs @@ -1,23 +1,17 @@ use std::io::{stdin, stdout, Write}; + use fosscopetoolkit_core::{get_contributor_repo, set_contributor_repo}; -use fosscopetoolkit_core::apis::github_api::GitHubApi; -use fosscopetoolkit_core::models::github_repo::GitHubRepo; -use crate::config::github::github_account::GitHubAccount; -use crate::config::initial_configuration_process; -use crate::workflow::select::select; +use fosscopetoolkit_core::apis::GitHubApi; +use fosscopetoolkit_core::config::config::initial_configuration_process; +use fosscopetoolkit_core::config::github::GitHubAccount; +use fosscopetoolkit_core::models::GitHubRepo; mod workflow; -mod config; -/** - * The process of automatically creating a forked repository or using an existing forked repository. - * Returns true if a forked repository is created or an existing forked repository is used. - * Returns false if this process needs to be repeated. - */ async fn fork_creation_process(github: &GitHubApi, upstream_repo: &GitHubRepo) -> bool { print!("Do you want to use another fork or create a new fork? (y/n) "); let mut user_input = String::new(); - let _= stdout().flush(); + let _ = stdout().flush(); stdin().read_line(&mut user_input).unwrap_or(0); match user_input.to_lowercase().trim() { "y" | "yes" => { @@ -48,7 +42,7 @@ async fn fork_creation_process(github: &GitHubApi, upstream_repo: &GitHubRepo) - println!("The repo {} is a fork of the upstream repository.", fork_repo.get_full_name()); print!("Do you want to use this forked repository as the contributor repository? (y/n) "); let mut user_input = String::new(); - let _= stdout().flush(); + let _ = stdout().flush(); stdin().read_line(&mut user_input).unwrap_or(0); match user_input.to_lowercase().trim() { "y" | "yes" => { @@ -64,7 +58,7 @@ async fn fork_creation_process(github: &GitHubApi, upstream_repo: &GitHubRepo) - Err("Repository does not exist") => { // Create a new forked repository and use it as the contributor repository. let fork = github.create_fork( - fork_repo.clone(), upstream_repo.clone() + fork_repo.clone(), upstream_repo.clone(), ).await; match fork { Ok(fork) => { @@ -92,9 +86,6 @@ async fn fork_creation_process(github: &GitHubApi, upstream_repo: &GitHubRepo) - } } -/** - * Automatically fork the upstream repository or use another forked repository. - */ async fn create_fork(github: &GitHubApi, upstream_repo: GitHubRepo) { loop { let result = fork_creation_process(github, &upstream_repo).await; @@ -104,9 +95,6 @@ async fn create_fork(github: &GitHubApi, upstream_repo: GitHubRepo) { } } -/** - * Check if the user has a forked repository of the upstream repository. - */ async fn fork_check(github: &GitHubApi, upstream_repo: GitHubRepo) { let user_fork = github.get_user_fork(upstream_repo.clone()).await; match user_fork { @@ -115,7 +103,7 @@ async fn fork_check(github: &GitHubApi, upstream_repo: GitHubRepo) { println!("Your fork repo have the name: {}", fork.get_full_name()); print!("Do you want to use this forked repository as the contributor repository? (y/n) "); let mut user_input = String::new(); - let _= stdout().flush(); + let _ = stdout().flush(); stdin().read_line(&mut user_input).unwrap_or(0); match user_input.to_lowercase().trim() { "y" | "yes" => { @@ -162,12 +150,12 @@ async fn login() -> GitHubApi { let mut user_input = String::new(); user_input.clear(); print!("Please enter your GitHub username: "); - let _= stdout().flush(); + let _ = stdout().flush(); stdin().read_line(&mut user_input).unwrap_or(0); let username = user_input.trim().to_string(); user_input.clear(); print!("Please enter your GitHub personal access token: "); - let _= stdout().flush(); + let _ = stdout().flush(); stdin().read_line(&mut user_input).unwrap_or(0); let token = user_input.trim().to_string(); let github_account = GitHubAccount::new(username, token); @@ -202,7 +190,7 @@ async fn login() -> GitHubApi { #[tokio::main] async fn main() { - let _= initial_configuration_process(); + let _ = initial_configuration_process(); let github = login().await; @@ -260,7 +248,7 @@ async fn main() { match user_input.trim() { "1" => { valid_input = true; - select(&contributor_repo, &github).await; + workflow::translate::select::select(&contributor_repo, &github).await; } "2" | "3" | "4" => { eprintln!("Not implemented yet."); diff --git a/src-rust/toolkit-cli/src/workflow/mod.rs b/src-rust/toolkit-cli/src/workflow/mod.rs index 0c305a7..d6edf7c 100644 --- a/src-rust/toolkit-cli/src/workflow/mod.rs +++ b/src-rust/toolkit-cli/src/workflow/mod.rs @@ -1 +1 @@ -pub mod select; +pub mod translate; diff --git a/src-rust/toolkit-cli/src/workflow/translate/mod.rs b/src-rust/toolkit-cli/src/workflow/translate/mod.rs new file mode 100644 index 0000000..0c305a7 --- /dev/null +++ b/src-rust/toolkit-cli/src/workflow/translate/mod.rs @@ -0,0 +1 @@ +pub mod select; diff --git a/src-rust/toolkit-cli/src/workflow/select.rs b/src-rust/toolkit-cli/src/workflow/translate/select.rs similarity index 65% rename from src-rust/toolkit-cli/src/workflow/select.rs rename to src-rust/toolkit-cli/src/workflow/translate/select.rs index d141aad..4504ede 100644 --- a/src-rust/toolkit-cli/src/workflow/select.rs +++ b/src-rust/toolkit-cli/src/workflow/translate/select.rs @@ -1,20 +1,23 @@ use std::collections::HashMap; +use std::fs; use std::io::{stdin, stdout, Write}; -use fosscopetoolkit_core::apis::github_api::GitHubApi; -use fosscopetoolkit_core::models::github_repo::GitHubRepo; +use fosscopetoolkit_core::apis::GitHubApi; +use fosscopetoolkit_core::config::config::get_config; +use fosscopetoolkit_core::models::GitHubRepo; use fosscopetoolkit_core::models::repo_rule::get_repo_rule; use fosscopetoolkit_core::workflow::translate::select::select_article; -use crate::config::get_config; - -/** - * Workflow for selecting new articles to translate. - */ +/// Select an article to translate. +/// +/// # Arguments +/// - `contributor_repo`: The repository that the user is contributing to. +/// - `github`: A pointer to the GitHub API wrapper. pub async fn select( contributor_repo: &GitHubRepo, github: &GitHubApi, ) { + // Get the username of the currently signed in GitHub user. let user = github.get_user().await; let user = match user { Ok(user) => user, @@ -24,6 +27,7 @@ pub async fn select( } }; + // Fetch the Translation Project repository's rule. let repo_rule = get_repo_rule(contributor_repo, github).await; if repo_rule.is_err() { @@ -32,8 +36,10 @@ pub async fn select( } let repo_rule = repo_rule.unwrap(); + // Get the configuration from the configuration file. let config = get_config(); + // Ask the user to input the URL of the article they want to select. println!("欢迎参与开源观察翻译项目!"); print!("请输入要选题的文章的 URL:"); let _ = stdout().flush(); @@ -56,10 +62,12 @@ pub async fn select( let article_type = &article_types[article_type_index - 1]; println!("您选择的文章类型是:{}", article_type.description); + // Add information to the variables to be used in the Handlebars template rendering. let mut vars = HashMap::new(); - vars.insert("via", url); - vars.insert("selector", &user); + vars.insert("via", url); // The URL of the article + vars.insert("selector", &user); // The username of the currently signed in GitHub user (as the article selector) + // Get the article content in Markdown format, rendered using the data in the variables. let article = select_article(&repo_rule, article_type, &vars).await; if article.is_err() { eprintln!("Failed to select article: {:?}", article.err()); @@ -67,11 +75,13 @@ pub async fn select( } let article = article.unwrap(); - // TODO: Be able to allow the user to set the file name + // Write the article content to a file. + // TODO: Be able to change the file name according to the repository rule. let file_name = "article.md"; - std::fs::write(file_name, article).expect("无法写入文件"); + fs::write(file_name, article).expect("无法写入文件"); println!("已将 Markdown 内容写入文件:{}", file_name); + // Open the file in the user's text editor for them to edit the article if needed. let path_to_file = std::env::current_dir().unwrap().join(file_name); let editor = &config.editor; let _ = std::process::Command::new(editor) @@ -81,7 +91,9 @@ pub async fn select( // We would not be able to detect the program's exit status if it is // a program that only uses the terminal to launch the editor. // e.g. Visual Studio Code. - + // So the following message is displayed to the user to continue the process. println!("如果您已经完成了编辑,请输入任何内容以继续。"); let _ = stdin().read_line(&mut String::new()); + + // TODO: Follow up process like commiting the changes and creating a pull request. } diff --git a/src-rust/toolkit-core/src/apis/github_api.rs b/src-rust/toolkit-core/src/apis/github_api.rs index 329e694..a29afca 100644 --- a/src-rust/toolkit-core/src/apis/github_api.rs +++ b/src-rust/toolkit-core/src/apis/github_api.rs @@ -1,7 +1,8 @@ use octocrab::models::Repository; -use serde_json; use octocrab::Octocrab; -use crate::models::github_repo::GitHubRepo; +use serde_json; + +use crate::models::GitHubRepo; /// A wrapper around the GitHub API that provides a set of methods to interact with the GitHub API. /// @@ -21,19 +22,22 @@ impl GitHubApi { } } - /// Get the username (login) of the currently signed-in GitHub user. + /// Get the username (login) of the currently signed in GitHub user. /// /// # Returns /// - `Result`: The username of the currently signed-in GitHub user if successful, an error message otherwise. - pub async fn get_user(&self) -> Result{ + pub async fn get_user(&self) -> Result { + // Get the user information from the GitHub API. let user = self.octocrab.current().user().await; match user { + // If the user information is successfully retrieved, return the content of the `login` field (the username). Ok(user) => Ok(user.login), + // If the user information is not successfully retrieved, return an error message. Err(_) => { Err( "Failed to get the username of the currently signed in GitHub user. Could be due to an invalid token." ) - }, + } } } @@ -42,11 +46,15 @@ impl GitHubApi { /// # Returns /// - `bool`: `true` if the username of the currently signed in GitHub user matches the username provided to the GitHubApi, `false` otherwise. pub async fn verify_user(&self) -> bool { + // Get the username of the currently signed in GitHub user. let user = self.get_user().await; match user { + // If the username is successfully retrieved, compare it with the username provided to the GitHubApi. + // Return `true` if they match, `false` otherwise. Ok(user) => { user == self.username - }, + } + // If the username is not successfully retrieved, return `false` anyway. Err(_) => false, } } @@ -60,8 +68,10 @@ impl GitHubApi { /// # Returns /// - `Result<(), &str>`: `Ok(())` if the repository is a fork of the upstream repository, an error message indicating why the repository is not a fork otherwise. pub async fn validate_repo(&self, repo: GitHubRepo, upstream: GitHubRepo) -> Result<(), &str> { + // Get the repository information from the GitHub API. if let Ok(repo) = self.octocrab.repos(repo.owner, repo.name).get().await { if repo.fork.unwrap_or(false) { + // Check if the parent of the repository is the upstream repository by comparing the full names. if repo.parent.unwrap().full_name.unwrap() == upstream.get_full_name() { Ok(()) } else { @@ -81,15 +91,19 @@ impl GitHubApi { /// - `upstream`: The upstream repository to get the forks of. /// /// # Returns - /// - `Vec`: A list of [GitHubRepo](crate::models::GitHubRepo) representing the forks of the upstream repository. + /// - `Vec`: A list of [GitHubRepo](GitHubRepo) representing the forks of the upstream repository. pub async fn get_forks(&self, upstream: GitHubRepo) -> Vec { let mut forks = Vec::new(); let mut page: u32 = 1; + loop { + // Get the forks of the upstream repository from the GitHub API page by page. let response = self.octocrab.repos( upstream.owner.clone(), upstream.name.clone(), ).list_forks().page(page).per_page(100).send().await.unwrap(); + // This is to attempt to get the next page of forks, so it is possible to know if there's + // another page of forks to fetch. // Yes, this is a bit of a hacky way... // If you know a better way to do this, please let me know (or submit a PR)! // - Cubik @@ -105,8 +119,10 @@ impl GitHubApi { break; } + // Move to the next page. page += 1; } + forks } @@ -117,29 +133,34 @@ impl GitHubApi { /// /// # Returns /// - `Result` - /// - `Ok(GitHubRepo)`: A [GitHubRepo](crate::models::GitHubRepo) representing the user's fork of the upstream repository. + /// - `Ok(GitHubRepo)`: A [GitHubRepo](GitHubRepo) representing the user's fork of the upstream repository. /// - `Err(&str)`: An error message indicating why the method failed. pub async fn get_user_fork(&self, upstream: GitHubRepo) -> Result { + // Get all forks of the upstream repository. let forks = self.get_forks(upstream).await; + + // Find the fork that belongs to the currently signed in GitHub user. for fork in forks { if fork.owner == self.username { return Ok(fork); } } + Err("User has not forked the upstream repository.") } /// Create a fork of the upstream repository using the information given. /// /// # Arguments - /// - `repo`: A [GitHubRepo](crate::models::GitHubRepo) containing the information to use to create the fork. + /// - `repo`: A [GitHubRepo](GitHubRepo) containing the information to use to create the fork. /// - `upstream`: The upstream repository to fork. /// /// # Returns /// - `Result` - /// - `Ok(GitHubRepo)`: A [GitHubRepo](crate::models::GitHubRepo) representing the created fork. + /// - `Ok(GitHubRepo)`: A [GitHubRepo](GitHubRepo) representing the created fork. /// - `Err(&str)`: An error message indicating why the method failed. pub async fn create_fork(&self, repo: GitHubRepo, upstream: GitHubRepo) -> Result { + // Create a fork of the upstream repository using the information given. let response = self.octocrab._post( format!("/repos/{}/{}/forks", upstream.owner, upstream.name), Some(&serde_json::json!({ @@ -160,9 +181,10 @@ impl GitHubApi { let json_response = serde_json::from_str(&*response_body.unwrap()); match { json_response } { Ok(repo) => { + // Parse the response to get a GitHubRepo object and return it. let repo: Repository = repo; Ok(GitHubRepo::new(repo.owner.unwrap().login, repo.name)) - }, + } Err(_) => Err("Failed to parse fork response"), } } @@ -194,7 +216,7 @@ impl GitHubApi { Some(decoded_content) => Ok(decoded_content), None => Err("No file content found"), } - }, + } Err(_) => Err("Failed to get file content"), } } diff --git a/src-rust/toolkit-core/src/apis/mod.rs b/src-rust/toolkit-core/src/apis/mod.rs index 010b0ba..b024142 100644 --- a/src-rust/toolkit-core/src/apis/mod.rs +++ b/src-rust/toolkit-core/src/apis/mod.rs @@ -1 +1,3 @@ -pub mod github_api; +pub use github_api::GitHubApi; + +mod github_api; diff --git a/src-rust/toolkit-core/src/config/config.rs b/src-rust/toolkit-core/src/config/config.rs new file mode 100644 index 0000000..632fc22 --- /dev/null +++ b/src-rust/toolkit-core/src/config/config.rs @@ -0,0 +1,81 @@ +use std::fs; +use std::fs::File; +use std::io::{BufReader, stdin, stdout, Write}; +use std::path::Path; + +/// A structure representing all information in the configuration file. +/// +/// # Fields +/// - `editor`: The terminal command that the user uses to open their text editor. +#[derive(serde::Serialize, serde::Deserialize)] +pub struct Config { + pub editor: String, +} + +impl Config { + pub fn new(editor: String) -> Self { + Self { editor } + } +} + +/// Get the configuration from the configuration file. (`.fosscope_toolkit/config.json`) +pub fn get_config() -> Config { + let config_file = File::open(".fosscope_toolkit/config.json").unwrap(); + let reader = BufReader::new(config_file); + let config: Result = serde_json::from_reader(reader); + match config { + Ok(config) => config, + Err(_) => { + eprintln!("Failed to read the configuration file."); + std::process::exit(1); + } + } +} + +/// Initial Configuration Process +/// +/// Create the configuration file if it does not exist, or read the configuration file if it exists. +/// +/// # Returns +/// - `Result`: +/// - `Ok(Config)`: The newly created or existing configuration. +/// - `Err(String)`: An error message indicating why the process failed. +pub fn initial_configuration_process() -> Result { + let dir_path = Path::new(".fosscope_toolkit"); + if !dir_path.exists() { + fs::create_dir_all(".fosscope_toolkit").unwrap(); + } + + let file_path = Path::new(".fosscope_toolkit/config.json"); + + if !file_path.exists() { + // If the configuration file does not exist, create it. + let mut user_input = String::new(); + + // Ask the user to configure everything. + print!( + "Enter the terminal command that you use to open your text editor, \ + or enter nothing to not use any terminal text editor: " + ); + let _ = stdout().flush(); + stdin().read_line(&mut user_input).unwrap_or(0); + let user_input = user_input.trim().to_string(); + + // Create the new configuration. + let config = Config::new(user_input); + let config_json = serde_json::to_string(&config); + match config_json { + Ok(config_json) => { + // Write the configuration to the configuration file. + let mut file = File::create(".fosscope_toolkit/config.json").unwrap(); + file.write_all(config_json.as_bytes()).unwrap(); + // Return the newly created configuration. + Ok(config) + } + Err(_) => Err("Failed to create the configuration file.".to_string()), + } + } else { + // If the configuration file exists, read it and return the configuration. + Ok(get_config()) + } +} diff --git a/src-rust/toolkit-cli/src/config/github/github_account.rs b/src-rust/toolkit-core/src/config/github/github_account.rs similarity index 50% rename from src-rust/toolkit-cli/src/config/github/github_account.rs rename to src-rust/toolkit-core/src/config/github/github_account.rs index 2664a32..e38202d 100644 --- a/src-rust/toolkit-cli/src/config/github/github_account.rs +++ b/src-rust/toolkit-core/src/config/github/github_account.rs @@ -1,6 +1,12 @@ use octocrab::Octocrab; -use fosscopetoolkit_core::apis::github_api::GitHubApi; +use crate::apis::GitHubApi; + +/// A representation of the GitHub account that is used to interact with the GitHub API. +/// +/// # Fields +/// - `username`: The username of the GitHub account. +/// - `token`: The personal access token of the GitHub account. #[derive(serde::Serialize, serde::Deserialize)] pub struct GitHubAccount { pub username: String, @@ -15,23 +21,34 @@ impl GitHubAccount { } } + /// Login to the GitHub API using the personal access token. + /// + /// # Returns + /// - `Result`: + /// - `Ok(GitHubApi)`: The [`GitHubApi`](GitHubApi) wrapper if the login is successful. + /// - `Err(&str)`: An error message indicating the reason for the login failure. pub async fn login(&self) -> Result { + // Create an Octocrab client with the personal access token. let octocrab = Octocrab::builder().personal_token( self.token.clone() ).build(); match octocrab { Ok(octocrab) => { + // Create a GitHubApi wrapper with the username and the Octocrab client. let github = GitHubApi::new( self.username.clone(), - octocrab + octocrab, ); + // Verify the GitHub user. if !github.verify_user().await { Err("Failed to verify the GitHub user. Check your token.") } else { Ok(github) } - }, + } + + // If the Octocrab client cannot be created, return an error message. Err(_) => Err("Failed to login to GitHub. Check your token.") } } diff --git a/src-rust/toolkit-core/src/config/github/mod.rs b/src-rust/toolkit-core/src/config/github/mod.rs new file mode 100644 index 0000000..59b56e3 --- /dev/null +++ b/src-rust/toolkit-core/src/config/github/mod.rs @@ -0,0 +1,3 @@ +pub use github_account::GitHubAccount; + +mod github_account; diff --git a/src-rust/toolkit-core/src/config/mod.rs b/src-rust/toolkit-core/src/config/mod.rs new file mode 100644 index 0000000..52592b1 --- /dev/null +++ b/src-rust/toolkit-core/src/config/mod.rs @@ -0,0 +1,2 @@ +pub mod config; +pub mod github; diff --git a/src-rust/toolkit-core/src/lib.rs b/src-rust/toolkit-core/src/lib.rs index 46c36c7..1118139 100644 --- a/src-rust/toolkit-core/src/lib.rs +++ b/src-rust/toolkit-core/src/lib.rs @@ -1,9 +1,11 @@ use std::io::Write; -use crate::models::github_repo::GitHubRepo; + +use crate::models::GitHubRepo; pub mod apis; pub mod models; pub mod workflow; +pub mod config; /// Set the contributor repository of an upstream repository. /// The information of the contributor repository will be stored in a JSON file. diff --git a/src-rust/toolkit-core/src/models/action_command.rs b/src-rust/toolkit-core/src/models/action_command.rs index 5f98dde..10e2089 100644 --- a/src-rust/toolkit-core/src/models/action_command.rs +++ b/src-rust/toolkit-core/src/models/action_command.rs @@ -1,4 +1,7 @@ use std::collections::HashMap; +use std::fs; +use std::path::Path; + use handlebars::Handlebars; #[derive(PartialEq, Eq, Debug)] @@ -48,7 +51,7 @@ impl ActionCommand { let src = args.get(0).unwrap(); let dest = args.get(1).unwrap(); - let src_dir = std::path::Path::new(&src); + let src_dir = Path::new(&src); if src_dir.is_dir() { let r = copy_dir_all(src, dest); match r { @@ -56,12 +59,12 @@ impl ActionCommand { Err(_) => Err("Error copying directory"), } } else { - let dest_dir = std::path::Path::new(&dest); + let dest_dir = Path::new(&dest); if !dest_dir.exists() { - std::fs::create_dir_all(dest_dir.parent().unwrap()).unwrap(); + fs::create_dir_all(dest_dir.parent().unwrap()).unwrap(); } - std::fs::copy(src, dest).unwrap(); + fs::copy(src, dest).unwrap(); Ok(()) } } @@ -69,13 +72,13 @@ impl ActionCommand { "ECHO" => { let path = args.get(0).unwrap(); let content = args.get(1).unwrap(); - std::fs::write(path, content).unwrap(); + fs::write(path, content).unwrap(); Ok(()) } // Create a directory "MKDIR" => { let path = args.get(0).unwrap(); - std::fs::create_dir_all(path).unwrap(); + fs::create_dir_all(path).unwrap(); Ok(()) } // Move a file or a directory @@ -83,28 +86,28 @@ impl ActionCommand { let src = args.get(0).unwrap(); let dest = args.get(1).unwrap(); - let dest_dir = std::path::Path::new(dest); + let dest_dir = Path::new(dest); if !dest_dir.exists() { - std::fs::create_dir_all(dest_dir.parent().unwrap()).unwrap(); + fs::create_dir_all(dest_dir.parent().unwrap()).unwrap(); } - std::fs::rename(src, dest).unwrap(); + fs::rename(src, dest).unwrap(); Ok(()) } // Remove a file or a directory "RM" => { let path = args.get(0).unwrap(); - if std::fs::metadata(path).unwrap().is_dir() { - std::fs::remove_dir_all(path).unwrap(); + if fs::metadata(path).unwrap().is_dir() { + fs::remove_dir_all(path).unwrap(); } else { - std::fs::remove_file(path).unwrap(); + fs::remove_file(path).unwrap(); } Ok(()) } // Create a file "TOUCH" => { let path = args.get(0).unwrap(); - std::fs::File::create(path).unwrap(); + fs::File::create(path).unwrap(); Ok(()) } _ => Err("Unknown command"), @@ -112,15 +115,15 @@ impl ActionCommand { } } -fn copy_dir_all(src: impl AsRef, dst: impl AsRef) -> std::io::Result<()> { - std::fs::create_dir_all(&dst)?; - for entry in std::fs::read_dir(src)? { +fn copy_dir_all(src: impl AsRef, dst: impl AsRef) -> std::io::Result<()> { + fs::create_dir_all(&dst)?; + for entry in fs::read_dir(src)? { let entry = entry?; let ty = entry.file_type()?; if ty.is_dir() { copy_dir_all(entry.path(), dst.as_ref().join(entry.file_name()))?; } else { - std::fs::copy(entry.path(), dst.as_ref().join(entry.file_name()))?; + fs::copy(entry.path(), dst.as_ref().join(entry.file_name()))?; } } Ok(()) diff --git a/src-rust/toolkit-core/src/models/html_filter_rule.rs b/src-rust/toolkit-core/src/models/html_filter_rule.rs index 3514b21..27ab562 100644 --- a/src-rust/toolkit-core/src/models/html_filter_rule.rs +++ b/src-rust/toolkit-core/src/models/html_filter_rule.rs @@ -1,3 +1,8 @@ +/// A representation of the set of rules to filter the HTML content of a website. +/// +/// # Fields +/// - `tags`: The list of tags to filter out from the HTML content. +/// - `classes`: The list of classes to filter out from the HTML content. pub struct HTMLFilterRule<'a> { pub tags: Vec<&'a str>, pub classes: Vec<&'a str>, @@ -11,6 +16,10 @@ impl<'a> HTMLFilterRule<'a> { } } + /// Get the filter rule for the given URL. + /// + /// # Current Supported Websites: + /// - `itsfoss.com` (and its news subdomain `news.itsfoss.com`) pub fn get_filter_rule(url: &str) -> Self { match url { "itsfoss.com" | "news.itsfoss.com" => { diff --git a/src-rust/toolkit-core/src/models/mod.rs b/src-rust/toolkit-core/src/models/mod.rs index f81f065..9a4b5e2 100644 --- a/src-rust/toolkit-core/src/models/mod.rs +++ b/src-rust/toolkit-core/src/models/mod.rs @@ -1,4 +1,9 @@ -pub mod github_repo; +pub use action_command::ActionCommand; +pub use github_repo::GitHubRepo; +pub use html_filter_rule::HTMLFilterRule; +pub use repo_rule::RepoRule; + +mod github_repo; pub mod repo_rule; -pub mod html_filter_rule; -pub mod action_command; +mod html_filter_rule; +mod action_command; diff --git a/src-rust/toolkit-core/src/models/repo_rule.rs b/src-rust/toolkit-core/src/models/repo_rule.rs index fb816f8..6ca859d 100644 --- a/src-rust/toolkit-core/src/models/repo_rule.rs +++ b/src-rust/toolkit-core/src/models/repo_rule.rs @@ -1,6 +1,6 @@ -use crate::apis::github_api::GitHubApi; -use crate::models::action_command::ActionCommand; -use crate::models::github_repo::GitHubRepo; +use crate::apis::GitHubApi; +use crate::models::ActionCommand; +use crate::models::GitHubRepo; /// A representation of an article type in the FOSScope repository rule, which defines the types of articles that can be found in the repository. /// @@ -160,7 +160,7 @@ pub async fn get_repo_rule(repo: &GitHubRepo, api: &GitHubApi) -> Result { Err(format!( "Failed to get the repository rule file for repo {}/{}. Error: {}", diff --git a/src-rust/toolkit-core/src/workflow/translate/select.rs b/src-rust/toolkit-core/src/workflow/translate/select.rs index 2221f5f..f11483c 100644 --- a/src-rust/toolkit-core/src/workflow/translate/select.rs +++ b/src-rust/toolkit-core/src/workflow/translate/select.rs @@ -1,7 +1,10 @@ use std::collections::HashMap; + use handlebars::{Context, Handlebars, Helper, Output, RenderContext, RenderError}; -use crate::models::html_filter_rule::HTMLFilterRule; -use crate::models::repo_rule::{Article, RepoRule}; + +use crate::models::HTMLFilterRule; +use crate::models::repo_rule::Article; +use crate::models::RepoRule; pub async fn get_content(url: &str) -> Result { let website = url::Url::parse(url); @@ -24,7 +27,7 @@ pub async fn get_content(url: &str) -> Result { let filtered_html = libhtmlfilter::get_filtered_html_fullurl_removeref( url, &*html_filter_rule.tags, - &*html_filter_rule.classes + &*html_filter_rule.classes, ).await; Ok(html2md::parse_html(&filtered_html).trim().to_string()) @@ -33,7 +36,7 @@ pub async fn get_content(url: &str) -> Result { pub async fn select_article( repo_rule: &RepoRule, article_type: &Article, - vars: &HashMap<&str, &str> + vars: &HashMap<&str, &str>, ) -> Result { let mut local_vars = vars.clone(); @@ -61,19 +64,19 @@ pub async fn select_article( let mut handlebars = Handlebars::new(); handlebars.set_strict_mode(false); handlebars.register_helper( - "helperMissing", - Box::new( - |h: &Helper<'_>, - _: &Handlebars<'_>, - _: &Context, - _: &mut RenderContext<'_, '_>, - out: &mut dyn Output| - -> Result<(), RenderError> { - out.write(&format!("{{{{{}}}}}", h.name()))?; - Ok(()) - }, - ), - ); + "helperMissing", + Box::new( + |h: &Helper<'_>, + _: &Handlebars<'_>, + _: &Context, + _: &mut RenderContext<'_, '_>, + out: &mut dyn Output| + -> Result<(), RenderError> { + out.write(&format!("{{{{{}}}}}", h.name()))?; + Ok(()) + }, + ), + ); Ok( handlebars.render_template(&*article_template, &local_vars).unwrap() diff --git a/src-rust/toolkit-core/tests/action_command_test.rs b/src-rust/toolkit-core/tests/action_command_test.rs index 759b421..78f996e 100644 --- a/src-rust/toolkit-core/tests/action_command_test.rs +++ b/src-rust/toolkit-core/tests/action_command_test.rs @@ -1,5 +1,6 @@ mod tests { use std::collections::HashMap; + use fosscopetoolkit_core::models::action_command::ActionCommand; #[test] diff --git a/src-rust/toolkit-core/tests/github_file_getter_test.rs b/src-rust/toolkit-core/tests/github_file_getter_test.rs index 1f493fd..e0c03e1 100644 --- a/src-rust/toolkit-core/tests/github_file_getter_test.rs +++ b/src-rust/toolkit-core/tests/github_file_getter_test.rs @@ -58,7 +58,7 @@ mod tests { let github = GitHubApi::new("octocat".to_string(), client); let file_content = github.get_file_content( - GitHubRepo { + &GitHubRepo { owner: "octocat".to_string(), name: "Hello-World".to_string(), }, diff --git a/src-rust/toolkit-core/tests/local_repo_file_test.rs b/src-rust/toolkit-core/tests/local_repo_file_test.rs index da6b628..6f0f852 100644 --- a/src-rust/toolkit-core/tests/local_repo_file_test.rs +++ b/src-rust/toolkit-core/tests/local_repo_file_test.rs @@ -1,7 +1,7 @@ #[cfg(test)] mod tests { - use fosscopetoolkit_core::models::github_repo::GitHubRepo; use fosscopetoolkit_core::{get_contributor_repo, set_contributor_repo}; + use fosscopetoolkit_core::models::github_repo::GitHubRepo; #[test] fn read_and_write_repo() { diff --git a/src-rust/toolkit-core/tests/repo_forks_check_test.rs b/src-rust/toolkit-core/tests/repo_forks_check_test.rs index 70dcfb3..eb52070 100644 --- a/src-rust/toolkit-core/tests/repo_forks_check_test.rs +++ b/src-rust/toolkit-core/tests/repo_forks_check_test.rs @@ -1,14 +1,14 @@ -mod mock_error; - -use mock_error::setup_error_handler; -use octocrab::models::{Repository}; -use octocrab::{Octocrab}; +use octocrab::Octocrab; use serde::{Deserialize, Serialize}; use wiremock::{ matchers::{method, path}, Mock, MockServer, ResponseTemplate, }; +use mock_error::setup_error_handler; + +mod mock_error; + enum RequestType { GET, POST, @@ -58,8 +58,11 @@ fn setup_octocrab(uri: &str) -> Octocrab { #[cfg(test)] mod tests { + use octocrab::models::Repository; + use fosscopetoolkit_core::apis::github_api::GitHubApi; use fosscopetoolkit_core::models::github_repo::GitHubRepo; + use super::*; #[tokio::test] @@ -139,7 +142,7 @@ mod tests { GitHubRepo { owner: "octocat".to_string(), name: "Hello-World".to_string(), - } + }, ).await; assert_eq!(result, Ok(GitHubRepo { diff --git a/src-rust/toolkit-core/tests/repo_rule_test.rs b/src-rust/toolkit-core/tests/repo_rule_test.rs index 294314d..b66dea9 100644 --- a/src-rust/toolkit-core/tests/repo_rule_test.rs +++ b/src-rust/toolkit-core/tests/repo_rule_test.rs @@ -44,9 +44,9 @@ mod tests { use octocrab::models::repos::Content; use fosscopetoolkit_core::apis::github_api::GitHubApi; - use fosscopetoolkit_core::models::github_repo::GitHubRepo; use fosscopetoolkit_core::models::action_command::ActionCommand; - use fosscopetoolkit_core::models::repo_rule::{Article, Action, GitRule, RepoRule, get_repo_rule}; + use fosscopetoolkit_core::models::github_repo::GitHubRepo; + use fosscopetoolkit_core::models::repo_rule::{Action, Article, get_repo_rule, GitRule, RepoRule}; use super::*; @@ -64,7 +64,7 @@ mod tests { owner: "FOSScope".to_string(), name: "TranslateProject".to_string(), }, - &github + &github, ).await; assert!(rule.is_ok()); @@ -107,10 +107,10 @@ authorInfo: | let talk: Article = Article::new("talk".to_string(), "评论".to_string(), "{{step}}/talk".to_string(), None); let select: Action = Action::new("select".to_string(), "Select an article to translate.".to_string(), - ActionCommand::new("TOUCH".to_string(), vec!["source/{{article_id}}.md".to_string()]) + ActionCommand::new("TOUCH".to_string(), vec!["source/{{article_id}}.md".to_string()]), ); let translate: Action = Action::new("translate".to_string(), "Translate the article.".to_string(), - ActionCommand::new("MV".to_string(), vec!["source/{{article_id}}.md".to_string(), "translated/{{article_id}}.md".to_string()]) + ActionCommand::new("MV".to_string(), vec!["source/{{article_id}}.md".to_string(), "translated/{{article_id}}.md".to_string()]), ); let git_rule: GitRule = GitRule::new("{{action_name}}/{{type_name}}/{{article_id}}".to_string(), "[{{action_desc}}][{{type_desc}}]: {{article_title}}".to_string()); diff --git a/src-rust/toolkit-core/tests/repo_validation_test.rs b/src-rust/toolkit-core/tests/repo_validation_test.rs index 88391d3..2ced4aa 100644 --- a/src-rust/toolkit-core/tests/repo_validation_test.rs +++ b/src-rust/toolkit-core/tests/repo_validation_test.rs @@ -1,14 +1,14 @@ -mod mock_error; - -use mock_error::setup_error_handler; -use octocrab::models::{Repository}; -use octocrab::{Octocrab}; +use octocrab::Octocrab; use serde::{Deserialize, Serialize}; use wiremock::{ matchers::{method, path}, Mock, MockServer, ResponseTemplate, }; +use mock_error::setup_error_handler; + +mod mock_error; + // This is a fake page that we can use to deserialize the response from the GitHub API. #[derive(Serialize, Deserialize)] struct FakePage { @@ -41,8 +41,11 @@ fn setup_octocrab(uri: &str) -> Octocrab { #[cfg(test)] mod tests { + use octocrab::models::Repository; + use fosscopetoolkit_core::apis::github_api::GitHubApi; use fosscopetoolkit_core::models::github_repo::GitHubRepo; + use super::*; #[tokio::test] diff --git a/src-rust/toolkit-core/tests/user_verify_test.rs b/src-rust/toolkit-core/tests/user_verify_test.rs index 7236264..b6fd605 100644 --- a/src-rust/toolkit-core/tests/user_verify_test.rs +++ b/src-rust/toolkit-core/tests/user_verify_test.rs @@ -1,14 +1,14 @@ -mod mock_error; - -use mock_error::setup_error_handler; -use octocrab::models::{UserProfile}; -use octocrab::{Octocrab}; +use octocrab::Octocrab; use serde::{Deserialize, Serialize}; use wiremock::{ matchers::{method, path}, Mock, MockServer, ResponseTemplate, }; +use mock_error::setup_error_handler; + +mod mock_error; + // This is a fake page that we can use to deserialize the response from the GitHub API. #[derive(Serialize, Deserialize)] struct FakePage { @@ -41,7 +41,10 @@ fn setup_octocrab(uri: &str) -> Octocrab { #[cfg(test)] mod tests { + use octocrab::models::UserProfile; + use fosscopetoolkit_core::apis::github_api::GitHubApi; + use super::*; #[tokio::test]