commit 1dc9787944a349ed87f496c965c000dd5716b567 Author: potkan Date: Tue Apr 28 23:42:15 2026 +0200 Upload files to "/" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..95ee2de --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,3316 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +#Cargo.lock +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "RustyWolf" +version = "0.1.1" +dependencies = [ + "anyhow", + "base64", + "clap", + "dirs", + "image", + "serde_json", + "tao", + "ureq", + "url", + "wry", +] + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "anstream" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78" + +[[package]] +name = "anstyle-parse" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "atk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "241b621213072e993be4f6f3a9e4b45f65b7e6faad43001be957184b7bb1824b" +dependencies = [ + "atk-sys", + "glib", + "libc", +] + +[[package]] +name = "atk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e48b684b0ca77d2bbadeef17424c2ea3c897d44d566a1617e7e8f30614d086" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "base64" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" + +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" +dependencies = [ + "objc2", +] + +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" + +[[package]] +name = "cairo-rs" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ca26ef0159422fb77631dc9d17b102f253b876fe1586b03b803e63a309b4ee2" +dependencies = [ + "bitflags 2.11.0", + "cairo-sys-rs", + "glib", + "libc", + "once_cell", + "thiserror 1.0.69", +] + +[[package]] +name = "cairo-sys-rs" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "685c9fa8e590b8b3d678873528d83411db17242a73fccaed827770ea0fedda51" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "cc" +version = "1.2.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2" +dependencies = [ + "find-msvc-tools", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfg-expr" +version = "0.15.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02" +dependencies = [ + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "clap" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b193af5b67834b676abd72466a96c1024e6a6ad978a1f484bd90b85c94041351" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1110bd8a634a1ab8cb04345d8d878267d57c3cf1b38d91b71af6686408bbca6a" +dependencies = [ + "heck 0.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "clap_lex" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" + +[[package]] +name = "cocoa" +version = "0.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad36507aeb7e16159dfe68db81ccc27571c3ccd4b76fb2fb72fc59e7a4b1b64c" +dependencies = [ + "bitflags 2.11.0", + "block", + "cocoa-foundation", + "core-foundation", + "core-graphics", + "foreign-types", + "libc", + "objc", +] + +[[package]] +name = "cocoa-foundation" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81411967c50ee9a1fc11365f8c585f863a22a9697c89239c452292c40ba79b0d" +dependencies = [ + "bitflags 2.11.0", + "block", + "core-foundation", + "core-graphics-types", + "objc", +] + +[[package]] +name = "colorchoice" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "convert_case" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" + +[[package]] +name = "cookie" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747" +dependencies = [ + "time", + "version_check", +] + +[[package]] +name = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa95a34622365fa5bbf40b20b75dba8dfa8c94c734aea8ac9a5ca38af14316f1" +dependencies = [ + "bitflags 2.11.0", + "core-foundation", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" +dependencies = [ + "bitflags 2.11.0", + "core-foundation", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-channel" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "cssparser" +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", +] + +[[package]] +name = "cssparser-macros" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13b588ba4ac1a99f7f2964d24b3d896ddc6bf847ee3855dbd4366f058cfcd331" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "deranged" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c" +dependencies = [ + "powerfmt", +] + +[[package]] +name = "derive_more" +version = "0.99.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6edb4b64a43d977b8e99788fe3a04d483834fba1215a7e02caa415b626497f7f" +dependencies = [ + "convert_case", + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.117", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.61.2", +] + +[[package]] +name = "dispatch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dlopen2" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1297103d2bbaea85724fcee6294c2d50b1081f9ad47d0f6f6f61eda65315a6" +dependencies = [ + "dlopen2_derive", + "libc", + "once_cell", + "winapi", +] + +[[package]] +name = "dlopen2_derive" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fbbb781877580993a8707ec48672673ec7b81eeba04cfd2310bd28c08e47c8f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" + +[[package]] +name = "dtoa" +version = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" + +[[package]] +name = "dtoa-short" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" +dependencies = [ + "dtoa", +] + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "field-offset" +version = "0.3.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38e2275cc4e4fc009b0669731a1e5ab7ebf11f469eaede2bab9309a5b4d6057f" +dependencies = [ + "memoffset", + "rustc_version", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futf" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843" +dependencies = [ + "mac", + "new_debug_unreachable", +] + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-executor" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf29c38818342a3b26b5b923639e7b1f4a61fc5e76102d4b1981c6dc7a7579d" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[package]] +name = "futures-macro" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-core", + "futures-macro", + "futures-task", + "pin-project-lite", + "slab", +] + +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + +[[package]] +name = "gdk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9f245958c627ac99d8e529166f9823fb3b838d1d41fd2b297af3075093c2691" +dependencies = [ + "cairo-rs", + "gdk-pixbuf", + "gdk-sys", + "gio", + "glib", + "libc", + "pango", +] + +[[package]] +name = "gdk-pixbuf" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50e1f5f1b0bfb830d6ccc8066d18db35c487b1b2b1e8589b5dfe9f07e8defaec" +dependencies = [ + "gdk-pixbuf-sys", + "gio", + "glib", + "libc", + "once_cell", +] + +[[package]] +name = "gdk-pixbuf-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9839ea644ed9c97a34d129ad56d38a25e6756f99f3a88e15cd39c20629caf7" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gdk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c2d13f38594ac1e66619e188c6d5a1adb98d11b2fcf7894fc416ad76aa2f3f7" +dependencies = [ + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkwayland-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "140071d506d223f7572b9f09b5e155afbd77428cd5cc7af8f2694c41d98dfe69" +dependencies = [ + "gdk-sys", + "glib-sys", + "gobject-sys", + "libc", + "pkg-config", + "system-deps", +] + +[[package]] +name = "gdkx11" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3caa00e14351bebbc8183b3c36690327eb77c49abc2268dd4bd36b856db3fbfe" +dependencies = [ + "gdk", + "gdkx11-sys", + "gio", + "glib", + "libc", + "x11", +] + +[[package]] +name = "gdkx11-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e7445fe01ac26f11601db260dd8608fe172514eb63b3b5e261ea6b0f4428d" +dependencies = [ + "gdk-sys", + "glib-sys", + "libc", + "system-deps", + "x11", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "getrandom" +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", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi 0.11.1+wasi-snapshot-preview1", +] + +[[package]] +name = "gio" +version = "0.18.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4fc8f532f87b79cbc51a79748f16a6828fb784be93145a322fa14d06d354c73" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-util", + "gio-sys", + "glib", + "libc", + "once_cell", + "pin-project-lite", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "gio-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37566df850baf5e4cb0dfb78af2e4b9898d817ed9263d1090a2df958c64737d2" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", + "winapi", +] + +[[package]] +name = "glib" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "233daaf6e83ae6a12a52055f568f9d7cf4671dabb78ff9560ab6da230ce00ee5" +dependencies = [ + "bitflags 2.11.0", + "futures-channel", + "futures-core", + "futures-executor", + "futures-task", + "futures-util", + "gio-sys", + "glib-macros", + "glib-sys", + "gobject-sys", + "libc", + "memchr", + "once_cell", + "smallvec", + "thiserror 1.0.69", +] + +[[package]] +name = "glib-macros" +version = "0.18.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb0228f477c0900c880fd78c8759b95c7636dbd7842707f49e132378aa2acdc" +dependencies = [ + "heck 0.4.1", + "proc-macro-crate 2.0.2", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "glib-sys" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "063ce2eb6a8d0ea93d2bf8ba1957e78dbab6be1c2220dd3daca57d5a9d869898" +dependencies = [ + "libc", + "system-deps", +] + +[[package]] +name = "gobject-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0850127b514d1c4a4654ead6dedadb18198999985908e6ffe4436f53c785ce44" +dependencies = [ + "glib-sys", + "libc", + "system-deps", +] + +[[package]] +name = "gtk" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd56fb197bfc42bd5d2751f4f017d44ff59fbb58140c6b49f9b3b2bdab08506a" +dependencies = [ + "atk", + "cairo-rs", + "field-offset", + "futures-channel", + "gdk", + "gdk-pixbuf", + "gio", + "glib", + "gtk-sys", + "gtk3-macros", + "libc", + "pango", + "pkg-config", +] + +[[package]] +name = "gtk-sys" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f29a1c21c59553eb7dd40e918be54dccd60c52b049b75119d5d96ce6b624414" +dependencies = [ + "atk-sys", + "cairo-sys-rs", + "gdk-pixbuf-sys", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "pango-sys", + "system-deps", +] + +[[package]] +name = "gtk3-macros" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ff3c5b21f14f0736fed6dcfc0bfb4225ebf5725f3c0209edeec181e4d73e9d" +dependencies = [ + "proc-macro-crate 1.3.1", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "hashbrown" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "html5ever" +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", +] + +[[package]] +name = "http" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a" +dependencies = [ + "bytes", + "itoa 1.0.17", +] + +[[package]] +name = "icu_collections" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +dependencies = [ + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" + +[[package]] +name = "icu_properties" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" + +[[package]] +name = "icu_provider" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "moxcms", + "num-traits", + "png", +] + +[[package]] +name = "indexmap" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +dependencies = [ + "autocfg", + "hashbrown 0.12.3", +] + +[[package]] +name = "indexmap" +version = "2.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" +dependencies = [ + "equivalent", + "hashbrown 0.16.1", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "javascriptcore-rs" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca5671e9ffce8ffba57afc24070e906da7fc4b1ba66f2cabebf61bf2ea257fcc" +dependencies = [ + "bitflags 1.3.2", + "glib", + "javascriptcore-rs-sys", +] + +[[package]] +name = "javascriptcore-rs-sys" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[package]] +name = "kuchikiki" +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", +] + +[[package]] +name = "lazy_static" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" + +[[package]] +name = "libc" +version = "0.2.183" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d" + +[[package]] +name = "libredox" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1744e39d1d6a9948f4f388969627434e31128196de472883b39f148769bfe30a" +dependencies = [ + "libc", +] + +[[package]] +name = "litemap" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "mac" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" + +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + +[[package]] +name = "markup5ever" +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", +] + +[[package]] +name = "matches" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.11.0", + "jni-sys", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "nodrop" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" + +[[package]] +name = "num-conv" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1207a7e20ad57b847bbddc6776b968420d38292bbfe2089accff5e19e82454c" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff32365de1b6743cb203b710788263c44a03de03802daf96092f2da4fe6ba4d7" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", +] + +[[package]] +name = "objc-sys" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" +dependencies = [ + "cc", +] + +[[package]] +name = "objc2" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804" +dependencies = [ + "objc-sys", + "objc2-encode", +] + +[[package]] +name = "objc2-app-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff" +dependencies = [ + "bitflags 2.11.0", + "block2", + "libc", + "objc2", + "objc2-core-data", + "objc2-core-image", + "objc2-foundation", + "objc2-quartz-core", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009" +dependencies = [ + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-core-location", + "objc2-foundation", +] + +[[package]] +name = "objc2-contacts" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889" +dependencies = [ + "block2", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-data" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef" +dependencies = [ + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-core-image" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80" +dependencies = [ + "block2", + "objc2", + "objc2-foundation", + "objc2-metal", +] + +[[package]] +name = "objc2-core-location" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781" +dependencies = [ + "block2", + "objc2", + "objc2-contacts", + "objc2-foundation", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" +dependencies = [ + "bitflags 2.11.0", + "block2", + "libc", + "objc2", +] + +[[package]] +name = "objc2-link-presentation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398" +dependencies = [ + "block2", + "objc2", + "objc2-app-kit", + "objc2-foundation", +] + +[[package]] +name = "objc2-metal" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" +dependencies = [ + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" +dependencies = [ + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-foundation", + "objc2-metal", +] + +[[package]] +name = "objc2-symbols" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc" +dependencies = [ + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f" +dependencies = [ + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-image", + "objc2-core-location", + "objc2-foundation", + "objc2-link-presentation", + "objc2-quartz-core", + "objc2-symbols", + "objc2-uniform-type-identifiers", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-uniform-type-identifiers" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe" +dependencies = [ + "block2", + "objc2", + "objc2-foundation", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3" +dependencies = [ + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-core-location", + "objc2-foundation", +] + +[[package]] +name = "objc2-web-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "68bc69301064cebefc6c4c90ce9cba69225239e4b8ff99d445a2b5563797da65" +dependencies = [ + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-app-kit", + "objc2-foundation", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[package]] +name = "pango" +version = "0.18.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ca27ec1eb0457ab26f3036ea52229edbdb74dee1edd29063f5b9b010e7ebee4" +dependencies = [ + "gio", + "glib", + "libc", + "once_cell", + "pango-sys", +] + +[[package]] +name = "pango-sys" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "436737e391a843e5933d6d9aa102cb126d501e815b83601365a948a518555dc5" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall", + "smallvec", + "windows-link", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "phf" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" +dependencies = [ + "phf_macros", + "phf_shared 0.8.0", + "proc-macro-hack", +] + +[[package]] +name = "phf" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fabbf1ead8a5bcbc20f5f8b939ee3f5b0f6f281b6ad3468b84656b658b455259" +dependencies = [ + "phf_shared 0.10.0", +] + +[[package]] +name = "phf_codegen" +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", +] + +[[package]] +name = "phf_codegen" +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", +] + +[[package]] +name = "phf_generator" +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", +] + +[[package]] +name = "phf_generator" +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", +] + +[[package]] +name = "phf_generator" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" +dependencies = [ + "phf_shared 0.11.3", + "rand 0.8.5", +] + +[[package]] +name = "phf_macros" +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", +] + +[[package]] +name = "phf_shared" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7" +dependencies = [ + "siphasher 0.3.11", +] + +[[package]] +name = "phf_shared" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6796ad771acdc0123d2a88dc428b5e38ef24456743ddb1744ed628f9815c096" +dependencies = [ + "siphasher 0.3.11", +] + +[[package]] +name = "phf_shared" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" +dependencies = [ + "siphasher 1.0.2", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pkg-config" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.11.0", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "potential_utf" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "proc-macro-crate" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919" +dependencies = [ + "once_cell", + "toml_edit 0.19.15", +] + +[[package]] +name = "proc-macro-crate" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b00f26d3400549137f92511a46ac1cd8ce37cb5598a96d382381458b992a5d24" +dependencies = [ + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit 0.25.4+spec-1.1.0", +] + +[[package]] +name = "proc-macro-error" +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", +] + +[[package]] +name = "proc-macro-error-attr" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" +dependencies = [ + "proc-macro2", + "quote", + "version_check", +] + +[[package]] +name = "proc-macro-hack" +version = "0.5.20+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "pxfm" +version = "0.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5a041e753da8b807c9255f28de81879c78c876392ff2469cde94799b2896b9d" + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "rand" +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", +] + +[[package]] +name = "rand" +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", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core 0.5.1", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom 0.1.16", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "rand_pcg" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +dependencies = [ + "rand_core 0.5.1", +] + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.11.0", +] + +[[package]] +name = "redox_users" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 2.0.18", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustls" +version = "0.23.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4" +dependencies = [ + "log", + "once_cell", + "ring", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-pki-types" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" +dependencies = [ + "zeroize", +] + +[[package]] +name = "rustls-webpki" +version = "0.103.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" +dependencies = [ + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "selectors" +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", +] + +[[package]] +name = "semver" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa 1.0.17", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + +[[package]] +name = "servo_arc" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98238b800e0d1576d8b6e3de32827c2d74bee68bb97748dcf5071fb53965432" +dependencies = [ + "nodrop", + "stable_deref_trait", +] + +[[package]] +name = "sha2" +version = "0.10.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "simd-adler32" +version = "0.3.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" + +[[package]] +name = "siphasher" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d" + +[[package]] +name = "siphasher" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e" + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "smallvec" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "soup3" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "471f924a40f31251afc77450e781cb26d55c0b650842efafc9c6cbd2f7cc4f9f" +dependencies = [ + "futures-channel", + "gio", + "glib", + "libc", + "soup3-sys", +] + +[[package]] +name = "soup3-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ebe8950a680a12f24f15ebe1bf70db7af98ad242d9db43596ad3108aab86c27" +dependencies = [ + "gio-sys", + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "string_cache" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf776ba3fa74f83bf4b63c3dcbbf82173db2632ed8452cb2d891d33f459de70f" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared 0.11.3", + "precomputed-hash", + "serde", +] + +[[package]] +name = "string_cache_codegen" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c711928715f1fe0fe509c53b43e993a9a557babc2d0a3567d0a3006f1ac931a0" +dependencies = [ + "phf_generator 0.11.3", + "phf_shared 0.11.3", + "proc-macro2", + "quote", +] + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "system-deps" +version = "6.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3e535eb8dded36d55ec13eddacd30dec501792ff23a0b1682c38601b8cf2349" +dependencies = [ + "cfg-expr", + "heck 0.5.0", + "pkg-config", + "toml", + "version-compare", +] + +[[package]] +name = "tao" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3731d04d4ac210cd5f344087733943b9bfb1a32654387dad4d1c70de21aee2c9" +dependencies = [ + "bitflags 2.11.0", + "cocoa", + "core-foundation", + "core-graphics", + "crossbeam-channel", + "dispatch", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni", + "lazy_static", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "objc", + "once_cell", + "parking_lot", + "raw-window-handle", + "scopeguard", + "tao-macros", + "unicode-segmentation", + "url", + "windows", + "windows-core", + "windows-version", + "x11-dl", +] + +[[package]] +name = "tao-macros" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4e16beb8b2ac17db28eab8bca40e62dbfbb34c0fcdc6d9826b11b7b5d047dfd" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "target-lexicon" +version = "0.12.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" + +[[package]] +name = "tendril" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0" +dependencies = [ + "futf", + "mac", + "utf-8", +] + +[[package]] +name = "thin-slice" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaa81235c7058867fa8c0e7314f33dcce9c215f535d1913822a2b3f5e289f3c" + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "time" +version = "0.3.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c" +dependencies = [ + "deranged", + "itoa 1.0.17", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215" +dependencies = [ + "num-conv", + "time-core", +] + +[[package]] +name = "tinystr" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_datetime" +version = "1.0.0+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32c2555c699578a4f59f0cc68e5116c8d7cabbd45e1409b989d4be085b53f13e" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.19.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" +dependencies = [ + "indexmap 2.13.0", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" +dependencies = [ + "indexmap 2.13.0", + "serde", + "serde_spanned", + "toml_datetime 0.6.3", + "winnow 0.5.40", +] + +[[package]] +name = "toml_edit" +version = "0.25.4+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7193cbd0ce53dc966037f54351dbbcf0d5a642c7f0038c382ef9e677ce8c13f2" +dependencies = [ + "indexmap 2.13.0", + "toml_datetime 1.0.0+spec-1.1.0", + "toml_parser", + "winnow 0.7.15", +] + +[[package]] +name = "toml_parser" +version = "1.0.9+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "702d4415e08923e7e1ef96cd5727c0dfed80b4d2fa25db9647fe5eb6f7c5a4c4" +dependencies = [ + "winnow 0.7.15", +] + +[[package]] +name = "typenum" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "ureq" +version = "2.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02d1a66277ed75f640d608235660df48c8e3c19f3b4edb6a263315626cc3c01d" +dependencies = [ + "base64", + "flate2", + "log", + "once_cell", + "rustls", + "rustls-pki-types", + "url", + "webpki-roots 0.26.11", +] + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf-8" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "version-compare" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03c2856837ef78f57382f06b2b8563a2f512f7185d732608fd9176cb3b8edf0e" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "webkit2gtk" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76b1bc1e54c581da1e9f179d0b38512ba358fb1af2d634a1affe42e37172361a" +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", + "soup3", + "webkit2gtk-sys", +] + +[[package]] +name = "webkit2gtk-sys" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62daa38afc514d1f8f12b8693d30d5993ff77ced33ce30cd04deebc267a6d57c" +dependencies = [ + "bitflags 1.3.2", + "cairo-sys-rs", + "gdk-sys", + "gio-sys", + "glib-sys", + "gobject-sys", + "gtk-sys", + "javascriptcore-rs-sys", + "libc", + "pkg-config", + "soup3-sys", + "system-deps", +] + +[[package]] +name = "webpki-roots" +version = "0.26.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521bc38abb08001b01866da9f51eb7c5d647a19260e00054a8c7fd5f9e57f7a9" +dependencies = [ + "webpki-roots 1.0.6", +] + +[[package]] +name = "webpki-roots" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22cfaf3c063993ff62e73cb4311efde4db1efb31ab78a3e5c457939ad5cc0bed" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "webview2-com" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f61ff3d9d0ee4efcb461b14eb3acfda2702d10dc329f339303fc3e57215ae2c" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows", + "windows-core", + "windows-implement", + "windows-interface", +] + +[[package]] +name = "webview2-com-macros" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67a921c1b6914c367b2b823cd4cde6f96beec77d30a939c8199bb377cf9b9b54" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "webview2-com-sys" +version = "0.33.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a3a3e2eeb58f82361c93f9777014668eb3d07e7d174ee4c819575a9208011886" +dependencies = [ + "thiserror 1.0.69", + "windows", + "windows-core", +] + +[[package]] +name = "winapi" +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", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" +dependencies = [ + "windows-core", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-core" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-result", + "windows-strings", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +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", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "winnow" +version = "0.5.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f593a95398737aeed53e489c785df13f3618e41dbcd6718c6addbf1395aa6876" +dependencies = [ + "memchr", +] + +[[package]] +name = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" +dependencies = [ + "memchr", +] + +[[package]] +name = "writeable" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + +[[package]] +name = "wry" +version = "0.47.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61ce51277d65170f6379d8cda935c80e3c2d1f0ff712a123c8bddb11b31a4b73" +dependencies = [ + "base64", + "block2", + "cookie", + "crossbeam-channel", + "dpi", + "dunce", + "gdkx11", + "gtk", + "html5ever", + "http", + "javascriptcore-rs", + "jni", + "kuchikiki", + "libc", + "ndk", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "once_cell", + "percent-encoding", + "raw-window-handle", + "sha2", + "soup3", + "tao-macros", + "thiserror 1.0.69", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows", + "windows-core", + "windows-version", + "x11-dl", +] + +[[package]] +name = "x11" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "502da5464ccd04011667b11c435cb992822c2c0dbde1770c988480d312a0db2e" +dependencies = [ + "libc", + "pkg-config", +] + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yoke" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zerocopy" +version = "0.8.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2578b716f8a7a858b7f02d5bd870c14bf4ddbbcf3a4c05414ba6503640505e3" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e6cc098ea4d3bd6246687de65af3f920c430e236bee1e3bf2e441463f08a02f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" + +[[package]] +name = "zerotrie" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..19a6037 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,23 @@ +#Cargo.toml +[package] +name = "RustyWolf" +version = "0.1.1" +edition = "2024" + +[dependencies] +anyhow = "1.0" +base64 = "0.22" +clap = { version = "4.5", features = ["derive"] } +serde_json = "1.0" +tao = "0.31" +ureq = "2.12" +url = "2.5" +wry = { version = "0.47", features = ["fullscreen"] } +image = { version = "0.25", default-features = false, features = ["bmp", "ico", "png"] } +dirs = "6.0" + +[package.metadata.bundle] +name = "RustyWolf" +identifier = "com.rustywolf.browser" +icon = ["src/rustywolf.icns"] + diff --git a/README.md b/README.md new file mode 100644 index 0000000..60693fa --- /dev/null +++ b/README.md @@ -0,0 +1,172 @@ +# RustyWolf + +RustyWolf is a minimal, privacy-focused browser shell built with Rust + system webviews. + +(complete honesty, this whole thing is vibecoded, however I never paid for any ai service (I got a free student plan for a year) so if you wanna avoid AI slop, just skip this but I never contributed to the AI BOOM with my money, if you wanna contribute, feel free to do so) + +- macOS: native `WKWebView` +- Linux: `WebKitGTK` +- Windows: `WebView2` + +No Firefox install. No extension system. Fast startup, clean UI. + +image + +## What It Does + +- Really, I mean really lightweight! the reason I even made this is because I need a lightweight browser to run on my old macbook unibody 2010 4gb ddr3 + - So light in fact in my gentoo(openrc)+i3wm setup it took only 285mb ram with one tab open (dvorakmortonxd.dev) compared to firefox which took 866mb ram + - THATS 3.04 TIMES AS MUCH RAM, so yeah it is light + - tabs have a toggle for Keeping-in-ram (`K`), it basically just saves the url if its off and reloads it on reclick, if you toggle it on it keeps the whole page in ram. +- Privacy-first defaults: DuckDuckGo home + search fallback from the URL bar +- Multi-tab browsing with back, forward, reload, and keyboard shortcuts (`Ctrl/Cmd+T`, `W`, `L`) +- Built-in custom adblock with top-bar toggle (`ADS`) +- Popup permission gate: asks before a site opens a new tab +- Download support with live progress panel (`D`) and session download history +- Properties page with session browsing history + download history +- Default window size `1000x600` (still fully resizable) +- Optional `--private` mode when backend support is available + +## Run + +```bash +cargo run -- +``` + +```bash +cargo run -- --url https://example.com +cargo run -- --url example.com +cargo run -- --title "RustyWolf" +cargo run -- --private +cargo run -- --dry-run + +# Linux backend controls (wayland has issues currently, x11 recommended) +cargo run -- --linux-backend x11 +cargo run -- --linux-backend wayland +cargo run -- --linux-disable-dmabuf +cargo run -- --linux-backend x11 --linux-disable-dmabuf +``` + +## Privacy Notes + +RustyWolf applies baseline hardening in page context: + +- `navigator.doNotTrack = "1"` +- disables legacy `openDatabase` +- disables `RTCPeerConnection` + +Adblocking is built-in and lightweight. It is not full uBlock Origin parity. + +# Linux Setup (prerequisites) + +Install WebKitGTK development/runtime packages before building. + +## Debian + +```bash +sudo apt update +sudo apt install -y libwebkit2gtk-4.1-dev libgtk-3-dev build-essential pkg-config git appmenu-gtk3-module appmenu-gtk2-module +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +source "$HOME/.cargo/env" +``` + +## Arch + +```bash +sudo pacman -Sy +sudo pacman -S --needed webkit2gtk-4.1 gtk3 base-devel pkgconf git appmenu-gtk-module +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +source "$HOME/.cargo/env" +``` + +## Gentoo + +(u can replace doas with sudo btw) +```bash +doas emerge --sync +doas emerge --ask net-libs/webkit-gtk:4.1 x11-libs/gtk+ virtual/pkgconfig dev-vcs/git x11-misc/appmenu-gtk-module +curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh +source "$HOME/.cargo/env" +``` + +## Linux media playback deps (important) + +If Linux logs `gstreamer element autoaudiosink not found` or YouTube/audio fails, install GStreamer audio/video plugins. + +Debian/Ubuntu/Pop!_OS example: + +```bash +sudo apt update +sudo apt install -y gstreamer1.0-tools +sudo apt install -y gstreamer1.0-plugins-base gstreamer1.0-plugins-good +sudo apt install -y gstreamer1.0-plugins-bad gstreamer1.0-libav +sudo apt install -y gstreamer1.0-pulseaudio gstreamer1.0-pipewire gstreamer1.0-alsa +``` + +Verify the sink exists: + +```bash +gst-inspect-1.0 autoaudiosink +``` + +If your distro is not Debian-based, install the equivalent GStreamer base/good/bad/libav + audio sink plugin packages. + +# Linux Troubleshooting (Wayland/X11) + +RustyWolf supports both X11 and native Wayland on Linux. + +Some NVIDIA + WebKitGTK stacks can fail with dmabuf/gbm allocation errors, especially on Wayland. + +Try these launch modes: + +```bash +# safest fallback on many NVIDIA setups +cargo run -- --linux-backend x11 --linux-disable-dmabuf + +# native wayland +cargo run -- --linux-backend wayland + + +# auto backend, dmabuf disabled only +cargo run -- --linux-disable-dmabuf +``` + +If you still see `Failed to load module "appmenu-gtk-module"`, that is a desktop GTK setup issue (not a RustyWolf crash). + +Debian/Ubuntu/Pop!_OS fix: + +```bash +sudo apt update +sudo apt install -y appmenu-gtk3-module appmenu-gtk2-module +``` + +If you do not want global appmenu integration, remove `appmenu-gtk-module` from GTK settings files: + +```bash +~/.config/gtk-3.0/settings.ini +/etc/gtk-3.0/settings.ini +/etc/xdg/gtk-3.0/settings.ini +``` + +# MacOS + +## installing Homebrew (skip if already installed) + +```bash +/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" +``` + +# Windows Setup + +Install the Microsoft Edge WebView2 Runtime (Evergreen), then build normally with Rust MSVC toolchain. + +- WebView2 Runtime: https://developer.microsoft.com/microsoft-edge/webview2/ +- Rust toolchain target: `x86_64-pc-windows-msvc` + +## Dev Quick Checks + +```bash +cargo fmt +cargo check +cargo test +``` diff --git a/src/cli.rs b/src/cli.rs new file mode 100644 index 0000000..bf778e7 --- /dev/null +++ b/src/cli.rs @@ -0,0 +1,50 @@ +//cli.rs +use clap::{Parser, ValueEnum}; + +#[derive(Debug, Clone, Copy, ValueEnum)] +pub enum LinuxBackend { + Auto, + X11, + Wayland, +} + +#[derive(Debug, Parser)] +#[command( + name = "rustywolf", + about = "Privacy-focused WebKit browser", + long_about = "RustyWolf launches an embedded WebKit browser window.", + version +)] +pub struct Cli { + #[arg(long, help = "Optional startup URL (defaults to https://duckduckgo.com)")] + pub url: Option, + + #[arg(long, help = "Set a custom window title")] + pub title: Option, + + #[arg(long, help = "Try private/incognito mode when backend supports it")] + pub private: bool, + + #[arg(long, help = "Print launch settings without opening a window")] + pub dry_run: bool, + + #[arg( + long, + value_enum, + default_value_t = LinuxBackend::Auto, + help = "Linux only: prefer a windowing backend (auto, x11, wayland)" + )] + pub linux_backend: LinuxBackend, + + #[arg( + long, + help = "Linux only: disable WebKit dmabuf renderer (helps some NVIDIA/Wayland setups)" + )] + pub linux_disable_dmabuf: bool, +} + +impl Cli { + pub fn parse_args() -> Self { + Self::parse() + } +} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..4a2b658 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,17 @@ +//main.rs +mod cli; +mod webview; + +use anyhow::Result; + +fn main() { + if let Err(err) = run() { + eprintln!("error: {err:#}"); + std::process::exit(1); + } +} + +fn run() -> Result<()> { + let cli = cli::Cli::parse_args(); + webview::launch_webkit(&cli) +} diff --git a/src/rustywolf.icns b/src/rustywolf.icns new file mode 100644 index 0000000..783ec85 Binary files /dev/null and b/src/rustywolf.icns differ diff --git a/src/rustywolf.ico b/src/rustywolf.ico new file mode 100644 index 0000000..8cb907f Binary files /dev/null and b/src/rustywolf.ico differ diff --git a/src/webview.rs b/src/webview.rs new file mode 100644 index 0000000..90c0d4a --- /dev/null +++ b/src/webview.rs @@ -0,0 +1,2206 @@ +//webview.rs +use crate::cli::Cli; +use anyhow::{Result, anyhow}; +use base64::Engine; +use serde_json::json; +use std::collections::HashSet; +use std::fs; +use std::path::{Path, PathBuf}; +use std::thread; +use std::time::Duration; +use std::time::{SystemTime, UNIX_EPOCH}; +#[cfg(target_os = "linux")] +use gtk::prelude::*; +#[cfg(target_os = "linux")] +use tao::platform::unix::WindowExtUnix; +use tao::dpi::LogicalSize; +use tao::event::{Event, WindowEvent}; +use tao::event_loop::{ControlFlow, EventLoop, EventLoopBuilder, EventLoopProxy}; +use tao::window::{Icon, Window, WindowBuilder}; +#[cfg(target_os = "linux")] +use wry::WebViewBuilderExtUnix; +use wry::{PageLoadEvent, Rect, WebView, WebViewBuilder}; + +const DEFAULT_HOME: &str = "https://duckduckgo.com"; +const NEW_TAB_URL: &str = "https://duckduckgo.com"; +const SEARCH_URL_PREFIX: &str = "https://duckduckgo.com/?q="; +const MODERN_BROWSER_UA_BASE: &str = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36"; +const CHROME_HEIGHT_BASE: f64 = 84.0; +const CHROME_HEIGHT_DOWNLOADS_EXTRA: f64 = 104.0; +const CHROME_HEIGHT_POPUP_PROMPT_EXTRA: f64 = 44.0; +const MAX_HISTORY_ENTRIES: usize = 250; +const MAX_DOWNLOAD_ENTRIES: usize = 200; +const PROPERTIES_MAX_ROWS: usize = 120; +const MAX_TAB_NAV_ENTRIES: usize = 100; + +// ---------- Event types ----------------------------------------------- + +#[derive(Debug)] +enum UserEvent { + ChromeIpc(String), + TitleChanged { tab_id: u32, title: String }, + PageLoaded { tab_id: u32, url: String }, + DownloadStarted { url: String, file_path: String }, + DownloadTotal { file_path: String, total_bytes: Option }, + DownloadTick, + DownloadCompleted { url: String, file_path: Option, success: bool }, + OpenInNewTab { url: String }, + Quit, +} + +// ---------- State ------------------------------------------------------- + +struct Tab { + id: u32, + title: String, + url: String, + kir_enabled: bool, + webview: Option, + back_stack: Vec, + forward_stack: Vec, + pending_nav_from_stack: bool, +} + +struct BrowserState { + chrome: WebView, + host_mode: WebViewHostMode, + #[cfg(target_os = "linux")] + gtk_chrome_container: Option, + #[cfg(target_os = "linux")] + gtk_content_container: Option, + tabs: Vec, + history: Vec, + downloads: Vec, + adblock_enabled: bool, + popup_allow_hosts: HashSet, + pending_popup: Option, + downloads_panel_open: bool, + active: usize, + next_id: u32, + private: bool, +} + +struct PendingPopup { + url: String, + host: String, +} + +struct HistoryEntry { + title: String, + url: String, + visited_at: String, +} + +struct DownloadEntry { + url: String, + file_path: String, + status: String, + in_progress: bool, + downloaded_bytes: u64, + total_bytes: Option, + updated_at: String, +} + +#[cfg_attr(not(target_os = "linux"), allow(dead_code))] +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +enum WebViewHostMode { + Child, + Window, +} + +impl BrowserState { + fn alloc_id(&mut self) -> u32 { + let id = self.next_id; + self.next_id += 1; + id + } + fn find_index(&self, tab_id: u32) -> Option { + self.tabs.iter().position(|t| t.id == tab_id) + } +} + +// ---------- Chrome HTML (static, separate webview) -------------------- + +const CHROME_HTML: &str = r#" + + + + + + +
+
+
+ + + +
+ +
+ +
+ + +"#; + +// ---------- Privacy-only init script for content webviews ------------ + +const PRIVACY_JS: &str = r#" +Object.defineProperty(navigator, 'doNotTrack', { get: () => '1' }); +Object.defineProperty(window, 'openDatabase', { value: undefined }); +if ('BatteryManager' in window) window.BatteryManager = undefined; +if ('RTCPeerConnection' in window) window.RTCPeerConnection = undefined; + +// Keep reload shortcuts working when focus is inside the page webview. +window.addEventListener('keydown', (ev) => { + if (ev.defaultPrevented) return; + const key = (ev.key || '').toLowerCase(); + const wantsReload = + key === 'f5' || + ((ev.metaKey || ev.ctrlKey) && key === 'r'); + if (wantsReload) { + ev.preventDefault(); + location.reload(); + } +}, true); +"#; + +const ADBLOCK_JS: &str = r#" +(() => { + if (window.__rustywolfAdblockBooted) return; + window.__rustywolfAdblockBooted = true; + + const storageKey = '__rustywolf_adblock_enabled'; + const readPersistedEnabled = () => { + try { + const raw = window.localStorage && window.localStorage.getItem(storageKey); + if (raw === '0') return false; + if (raw === '1') return true; + } catch (_) {} + return false; + }; + const persistEnabled = (enabled) => { + try { + if (window.localStorage) { + window.localStorage.setItem(storageKey, enabled ? '1' : '0'); + } + } catch (_) {} + }; + + window.__rustywolfAdblockEnabled = readPersistedEnabled(); + + const blockedHosts = [ + 'doubleclick.net', + 'googlesyndication.com', + 'adservice.google.com', + 'google-analytics.com', + 'googletagmanager.com', + 'facebook.net', + 'ads.yahoo.com', + 'taboola.com', + 'outbrain.com' + ]; + + const cosmeticSelectors = [ + '[id^="ad-"]', + '[id^="ads-"]', + '[class^="ad-"]', + '[class^="ads-"]', + '[class*=" ad-"]', + '[class*=" ads-"]', + '[class*="advert"]', + '[id*="sponsored"]', + '[class*="sponsored"]', + 'iframe[src*="doubleclick"]', + 'iframe[src*="adservice"]' + ]; + + const isEnabled = () => window.__rustywolfAdblockEnabled !== false; + + const matchesBlockedHost = (host) => { + const lower = (host || '').toLowerCase(); + return blockedHosts.some((blocked) => lower === blocked || lower.endsWith('.' + blocked)); + }; + + const shouldBlockUrl = (rawUrl) => { + if (!isEnabled() || !rawUrl) return false; + try { + const parsed = new URL(rawUrl, location.href); + if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') return false; + if (matchesBlockedHost(parsed.hostname)) return true; + const full = parsed.href.toLowerCase(); + return full.includes('/ads') || full.includes('adserver') || full.includes('tracking'); + } catch (_) { + return false; + } + }; + + const removeAds = () => { + if (!isEnabled()) return; + for (const selector of cosmeticSelectors) { + document.querySelectorAll(selector).forEach((el) => { + if (!el.hasAttribute('data-rw-adblock-hidden')) { + el.setAttribute('data-rw-adblock-hidden', '1'); + el.setAttribute('data-rw-prev-display', el.style.getPropertyValue('display') || ''); + el.setAttribute('data-rw-prev-visibility', el.style.getPropertyValue('visibility') || ''); + } + el.style.setProperty('display', 'none', 'important'); + el.style.setProperty('visibility', 'hidden', 'important'); + el.setAttribute('aria-hidden', 'true'); + }); + } + }; + + const restoreAds = () => { + document.querySelectorAll('[data-rw-adblock-hidden="1"]').forEach((el) => { + const prevDisplay = el.getAttribute('data-rw-prev-display') || ''; + const prevVisibility = el.getAttribute('data-rw-prev-visibility') || ''; + if (prevDisplay) { + el.style.setProperty('display', prevDisplay); + } else { + el.style.removeProperty('display'); + } + if (prevVisibility) { + el.style.setProperty('visibility', prevVisibility); + } else { + el.style.removeProperty('visibility'); + } + el.removeAttribute('data-rw-adblock-hidden'); + el.removeAttribute('data-rw-prev-display'); + el.removeAttribute('data-rw-prev-visibility'); + if (el.getAttribute('aria-hidden') === 'true') { + el.removeAttribute('aria-hidden'); + } + }); + }; + + let adObserver = null; + let scanQueued = false; + + const scheduleAdScan = () => { + if (!isEnabled() || scanQueued) return; + scanQueued = true; + const run = () => { + scanQueued = false; + removeAds(); + }; + if (typeof requestAnimationFrame === 'function') { + requestAnimationFrame(run); + } else { + setTimeout(run, 16); + } + }; + + const stopObserver = () => { + if (!adObserver) return; + adObserver.disconnect(); + adObserver = null; + }; + + const startObserver = () => { + stopObserver(); + if (!isEnabled()) return; + const root = document.body || document.documentElement; + if (!root) return; + adObserver = new MutationObserver((mutations) => { + for (const mutation of mutations) { + if (mutation.type === 'childList' && mutation.addedNodes && mutation.addedNodes.length > 0) { + scheduleAdScan(); + return; + } + } + }); + adObserver.observe(root, { childList: true, subtree: true }); + }; + + window.__rustywolfSetAdblockEnabled = (enabled) => { + window.__rustywolfAdblockEnabled = !!enabled; + persistEnabled(window.__rustywolfAdblockEnabled); + if (window.__rustywolfAdblockEnabled) { + startObserver(); + scheduleAdScan(); + } else { + stopObserver(); + restoreAds(); + } + }; + + const originalFetch = window.fetch; + if (typeof originalFetch === 'function') { + window.fetch = function patchedFetch(input, init) { + const target = typeof input === 'string' ? input : (input && input.url) || ''; + if (shouldBlockUrl(target)) { + return Promise.resolve(new Response('', { status: 204, statusText: 'Blocked by RustyWolf' })); + } + return originalFetch.call(this, input, init); + }; + } + + const originalXhrOpen = XMLHttpRequest.prototype.open; + XMLHttpRequest.prototype.open = function patchedOpen(method, url) { + this.__rustywolfUrl = url; + return originalXhrOpen.apply(this, arguments); + }; + + const originalXhrSend = XMLHttpRequest.prototype.send; + XMLHttpRequest.prototype.send = function patchedSend() { + if (shouldBlockUrl(this.__rustywolfUrl)) { + this.abort(); + return; + } + return originalXhrSend.apply(this, arguments); + }; + + const patchSrcSetter = (ctor) => { + if (!ctor || !ctor.prototype) return; + const desc = Object.getOwnPropertyDescriptor(ctor.prototype, 'src'); + if (!desc || typeof desc.set !== 'function' || typeof desc.get !== 'function') return; + Object.defineProperty(ctor.prototype, 'src', { + configurable: true, + enumerable: desc.enumerable, + get: desc.get, + set(value) { + if (shouldBlockUrl(value)) { + return desc.set.call(this, 'about:blank'); + } + return desc.set.call(this, value); + } + }); + }; + + patchSrcSetter(window.HTMLImageElement); + patchSrcSetter(window.HTMLScriptElement); + patchSrcSetter(window.HTMLIFrameElement); + + startObserver(); + scheduleAdScan(); +})(); +"#; + +// ---------- Entry point ------------------------------------------------ + +pub fn launch_webkit(args: &Cli) -> Result<()> { + apply_linux_runtime_overrides(args); + let mut host_mode = resolve_webview_host_mode(args); + + let start_url = args + .url + .as_deref() + .map(normalize_url) + .unwrap_or_else(|| DEFAULT_HOME.to_string()); + let title = args.title.clone().unwrap_or_else(|| "RustyWolf".to_string()); + + if args.dry_run { + println!( + "engine=webkit url={start_url} private={} linux_backend={:?} linux_disable_dmabuf={}", + args.private, args.linux_backend, args.linux_disable_dmabuf + ); + return Ok(()); + } + + let event_loop: EventLoop = EventLoopBuilder::::with_user_event().build(); + let proxy = event_loop.create_proxy(); + + let window = WindowBuilder::new() + .with_title(title) + .with_window_icon(load_window_icon()) + .with_inner_size(LogicalSize::new(1000.0_f64, 600.0_f64)) + .build(&event_loop) + .map_err(|err| anyhow!("Failed to create window: {err}"))?; + + #[cfg(target_os = "linux")] + let (gtk_chrome_container, gtk_content_container) = if host_mode == WebViewHostMode::Window { + let (chrome, content) = create_linux_webview_containers(&window)?; + set_linux_chrome_container_height(&chrome, CHROME_HEIGHT_BASE); + (Some(chrome), Some(content)) + } else { + (None, None) + }; + + let (chrome, effective_host_mode) = build_chrome( + &window, + &proxy, + host_mode, + #[cfg(target_os = "linux")] + gtk_chrome_container.as_ref(), + )?; + host_mode = effective_host_mode; + + let mut state = BrowserState { + chrome, + host_mode, + #[cfg(target_os = "linux")] + gtk_chrome_container, + #[cfg(target_os = "linux")] + gtk_content_container, + tabs: Vec::new(), + history: Vec::new(), + downloads: Vec::new(), + adblock_enabled: false, + popup_allow_hosts: HashSet::new(), + pending_popup: None, + downloads_panel_open: false, + active: 0, + next_id: 1, + private: args.private, + }; + + open_tab(&mut state, &window, &proxy, start_url)?; + + let tick_proxy = proxy.clone(); + thread::spawn(move || loop { + thread::sleep(Duration::from_millis(300)); + if tick_proxy.send_event(UserEvent::DownloadTick).is_err() { + break; + } + }); + + event_loop.run(move |event, _, control_flow| { + *control_flow = ControlFlow::Wait; + match event { + Event::UserEvent(ev) => { + if matches!(ev, UserEvent::Quit) { + *control_flow = ControlFlow::Exit; + } else if let Err(e) = handle_event(ev, &window, &proxy, &mut state) { + eprintln!("event error: {e:#}"); + } + } + Event::WindowEvent { event: WindowEvent::Resized(_size), .. } => { + reflow_layout(&window, &state); + } + Event::WindowEvent { event: WindowEvent::CloseRequested, .. } => { + *control_flow = ControlFlow::Exit; + } + _ => {} + } + }); +} + +fn apply_linux_runtime_overrides(_args: &Cli) { + #[cfg(target_os = "linux")] + { + sanitize_gtk_modules_env(); + + match _args.linux_backend { + crate::cli::LinuxBackend::Auto => {} + crate::cli::LinuxBackend::X11 => { + unsafe { + std::env::set_var("WINIT_UNIX_BACKEND", "x11"); + std::env::set_var("GDK_BACKEND", "x11"); + } + } + crate::cli::LinuxBackend::Wayland => { + unsafe { + std::env::set_var("WINIT_UNIX_BACKEND", "wayland"); + std::env::set_var("GDK_BACKEND", "wayland"); + } + } + } + + if _args.linux_disable_dmabuf { + // WebKitGTK + NVIDIA can fail with dmabuf/gbm allocation on some systems. + unsafe { + std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1"); + } + } + } +} + +#[cfg(target_os = "linux")] +fn sanitize_gtk_modules_env() { + fn is_appmenu_module(token: &str) -> bool { + let normalized = token.trim().trim_end_matches(".so").to_ascii_lowercase(); + normalized == "appmenu-gtk-module" + || normalized == "appmenu" + || normalized.ends_with("/appmenu-gtk-module") + } + + fn sanitize_var(name: &str) { + match std::env::var(name) { + Ok(raw) => { + let mut kept = Vec::new(); + for token in raw.split(|c: char| c == ':' || c == ';' || c == ',' || c.is_ascii_whitespace()) { + let trimmed = token.trim(); + if trimmed.is_empty() || is_appmenu_module(trimmed) { + continue; + } + kept.push(trimmed.to_string()); + } + + let next = kept.join(":"); + if next == raw { + return; + } + + unsafe { + // Keep GTK from auto-loading the missing appmenu module on desktops + // that export it globally. + std::env::set_var(name, next); + } + } + Err(_) => unsafe { + // Force an explicit empty override so GTK does not inherit a desktop-level + // appmenu module setting from system configuration. + std::env::set_var(name, ""); + }, + } + } + + sanitize_var("GTK_MODULES"); + sanitize_var("GTK3_MODULES"); + + unsafe { + std::env::set_var("UBUNTU_MENUPROXY", "0"); + } +} + +fn resolve_webview_host_mode(args: &Cli) -> WebViewHostMode { + #[cfg(target_os = "linux")] + { + return match args.linux_backend { + crate::cli::LinuxBackend::X11 => WebViewHostMode::Child, + crate::cli::LinuxBackend::Wayland => WebViewHostMode::Window, + crate::cli::LinuxBackend::Auto => { + let forced = std::env::var("WINIT_UNIX_BACKEND").ok(); + if forced.as_deref() == Some("x11") { + return WebViewHostMode::Child; + } + if forced.as_deref() == Some("wayland") { + return WebViewHostMode::Window; + } + + let session_type = std::env::var("XDG_SESSION_TYPE").unwrap_or_default(); + let has_wayland_display = std::env::var_os("WAYLAND_DISPLAY").is_some(); + if session_type.eq_ignore_ascii_case("wayland") || has_wayland_display { + WebViewHostMode::Window + } else { + WebViewHostMode::Child + } + } + }; + } + + #[cfg(not(target_os = "linux"))] + { + let _ = args; + WebViewHostMode::Child + } +} + +// ---------- Event handling --------------------------------------------- + +fn handle_event( + ev: UserEvent, + window: &Window, + proxy: &EventLoopProxy, + state: &mut BrowserState, +) -> Result<()> { + match ev { + UserEvent::ChromeIpc(msg) => handle_chrome_ipc(&msg, window, proxy, state)?, + UserEvent::TitleChanged { tab_id, title } => { + if let Some(i) = state.find_index(tab_id) { + if !title.trim().is_empty() { + state.tabs[i].title = title; + push_tabs(state); + } + } + } + UserEvent::PageLoaded { tab_id, url } => { + if let Some(i) = state.find_index(tab_id) { + if !url.is_empty() && url != "about:blank" { + let previous = state.tabs[i].url.clone(); + if url != previous { + if state.tabs[i].pending_nav_from_stack { + state.tabs[i].pending_nav_from_stack = false; + } else if !previous.is_empty() + && previous != "about:blank" + && !is_internal_page(&previous) + { + state.tabs[i].back_stack.push(previous); + trim_tab_nav_stack(&mut state.tabs[i].back_stack); + state.tabs[i].forward_stack.clear(); + } + state.tabs[i].url = url; + } else { + state.tabs[i].pending_nav_from_stack = false; + } + if !is_internal_page(&state.tabs[i].url) { + append_history( + state, + state.tabs[i].title.clone(), + state.tabs[i].url.clone(), + ); + } + let enabled = if state.adblock_enabled { "true" } else { "false" }; + if let Some(webview) = state.tabs[i].webview.as_ref() { + let _ = webview.evaluate_script(&format!( + "window.__rustywolfSetAdblockEnabled && window.__rustywolfSetAdblockEnabled({enabled});" + )); + } + push_tabs(state); + } + } + } + UserEvent::DownloadStarted { url, file_path } => { + state.downloads.push(DownloadEntry { + url, + file_path, + status: "In progress".to_string(), + in_progress: true, + downloaded_bytes: 0, + total_bytes: None, + updated_at: now_stamp(), + }); + trim_downloads(state); + push_downloads(state); + } + UserEvent::DownloadTotal { file_path, total_bytes } => { + if let Some(entry) = state + .downloads + .iter_mut() + .rev() + .find(|d| d.file_path == file_path && d.in_progress) + { + entry.total_bytes = total_bytes; + push_downloads(state); + } + } + UserEvent::DownloadTick => { + let mut changed = false; + for entry in state.downloads.iter_mut().filter(|d| d.in_progress) { + if let Ok(meta) = fs::metadata(&entry.file_path) { + let bytes = meta.len(); + if bytes != entry.downloaded_bytes { + entry.downloaded_bytes = bytes; + changed = true; + } + } + } + if changed { + push_downloads(state); + } + } + UserEvent::DownloadCompleted { url, file_path, success } => { + let path = file_path.unwrap_or_else(|| "Unknown destination".to_string()); + if let Some(entry) = state + .downloads + .iter_mut() + .rev() + .find(|d| d.url == url && d.in_progress) + { + entry.file_path = path; + entry.status = if success { + "Completed".to_string() + } else { + "Failed".to_string() + }; + entry.in_progress = false; + if let Ok(meta) = fs::metadata(&entry.file_path) { + entry.downloaded_bytes = meta.len(); + } + entry.updated_at = now_stamp(); + } else { + state.downloads.push(DownloadEntry { + url, + file_path: path, + status: if success { + "Completed".to_string() + } else { + "Failed".to_string() + }, + in_progress: false, + downloaded_bytes: 0, + total_bytes: None, + updated_at: now_stamp(), + }); + trim_downloads(state); + } + push_downloads(state); + } + UserEvent::OpenInNewTab { url } => { + if should_open_new_tab_url(&url) { + let trimmed = url.trim(); + let host = url::Url::parse(trimmed) + .ok() + .and_then(|u| u.host_str().map(ToString::to_string)) + .unwrap_or_default(); + + if !host.is_empty() && state.popup_allow_hosts.contains(&host) { + open_tab(state, window, proxy, trimmed.to_string())?; + } else if state.pending_popup.is_none() { + state.pending_popup = Some(PendingPopup { + url: trimmed.to_string(), + host, + }); + push_popup_prompt(state); + reflow_layout(window, state); + } + } + } + UserEvent::Quit => {} + } + Ok(()) +} + +fn handle_chrome_ipc( + message: &str, + window: &Window, + proxy: &EventLoopProxy, + state: &mut BrowserState, +) -> Result<()> { + if let Some(raw_url) = message.strip_prefix("navigate:") { + ensure_active_tab_loaded(state, window, proxy)?; + if let Some(tab) = active_tab_mut(state) { + let next = normalize_url(raw_url); + if next != tab.url && !tab.url.is_empty() && tab.url != "about:blank" { + tab.back_stack.push(tab.url.clone()); + trim_tab_nav_stack(&mut tab.back_stack); + tab.forward_stack.clear(); + } + tab.pending_nav_from_stack = false; + tab.url = next.clone(); + tab.title = "Loading…".to_string(); + if let Some(webview) = tab.webview.as_ref() { + let _ = webview.load_url(&next); + } + push_tabs(state); + } + return Ok(()); + } + + if message == "back" { + ensure_active_tab_loaded(state, window, proxy)?; + if let Some(tab) = active_tab_mut(state) { + if let Some(target) = tab.back_stack.pop() { + if !tab.url.is_empty() && tab.url != "about:blank" { + tab.forward_stack.push(tab.url.clone()); + trim_tab_nav_stack(&mut tab.forward_stack); + } + tab.pending_nav_from_stack = true; + tab.url = target.clone(); + tab.title = "Loading…".to_string(); + if let Some(webview) = tab.webview.as_ref() { + let _ = webview.load_url(&target); + } + push_tabs(state); + } else { + run_script_on_active_tab(state, "history.back();"); + } + } + return Ok(()); + } + + if message == "forward" { + ensure_active_tab_loaded(state, window, proxy)?; + if let Some(tab) = active_tab_mut(state) { + if let Some(target) = tab.forward_stack.pop() { + if !tab.url.is_empty() && tab.url != "about:blank" { + tab.back_stack.push(tab.url.clone()); + trim_tab_nav_stack(&mut tab.back_stack); + } + tab.pending_nav_from_stack = true; + tab.url = target.clone(); + tab.title = "Loading…".to_string(); + if let Some(webview) = tab.webview.as_ref() { + let _ = webview.load_url(&target); + } + push_tabs(state); + } else { + run_script_on_active_tab(state, "history.forward();"); + } + } + return Ok(()); + } + + if message == "reload" { + run_script_on_active_tab(state, "location.reload();"); + return Ok(()); + } + + if message == "new_tab" { + open_tab(state, window, proxy, NEW_TAB_URL.to_string())?; + return Ok(()); + } + + if message == "open_properties" { + let properties_url = properties_data_url(state); + open_tab(state, window, proxy, properties_url)?; + if let Some(tab) = state.tabs.last_mut() { + tab.title = "Properties".to_string(); + } + push_tabs(state); + return Ok(()); + } + + if message == "toggle_downloads" { + state.downloads_panel_open = !state.downloads_panel_open; + reflow_layout(window, state); + push_downloads(state); + return Ok(()); + } + + if message == "popup_allow_yes" { + if let Some(pending) = state.pending_popup.take() { + if !pending.host.is_empty() { + state.popup_allow_hosts.insert(pending.host); + } + push_popup_prompt(state); + reflow_layout(window, state); + open_tab(state, window, proxy, pending.url)?; + } + return Ok(()); + } + + if message == "popup_allow_no" { + state.pending_popup = None; + push_popup_prompt(state); + reflow_layout(window, state); + return Ok(()); + } + + if message == "toggle_adblock" { + state.adblock_enabled = !state.adblock_enabled; + apply_adblock_setting_to_tabs(state); + push_adblock(state); + return Ok(()); + } + + if message == "close_active_tab" { + if !state.tabs.is_empty() { + let tab_id = state.tabs[state.active].id; + if close_tab(state, window, proxy, tab_id)? { + let _ = proxy.send_event(UserEvent::Quit); + } + } + return Ok(()); + } + + if let Some(raw) = message.strip_prefix("toggle_kir:") { + if let Ok(target_id) = raw.parse::() { + if let Some(i) = state.find_index(target_id) { + state.tabs[i].kir_enabled = !state.tabs[i].kir_enabled; + if i != state.active && !state.tabs[i].kir_enabled { + state.tabs[i].webview = None; + } + apply_visibility(state); + push_tabs(state); + } + } + return Ok(()); + } + + if let Some(raw) = message.strip_prefix("switch_tab:") { + if let Ok(target_id) = raw.parse::() { + if let Some(i) = state.find_index(target_id) { + state.active = i; + ensure_active_tab_loaded(state, window, proxy)?; + suspend_background_tabs(state); + apply_visibility(state); + push_tabs(state); + } + } + return Ok(()); + } + + if let Some(raw) = message.strip_prefix("close_tab:") { + if let Ok(target_id) = raw.parse::() { + if close_tab(state, window, proxy, target_id)? { + let _ = proxy.send_event(UserEvent::Quit); + } + } + return Ok(()); + } + + Ok(()) +} + +// ---------- Webview builders ------------------------------------------- + +fn build_chrome( + window: &Window, + proxy: &EventLoopProxy, + host_mode: WebViewHostMode, + #[cfg(target_os = "linux")] gtk_chrome_container: Option<>k::Box>, +) -> Result<(WebView, WebViewHostMode)> { + let chrome_rect = chrome_bounds(window, CHROME_HEIGHT_BASE, host_mode); + let builder = || { + let chrome_proxy = proxy.clone(); + WebViewBuilder::new() + .with_html(CHROME_HTML) + .with_bounds(chrome_rect) + .with_ipc_handler(move |req| { + let _ = chrome_proxy.send_event(UserEvent::ChromeIpc(req.body().to_string())); + }) + }; + + match host_mode { + WebViewHostMode::Window => { + #[cfg(target_os = "linux")] + { + if let Some(container) = gtk_chrome_container { + match builder().build_gtk(container) { + Ok(webview) => return Ok((webview, WebViewHostMode::Window)), + Err(gtk_err) => { + return builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|fallback_err| { + anyhow!( + "Failed to create chrome webview: gtk hosting failed ({gtk_err}); window fallback failed ({fallback_err})" + ) + }); + } + } + } + return builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|err| anyhow!("Failed to create chrome webview: {err}")); + } + + #[cfg(not(target_os = "linux"))] + { + builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|err| anyhow!("Failed to create chrome webview: {err}")) + } + } + WebViewHostMode::Child => match builder().build_as_child(window) { + Ok(webview) => Ok((webview, WebViewHostMode::Child)), + Err(err) => { + let err_text = err.to_string(); + if is_child_webview_unsupported_error(&err_text) { + eprintln!( + "child chrome webview unsupported on this backend; falling back to window-hosted chrome" + ); + #[cfg(target_os = "linux")] + { + if let Some(container) = gtk_chrome_container { + match builder().build_gtk(container) { + Ok(webview) => return Ok((webview, WebViewHostMode::Window)), + Err(gtk_err) => { + return builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|fallback_err| { + anyhow!( + "Failed to create chrome webview: child failed ({err_text}); gtk fallback failed ({gtk_err}); window fallback failed ({fallback_err})" + ) + }); + } + } + } + return builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|fallback_err| { + anyhow!( + "Failed to create chrome webview: child failed ({err_text}); window fallback failed ({fallback_err})" + ) + }); + } + + #[cfg(not(target_os = "linux"))] + { + return builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|fallback_err| { + anyhow!( + "Failed to create chrome webview: child failed ({err_text}); window fallback failed ({fallback_err})" + ) + }); + } + } + Err(anyhow!("Failed to create chrome webview: {err_text}")) + } + }, + } +} + +fn is_child_webview_unsupported_error(err_text: &str) -> bool { + #[cfg(target_os = "linux")] + { + let lower = err_text.to_ascii_lowercase(); + lower.contains("window handle kind is not supported") + || (lower.contains("child") && lower.contains("not supported")) + } + + #[cfg(not(target_os = "linux"))] + { + let _ = err_text; + false + } +} + +fn build_tab_webview( + window: &Window, + proxy: &EventLoopProxy, + host_mode: WebViewHostMode, + #[cfg(target_os = "linux")] gtk_content_container: Option<>k::Box>, + private: bool, + tab_id: u32, + url: &str, + bounds: Rect, +) -> Result<(WebView, WebViewHostMode)> { + let init_script = format!("{PRIVACY_JS}\n{ADBLOCK_JS}"); + let user_agent = browser_user_agent(); + + let builder = || { + let title_proxy = proxy.clone(); + let page_proxy = proxy.clone(); + let download_started_proxy = proxy.clone(); + let download_completed_proxy = proxy.clone(); + let download_total_proxy = proxy.clone(); + let new_window_proxy = proxy.clone(); + + WebViewBuilder::new() + .with_url(url) + .with_user_agent(&user_agent) + .with_incognito(private) + .with_initialization_script(&init_script) + .with_bounds(bounds) + .with_new_window_req_handler(move |target| { + let _ = new_window_proxy.send_event(UserEvent::OpenInNewTab { url: target }); + false + }) + .with_document_title_changed_handler(move |title| { + let _ = title_proxy.send_event(UserEvent::TitleChanged { tab_id, title }); + }) + .with_on_page_load_handler(move |event, url| { + if matches!(event, PageLoadEvent::Finished) { + let _ = page_proxy.send_event(UserEvent::PageLoaded { tab_id, url }); + } + }) + .with_download_started_handler(move |url, destination| { + let path = ensure_unique_download_path(default_download_path_for(&url)); + if let Some(parent) = path.parent() { + let _ = std::fs::create_dir_all(parent); + } + *destination = path.clone(); + let path_string = path_to_string(&path); + fetch_download_total(url.clone(), path_string.clone(), download_total_proxy.clone()); + let _ = download_started_proxy.send_event(UserEvent::DownloadStarted { + url, + file_path: path_string, + }); + true + }) + .with_download_completed_handler(move |url, path, success| { + let _ = download_completed_proxy.send_event(UserEvent::DownloadCompleted { + url, + file_path: path.map(|p| path_to_string(&p)), + success, + }); + }) + }; + + match host_mode { + WebViewHostMode::Window => { + #[cfg(target_os = "linux")] + { + if let Some(container) = gtk_content_container { + match builder().build_gtk(container) { + Ok(webview) => return Ok((webview, WebViewHostMode::Window)), + Err(gtk_err) => { + return builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|fallback_err| { + anyhow!( + "Failed to create tab webview: gtk hosting failed ({gtk_err}); window fallback failed ({fallback_err})" + ) + }); + } + } + } + return builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|err| anyhow!("Failed to create tab webview: {err}")); + } + + #[cfg(not(target_os = "linux"))] + { + builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|err| anyhow!("Failed to create tab webview: {err}")) + } + } + WebViewHostMode::Child => match builder().build_as_child(window) { + Ok(webview) => Ok((webview, WebViewHostMode::Child)), + Err(err) => { + let err_text = err.to_string(); + if is_child_webview_unsupported_error(&err_text) { + eprintln!( + "child tab webview unsupported on this backend; falling back to window-hosted tabs" + ); + #[cfg(target_os = "linux")] + { + if let Some(container) = gtk_content_container { + match builder().build_gtk(container) { + Ok(webview) => return Ok((webview, WebViewHostMode::Window)), + Err(gtk_err) => { + return builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|fallback_err| { + anyhow!( + "Failed to create tab webview: child failed ({err_text}); gtk fallback failed ({gtk_err}); window fallback failed ({fallback_err})" + ) + }); + } + } + } + return builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|fallback_err| { + anyhow!( + "Failed to create tab webview: child failed ({err_text}); window fallback failed ({fallback_err})" + ) + }); + } + + #[cfg(not(target_os = "linux"))] + { + return builder() + .build(window) + .map(|webview| (webview, WebViewHostMode::Window)) + .map_err(|fallback_err| { + anyhow!( + "Failed to create tab webview: child failed ({err_text}); window fallback failed ({fallback_err})" + ) + }); + } + } + Err(anyhow!("Failed to create tab webview: {err_text}")) + } + }, + } +} + +fn browser_user_agent() -> String { + let platform = if cfg!(target_os = "macos") { + "Macintosh; Intel Mac OS X 14_0" + } else if cfg!(target_os = "windows") { + "Windows NT 10.0; Win64; x64" + } else { + "X11; Linux x86_64" + }; + + // Keep broad compatibility while explicitly identifying RustyWolf. + format!( + "Mozilla/5.0 ({platform}; rv:128.0) {MODERN_BROWSER_UA_BASE} RustyWolf/{}", + env!("CARGO_PKG_VERSION") + ) +} + +fn open_tab( + state: &mut BrowserState, + window: &Window, + proxy: &EventLoopProxy, + url: String, +) -> Result<()> { + let tab_id = state.alloc_id(); + let chrome_h = chrome_height(state); + let tab_bounds = content_bounds(window, chrome_h, state.host_mode); + let (webview, effective_host_mode) = build_tab_webview( + window, + proxy, + state.host_mode, + #[cfg(target_os = "linux")] + state.gtk_content_container.as_ref(), + state.private, + tab_id, + &url, + tab_bounds, + )?; + state.host_mode = effective_host_mode; + + state.tabs.push(Tab { + id: tab_id, + title: "New Tab".into(), + url, + kir_enabled: false, + webview: Some(webview), + back_stack: Vec::new(), + forward_stack: Vec::new(), + pending_nav_from_stack: false, + }); + state.active = state.tabs.len() - 1; + + suspend_background_tabs(state); + + apply_visibility(state); + push_tabs(state); + push_downloads(state); + push_adblock(state); + push_popup_prompt(state); + if state.adblock_enabled { + if let Some(webview) = state.tabs[state.active].webview.as_ref() { + let _ = webview.evaluate_script( + "window.__rustywolfSetAdblockEnabled && window.__rustywolfSetAdblockEnabled(true);", + ); + } + } + Ok(()) +} + +fn close_tab( + state: &mut BrowserState, + window: &Window, + proxy: &EventLoopProxy, + tab_id: u32, +) -> Result { + let Some(index) = state.find_index(tab_id) else { return Ok(false); }; + state.tabs.remove(index); + + if state.tabs.is_empty() { + return Ok(true); + } + if state.active >= state.tabs.len() { + state.active = state.tabs.len() - 1; + } else if index < state.active { + state.active -= 1; + } + ensure_active_tab_loaded(state, window, proxy)?; + suspend_background_tabs(state); + apply_visibility(state); + push_tabs(state); + Ok(false) +} + +// ---------- Helpers ---------------------------------------------------- + +fn active_tab_mut(state: &mut BrowserState) -> Option<&mut Tab> { + state.tabs.get_mut(state.active) +} + +fn ensure_active_tab_loaded( + state: &mut BrowserState, + window: &Window, + proxy: &EventLoopProxy, +) -> Result<()> { + if state.tabs.is_empty() { + return Ok(()); + } + ensure_tab_loaded(state, window, proxy, state.active) +} + +fn ensure_tab_loaded( + state: &mut BrowserState, + window: &Window, + proxy: &EventLoopProxy, + index: usize, +) -> Result<()> { + if index >= state.tabs.len() || state.tabs[index].webview.is_some() { + return Ok(()); + } + let chrome_h = chrome_height(state); + let tab_bounds = content_bounds(window, chrome_h, state.host_mode); + let tab_id = state.tabs[index].id; + let tab_url = state.tabs[index].url.clone(); + let (webview, effective_host_mode) = build_tab_webview( + window, + proxy, + state.host_mode, + #[cfg(target_os = "linux")] + state.gtk_content_container.as_ref(), + state.private, + tab_id, + &tab_url, + tab_bounds, + )?; + state.host_mode = effective_host_mode; + state.tabs[index].webview = Some(webview); + Ok(()) +} + +fn suspend_background_tabs(state: &mut BrowserState) { + for (i, tab) in state.tabs.iter_mut().enumerate() { + if i != state.active && !tab.kir_enabled { + tab.webview = None; + } + } +} + +fn run_script_on_active_tab(state: &BrowserState, script: &str) { + if let Some(tab) = state.tabs.get(state.active) { + if let Some(webview) = tab.webview.as_ref() { + let _ = webview.evaluate_script(script); + } + } +} + +fn apply_visibility(state: &BrowserState) { + for (i, tab) in state.tabs.iter().enumerate() { + if let Some(webview) = tab.webview.as_ref() { + let _ = webview.set_visible(i == state.active); + } + } +} + +fn push_tabs(state: &BrowserState) { + if state.tabs.is_empty() { return; } + let payload = json!({ + "tabs": state.tabs.iter().map(|t| json!({ + "id": t.id, + "title": t.title, + "url": t.url, + "kirEnabled": t.kir_enabled, + "loaded": t.webview.is_some(), + })).collect::>(), + "activeId": state.tabs[state.active].id, + }) + .to_string(); + let script = format!("window.__rustywolfSetTabs && window.__rustywolfSetTabs({payload});"); + let _ = state.chrome.evaluate_script(&script); +} + +fn push_downloads(state: &BrowserState) { + let payload = json!({ + "panelOpen": state.downloads_panel_open, + "downloads": state + .downloads + .iter() + .rev() + .filter(|d| d.in_progress) + .take(12) + .map(|d| json!({ + "url": d.url, + "filePath": d.file_path, + "status": d.status, + "inProgress": d.in_progress, + "downloadedBytes": d.downloaded_bytes, + "totalBytes": d.total_bytes, + })) + .collect::>(), + }) + .to_string(); + let script = format!( + "window.__rustywolfSetDownloads && window.__rustywolfSetDownloads({payload});" + ); + let _ = state.chrome.evaluate_script(&script); +} + +fn push_adblock(state: &BrowserState) { + let enabled = if state.adblock_enabled { "true" } else { "false" }; + let script = format!("window.__rustywolfSetAdblock && window.__rustywolfSetAdblock({enabled});"); + let _ = state.chrome.evaluate_script(&script); +} + +fn push_popup_prompt(state: &BrowserState) { + let payload = match &state.pending_popup { + Some(pending) => json!({ + "visible": true, + "host": if pending.host.is_empty() { "this website" } else { &pending.host }, + }), + None => json!({ "visible": false }), + } + .to_string(); + let script = format!( + "window.__rustywolfSetPopupPrompt && window.__rustywolfSetPopupPrompt({payload});" + ); + let _ = state.chrome.evaluate_script(&script); +} + +fn apply_adblock_setting_to_tabs(state: &BrowserState) { + let enabled = if state.adblock_enabled { "true" } else { "false" }; + let script = format!( + "window.__rustywolfSetAdblockEnabled && window.__rustywolfSetAdblockEnabled({enabled});" + ); + for tab in &state.tabs { + if let Some(webview) = tab.webview.as_ref() { + let _ = webview.evaluate_script(&script); + } + } +} + +fn logical_size(window: &Window) -> (f64, f64) { + let scale = window.scale_factor(); + let phys = window.inner_size(); + (phys.width as f64 / scale, phys.height as f64 / scale) +} + +fn chrome_bounds(window: &Window, chrome_h: f64, _host_mode: WebViewHostMode) -> Rect { + let (logical_w, _logical_h) = logical_size(window); + Rect { + position: wry::dpi::LogicalPosition::new(0.0, 0.0).into(), + size: wry::dpi::Size::Logical(wry::dpi::LogicalSize::new(logical_w, chrome_h)), + } +} + +fn content_bounds(window: &Window, chrome_h: f64, _host_mode: WebViewHostMode) -> Rect { + #[cfg(target_os = "linux")] + { + if _host_mode == WebViewHostMode::Window { + let (logical_w, logical_h) = logical_size(window); + return Rect { + // Content webviews are inside a dedicated GTK content container. + position: wry::dpi::LogicalPosition::new(0.0, 0.0).into(), + size: wry::dpi::Size::Logical(wry::dpi::LogicalSize::new( + logical_w, + (logical_h - chrome_h).max(0.0), + )), + }; + } + } + + let (logical_w, logical_h) = logical_size(window); + Rect { + position: wry::dpi::LogicalPosition::new(0.0, chrome_h).into(), + size: wry::dpi::Size::Logical(wry::dpi::LogicalSize::new( + logical_w, + (logical_h - chrome_h).max(0.0), + )), + } +} + +fn reflow_layout(window: &Window, state: &BrowserState) { + let chrome_h = chrome_height(state); + #[cfg(target_os = "linux")] + { + if let Some(container) = state.gtk_chrome_container.as_ref() { + set_linux_chrome_container_height(container, chrome_h); + } + if state.host_mode == WebViewHostMode::Window && state.gtk_chrome_container.is_some() { + // GTK container layout controls bounds in window-host mode. + return; + } + } + let _ = state + .chrome + .set_bounds(chrome_bounds(window, chrome_h, state.host_mode)); + let cb = content_bounds(window, chrome_h, state.host_mode); + for tab in &state.tabs { + if let Some(webview) = tab.webview.as_ref() { + let _ = webview.set_bounds(cb); + } + } +} + +#[cfg(target_os = "linux")] +fn create_linux_webview_containers(window: &Window) -> Result<(gtk::Box, gtk::Box)> { + let vbox = window.default_vbox().ok_or_else(|| { + anyhow!("Failed to access default GTK vbox required for Linux webview hosting") + })?; + + let chrome = gtk::Box::new(gtk::Orientation::Vertical, 0); + chrome.set_hexpand(true); + chrome.set_vexpand(false); + + let content = gtk::Box::new(gtk::Orientation::Vertical, 0); + content.set_hexpand(true); + content.set_vexpand(true); + + vbox.pack_start(&chrome, false, false, 0); + vbox.pack_start(&content, true, true, 0); + + chrome.show_all(); + content.show_all(); + vbox.show_all(); + + Ok((chrome, content)) +} + +#[cfg(target_os = "linux")] +fn set_linux_chrome_container_height(container: >k::Box, chrome_h: f64) { + container.set_size_request(-1, chrome_h.max(0.0).round() as i32); +} + +fn load_window_icon() -> Option { + let image = image::load_from_memory_with_format( + include_bytes!("rustywolf.ico"), + image::ImageFormat::Ico, + ) + .ok()? + .into_rgba8(); + let (width, height) = image.dimensions(); + Icon::from_rgba(image.into_raw(), width, height).ok() +} + +fn chrome_height(state: &BrowserState) -> f64 { + let mut height = CHROME_HEIGHT_BASE; + if state.downloads_panel_open { + height += CHROME_HEIGHT_DOWNLOADS_EXTRA; + } + if state.pending_popup.is_some() { + height += CHROME_HEIGHT_POPUP_PROMPT_EXTRA; + } + height +} + +fn normalize_url(input: &str) -> String { + let trimmed = input.trim(); + if trimmed == "about:blank" { return trimmed.to_string(); } + if trimmed.starts_with("http://") || trimmed.starts_with("https://") { + return trimmed.to_string(); + } + if looks_like_address(trimmed) { + return format!("https://{trimmed}"); + } + let encoded: String = url::form_urlencoded::byte_serialize(trimmed.as_bytes()).collect(); + format!("{SEARCH_URL_PREFIX}{encoded}") +} + +fn should_open_new_tab_url(raw: &str) -> bool { + let trimmed = raw.trim(); + if trimmed.is_empty() || trimmed.eq_ignore_ascii_case("about:blank") { + return false; + } + if trimmed.to_ascii_lowercase().starts_with("javascript:") { + return false; + } + + let Ok(parsed) = url::Url::parse(trimmed) else { + return false; + }; + + if parsed.scheme() != "http" && parsed.scheme() != "https" { + return false; + } + + let host = parsed.host_str().unwrap_or_default(); + let path = parsed.path().to_ascii_lowercase(); + if (host == "duckduckgo.com" || host.ends_with(".duckduckgo.com")) + && (path == "/post3.html" || path == "/page3" || path == "/page3.html") + { + return false; + } + + true +} + +fn properties_data_url(state: &BrowserState) -> String { + let html = render_properties_html(state); + let encoded = base64::engine::general_purpose::STANDARD.encode(html.as_bytes()); + format!("data:text/html;base64,{encoded}") +} + +fn render_properties_html(state: &BrowserState) -> String { + let history_is_truncated = state.history.len() > PROPERTIES_MAX_ROWS; + let downloads_are_truncated = state.downloads.len() > PROPERTIES_MAX_ROWS; + let history_rows = if state.history.is_empty() { + "No history yet.".to_string() + } else { + state + .history + .iter() + .rev() + .take(PROPERTIES_MAX_ROWS) + .map(|entry| { + format!( + "{}{}{}", + escape_html(&entry.visited_at), + escape_html(&entry.url), + escape_html(&entry.title), + escape_html(&entry.url), + ) + }) + .collect::>() + .join("") + }; + + let download_rows = if state.downloads.is_empty() { + "No downloads yet.".to_string() + } else { + state + .downloads + .iter() + .rev() + .take(PROPERTIES_MAX_ROWS) + .map(|entry| { + let file_url = path_string_to_file_url(&entry.file_path); + format!( + "{}{}{}{}", + escape_html(&entry.updated_at), + escape_html(&entry.status), + escape_html(&file_url), + escape_html(&entry.file_path), + escape_html(&entry.url), + ) + }) + .collect::>() + .join("") + }; + + format!( + "RustyWolf Properties\ + \ +

Browser Properties

Session history and download activity.

\ +

Browsing History

{}

{history_rows}
VisitedTitleURL
\ +

Download History

{}

{download_rows}
UpdatedStatusSaved ToSource URL
\ + " + , + if history_is_truncated { + format!("Showing latest {PROPERTIES_MAX_ROWS} entries.") + } else { + "Showing all entries.".to_string() + }, + if downloads_are_truncated { + format!("Showing latest {PROPERTIES_MAX_ROWS} entries.") + } else { + "Showing all entries.".to_string() + } + ) +} + +fn append_history(state: &mut BrowserState, title: String, url: String) { + if url.is_empty() { + return; + } + state.history.push(HistoryEntry { + title: if title.trim().is_empty() { + url.clone() + } else { + title + }, + url, + visited_at: now_stamp(), + }); + if state.history.len() > MAX_HISTORY_ENTRIES { + let remove_count = state.history.len() - MAX_HISTORY_ENTRIES; + state.history.drain(0..remove_count); + } +} + +fn trim_downloads(state: &mut BrowserState) { + if state.downloads.len() > MAX_DOWNLOAD_ENTRIES { + let remove_count = state.downloads.len() - MAX_DOWNLOAD_ENTRIES; + state.downloads.drain(0..remove_count); + } +} + +fn trim_tab_nav_stack(stack: &mut Vec) { + if stack.len() > MAX_TAB_NAV_ENTRIES { + let remove_count = stack.len() - MAX_TAB_NAV_ENTRIES; + stack.drain(0..remove_count); + } +} + +fn default_download_path_for(url: &str) -> PathBuf { + let mut dir = dirs::download_dir() + .or_else(dirs::home_dir) + .or_else(|| std::env::current_dir().ok()) + .unwrap_or_else(std::env::temp_dir); + dir.push(filename_from_url(url)); + dir +} + +fn ensure_unique_download_path(path: PathBuf) -> PathBuf { + if !path.exists() { + return path; + } + + let parent = path + .parent() + .map(PathBuf::from) + .unwrap_or_else(|| PathBuf::from("/tmp")); + let stem = path + .file_stem() + .and_then(|s| s.to_str()) + .filter(|s| !s.is_empty()) + .unwrap_or("download") + .to_string(); + let ext = path + .extension() + .and_then(|e| e.to_str()) + .filter(|e| !e.is_empty()) + .map(ToString::to_string); + + for idx in 1..=9999 { + let file_name = match &ext { + Some(ext) => format!("{stem} ({idx}).{ext}"), + None => format!("{stem} ({idx})"), + }; + let candidate = parent.join(file_name); + if !candidate.exists() { + return candidate; + } + } + + parent.join(format!("{stem}-{}", now_stamp())) +} + +fn filename_from_url(url: &str) -> String { + let raw = url::Url::parse(url) + .ok() + .and_then(|u| { + u.path_segments().and_then(|mut parts| { + parts + .next_back() + .map(str::trim) + .filter(|name| !name.is_empty()) + .map(ToString::to_string) + }) + }) + .unwrap_or_else(|| "download.bin".to_string()); + + sanitize_filename(&raw) +} + +fn path_to_string(path: &PathBuf) -> String { + path.to_string_lossy().into_owned() +} + +fn now_stamp() -> String { + match SystemTime::now().duration_since(UNIX_EPOCH) { + Ok(duration) => duration.as_secs().to_string(), + Err(_) => "0".to_string(), + } +} + +fn escape_html(input: &str) -> String { + input + .replace('&', "&") + .replace('<', "<") + .replace('>', ">") + .replace('"', """) + .replace('\'', "'") +} + +fn is_internal_page(url: &str) -> bool { + url.starts_with("data:text/html;base64,") +} + +fn path_string_to_file_url(path: &str) -> String { + url::Url::from_file_path(Path::new(path)) + .map(|u| u.to_string()) + .unwrap_or_else(|_| format!("file://{path}")) +} + +fn sanitize_filename(raw: &str) -> String { + let mut out = String::with_capacity(raw.len()); + for ch in raw.chars() { + let invalid = matches!(ch, '<' | '>' | ':' | '"' | '/' | '\\' | '|' | '?' | '*') + || ch.is_control(); + out.push(if invalid { '_' } else { ch }); + } + let trimmed = out.trim_matches('.').trim(); + if trimmed.is_empty() { + "download.bin".to_string() + } else { + trimmed.to_string() + } +} + +fn fetch_download_total(url: String, file_path: String, proxy: EventLoopProxy) { + thread::spawn(move || { + let total_bytes = ureq::head(&url) + .call() + .ok() + .and_then(|resp| resp.header("Content-Length").and_then(|v| v.parse::().ok())); + let _ = proxy.send_event(UserEvent::DownloadTotal { + file_path, + total_bytes, + }); + }); +} + +fn looks_like_address(value: &str) -> bool { + value.contains('.') + || value.contains(':') + || value.starts_with("localhost") + || value.starts_with("127.") + || value.starts_with('[') + || value.starts_with('/') +} + +// ---------- Tests ------------------------------------------------------- + +#[cfg(test)] +mod tests { + use super::{normalize_url, sanitize_filename, should_open_new_tab_url}; + + #[test] + fn keeps_existing_scheme() { + assert_eq!(normalize_url("https://example.com"), "https://example.com"); + } + + #[test] + fn adds_https_for_domains() { + assert_eq!(normalize_url("example.com"), "https://example.com"); + } + + #[test] + fn keeps_about_blank() { + assert_eq!(normalize_url("about:blank"), "about:blank"); + } + + #[test] + fn converts_search_terms_to_duckduckgo_query() { + assert_eq!(normalize_url("privacy browser"), "https://duckduckgo.com/?q=privacy+browser"); + } + + #[test] + fn converts_single_token_to_duckduckgo_query() { + assert_eq!(normalize_url("rust"), "https://duckduckgo.com/?q=rust"); + } + + #[test] + fn trims_before_search() { + assert_eq!(normalize_url(" rust webview "), "https://duckduckgo.com/?q=rust+webview"); + } + + #[test] + fn blocks_blank_and_about_blank_new_tabs() { + assert!(!should_open_new_tab_url("")); + assert!(!should_open_new_tab_url(" about:blank ")); + } + + #[test] + fn blocks_duckduckgo_internal_popup_paths() { + assert!(!should_open_new_tab_url("https://duckduckgo.com/post3.html")); + assert!(!should_open_new_tab_url("https://duckduckgo.com/page3")); + assert!(!should_open_new_tab_url("https://duckduckgo.com/page3.html")); + } + + #[test] + fn allows_regular_https_new_tab_targets() { + assert!(should_open_new_tab_url("https://example.com/")); + assert!(should_open_new_tab_url("https://duckduckgo.com/?q=rust")); + } + + #[test] + fn sanitizes_windows_unsafe_filename_chars() { + assert_eq!(sanitize_filename("report:2026?.pdf"), "report_2026_.pdf"); + } + + #[test] + fn falls_back_when_filename_becomes_empty() { + assert_eq!(sanitize_filename("..."), "download.bin"); + } +}