diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fbd89e..0c83d27 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -87,6 +87,12 @@ jobs: - uses: dtolnay/rust-toolchain@stable with: targets: ${{ matrix.target }} + - name: Install Linux system dependencies for desktop GUI + if: runner.os == 'Linux' && matrix.use_cross == false + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev + - name: Install cross if: matrix.use_cross @@ -96,7 +102,8 @@ jobs: if: runner.os != 'Windows' run: | if [ "${{ matrix.use_cross }}" = "true" ]; then - cross check --target ${{ matrix.target }} ${{ matrix.features }} + # Cross-compilation: build only core packages (exclude desktop client) + cross check --target ${{ matrix.target }} ${{ matrix.features }} --package rustyclaw-core --package rustyclaw --package rustyclaw-tui else cargo check --target ${{ matrix.target }} ${{ matrix.features }} fi @@ -111,13 +118,18 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + - name: Install Linux system dependencies for desktop GUI + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev + - uses: Swatinem/rust-cache@v2 - name: Run unit tests (default features) - run: cargo test --lib --bins + run: cargo test --lib --bins --package rustyclaw-core --package rustyclaw --package rustyclaw-tui - name: Run unit tests (no default features) - run: cargo test --lib --bins --no-default-features + run: cargo test --lib --bins --no-default-features --package rustyclaw-core --package rustyclaw --package rustyclaw-tui - name: Run doc tests run: cargo test --doc @@ -129,6 +141,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + - name: Install Linux system dependencies for desktop GUI + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libxdo-dev - uses: Swatinem/rust-cache@v2 - name: Build debug binary @@ -147,6 +163,10 @@ jobs: steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable + - name: Install Linux system dependencies for desktop GUI + run: | + sudo apt-get update + sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libxdo-dev - uses: Swatinem/rust-cache@v2 - name: Build release binary diff --git a/Cargo.lock b/Cargo.lock index 84d1327..05fc941 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -85,9 +85,9 @@ dependencies = [ [[package]] name = "anstream" -version = "0.6.21" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a" +checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d" dependencies = [ "anstyle", "anstyle-parse", @@ -100,15 +100,15 @@ dependencies = [ [[package]] name = "anstyle" -version = "1.0.13" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78" +checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000" [[package]] name = "anstyle-parse" -version = "0.2.7" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2" +checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e" dependencies = [ "utf8parse", ] @@ -218,9 +218,9 @@ dependencies = [ [[package]] name = "async-compression" -version = "0.4.40" +version = "0.4.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d67d43201f4d20c78bcda740c142ca52482d81da80681533d33bf3f0596c8e2" +checksum = "d0f9ee0f6e02ffd7ad5816e9464499fba7b3effd01123b515c41d1697c43dad1" dependencies = [ "compression-codecs", "compression-core", @@ -382,6 +382,29 @@ dependencies = [ "tungstenite 0.23.0", ] +[[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 = "atomic-waker" version = "1.1.2" @@ -396,9 +419,9 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" [[package]] name = "aws-lc-rs" -version = "1.16.0" +version = "1.16.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9a7b350e3bb1767102698302bc37256cbd48422809984b98d292c40e2579aa9" +checksum = "a054912289d18629dc78375ba2c3726a3afe3ff71b4edba9dedfca0e3446d1fc" dependencies = [ "aws-lc-sys", "zeroize", @@ -406,9 +429,9 @@ dependencies = [ [[package]] name = "aws-lc-sys" -version = "0.37.1" +version = "0.39.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b092fe214090261288111db7a2b2c2118e5a7f30dc2569f1732c4069a6840549" +checksum = "1fa7e52a4c5c547c741610a2c6f123f3881e409b714cd27e6798ef020c514f0a" dependencies = [ "cc", "cmake", @@ -488,6 +511,12 @@ dependencies = [ "virtue", ] +[[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" @@ -526,6 +555,12 @@ dependencies = [ "cpufeatures 0.2.17", ] +[[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" @@ -544,6 +579,15 @@ dependencies = [ "generic-array", ] +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2", +] + [[package]] name = "blocking" version = "1.6.2" @@ -594,6 +638,12 @@ 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" @@ -618,6 +668,31 @@ dependencies = [ "libbz2-rs-sys", ] +[[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 = "cbc" version = "0.1.2" @@ -629,9 +704,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.56" +version = "1.2.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2" +checksum = "7a0dd1ca384932ff3641c8718a02769f1698e7563dc6974ffd03346116310423" dependencies = [ "find-msvc-tools", "jobserver", @@ -645,6 +720,27 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" +[[package]] +name = "cfb" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d38f2da7a0a2c4ccf0065be06397cc26a81f4e528be095826eee9d4adbb8c60f" +dependencies = [ + "byteorder", + "fnv", + "uuid", +] + +[[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" @@ -769,7 +865,7 @@ dependencies = [ "num-traits", "serde", "wasm-bindgen", - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -785,9 +881,9 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.60" +version = "4.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2797f34da339ce31042b27d23607e051786132987f595b02ba4f6a6dffb7030a" +checksum = "b193af5b67834b676abd72466a96c1024e6a6ad978a1f484bd90b85c94041351" dependencies = [ "clap_builder", "clap_derive", @@ -795,9 +891,9 @@ dependencies = [ [[package]] name = "clap_builder" -version = "4.5.60" +version = "4.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24a241312cea5059b13574bb9b3861cabf758b879c15190b37b6d6fd63ab6876" +checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f" dependencies = [ "anstream", "anstyle", @@ -807,9 +903,9 @@ dependencies = [ [[package]] name = "clap_derive" -version = "4.5.55" +version = "4.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a92793da1a46a5f2a02a6f4c46c6496b28c43638adea8306fcb0caa1634f24e5" +checksum = "1110bd8a634a1ab8cb04345d8d878267d57c3cf1b38d91b71af6686408bbca6a" dependencies = [ "heck 0.5.0", "proc-macro2", @@ -819,9 +915,9 @@ dependencies = [ [[package]] name = "clap_lex" -version = "1.0.0" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831" +checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9" [[package]] name = "cmake" @@ -832,11 +928,40 @@ dependencies = [ "cc", ] +[[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 0.24.0", + "foreign-types 0.5.0", + "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" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" +checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570" [[package]] name = "colored" @@ -885,13 +1010,12 @@ dependencies = [ [[package]] name = "console" -version = "0.16.2" +version = "0.16.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03e45a4a8926227e4197636ba97a9fc9b00477e9f4bd711395687c5f0734bec4" +checksum = "d64e8af5551369d19cf50138de61f1c42074ab970f74e99be916646777f8fc87" dependencies = [ "encode_unicode", "libc", - "once_cell", "unicode-width 0.2.2", "windows-sys 0.61.2", ] @@ -902,6 +1026,68 @@ version = "0.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" +[[package]] +name = "const-serialize" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad7154afa56de2f290e3c82c2c6dc4f5b282b6870903f56ef3509aba95866edc" +dependencies = [ + "const-serialize-macro 0.7.2", +] + +[[package]] +name = "const-serialize" +version = "0.8.0-alpha.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e42cd5aabba86f128b3763da1fec1491c0f728ce99245062cd49b6f9e6d235b" +dependencies = [ + "const-serialize 0.7.2", + "const-serialize-macro 0.8.0-alpha.0", + "serde", +] + +[[package]] +name = "const-serialize-macro" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f160aad86b4343e8d4e261fee9965c3005b2fd6bc117d172ab65948779e4acf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "const-serialize-macro" +version = "0.8.0-alpha.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42571ed01eb46d2e1adcf99c8ca576f081e46f2623d13500eba70d1d99a4c439" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "const_format" +version = "0.2.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7faa7469a93a566e9ccc1c73fe783b4a65c274c5ace346038dca9c39fe0030ad" +dependencies = [ + "const_format_proc_macros", +] + +[[package]] +name = "const_format_proc_macros" +version = "0.2.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d57c2eccfb16dbac1f4e61e206105db5820c9d26c3c472bc17c774259ef7744" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + [[package]] name = "const_panic" version = "0.2.15" @@ -923,6 +1109,21 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3d52eff69cd5e647efe296129160853a42795992097e8af39800e1060caeea9b" +[[package]] +name = "convert_case" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6245d59a3e82a7fc217c5828a6692dbc6dfb63a0c8c90495621f7b9d79704a0e" + +[[package]] +name = "convert_case" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baaaa0ecca5b51987b9423ccdc971514dd8b0bb7b4060b983d3664dad3f1f89f" +dependencies = [ + "unicode-segmentation", +] + [[package]] name = "cookie" version = "0.18.1" @@ -968,6 +1169,43 @@ 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 0.5.0", + "libc", +] + +[[package]] +name = "core-graphics" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "064badf302c3194842cf2c5d61f56cc88e54a759313879cdf03abdd27d0c3b97" +dependencies = [ + "bitflags 2.11.0", + "core-foundation", + "core-graphics-types", + "foreign-types 0.5.0", + "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" @@ -1035,7 +1273,7 @@ version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "829d955a0bb380ef178a640b91779e3987da38c9aea133b20614cfed8cdea9c6" dependencies = [ - "bitflags", + "bitflags 2.11.0", "crossterm_winapi", "futures-core", "mio", @@ -1078,6 +1316,23 @@ dependencies = [ "typenum", ] +[[package]] +name = "cssparser" +version = "0.29.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f93d03419cb5950ccfd3daf3ff1c7a36ace64609a1a8746d493df1ca0afde0fa" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "matches", + "phf 0.8.0", + "proc-macro2", + "quote", + "smallvec", + "syn 1.0.109", +] + [[package]] name = "cssparser" version = "0.36.0" @@ -1294,9 +1549,9 @@ dependencies = [ [[package]] name = "deflate64" -version = "0.1.10" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26bf8fc351c5ed29b5c2f0cbbac1b209b74f60ecd62e675a998df72c49af5204" +checksum = "ac6b926516df9c60bfa16e107b21086399f8285a44ca9711344b9e553c5146e2" [[package]] name = "delegate" @@ -1354,6 +1609,19 @@ dependencies = [ "syn 1.0.109", ] +[[package]] +name = "derive_more" +version = "0.99.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6edb4b64a43d977b8e99788fe3a04d483834fba1215a7e02caa415b626497f7f" +dependencies = [ + "convert_case 0.4.0", + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.117", +] + [[package]] name = "derive_more" version = "1.0.0" @@ -1398,9 +1666,9 @@ dependencies = [ [[package]] name = "diesel" -version = "2.3.6" +version = "2.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b6c2fc184a6fb6ebcf5f9a5e3bbfa84d8fd268cdfcce4ed508979a6259494d" +checksum = "f4ae09a41a4b89f94ec1e053623da8340d996bc32c6517d325a9daad9b239358" dependencies = [ "diesel_derives", "downcast-rs", @@ -1456,89 +1724,536 @@ dependencies = [ ] [[package]] -name = "directories" -version = "6.0.0" +name = "dioxus" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "16f5094c54661b38d03bd7e50df373292118db60b585c08a411c6d840017fe7d" +checksum = "92b583b48ac77158495e6678fe3a2b5954fc8866fc04cb9695dd146e88bc329d" +dependencies = [ + "dioxus-asset-resolver", + "dioxus-cli-config", + "dioxus-config-macro", + "dioxus-config-macros", + "dioxus-core", + "dioxus-core-macro", + "dioxus-desktop", + "dioxus-devtools", + "dioxus-document", + "dioxus-history", + "dioxus-hooks", + "dioxus-html", + "dioxus-logger", + "dioxus-signals", + "dioxus-stores", + "dioxus-web", + "manganis", + "subsecond", + "warnings", +] + +[[package]] +name = "dioxus-asset-resolver" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0161af1d3cfc8ff31503ff1b7ee0068c97771fc38d0cc6566e23483142ddf4f" dependencies = [ - "dirs-sys 0.5.0", + "dioxus-cli-config", + "http", + "infer", + "jni 0.21.1", + "ndk", + "ndk-context", + "ndk-sys", + "percent-encoding", + "thiserror 2.0.18", + "tokio", ] [[package]] -name = "dirs" -version = "5.0.1" +name = "dioxus-bulma" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" +checksum = "02bffbe99a03ac2b44dae3c8ca8293e1fafa59c125a3c0fe9aee1e75524c8169" dependencies = [ - "dirs-sys 0.4.1", + "dioxus", ] [[package]] -name = "dirs" -version = "6.0.0" +name = "dioxus-cli-config" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +checksum = "ccd67ab405e1915a47df9769cd5408545d1b559d5c01ce7a0f442caef520d1f3" dependencies = [ - "dirs-sys 0.5.0", + "wasm-bindgen", ] [[package]] -name = "dirs-sys" -version = "0.4.1" +name = "dioxus-config-macro" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" +checksum = "f040ec7c41aa5428283f56bb0670afba9631bfe3ffd885f4814807f12c8c9d91" dependencies = [ - "libc", - "option-ext", - "redox_users 0.4.6", - "windows-sys 0.48.0", + "proc-macro2", + "quote", ] [[package]] -name = "dirs-sys" -version = "0.5.0" +name = "dioxus-config-macros" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" -dependencies = [ - "libc", - "option-ext", - "redox_users 0.5.2", - "windows-sys 0.61.2", -] +checksum = "10c41b47b55a433b61f7c12327c85ba650572bacbcc42c342ba2e87a57975264" [[package]] -name = "displaydoc" -version = "0.2.5" +name = "dioxus-core" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +checksum = "b389b0e3cc01c7da292ad9b884b088835fdd1671d45fbd2f737506152b22eef0" dependencies = [ - "proc-macro2", - "quote", - "syn 2.0.117", + "anyhow", + "const_format", + "dioxus-core-types", + "futures-channel", + "futures-util", + "generational-box 0.7.3", + "longest-increasing-subsequence", + "rustc-hash 2.1.1", + "rustversion", + "serde", + "slab", + "slotmap", + "subsecond", + "tracing", ] [[package]] -name = "document-features" -version = "0.2.12" +name = "dioxus-core-macro" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +checksum = "6a82d65f0024fc86f01911a16156d280eea583be5a82a3bed85e7e8e4194302d" dependencies = [ - "litrs", + "convert_case 0.8.0", + "dioxus-rsx", + "proc-macro2", + "quote", + "syn 2.0.117", ] [[package]] -name = "downcast-rs" -version = "2.0.2" +name = "dioxus-core-types" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "117240f60069e65410b3ae1bb213295bd828f707b5bec6596a1afc8793ce0cbc" +checksum = "bfc4b8cdc440a55c17355542fc2089d97949bba674255d84cac77805e1db8c9f" [[package]] -name = "dsl_auto_type" -version = "0.2.0" +name = "dioxus-desktop" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd122633e4bef06db27737f21d3738fb89c8f6d5360d6d9d7635dda142a7757e" +checksum = "7e6ec66749d1556636c5b4f661495565c155a7f78a46d4d007d7478c6bdc288c" dependencies = [ - "darling 0.21.3", + "async-trait", + "base64 0.22.1", + "bytes", + "cocoa", + "core-foundation", + "dioxus-asset-resolver", + "dioxus-cli-config", + "dioxus-core", + "dioxus-devtools", + "dioxus-document", + "dioxus-history", + "dioxus-hooks", + "dioxus-html", + "dioxus-interpreter-js", + "dioxus-signals", + "dunce", + "futures-channel", + "futures-util", + "generational-box 0.7.3", + "global-hotkey", + "infer", + "jni 0.21.1", + "lazy-js-bundle", + "libc", + "muda", + "ndk", + "ndk-context", + "ndk-sys", + "objc", + "objc_id", + "percent-encoding", + "rand 0.9.2", + "rfd", + "rustc-hash 2.1.1", + "serde", + "serde_json", + "signal-hook", + "slab", + "subtle", + "tao", + "thiserror 2.0.18", + "tokio", + "tracing", + "tray-icon", + "tungstenite 0.27.0", + "webbrowser", + "wry", +] + +[[package]] +name = "dioxus-devtools" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcf89488bad8fb0f18b9086ee2db01f95f709801c10c68be42691a36378a0f2d" +dependencies = [ + "dioxus-cli-config", + "dioxus-core", + "dioxus-devtools-types", + "dioxus-signals", + "serde", + "serde_json", + "subsecond", + "thiserror 2.0.18", + "tracing", + "tungstenite 0.27.0", +] + +[[package]] +name = "dioxus-devtools-types" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e7381d9d7d0a0f66b9d5082d584853c3d53be21d34007073daca98ddf26fc4d" +dependencies = [ + "dioxus-core", + "serde", + "subsecond-types", +] + +[[package]] +name = "dioxus-document" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba0aeeff26d9d06441f59fd8d7f4f76098ba30ca9728e047c94486161185ceb" +dependencies = [ + "dioxus-core", + "dioxus-core-macro", + "dioxus-core-types", + "dioxus-html", + "futures-channel", + "futures-util", + "generational-box 0.7.3", + "lazy-js-bundle", + "serde", + "serde_json", + "tracing", +] + +[[package]] +name = "dioxus-history" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d00ba43bfe6e5ca226fef6128f240ca970bea73cac0462416188026360ccdcf" +dependencies = [ + "dioxus-core", + "tracing", +] + +[[package]] +name = "dioxus-hooks" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dab2da4f038c33cb38caa37ffc3f5d6dfbc018f05da35b238210a533bb075823" +dependencies = [ + "dioxus-core", + "dioxus-signals", + "futures-channel", + "futures-util", + "generational-box 0.7.3", + "rustversion", + "slab", + "tracing", +] + +[[package]] +name = "dioxus-html" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eded5fa6d2e677b7442a93f4228bf3c0ad2597a8bd3292cae50c869d015f3a99" +dependencies = [ + "async-trait", + "bytes", + "dioxus-core", + "dioxus-core-macro", + "dioxus-core-types", + "dioxus-hooks", + "dioxus-html-internal-macro", + "enumset", + "euclid", + "futures-channel", + "futures-util", + "generational-box 0.7.3", + "keyboard-types", + "lazy-js-bundle", + "rustversion", + "serde", + "serde_json", + "serde_repr", + "tracing", +] + +[[package]] +name = "dioxus-html-internal-macro" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45462ab85fe059a36841508d40545109fd0e25855012d22583a61908eb5cd02a" +dependencies = [ + "convert_case 0.8.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dioxus-interpreter-js" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a42a7f73ad32a5054bd8c1014f4ac78cca3b7f6889210ee2b57ea31b33b6d32f" +dependencies = [ + "dioxus-core", + "dioxus-core-types", + "dioxus-html", + "js-sys", + "lazy-js-bundle", + "rustc-hash 2.1.1", + "serde", + "sledgehammer_bindgen", + "sledgehammer_utils", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "dioxus-logger" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1eeab114cb009d9e6b85ea10639a18cfc54bb342f3b837770b004c4daeb89c2" +dependencies = [ + "dioxus-cli-config", + "tracing", + "tracing-subscriber", + "tracing-wasm", +] + +[[package]] +name = "dioxus-rsx" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53128858f0ccca9de54292a4d48409fda1df75fd5012c6243f664042f0225d68" +dependencies = [ + "proc-macro2", + "proc-macro2-diagnostics", + "quote", + "rustversion", + "syn 2.0.117", +] + +[[package]] +name = "dioxus-signals" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f48020bc23bc9766e7cce986c0fd6de9af0b8cbfd432652ec6b1094439c1ec6" +dependencies = [ + "dioxus-core", + "futures-channel", + "futures-util", + "generational-box 0.7.3", + "parking_lot", + "rustc-hash 2.1.1", + "tracing", + "warnings", +] + +[[package]] +name = "dioxus-stores" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77aaa9ac56d781bb506cf3c0d23bea96b768064b89fe50d3b4d4659cc6bd8058" +dependencies = [ + "dioxus-core", + "dioxus-signals", + "dioxus-stores-macro", + "generational-box 0.7.3", +] + +[[package]] +name = "dioxus-stores-macro" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b1a728622e7b63db45774f75e71504335dd4e6115b235bbcff272980499493a" +dependencies = [ + "convert_case 0.8.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "dioxus-web" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b33fe739fed4e8143dac222a9153593f8e2451662ce8fc4c9d167a9d6ec0923" +dependencies = [ + "dioxus-cli-config", + "dioxus-core", + "dioxus-core-types", + "dioxus-devtools", + "dioxus-document", + "dioxus-history", + "dioxus-html", + "dioxus-interpreter-js", + "dioxus-signals", + "futures-channel", + "futures-util", + "generational-box 0.7.3", + "gloo-timers", + "js-sys", + "lazy-js-bundle", + "rustc-hash 2.1.1", + "send_wrapper", + "serde", + "serde-wasm-bindgen", + "serde_json", + "tracing", + "wasm-bindgen", + "wasm-bindgen-futures", + "wasm-streams 0.4.2", + "web-sys", +] + +[[package]] +name = "directories" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16f5094c54661b38d03bd7e50df373292118db60b585c08a411c6d840017fe7d" +dependencies = [ + "dirs-sys 0.5.0", +] + +[[package]] +name = "dirs" +version = "5.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" +dependencies = [ + "dirs-sys 0.4.1", +] + +[[package]] +name = "dirs" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e" +dependencies = [ + "dirs-sys 0.5.0", +] + +[[package]] +name = "dirs-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" +dependencies = [ + "libc", + "option-ext", + "redox_users 0.4.6", + "windows-sys 0.48.0", +] + +[[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 0.5.2", + "windows-sys 0.61.2", +] + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.11.0", + "block2", + "libc", + "objc2", +] + +[[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.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e2c5bd4158e66d1e215c49b837e11d62f3267b30c92f1d171c4d3105e3dc4d4" +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 = "document-features" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +dependencies = [ + "litrs", +] + +[[package]] +name = "downcast-rs" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "117240f60069e65410b3ae1bb213295bd828f707b5bec6596a1afc8793ce0cbc" + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" + +[[package]] +name = "dsl_auto_type" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd122633e4bef06db27737f21d3738fb89c8f6d5360d6d9d7635dda142a7757e" +dependencies = [ + "darling 0.21.3", "either", "heck 0.5.0", "proc-macro2", @@ -1684,6 +2399,27 @@ dependencies = [ "syn 2.0.117", ] +[[package]] +name = "enumset" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25b07a8dfbbbfc0064c0a6bdf9edcf966de6b1c33ce344bdeca3b41615452634" +dependencies = [ + "enumset_derive", +] + +[[package]] +name = "enumset_derive" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f43e744e4ea338060faee68ed933e46e722fb7f3617e722a5772d7e856d8b3ce" +dependencies = [ + "darling 0.21.3", + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "env_filter" version = "1.0.0" @@ -1693,12 +2429,6 @@ dependencies = [ "log", ] -[[package]] -name = "env_home" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7f84e12ccf0a7ddc17a6c41c93326024c42920d7ee630d04950e6926645c0fe" - [[package]] name = "env_logger" version = "0.11.9" @@ -1725,6 +2455,16 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "euclid" +version = "0.22.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06" +dependencies = [ + "num-traits", + "serde", +] + [[package]] name = "event-listener" version = "5.4.1" @@ -1802,6 +2542,15 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + [[package]] name = "ff" version = "0.13.1" @@ -1818,6 +2567,16 @@ version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d" +[[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" @@ -1865,7 +2624,28 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1" dependencies = [ - "foreign-types-shared", + "foreign-types-shared 0.1.1", +] + +[[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 0.3.1", +] + +[[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]] @@ -1874,6 +2654,12 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b" +[[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" @@ -2006,13 +2792,117 @@ dependencies = [ "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-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 = "generational-box" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "557cf2cbacd0504c6bf8c29f52f8071e0de1d9783346713dc6121d7fa1e5d0e0" +dependencies = [ + "parking_lot", +] + [[package]] name = "generational-box" -version = "0.5.6" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "557cf2cbacd0504c6bf8c29f52f8071e0de1d9783346713dc6121d7fa1e5d0e0" +checksum = "cc4ed190b9de8e734d47a70be59b1e7588b9e8e0d0036e332f4c014e8aed1bc5" dependencies = [ "parking_lot", + "tracing", ] [[package]] @@ -2026,6 +2916,16 @@ dependencies = [ "zeroize", ] +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix 1.1.4", + "windows-link 0.2.1", +] + [[package]] name = "getopts" version = "0.2.24" @@ -2035,6 +2935,17 @@ dependencies = [ "unicode-width 0.2.2", ] +[[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" @@ -2044,7 +2955,7 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "wasi", + "wasi 0.11.1+wasi-snapshot-preview1", "wasm-bindgen", ] @@ -2057,21 +2968,21 @@ dependencies = [ "cfg-if", "js-sys", "libc", - "r-efi", + "r-efi 5.3.0", "wasip2", "wasm-bindgen", ] [[package]] name = "getrandom" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" dependencies = [ "cfg-if", "js-sys", "libc", - "r-efi", + "r-efi 6.0.0", "rand_core 0.10.0", "wasip2", "wasip3", @@ -2088,12 +2999,108 @@ dependencies = [ "polyval", ] +[[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 = "glob" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0cc23270f6e1808e30a928bdc84dea0b9b4136a8bc82338574f23baf47bbd280" +[[package]] +name = "global-hotkey" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9247516746aa8e53411a0db9b62b0e24efbcf6a76e0ba73e5a91b512ddabed7" +dependencies = [ + "crossbeam-channel", + "keyboard-types", + "objc2", + "objc2-app-kit", + "once_cell", + "thiserror 2.0.18", + "windows-sys 0.59.0", + "x11rb", + "xkeysym", +] + [[package]] name = "gloo-timers" version = "0.3.0" @@ -2119,6 +3126,17 @@ dependencies = [ "web-sys", ] +[[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 = "grid" version = "0.14.0" @@ -2148,6 +3166,58 @@ dependencies = [ "xxhash-rust", ] +[[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 = "h2" version = "0.4.13" @@ -2309,6 +3379,18 @@ dependencies = [ "syn 2.0.117", ] +[[package]] +name = "html5ever" +version = "0.29.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b7410cae13cbc75623c98ac4cbfd1f0bedddf3227afc24f370cf0f50a44a11c" +dependencies = [ + "log", + "mac", + "markup5ever 0.14.1", + "match_token 0.1.0", +] + [[package]] name = "html5ever" version = "0.35.0" @@ -2317,7 +3399,7 @@ checksum = "55d958c2f74b664487a2035fe1dadb032c48718a03b63f3ab0b8537db8549ed4" dependencies = [ "log", "markup5ever 0.35.0", - "match_token", + "match_token 0.35.0", ] [[package]] @@ -2584,6 +3666,19 @@ dependencies = [ "icu_properties", ] +[[package]] +name = "image" +version = "0.25.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6506c6c10786659413faa717ceebcb8f70731c0a60cbae39795fdf114519c1a" +dependencies = [ + "bytemuck", + "byteorder-lite", + "moxcms", + "num-traits", + "png 0.18.1", +] + [[package]] name = "imbl" version = "6.1.0" @@ -2663,6 +3758,15 @@ dependencies = [ "web-time", ] +[[package]] +name = "infer" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a588916bfdfd92e71cacef98a63d9b1f0d74d6599980d11894290e7ddefffcf7" +dependencies = [ + "cfb", +] + [[package]] name = "inout" version = "0.1.4" @@ -2707,10 +3811,10 @@ version = "0.7.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "414c1069adbb85508ad25b2ab519ccfb05a406dbf7e163731f4d1d8cbc8599c3" dependencies = [ - "bitflags", + "bitflags 2.11.0", "crossterm", "futures", - "generational-box", + "generational-box 0.5.6", "iocraft-macros", "taffy", "unicode-width 0.1.14", @@ -2730,9 +3834,9 @@ dependencies = [ [[package]] name = "ipnet" -version = "2.11.0" +version = "2.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130" +checksum = "d98f6fed1fde3f8c21bc40a1abb88dd75e67924f9cffc3ef95607bad8017f8e2" [[package]] name = "ipnetwork" @@ -2742,9 +3846,9 @@ checksum = "cf370abdafd54d13e54a620e8c3e1145f28e46cc9d704bc6d94414559df41763" [[package]] name = "iri-string" -version = "0.7.10" +version = "0.7.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c91338f0783edbd6195decb37bae672fd3b165faffb89bf7b9e6942f8b1a731a" +checksum = "d8e7418f59cc01c88316161279a7f665217ae316b388e58a0d10e29f54f1e5eb" dependencies = [ "memchr", "serde", @@ -2776,15 +3880,38 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.17" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[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 = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" +checksum = "af1be78d14ffa4b75b66df31840478fef72b51f8c2465d4ca7c194da9f7a5124" +dependencies = [ + "glib-sys", + "gobject-sys", + "libc", + "system-deps", +] [[package]] name = "jiff" -version = "0.2.18" +version = "0.2.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e67e8da4c49d6d9909fe03361f9b620f58898859f5c7aded68351e85e71ecf50" +checksum = "1a3546dc96b6d42c5f24902af9e2538e82e39ad350b0c766eb3fbf2d8f3d8359" dependencies = [ "jiff-static", "log", @@ -2795,9 +3922,9 @@ dependencies = [ [[package]] name = "jiff-static" -version = "0.2.18" +version = "0.2.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0c84ee7f197eca9a86c6fd6cb771e55eb991632f15f2bc3ca6ec838929e6e78" +checksum = "2a8c8b344124222efd714b73bb41f8b5120b27a7cc1c75593a6ff768d9d05aa4" dependencies = [ "proc-macro2", "quote", @@ -2812,7 +3939,7 @@ checksum = "c6df18c2e3db7e453d3c6ac5b3e9d5182664d28788126d39b91f2d1e22b017ec" dependencies = [ "cesu8", "combine", - "jni-sys", + "jni-sys 0.3.1", "log", "thiserror 1.0.69", "walkdir", @@ -2827,18 +3954,70 @@ dependencies = [ "cesu8", "cfg-if", "combine", - "jni-sys", + "jni-sys 0.3.1", "log", "thiserror 1.0.69", "walkdir", "windows-sys 0.45.0", ] +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys 0.4.1", + "log", + "simd_cesu8", + "thiserror 2.0.18", + "walkdir", + "windows-link 0.2.1", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.117", +] + [[package]] name = "jni-sys" -version = "0.3.0" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.117", +] [[package]] name = "jobserver" @@ -2852,9 +4031,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.89" +version = "0.3.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4eacb0641a310445a4c513f2a5e23e19952e269c6a38887254d5f837a305506" +checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c" dependencies = [ "once_cell", "wasm-bindgen", @@ -2878,6 +4057,17 @@ dependencies = [ "serde_core", ] +[[package]] +name = "keyboard-types" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b750dcadc39a09dbadd74e118f6dd6598df77fa01df0cfcdc52c28dece74528a" +dependencies = [ + "bitflags 2.11.0", + "serde", + "unicode-segmentation", +] + [[package]] name = "konst" version = "0.3.16" @@ -2898,6 +4088,18 @@ dependencies = [ "typewit", ] +[[package]] +name = "kuchikiki" +version = "0.8.8-speedreader" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02cb977175687f33fa4afa0c95c112b987ea1443e5a51c8f8ff27dc618270cc2" +dependencies = [ + "cssparser 0.29.6", + "html5ever 0.29.1", + "indexmap", + "selectors 0.24.0", +] + [[package]] name = "landlock" version = "0.4.4" @@ -2915,6 +4117,12 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4345964bb142484797b161f473a503a434de77149dd8c7427788c6e13379388" +[[package]] +name = "lazy-js-bundle" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7b88b715ab1496c6e6b8f5e927be961c4235196121b6ae59bcb51077a21dd36" + [[package]] name = "lazy_static" version = "1.5.0" @@ -2930,6 +4138,30 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" +[[package]] +name = "libappindicator" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03589b9607c868cc7ae54c0b2a22c8dc03dd41692d48f2d7df73615c6a95dc0a" +dependencies = [ + "glib", + "gtk", + "gtk-sys", + "libappindicator-sys", + "log", +] + +[[package]] +name = "libappindicator-sys" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9ec52138abedcc58dc17a7c6c0c00a2bdb4f3427c7f63fa97fd0d859155caf" +dependencies = [ + "gtk-sys", + "libloading 0.7.4", + "once_cell", +] + [[package]] name = "libbz2-rs-sys" version = "0.2.2" @@ -2938,9 +4170,29 @@ checksum = "2c4a545a15244c7d945065b5d392b2d2d7f21526fba56ce51467b06ed445e8f7" [[package]] name = "libc" -version = "0.2.182" +version = "0.2.183" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d" + +[[package]] +name = "libloading" +version = "0.7.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +dependencies = [ + "cfg-if", + "winapi", +] + +[[package]] +name = "libloading" +version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if", + "windows-link 0.2.1", +] [[package]] name = "libm" @@ -2950,11 +4202,10 @@ checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" [[package]] name = "libredox" -version = "0.1.12" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d0b95e02c851351f877147b7deea7b1afb1df71b63aa5f8270716e0c5720616" +checksum = "1744e39d1d6a9948f4f388969627434e31128196de472883b39f148769bfe30a" dependencies = [ - "bitflags", "libc", ] @@ -2962,11 +4213,30 @@ dependencies = [ name = "libsqlite3-sys" version = "0.35.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "133c182a6a2c87864fe97778797e46c7e999672690dc9fa3ee8e241aa4a9c13f" +checksum = "133c182a6a2c87864fe97778797e46c7e999672690dc9fa3ee8e241aa4a9c13f" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "libxdo" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00333b8756a3d28e78def82067a377de7fa61b24909000aeaa2b446a948d14db" +dependencies = [ + "libxdo-sys", +] + +[[package]] +name = "libxdo-sys" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db23b9e7e2b7831bbd8aac0bbeeeb7b68cbebc162b227e7052e8e55829a09212" dependencies = [ - "cc", - "pkg-config", - "vcpkg", + "libc", + "x11", ] [[package]] @@ -3008,6 +4278,12 @@ version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" +[[package]] +name = "longest-increasing-subsequence" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b3bd0dd2cd90571056fdb71f6275fada10131182f84899f4b2a916e565d81d86" + [[package]] name = "lru-slab" version = "0.1.2" @@ -3029,6 +4305,17 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4" +[[package]] +name = "macro-string" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b27834086c65ec3f9387b096d66e99f221cf081c2b738042aa252bcd41204e3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "macroific" version = "2.0.0" @@ -3077,6 +4364,55 @@ dependencies = [ "syn 2.0.117", ] +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + +[[package]] +name = "manganis" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6cce7d688848bf9d034168513b9a2ffbfe5f61df2ff14ae15e6cfc866efdd344" +dependencies = [ + "const-serialize 0.7.2", + "const-serialize 0.8.0-alpha.0", + "manganis-core", + "manganis-macro", +] + +[[package]] +name = "manganis-core" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84ce917b978268fe8a7db49e216343ec7c8f471f7e686feb70940d67293f19d4" +dependencies = [ + "const-serialize 0.7.2", + "const-serialize 0.8.0-alpha.0", + "dioxus-cli-config", + "dioxus-core-types", + "serde", + "winnow 0.7.15", +] + +[[package]] +name = "manganis-macro" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad513e990f7c0bca86aa68659a7a3dc4c705572ed4c22fd6af32ccf261334cc2" +dependencies = [ + "dunce", + "macro-string", + "manganis-core", + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "maplit" version = "1.0.2" @@ -3097,6 +4433,20 @@ dependencies = [ "tendril", ] +[[package]] +name = "markup5ever" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a7213d12e1864c0f002f52c2923d4556935a43dec5e71355c2760e0f6e7a18" +dependencies = [ + "log", + "phf 0.11.3", + "phf_codegen 0.11.3", + "string_cache 0.8.9", + "string_cache_codegen 0.5.4", + "tendril", +] + [[package]] name = "markup5ever" version = "0.35.0" @@ -3131,6 +4481,17 @@ dependencies = [ "xml5ever", ] +[[package]] +name = "match_token" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88a9689d8d44bf9964484516275f5cd4c9b59457a6940c1d5d0ecbb94510a36b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + [[package]] name = "match_token" version = "0.35.0" @@ -3151,6 +4512,12 @@ dependencies = [ "regex-automata", ] +[[package]] +name = "matches" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2532096657941c2fea9c289d370a250971c689d4f143798ff67113ec042024a5" + [[package]] name = "matrix-pickle" version = "0.2.2" @@ -3167,7 +4534,7 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a962fc9981f823f6555416dcb2ae9ae67ca412d767ee21ecab5150113ee6285b" dependencies = [ - "proc-macro-crate", + "proc-macro-crate 3.5.0", "proc-macro-error2", "proc-macro2", "quote", @@ -3238,7 +4605,7 @@ checksum = "70f404a390ff98a73c426b1496b169be60ce6a93723a9a664e579d978a84c5e4" dependencies = [ "as_variant", "async-trait", - "bitflags", + "bitflags 2.11.0", "decancer", "eyeball", "eyeball-im", @@ -3461,6 +4828,33 @@ version = "2.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" +[[package]] +name = "memfd" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad38eb12aea514a0466ea40a80fd8cc83637065948eb4a426e4aa46261175227" +dependencies = [ + "rustix 1.1.4", +] + +[[package]] +name = "memmap2" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "714098028fe011992e1c3962653c96b2d578c4b4bce9036e15ff220319b1e0e3" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + [[package]] name = "migrations_internals" version = "2.3.0" @@ -3468,7 +4862,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "36c791ecdf977c99f45f23280405d7723727470f6689a5e6dbf513ac547ae10d" dependencies = [ "serde", - "toml", + "toml 0.9.12+spec-1.1.0", ] [[package]] @@ -3512,15 +4906,15 @@ checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" dependencies = [ "libc", "log", - "wasi", + "wasi 0.11.1+wasi-snapshot-preview1", "windows-sys 0.61.2", ] [[package]] name = "moka" -version = "0.12.13" +version = "0.12.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4ac832c50ced444ef6be0767a008b02c106a909ba79d1d830501e94b96f6b7e" +checksum = "957228ad12042ee839f93c8f257b62b4c0ab5eaae1d4fa60de53b27c9d7c5046" dependencies = [ "async-lock", "crossbeam-channel", @@ -3536,12 +4930,90 @@ dependencies = [ "uuid", ] +[[package]] +name = "moxcms" +version = "0.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac9557c559cd6fc9867e122e20d2cbefc9ca29d80d027a8e39310920ed2f0a97" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "muda" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01c1738382f66ed56b3b9c8119e794a2e23148ac8ea214eda86622d4cb9d415a" +dependencies = [ + "crossbeam-channel", + "dpi", + "gtk", + "keyboard-types", + "libxdo", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "once_cell", + "png 0.17.16", + "thiserror 2.0.18", + "windows-sys 0.60.2", +] + [[package]] name = "multimap" version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1d87ecb2933e8aeadb3e3a02b828fed80a7528047e68b4f424523a0981a3a084" +[[package]] +name = "native-tls" +version = "0.2.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "465500e14ea162429d264d44189adc38b199b62b1c21eea9f69e4b73cb03bbf2" +dependencies = [ + "libc", + "log", + "openssl", + "openssl-probe", + "openssl-sys", + "schannel", + "security-framework", + "security-framework-sys", + "tempfile", +] + +[[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 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle 0.6.2", + "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 0.3.1", +] + [[package]] name = "new_debug_unreachable" version = "1.0.6" @@ -3554,7 +5026,7 @@ version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" dependencies = [ - "bitflags", + "bitflags 2.11.0", "cfg-if", "cfg_aliases", "libc", @@ -3562,16 +5034,22 @@ dependencies = [ [[package]] name = "nix" -version = "0.30.1" +version = "0.31.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74523f3a35e05aba87a1d978330aef40f67b0304ac79c1c00b294c9830543db6" +checksum = "5d6d0705320c1e6ba1d912b5e37cf18071b6c2e9b7fa8215a1e8a7651966f5d3" dependencies = [ - "bitflags", + "bitflags 2.11.0", "cfg-if", "cfg_aliases", "libc", ] +[[package]] +name = "nodrop" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" + [[package]] name = "ntapi" version = "0.4.3" @@ -3617,106 +5095,234 @@ version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e661dda6640fad38e827a6d4a310ff4763082116fe217f279885c97f511bb0b7" dependencies = [ - "lazy_static", - "libm", - "num-integer", - "num-iter", - "num-traits", - "rand 0.8.5", - "smallvec", - "zeroize", + "lazy_static", + "libm", + "num-integer", + "num-iter", + "num-traits", + "rand 0.8.5", + "smallvec", + "zeroize", +] + +[[package]] +name = "num-conv" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" + +[[package]] +name = "num-integer" +version = "0.1.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-iter" +version = "0.1.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" +dependencies = [ + "autocfg", + "num-integer", + "num-traits", +] + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_cpus" +version = "1.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" +dependencies = [ + "hermit-abi", + "libc", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate 3.5.0", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "oauth2" +version = "5.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51e219e79014df21a225b1860a479e2dcd7cbd9130f4defd4bd0e191ea31d67d" +dependencies = [ + "base64 0.22.1", + "chrono", + "getrandom 0.2.17", + "http", + "rand 0.8.5", + "reqwest 0.12.28", + "serde", + "serde_json", + "serde_path_to_error", + "sha2", + "thiserror 1.0.69", + "url", +] + +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", +] + +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +dependencies = [ + "objc2-encode", + "objc2-exception-helper", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-core-foundation", + "objc2-foundation", ] [[package]] -name = "num-conv" -version = "0.2.0" +name = "objc2-core-foundation" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.11.0", + "dispatch2", + "objc2", +] [[package]] -name = "num-integer" -version = "0.1.46" +name = "objc2-core-graphics" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" dependencies = [ - "num-traits", + "bitflags 2.11.0", + "objc2-core-foundation", ] [[package]] -name = "num-iter" -version = "0.1.45" +name = "objc2-encode" +version = "4.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-exception-helper" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7a1c5fbb72d7735b076bb47b578523aedc40f3c439bea6dfd595c089d79d98a" dependencies = [ - "autocfg", - "num-integer", - "num-traits", + "cc", ] [[package]] -name = "num-traits" -version = "0.2.19" +name = "objc2-foundation" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" dependencies = [ - "autocfg", - "libm", + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-core-foundation", ] [[package]] -name = "num_cpus" -version = "1.17.0" +name = "objc2-io-kit" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" +checksum = "33fafba39597d6dc1fb709123dfa8289d39406734be322956a69f0931c73bb15" dependencies = [ - "hermit-abi", "libc", + "objc2-core-foundation", ] [[package]] -name = "oauth2" -version = "5.0.0" +name = "objc2-ui-kit" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51e219e79014df21a225b1860a479e2dcd7cbd9130f4defd4bd0e191ea31d67d" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" dependencies = [ - "base64 0.22.1", - "chrono", - "getrandom 0.2.17", - "http", - "rand 0.8.5", - "reqwest 0.12.28", - "serde", - "serde_json", - "serde_path_to_error", - "sha2", - "thiserror 1.0.69", - "url", + "bitflags 2.11.0", + "objc2", + "objc2-core-foundation", + "objc2-foundation", ] [[package]] -name = "objc2-core-foundation" -version = "0.3.1" +name = "objc2-web-kit" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c10c2894a6fed806ade6027bcd50662746363a9589d3ec9d9bef30a4e4bc166" +checksum = "b2e5aaab980c433cf470df9d7af96a7b46a9d892d521a2cbbb2f8a4c16751e7f" dependencies = [ - "bitflags", + "bitflags 2.11.0", + "block2", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", ] [[package]] -name = "objc2-io-kit" -version = "0.3.1" +name = "objc_id" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71c1c64d6120e51cd86033f67176b1cb66780c2efe34dec55176f77befd93c0a" +checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b" dependencies = [ - "libc", - "objc2-core-foundation", + "objc", ] [[package]] name = "once_cell" -version = "1.21.3" +version = "1.21.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" [[package]] name = "once_cell_polyfill" @@ -3732,13 +5338,13 @@ checksum = "c08d65885ee38876c4f86fa503fb49d7b507c2b62552df7c70b2fce627e06381" [[package]] name = "openssl" -version = "0.10.75" +version = "0.10.76" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08838db121398ad17ab8531ce9de97b244589089e290a384c900cb9ff7434328" +checksum = "951c002c75e16ea2c65b8c7e4d3d51d5530d8dfa7d060b4776828c88cfb18ecf" dependencies = [ - "bitflags", + "bitflags 2.11.0", "cfg-if", - "foreign-types", + "foreign-types 0.3.2", "libc", "once_cell", "openssl-macros", @@ -3773,9 +5379,9 @@ dependencies = [ [[package]] name = "openssl-sys" -version = "0.9.111" +version = "0.9.112" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82cab2d520aa75e3c58898289429321eb788c3106963d0dc886ec7a5f4adc321" +checksum = "57d55af3b3e226502be1526dfdba67ab0e9c96fc293004e79576b2b9edb0dbdb" dependencies = [ "cc", "libc", @@ -3805,7 +5411,7 @@ dependencies = [ "serde-sarif", "serde_json", "tempfile", - "toml", + "toml 0.9.12+spec-1.1.0", "walkdir", ] @@ -3863,6 +5469,31 @@ dependencies = [ "windows 0.58.0", ] +[[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" version = "2.2.1" @@ -3889,7 +5520,7 @@ dependencies = [ "libc", "redox_syscall", "smallvec", - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -3968,6 +5599,17 @@ dependencies = [ "indexmap", ] +[[package]] +name = "phf" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3dfb61232e34fcb633f43d12c58f83c1df82962dcdfa565a4e866ffc17dafe12" +dependencies = [ + "phf_macros 0.8.0", + "phf_shared 0.8.0", + "proc-macro-hack", +] + [[package]] name = "phf" version = "0.11.3" @@ -3983,11 +5625,21 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" dependencies = [ - "phf_macros", + "phf_macros 0.13.1", "phf_shared 0.13.1", "serde", ] +[[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.11.3" @@ -4008,6 +5660,16 @@ dependencies = [ "phf_shared 0.13.1", ] +[[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.11.3" @@ -4028,6 +5690,20 @@ dependencies = [ "phf_shared 0.13.1", ] +[[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_macros" version = "0.13.1" @@ -4041,13 +5717,22 @@ dependencies = [ "syn 2.0.117", ] +[[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.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" dependencies = [ - "siphasher", + "siphasher 1.0.2", ] [[package]] @@ -4056,14 +5741,34 @@ version = "0.13.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" dependencies = [ - "siphasher", + "siphasher 1.0.2", +] + +[[package]] +name = "pin-project" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1749c7ed4bcaf4c3d0a3efc28538844fb29bcdd7d2b67b2be7e20ba861ff517" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b20ed30f105399776b9c883e68e536ef602a16ae6f596d2c473591d6ad64c6" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", ] [[package]] name = "pin-project-lite" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" [[package]] name = "pin-utils" @@ -4073,9 +5778,9 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "piper" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" dependencies = [ "atomic-waker", "fastrand", @@ -4126,6 +5831,32 @@ version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" +[[package]] +name = "png" +version = "0.17.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526" +dependencies = [ + "bitflags 1.3.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[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 = "polling" version = "3.11.0" @@ -4140,6 +5871,12 @@ dependencies = [ "windows-sys 0.61.2", ] +[[package]] +name = "pollster" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3" + [[package]] name = "poly1305" version = "0.8.0" @@ -4171,9 +5908,9 @@ checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49" [[package]] name = "portable-atomic-util" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a9db96d7fa8782dd8c15ce32ffe8680bbd1e978a43bf51a34d39483540495f5" +checksum = "091397be61a01d4be58e7841595bd4bfedb15f1cd54977d79b8271e94ed799a3" dependencies = [ "portable-atomic", ] @@ -4235,11 +5972,55 @@ dependencies = [ [[package]] name = "proc-macro-crate" -version = "3.4.0" +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.5+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 = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983" +checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869" dependencies = [ - "toml_edit", + "proc-macro2", + "quote", + "version_check", ] [[package]] @@ -4263,6 +6044,12 @@ dependencies = [ "quote", ] +[[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" @@ -4272,15 +6059,27 @@ dependencies = [ "unicode-ident", ] +[[package]] +name = "proc-macro2-diagnostics" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af066a9c399a26e020ada66a034357a868728e72cd426f3adcd35f80d88d88c8" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "version_check", +] + [[package]] name = "process-wrap" -version = "9.0.1" +version = "9.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd1395947e69c07400ef4d43db0051d6f773c21f647ad8b97382fc01f0204c60" +checksum = "2e842efad9119158434d193c6682e2ebee4b44d6ad801d7b349623b3f57cdf55" dependencies = [ "futures", "indexmap", - "nix 0.30.1", + "nix 0.31.2", "tokio", "tracing", "windows 0.62.2", @@ -4384,7 +6183,7 @@ version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f86ba2052aebccc42cbbb3ed234b8b13ce76f75c3551a303cb2bcffcff12bb14" dependencies = [ - "bitflags", + "bitflags 2.11.0", "getopts", "memchr", "pulldown-cmark-escape", @@ -4397,11 +6196,20 @@ version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "007d8adb5ddab6f8e3f491ac63566a7d5002cc7ed73901f72057943fa71ae1ae" +[[package]] +name = "pxfm" +version = "0.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5a041e753da8b807c9255f28de81879c78c876392ff2469cde94799b2896b9d" + [[package]] name = "qrcode" version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d68782463e408eb1e668cf6152704bd856c78c5b6417adaee3203d8f4c1fc9ec" +dependencies = [ + "image", +] [[package]] name = "quinn" @@ -4414,7 +6222,7 @@ dependencies = [ "pin-project-lite", "quinn-proto", "quinn-udp", - "rustc-hash", + "rustc-hash 2.1.1", "rustls", "socket2", "thiserror 2.0.18", @@ -4425,9 +6233,9 @@ dependencies = [ [[package]] name = "quinn-proto" -version = "0.11.13" +version = "0.11.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" +checksum = "434b42fec591c96ef50e21e886936e66d3cc3f737104fdb9b737c40ffb94c098" dependencies = [ "aws-lc-rs", "bytes", @@ -4435,7 +6243,7 @@ dependencies = [ "lru-slab", "rand 0.9.2", "ring", - "rustc-hash", + "rustc-hash 2.1.1", "rustls", "rustls-pki-types", "slab", @@ -4461,9 +6269,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.44" +version = "1.0.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" dependencies = [ "proc-macro2", ] @@ -4474,6 +6282,12 @@ version = "5.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + [[package]] name = "r2d2" version = "0.8.10" @@ -4485,6 +6299,20 @@ dependencies = [ "scheduled-thread-pool", ] +[[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" @@ -4513,10 +6341,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bc266eb313df6c5c09c1c7b1fbe2510961e5bcd3add930c1e31f7ed9da0feff8" dependencies = [ "chacha20 0.10.0", - "getrandom 0.4.1", + "getrandom 0.4.2", "rand_core 0.10.0", ] +[[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" @@ -4537,6 +6375,15 @@ dependencies = [ "rand_core 0.9.5", ] +[[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" @@ -4550,16 +6397,34 @@ dependencies = [ name = "rand_core" version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "rand_core" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c8d0fd677905edcbeedbf2edb6494d676f0e98d54d5cf9bda0b061cb8fb8aba" + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" dependencies = [ - "getrandom 0.3.4", + "rand_core 0.5.1", ] [[package]] -name = "rand_core" -version = "0.10.0" +name = "rand_pcg" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c8d0fd677905edcbeedbf2edb6494d676f0e98d54d5cf9bda0b061cb8fb8aba" +checksum = "16abd0c1b639e9eb4d7c50c0b8100b0d0f849be2349829c740fe8e6eb4816429" +dependencies = [ + "rand_core 0.5.1", +] [[package]] name = "rand_xoshiro" @@ -4570,6 +6435,18 @@ dependencies = [ "rand_core 0.9.5", ] +[[package]] +name = "raw-window-handle" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + [[package]] name = "rayon" version = "1.11.0" @@ -4611,7 +6488,7 @@ version = "0.5.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" dependencies = [ - "bitflags", + "bitflags 2.11.0", ] [[package]] @@ -4779,6 +6656,30 @@ dependencies = [ "subtle", ] +[[package]] +name = "rfd" +version = "0.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20dafead71c16a34e1ff357ddefc8afc11e7d51d6d2b9fbd07eaa48e3e540220" +dependencies = [ + "block2", + "dispatch2", + "js-sys", + "libc", + "log", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "percent-encoding", + "pollster", + "raw-window-handle 0.6.2", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "windows-sys 0.61.2", +] + [[package]] name = "ring" version = "0.17.14" @@ -5051,13 +6952,13 @@ checksum = "0a0753312ad577ac462de1742bf2e326b6ba9856ff6f13343aeb17d423fd5426" dependencies = [ "as_variant", "cfg-if", - "proc-macro-crate", + "proc-macro-crate 3.5.0", "proc-macro2", "quote", "ruma-identifiers-validation", "serde", "syn 2.0.117", - "toml", + "toml 0.9.12+spec-1.1.0", ] [[package]] @@ -5082,7 +6983,7 @@ version = "0.37.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "165ca6e57b20e1351573e3729b958bc62f0e48025386970b6e4d29e7a7e71f3f" dependencies = [ - "bitflags", + "bitflags 2.11.0", "chrono", "csv", "fallible-iterator", @@ -5106,7 +7007,7 @@ dependencies = [ "aes", "aes-gcm", "async-trait", - "bitflags", + "bitflags 2.11.0", "block-padding", "byteorder", "bytes", @@ -5248,6 +7149,12 @@ dependencies = [ "wasm-bindgen-futures", ] +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + [[package]] name = "rustc-hash" version = "2.1.1" @@ -5269,7 +7176,7 @@ version = "0.38.44" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" dependencies = [ - "bitflags", + "bitflags 2.11.0", "errno", "libc", "linux-raw-sys 0.4.15", @@ -5282,7 +7189,7 @@ version = "1.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" dependencies = [ - "bitflags", + "bitflags 2.11.0", "errno", "libc", "linux-raw-sys 0.12.1", @@ -5383,7 +7290,7 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" [[package]] name = "rustyclaw" -version = "0.3.0" +version = "0.3.1" dependencies = [ "anyhow", "clap", @@ -5404,7 +7311,7 @@ dependencies = [ [[package]] name = "rustyclaw-core" -version = "0.3.0" +version = "0.3.1" dependencies = [ "aho-corasick", "anyhow", @@ -5457,26 +7364,52 @@ dependencies = [ "tokio-rustls", "tokio-tungstenite", "tokio-util", - "toml", + "toml 0.9.12+spec-1.1.0", "totp-rs", "tracing", "tracing-subscriber", "unicode-width 0.2.2", "url", "urlencoding", + "uuid", "wa-rs", "wa-rs-sqlite-storage", "wa-rs-tokio-transport", "wa-rs-ureq-http", "walkdir", - "which 8.0.0", + "which 8.0.2", "windows-sys 0.59.0", "zip", ] +[[package]] +name = "rustyclaw-desktop" +version = "0.3.1" +dependencies = [ + "anyhow", + "base64 0.22.1", + "bincode", + "chrono", + "dioxus", + "dioxus-bulma", + "futures", + "image", + "qrcode", + "rustyclaw-core", + "serde", + "serde_json", + "thiserror 2.0.18", + "tokio", + "tokio-tungstenite", + "tracing", + "tracing-subscriber", + "url", + "uuid", +] + [[package]] name = "rustyclaw-tui" -version = "0.3.0" +version = "0.3.1" dependencies = [ "anyhow", "chrono", @@ -5532,9 +7465,9 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.28" +version = "0.1.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1" +checksum = "91c1b7e4904c873ef0710c1f407dde2e6287de2bebc1bbbf7d430bb7cbffd939" dependencies = [ "windows-sys 0.61.2", ] @@ -5613,12 +7546,12 @@ version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "93cecd86d6259499c844440546d02f55f3e17bd286e529e48d1f9f67e92315cb" dependencies = [ - "cssparser", + "cssparser 0.36.0", "ego-tree", "getopts", "html5ever 0.36.1", "precomputed-hash", - "selectors", + "selectors 0.33.0", "tendril", ] @@ -5676,7 +7609,7 @@ version = "3.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" dependencies = [ - "bitflags", + "bitflags 2.11.0", "core-foundation", "core-foundation-sys", "libc", @@ -5693,22 +7626,40 @@ dependencies = [ "libc", ] +[[package]] +name = "selectors" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c37578180969d00692904465fb7f6b3d50b9a2b952b87c23d0e2e5cb5013416" +dependencies = [ + "bitflags 1.3.2", + "cssparser 0.29.6", + "derive_more 0.99.20", + "fxhash", + "log", + "phf 0.8.0", + "phf_codegen 0.8.0", + "precomputed-hash", + "servo_arc 0.2.0", + "smallvec", +] + [[package]] name = "selectors" version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "feef350c36147532e1b79ea5c1f3791373e61cbd9a6a2615413b3807bb164fb7" dependencies = [ - "bitflags", - "cssparser", + "bitflags 2.11.0", + "cssparser 0.36.0", "derive_more 2.1.1", "log", "new_debug_unreachable", "phf 0.13.1", "phf_codegen 0.13.1", "precomputed-hash", - "rustc-hash", - "servo_arc", + "rustc-hash 2.1.1", + "servo_arc 0.4.3", "smallvec", ] @@ -5718,6 +7669,15 @@ version = "1.0.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" +[[package]] +name = "send_wrapper" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" +dependencies = [ + "futures-core", +] + [[package]] name = "serde" version = "1.0.228" @@ -5846,6 +7806,26 @@ dependencies = [ "serde_core", ] +[[package]] +name = "serde_repr" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "serde_spanned" +version = "0.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3" +dependencies = [ + "serde", +] + [[package]] name = "serde_spanned" version = "1.0.4" @@ -5880,6 +7860,16 @@ dependencies = [ "unsafe-libyaml", ] +[[package]] +name = "servo_arc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52aa42f8fdf0fed91e5ce7f23d8138441002fa31dca008acf47e6fd4721f741" +dependencies = [ + "nodrop", + "stable_deref_trait", +] + [[package]] name = "servo_arc" version = "0.4.3" @@ -5982,12 +7972,28 @@ version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" +[[package]] +name = "simd_cesu8" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94f90157bb87cddf702797c5dadfa0be7d266cdf49e22da2fcaa32eff75b2c33" +dependencies = [ + "rustc_version", + "simdutf8", +] + [[package]] name = "simdutf8" version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" +[[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" @@ -6000,12 +8006,42 @@ version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" +[[package]] +name = "sledgehammer_bindgen" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49e83e178d176459c92bc129cfd0958afac3ced925471b889b3a75546cfc4133" +dependencies = [ + "sledgehammer_bindgen_macro", + "wasm-bindgen", +] + +[[package]] +name = "sledgehammer_bindgen_macro" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb251b407f50028476a600541542b605bb864d35d9ee1de4f6cab45d88475e6d" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[package]] +name = "sledgehammer_utils" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "debdd4b83524961983cea3c55383b3910fd2f24fd13a188f5b091d2d504a61ae" +dependencies = [ + "rustc-hash 1.1.0", +] + [[package]] name = "slotmap" version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" dependencies = [ + "serde", "version_check", ] @@ -6037,12 +8073,38 @@ dependencies = [ [[package]] name = "socket2" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0" +checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e" dependencies = [ "libc", - "windows-sys 0.60.2", + "windows-sys 0.61.2", +] + +[[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]] @@ -6225,6 +8287,34 @@ dependencies = [ "syn 2.0.117", ] +[[package]] +name = "subsecond" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8438668e545834d795d04c4335aafc332ce046106521a29f0a5c6501de34187c" +dependencies = [ + "js-sys", + "libc", + "libloading 0.8.9", + "memfd", + "memmap2", + "serde", + "subsecond-types", + "thiserror 2.0.18", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "subsecond-types" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e72f747606fc19fe81d6c59e491af93ed7dcbcb6aad9d1d18b05129914ec298" +dependencies = [ + "serde", +] + [[package]] name = "subtle" version = "2.6.1" @@ -6275,9 +8365,9 @@ dependencies = [ [[package]] name = "sysinfo" -version = "0.38.2" +version = "0.38.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1efc19935b4b66baa6f654ac7924c192f55b175c00a7ab72410fc24284dacda8" +checksum = "92ab6a2f8bfe508deb3c6406578252e491d299cbbf3bc0529ecc3313aee4a52f" dependencies = [ "libc", "memchr", @@ -6287,6 +8377,19 @@ dependencies = [ "windows 0.62.2", ] +[[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 0.8.2", + "version-compare", +] + [[package]] name = "taffy" version = "0.5.2" @@ -6306,14 +8409,70 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b2093cf4c8eb1e67749a6762251bc9cd836b6fc171623bd0a9d324d37af2417" +[[package]] +name = "tao" +version = "0.34.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9103edf55f2da3c82aea4c7fab7c4241032bfeea0e71fa557d98e00e7ce7cc20" +dependencies = [ + "bitflags 2.11.0", + "block2", + "core-foundation", + "core-graphics 0.25.0", + "crossbeam-channel", + "dispatch2", + "dlopen2", + "dpi", + "gdkwayland-sys", + "gdkx11-sys", + "gtk", + "jni 0.21.1", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "objc2", + "objc2-app-kit", + "objc2-foundation", + "once_cell", + "parking_lot", + "raw-window-handle 0.5.2", + "raw-window-handle 0.6.2", + "tao-macros", + "unicode-segmentation", + "url", + "windows 0.61.3", + "windows-core 0.61.2", + "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 = "tempfile" -version = "3.26.0" +version = "3.27.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82a72c767771b47409d2345987fda8628641887d5466101319899796367354a0" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.4.1", + "getrandom 0.4.2", "once_cell", "rustix 1.1.4", "windows-sys 0.61.2", @@ -6423,9 +8582,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" +checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3" dependencies = [ "tinyvec_macros", ] @@ -6438,9 +8597,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.49.0" +version = "1.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" +checksum = "27ad5e34374e03cfffefc301becb44e9dc3c17584f414349ebe29ed26661822d" dependencies = [ "bytes", "libc", @@ -6455,9 +8614,9 @@ dependencies = [ [[package]] name = "tokio-macros" -version = "2.6.0" +version = "2.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" +checksum = "5c55a2eff8b69ce66c84f85e1da1c233edc36ceb85a2058d11b0d6a3c7e7569c" dependencies = [ "proc-macro2", "quote", @@ -6517,9 +8676,9 @@ dependencies = [ [[package]] name = "tokio-websockets" -version = "0.13.1" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b6aa6c8b5a31e06fd3760eb5c1b8d9072e30731f0467ee3795617fe768e7449" +checksum = "dad543404f98bfc969aeb71994105c592acfc6c43323fddcd016bb208d1c65cb" dependencies = [ "base64 0.22.1", "bytes", @@ -6527,7 +8686,7 @@ dependencies = [ "futures-sink", "http", "httparse", - "rand 0.9.2", + "rand 0.10.0", "ring", "rustls-pki-types", "simdutf8", @@ -6536,6 +8695,18 @@ dependencies = [ "tokio-util", ] +[[package]] +name = "toml" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "185d8ab0dfbb35cf1399a6344d8484209c088f75f8f68230da55d48d95d43e3d" +dependencies = [ + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "toml_edit 0.20.2", +] + [[package]] name = "toml" version = "0.9.12+spec-1.1.0" @@ -6544,54 +8715,96 @@ checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863" dependencies = [ "indexmap", "serde_core", - "serde_spanned", - "toml_datetime", + "serde_spanned 1.0.4", + "toml_datetime 0.7.5+spec-1.1.0", "toml_parser", "toml_writer", - "winnow", + "winnow 0.7.15", +] + +[[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 = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_datetime" +version = "1.0.1+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b320e741db58cac564e26c607d3cc1fdc4a88fd36c879568c07856ed83ff3e9" +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", + "toml_datetime 0.6.3", + "winnow 0.5.40", ] [[package]] -name = "toml_datetime" -version = "0.7.5+spec-1.1.0" +name = "toml_edit" +version = "0.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338" dependencies = [ - "serde_core", + "indexmap", + "serde", + "serde_spanned 0.6.9", + "toml_datetime 0.6.3", + "winnow 0.5.40", ] [[package]] name = "toml_edit" -version = "0.23.10+spec-1.0.0" +version = "0.25.5+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269" +checksum = "8ca1a40644a28bce036923f6a431df0b34236949d111cc07cb6dca830c9ef2e1" dependencies = [ "indexmap", - "toml_datetime", + "toml_datetime 1.0.1+spec-1.1.0", "toml_parser", - "winnow", + "winnow 1.0.0", ] [[package]] name = "toml_parser" -version = "1.0.9+spec-1.1.0" +version = "1.0.10+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "702d4415e08923e7e1ef96cd5727c0dfed80b4d2fa25db9647fe5eb6f7c5a4c4" +checksum = "7df25b4befd31c4816df190124375d5a20c6b6921e2cad937316de3fccd63420" dependencies = [ - "winnow", + "winnow 1.0.0", ] [[package]] name = "toml_writer" -version = "1.0.6+spec-1.1.0" +version = "1.0.7+spec-1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab16f14aed21ee8bfd8ec22513f7287cd4a91aa92e44edfe2c17ddd004e92607" +checksum = "f17aaa1c6e3dc22b1da4b6bba97d066e354c7945cac2f7852d4e4e7ca7a6b56d" [[package]] name = "totp-rs" -version = "5.7.0" +version = "5.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f124352108f58ef88299e909f6e9470f1cdc8d2a1397963901b4a6366206bf72" +checksum = "a2b36a9dd327e9f401320a2cb4572cc76ff43742bcfc3291f871691050f140ba" dependencies = [ "base32", "constant_time_eq 0.3.1", @@ -6625,7 +8838,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d4e6559d53cc268e5031cd8429d05415bc4cb4aefc4aa5d6cc35fbf5b924a1f8" dependencies = [ "async-compression", - "bitflags", + "bitflags 2.11.0", "bytes", "futures-core", "futures-util", @@ -6708,9 +8921,9 @@ dependencies = [ [[package]] name = "tracing-subscriber" -version = "0.3.22" +version = "0.3.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f30143827ddab0d256fd843b7a66d164e9f271cfa0dde49142c5ca0ca291f1e" +checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" dependencies = [ "matchers", "nu-ansi-term", @@ -6727,6 +8940,38 @@ dependencies = [ "tracing-serde", ] +[[package]] +name = "tracing-wasm" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4575c663a174420fa2d78f4108ff68f65bf2fbb7dd89f33749b6e826b3626e07" +dependencies = [ + "tracing", + "tracing-subscriber", + "wasm-bindgen", +] + +[[package]] +name = "tray-icon" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e85aa143ceb072062fc4d6356c1b520a51d636e7bc8e77ec94be3608e5e80c" +dependencies = [ + "crossbeam-channel", + "dirs 6.0.0", + "libappindicator", + "muda", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation", + "once_cell", + "png 0.17.16", + "thiserror 2.0.18", + "windows-sys 0.60.2", +] + [[package]] name = "try-lock" version = "0.2.5" @@ -6751,6 +8996,25 @@ dependencies = [ "utf-8", ] +[[package]] +name = "tungstenite" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadc29d668c91fcc564941132e17b28a7ceb2f3ebf0b9dae3e03fd7a6748eb0d" +dependencies = [ + "bytes", + "data-encoding", + "http", + "httparse", + "log", + "native-tls", + "rand 0.9.2", + "rustls", + "sha1", + "thiserror 2.0.18", + "utf-8", +] + [[package]] name = "tungstenite" version = "0.28.0" @@ -7012,11 +9276,11 @@ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" [[package]] name = "uuid" -version = "1.21.0" +version = "1.22.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b672338555252d43fd2240c714dc444b8c6fb0a5c5335e65a07bba7742735ddb" +checksum = "a68d3c8f01c0cfa54a75291d83601161799e4a89a39e0929f4b0354d88757a37" dependencies = [ - "getrandom 0.4.1", + "getrandom 0.4.2", "js-sys", "serde_core", "wasm-bindgen", @@ -7034,6 +9298,12 @@ version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" +[[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" @@ -7334,6 +9604,34 @@ dependencies = [ "try-lock", ] +[[package]] +name = "warnings" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "64f68998838dab65727c9b30465595c6f7c953313559371ca8bf31759b3680ad" +dependencies = [ + "pin-project", + "tracing", + "warnings-macro", +] + +[[package]] +name = "warnings-macro" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59195a1db0e95b920366d949ba5e0d3fc0e70b67c09be15ce5abb790106b0571" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[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" @@ -7360,9 +9658,9 @@ dependencies = [ [[package]] name = "wasm-bindgen" -version = "0.2.112" +version = "0.2.114" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05d7d0fce354c88b7982aec4400b3e7fcf723c32737cef571bd165f7613557ee" +checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e" dependencies = [ "cfg-if", "once_cell", @@ -7373,9 +9671,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.62" +version = "0.4.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee85afca410ac4abba5b584b12e77ea225db6ee5471d0aebaae0861166f9378a" +checksum = "e9c5522b3a28661442748e09d40924dfb9ca614b21c00d3fd135720e48b67db8" dependencies = [ "cfg-if", "futures-util", @@ -7387,9 +9685,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.112" +version = "0.2.114" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55839b71ba921e4f75b674cb16f843f4b1f3b26ddfcb3454de1cf65cc021ec0f" +checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -7397,9 +9695,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.112" +version = "0.2.114" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "caf2e969c2d60ff52e7e98b7392ff1588bffdd1ccd4769eba27222fd3d621571" +checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3" dependencies = [ "bumpalo", "proc-macro2", @@ -7410,9 +9708,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.112" +version = "0.2.114" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0861f0dcdf46ea819407495634953cdcc8a8c7215ab799a7a7ce366be71c7b30" +checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16" dependencies = [ "unicode-ident", ] @@ -7489,7 +9787,7 @@ version = "0.244.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" dependencies = [ - "bitflags", + "bitflags 2.11.0", "hashbrown 0.15.5", "indexmap", "semver", @@ -7497,9 +9795,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.89" +version = "0.3.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10053fbf9a374174094915bbce141e87a6bf32ecd9a002980db4b638405e8962" +checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9" dependencies = [ "js-sys", "wasm-bindgen", @@ -7540,6 +9838,66 @@ dependencies = [ "string_cache_codegen 0.6.1", ] +[[package]] +name = "webbrowser" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe985f41e291eecef5e5c0770a18d28390addb03331c043964d9e916453d6f16" +dependencies = [ + "core-foundation", + "jni 0.22.4", + "log", + "ndk-context", + "objc2", + "objc2-foundation", + "url", + "web-sys", +] + +[[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-root-certs" version = "1.0.6" @@ -7567,6 +9925,42 @@ dependencies = [ "rustls-pki-types", ] +[[package]] +name = "webview2-com" +version = "0.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7130243a7a5b33c54a444e54842e6a9e133de08b5ad7b5861cd8ed9a6a5bc96a" +dependencies = [ + "webview2-com-macros", + "webview2-com-sys", + "windows 0.61.3", + "windows-core 0.61.2", + "windows-implement 0.60.2", + "windows-interface 0.59.3", +] + +[[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.38.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "381336cfffd772377d291702245447a5251a2ffa5bad679c99e61bc48bacbf9c" +dependencies = [ + "thiserror 2.0.18", + "windows 0.61.3", + "windows-core 0.61.2", +] + [[package]] name = "which" version = "6.0.3" @@ -7581,13 +9975,11 @@ dependencies = [ [[package]] name = "which" -version = "8.0.0" +version = "8.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3fabb953106c3c8eea8306e4393700d7657561cb43122571b172bbfb7c7ba1d" +checksum = "81995fafaaaf6ae47a7d0cc83c67caf92aeb7e5331650ae6ff856f7c0c60c459" dependencies = [ - "env_home", - "rustix 1.1.4", - "winsafe", + "libc", ] [[package]] @@ -7637,16 +10029,38 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows" +version = "0.61.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893" +dependencies = [ + "windows-collections 0.2.0", + "windows-core 0.61.2", + "windows-future 0.2.1", + "windows-link 0.1.3", + "windows-numerics 0.2.0", +] + [[package]] name = "windows" version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" dependencies = [ - "windows-collections", + "windows-collections 0.3.2", "windows-core 0.62.2", - "windows-future", - "windows-numerics", + "windows-future 0.3.2", + "windows-numerics 0.3.1", +] + +[[package]] +name = "windows-collections" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8" +dependencies = [ + "windows-core 0.61.2", ] [[package]] @@ -7671,6 +10085,19 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows-core" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3" +dependencies = [ + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link 0.1.3", + "windows-result 0.3.4", + "windows-strings 0.4.2", +] + [[package]] name = "windows-core" version = "0.62.2" @@ -7679,11 +10106,22 @@ checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" dependencies = [ "windows-implement 0.60.2", "windows-interface 0.59.3", - "windows-link", + "windows-link 0.2.1", "windows-result 0.4.1", "windows-strings 0.5.1", ] +[[package]] +name = "windows-future" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", + "windows-threading 0.1.0", +] + [[package]] name = "windows-future" version = "0.3.2" @@ -7691,8 +10129,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" dependencies = [ "windows-core 0.62.2", - "windows-link", - "windows-threading", + "windows-link 0.2.1", + "windows-threading 0.2.1", ] [[package]] @@ -7739,12 +10177,28 @@ dependencies = [ "syn 2.0.117", ] +[[package]] +name = "windows-link" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e6ad25900d524eaabdbbb96d20b4311e1e7ae1699af4fb28c17ae66c80d798a" + [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" +[[package]] +name = "windows-numerics" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1" +dependencies = [ + "windows-core 0.61.2", + "windows-link 0.1.3", +] + [[package]] name = "windows-numerics" version = "0.3.1" @@ -7752,7 +10206,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" dependencies = [ "windows-core 0.62.2", - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -7764,13 +10218,22 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows-result" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6" +dependencies = [ + "windows-link 0.1.3", +] + [[package]] name = "windows-result" version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -7783,13 +10246,22 @@ dependencies = [ "windows-targets 0.52.6", ] +[[package]] +name = "windows-strings" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57" +dependencies = [ + "windows-link 0.1.3", +] + [[package]] name = "windows-strings" version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -7843,7 +10315,7 @@ version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" dependencies = [ - "windows-link", + "windows-link 0.2.1", ] [[package]] @@ -7898,7 +10370,7 @@ version = "0.53.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" dependencies = [ - "windows-link", + "windows-link 0.2.1", "windows_aarch64_gnullvm 0.53.1", "windows_aarch64_msvc 0.53.1", "windows_i686_gnu 0.53.1", @@ -7909,13 +10381,31 @@ dependencies = [ "windows_x86_64_msvc 0.53.1", ] +[[package]] +name = "windows-threading" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66463ad2e0ea3bbf808b7f1d371311c80e115c0b71d60efc142cafbcfb057a6" +dependencies = [ + "windows-link 0.1.3", +] + [[package]] name = "windows-threading" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" dependencies = [ - "windows-link", + "windows-link 0.2.1", +] + +[[package]] +name = "windows-version" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4060a1da109b9d0326b7262c8e12c84df67cc0dbc9e33cf49e01ccc2eb63631" +dependencies = [ + "windows-link 0.2.1", ] [[package]] @@ -8100,9 +10590,27 @@ checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" [[package]] name = "winnow" -version = "0.7.14" +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 = "winnow" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829" +checksum = "a90e88e4667264a994d34e6d1ab2d26d398dcdca8b7f52bec8668957517fc7d8" dependencies = [ "memchr", ] @@ -8187,7 +10695,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" dependencies = [ "anyhow", - "bitflags", + "bitflags 2.11.0", "indexmap", "log", "serde", @@ -8223,6 +10731,87 @@ version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" +[[package]] +name = "wry" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728b7d4c8ec8d81cab295e0b5b8a4c263c0d41a785fb8f8c4df284e5411140a2" +dependencies = [ + "base64 0.22.1", + "block2", + "cookie", + "crossbeam-channel", + "dirs 6.0.0", + "dpi", + "dunce", + "gtk", + "html5ever 0.29.1", + "http", + "javascriptcore-rs", + "jni 0.21.1", + "kuchikiki", + "libc", + "ndk", + "objc2", + "objc2-app-kit", + "objc2-core-foundation", + "objc2-foundation", + "objc2-ui-kit", + "objc2-web-kit", + "once_cell", + "percent-encoding", + "raw-window-handle 0.6.2", + "sha2", + "soup3", + "tao-macros", + "thiserror 2.0.18", + "url", + "webkit2gtk", + "webkit2gtk-sys", + "webview2-com", + "windows 0.61.3", + "windows-core 0.61.2", + "windows-version", +] + +[[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 = "x11rb" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" +dependencies = [ + "gethostname", + "rustix 1.1.4", + "x11rb-protocol", +] + +[[package]] +name = "x11rb-protocol" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" + [[package]] name = "x25519-dalek" version = "2.0.1" @@ -8235,6 +10824,12 @@ dependencies = [ "zeroize", ] +[[package]] +name = "xkeysym" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56" + [[package]] name = "xml5ever" version = "0.18.1" @@ -8277,18 +10872,18 @@ dependencies = [ [[package]] name = "zerocopy" -version = "0.8.39" +version = "0.8.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db6d35d663eadb6c932438e763b262fe1a70987f9ae936e60158176d710cae4a" +checksum = "efbb2a062be311f2ba113ce66f697a4dc589f85e78a4aea276200804cea0ed87" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.39" +version = "0.8.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4122cd3169e94605190e77839c9a40d40ed048d305bfdc146e7df40ab0f3e517" +checksum = "0e8bc7269b54418e7aeeef514aa68f8690b8c0489a06b0136e5f57c4c5ccab89" dependencies = [ "proc-macro2", "quote", @@ -8371,9 +10966,9 @@ dependencies = [ [[package]] name = "zip" -version = "8.1.0" +version = "8.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e499faf5c6b97a0d086f4a8733de6d47aee2252b8127962439d8d4311a73f72" +checksum = "5c546feb4481b0fbafb4ef0d79b6204fc41c6f9884b1b73b1d73f82442fc0845" dependencies = [ "aes", "bzip2", @@ -8381,7 +10976,7 @@ dependencies = [ "crc32fast", "deflate64", "flate2", - "getrandom 0.4.1", + "getrandom 0.4.2", "hmac", "indexmap", "lzma-rust2", @@ -8398,9 +10993,9 @@ dependencies = [ [[package]] name = "zlib-rs" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c745c48e1007337ed136dc99df34128b9faa6ed542d80a1c673cf55a6d7236c8" +checksum = "3be3d40e40a133f9c916ee3f9f4fa2d9d63435b5fbe1bfc6d9dae0aa0ada1513" [[package]] name = "zmij" diff --git a/Cargo.toml b/Cargo.toml index 8b036f5..8abba81 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,7 @@ members = [ "crates/rustyclaw-core", "crates/rustyclaw-cli", "crates/rustyclaw-tui", + "crates/rustyclaw-desktop", ] resolver = "3" @@ -18,6 +19,11 @@ rust-version = "1.85" [workspace.lints.rust] unexpected_cfgs = { level = "warn", check-cfg = ['cfg(feature, values("signal"))'] } +# ── Workspace Features ────────────────────────────────────────────────────── +# Features that control which components are built +[workspace.metadata.features] +desktop = { description = "Enable desktop GUI client (requires GTK system libraries)" } + # ── Shared dependency versions ─────────────────────────────────────────────── [workspace.dependencies] # Internal crates @@ -29,6 +35,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" serde_yaml = "0.9" toml = "0.9" +uuid = { version = "1.0", features = ["v4", "serde"] } # Error handling anyhow = "1.0" diff --git a/crates/rustyclaw-core/Cargo.toml b/crates/rustyclaw-core/Cargo.toml index 7ab3b78..3401a8c 100644 --- a/crates/rustyclaw-core/Cargo.toml +++ b/crates/rustyclaw-core/Cargo.toml @@ -77,6 +77,7 @@ regex.workspace = true aho-corasick.workspace = true oxidized-agentic-audit.workspace = true ipnetwork.workspace = true +uuid.workspace = true rusqlite.workspace = true httpdate.workspace = true colored.workspace = true diff --git a/crates/rustyclaw-core/src/gateway/mod.rs b/crates/rustyclaw-core/src/gateway/mod.rs index dd26b77..1d667b5 100644 --- a/crates/rustyclaw-core/src/gateway/mod.rs +++ b/crates/rustyclaw-core/src/gateway/mod.rs @@ -62,10 +62,12 @@ pub use transport::{ WebSocketTransport, }; -// Re-export SSH types (when feature enabled, stdio transport always available) -pub use ssh::StdioTransport; +// Re-export SSH types (when feature enabled) #[cfg(feature = "ssh")] -pub use ssh::{SshConfig, SshServer, add_authorized_client, key_fingerprint, load_authorized_clients}; +pub use ssh::{SshConfig, SshTransport}; + +// Re-export stdio transport (always available) +pub use ssh::StdioTransport; use crate::config::Config; use crate::observability::ObserverEvent; diff --git a/crates/rustyclaw-core/src/gateway/ssh.rs b/crates/rustyclaw-core/src/gateway/ssh.rs index 7a6acf8..2025723 100644 --- a/crates/rustyclaw-core/src/gateway/ssh.rs +++ b/crates/rustyclaw-core/src/gateway/ssh.rs @@ -63,7 +63,7 @@ //! ``` use super::protocol::{ClientFrame, ServerFrame, deserialize_frame, serialize_frame}; -use super::transport::{PeerInfo, Transport, TransportReader, TransportType, TransportWriter}; +use super::transport::{PeerInfo, Transport, TransportAcceptor, TransportReader, TransportType, TransportWriter}; use anyhow::Result; use async_trait::async_trait; use std::path::PathBuf; @@ -80,7 +80,10 @@ use std::sync::Arc; #[cfg(feature = "ssh")] use tokio::sync::{Mutex, mpsc}; #[cfg(feature = "ssh")] -use tracing::{error, info, warn}; +use tracing::{debug, error, info, warn}; + +#[cfg(feature = "ssh")] +use std::path::Path; #[cfg(feature = "ssh")] use russh::server::{Auth, Handler, Msg, Server, Session}; diff --git a/crates/rustyclaw-desktop/Cargo.toml b/crates/rustyclaw-desktop/Cargo.toml new file mode 100644 index 0000000..2c9de7c --- /dev/null +++ b/crates/rustyclaw-desktop/Cargo.toml @@ -0,0 +1,61 @@ +[package] +name = "rustyclaw-desktop" +description = "Desktop GUI client for RustyClaw" +keywords = ["ai", "agent", "gui", "desktop", "dioxus"] +categories = ["gui"] +default-run = "rustyclaw-desktop" +version.workspace = true +edition.workspace = true +authors.workspace = true +license.workspace = true +homepage.workspace = true +repository.workspace = true + +[[bin]] +name = "rustyclaw-desktop" +path = "src/main.rs" + +[dependencies] +# Core library +rustyclaw-core = { path = "../rustyclaw-core", default-features = false } + +# Dioxus framework +# Note: "desktop" feature requires GTK dev libraries (libgtk-3-dev on Debian/Ubuntu) +# For webview-based desktop: libwebkit2gtk-4.0-dev +dioxus = { version = "0.7", features = ["desktop"] } +dioxus-bulma = "0.7.2" + +# UUID generation for message IDs +uuid = { version = "1", features = ["v4"] } + +# Time handling +chrono = { version = "0.4", features = ["serde"] } + +# Async runtime +tokio = { version = "1", features = ["rt-multi-thread", "sync", "macros"] } +futures = "0.3" + +# WebSocket client +tokio-tungstenite = "0.28" +url = "2" + +# Serialization +serde = { version = "1", features = ["derive"] } +serde_json = "1" +bincode = "2" + +# QR code generation for pairing +qrcode = "0.14" +image = { version = "0.25", default-features = false, features = ["png"] } +base64 = "0.22" + +# Logging +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = ["env-filter"] } + +# Error handling +anyhow = "1" +thiserror = "2" + +[features] +default = [] diff --git a/crates/rustyclaw-desktop/assets/styles.css b/crates/rustyclaw-desktop/assets/styles.css new file mode 100644 index 0000000..54a27ec --- /dev/null +++ b/crates/rustyclaw-desktop/assets/styles.css @@ -0,0 +1,177 @@ +/* RustyClaw Desktop - Custom Styles */ + +/* App layout */ +.app-container { + display: flex; + height: 100vh; + overflow: hidden; + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif; +} + +.main-content { + flex: 1; + display: flex; + flex-direction: column; + overflow: hidden; + background: #fff; +} + +/* Sidebar */ +.sidebar { + width: 260px; + background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%); + border-right: 1px solid #dee2e6; +} + +.sidebar .menu-label { + color: #495057; + font-weight: 600; + text-transform: uppercase; + font-size: 0.75rem; + letter-spacing: 0.05em; +} + +.sidebar .menu-list a { + border-radius: 6px; + transition: background 0.15s ease; +} + +.sidebar .menu-list a:hover { + background: rgba(0, 0, 0, 0.05); +} + +.sidebar .menu-list a.is-active { + background: #3273dc; + color: white; +} + +/* Chat area */ +.chat-container { + display: flex; + flex-direction: column; + height: 100%; +} + +.message-list { + flex: 1; + overflow-y: auto; + padding: 1.5rem; + background: #fafafa; +} + +/* Message bubbles */ +.message-bubble .box { + border-radius: 16px; + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); +} + +.message-bubble .message-header { + font-size: 0.8rem; + opacity: 0.8; +} + +.message-bubble .message-content { + line-height: 1.5; +} + +/* Tool call panels */ +.tool-call-panel { + margin: 0.75rem 0; + border-radius: 8px; + overflow: hidden; +} + +.tool-call-panel .message-header { + font-size: 0.85rem; + padding: 0.5rem 0.75rem; +} + +.tool-call-panel pre { + margin: 0; + font-size: 0.8rem; +} + +/* Input area */ +.input-area { + padding: 1rem 1.5rem; + background: #fff; + border-top: 1px solid #e9ecef; +} + +.input-area .textarea { + resize: none; + border-radius: 8px; +} + +.input-area .button { + border-radius: 8px; +} + +/* Streaming cursor */ +.streaming-cursor { + animation: blink 1s infinite; + color: inherit; +} + +@keyframes blink { + 0%, 50% { opacity: 1; } + 51%, 100% { opacity: 0; } +} + +/* Thinking indicator */ +.thinking-indicator { + display: flex; + align-items: center; + gap: 0.5rem; + padding: 0.5rem 1rem; + background: #f0f0f0; + border-radius: 8px; + color: #666; + font-style: italic; +} + +/* Modal dialogs */ +.modal-card { + border-radius: 12px; + overflow: hidden; +} + +.modal-card-head { + background: #f5f5f5; + border-bottom: 1px solid #e9ecef; +} + +.modal-card-foot { + background: #f5f5f5; + border-top: 1px solid #e9ecef; +} + +/* Status notifications */ +.notification { + border-radius: 0; + padding: 0.75rem 1rem; +} + +/* Scrollbar styling */ +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +::-webkit-scrollbar-track { + background: #f1f1f1; +} + +::-webkit-scrollbar-thumb { + background: #c1c1c1; + border-radius: 4px; +} + +::-webkit-scrollbar-thumb:hover { + background: #a8a8a8; +} + +/* Dark mode support (future) */ +@media (prefers-color-scheme: dark) { + /* TODO: Add dark mode styles */ +} diff --git a/crates/rustyclaw-desktop/src/app.rs b/crates/rustyclaw-desktop/src/app.rs new file mode 100644 index 0000000..4800230 --- /dev/null +++ b/crates/rustyclaw-desktop/src/app.rs @@ -0,0 +1,302 @@ +//! Main application component. + +use std::sync::Arc; +use dioxus::prelude::*; +use dioxus_bulma::prelude::*; +use tokio::sync::Mutex; + +use crate::components::{Chat, HatchingDialog, HatchingResult, PairingDialog, Sidebar, generate_qr_code}; +use crate::gateway::{GatewayClient, GatewayCommand, GatewayEvent}; +use crate::state::{AppState, ChatMessage, ConnectionStatus, MessageRole, ThreadInfo}; + +/// Main application component. +#[component] +pub fn App() -> Element { + // Application state + let mut state = use_signal(AppState::default); + + // Gateway client (optional, set when connected) + let gateway: Signal>>> = use_signal(|| None); + + // Dialog visibility + let mut show_pairing = use_signal(|| false); + let mut show_hatching = use_signal(|| false); + let mut show_settings = use_signal(|| false); + + // QR code for pairing + let mut qr_code_url = use_signal(|| None::); + let mut public_key = use_signal(|| None::); + + // Auto-connect on mount + use_effect(move || { + let url = state.read().gateway_url.clone(); + spawn(async move { + connect_to_gateway(&url, state, gateway).await; + }); + }); + + // Handle gateway events + use_effect(move || { + let gw = gateway.read().clone(); + if let Some(client) = gw { + spawn(async move { + loop { + let client_guard = client.lock().await; + if let Some(event) = client_guard.recv().await { + drop(client_guard); + handle_gateway_event(event, state); + } else { + break; + } + } + }); + } + }); + + // Handlers + let on_submit = move |message: String| { + // Add user message + state.write().add_user_message(message.clone()); + state.write().is_processing = true; + + // Send to gateway + let gw = gateway.read().clone(); + if let Some(client) = gw { + spawn(async move { + let client_guard = client.lock().await; + if let Err(e) = client_guard.chat(message).await { + tracing::error!("Failed to send message: {}", e); + } + }); + } + }; + + let on_new_thread = move |_| { + let gw = gateway.read().clone(); + if let Some(client) = gw { + spawn(async move { + let client_guard = client.lock().await; + let _ = client_guard.send(GatewayCommand::ThreadCreate { label: None }).await; + }); + } + }; + + let on_switch_thread = move |thread_id: u64| { + let gw = gateway.read().clone(); + if let Some(client) = gw { + spawn(async move { + let client_guard = client.lock().await; + let _ = client_guard.send(GatewayCommand::ThreadSwitch { thread_id }).await; + }); + } + // Clear messages when switching + state.write().clear_messages(); + }; + + rsx! { + // Include Bulma CSS + link { rel: "stylesheet", href: "https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css" } + link { rel: "stylesheet", href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" } + + // Custom styles + style { r#" + .app-container {{ + display: flex; + height: 100vh; + overflow: hidden; + }} + .main-content {{ + flex: 1; + display: flex; + flex-direction: column; + overflow: hidden; + }} + .streaming-cursor {{ + animation: blink 1s infinite; + }} + @keyframes blink {{ + 0%, 50% {{ opacity: 1; }} + 51%, 100% {{ opacity: 0; }} + }} + "# } + + div { class: "app-container", + // Sidebar + Sidebar { + connection: state.read().connection.clone(), + agent_name: state.read().agent_name.clone(), + model: state.read().model.clone(), + provider: state.read().provider.clone(), + threads: state.read().threads.clone(), + foreground_id: state.read().foreground_thread_id, + on_new_thread: on_new_thread, + on_switch_thread: on_switch_thread, + on_settings: move |_| show_settings.set(true), + } + + // Main content + div { class: "main-content", + // Status bar + if let Some(msg) = &state.read().status_message { + Notification { + color: BulmaColor::Info, + style: "margin: 0; border-radius: 0;", + + button { + class: "delete", + onclick: move |_| state.write().status_message = None, + } + "{msg}" + } + } + + // Chat area + Chat { + messages: state.read().messages.iter().cloned().collect::>(), + input: state.read().input.clone(), + is_processing: state.read().is_processing, + is_thinking: state.read().is_thinking, + on_submit: on_submit, + on_input_change: move |value| state.write().input = value, + } + } + } + + // Dialogs + HatchingDialog { + visible: *show_hatching.read(), + on_complete: move |result: HatchingResult| { + state.write().agent_name = Some(result.name); + show_hatching.set(false); + }, + on_cancel: move |_| show_hatching.set(false), + } + + PairingDialog { + visible: *show_pairing.read(), + public_key: public_key.read().clone(), + qr_code_data_url: qr_code_url.read().clone(), + gateway_host: "127.0.0.1".to_string(), + gateway_port: 9001, + on_host_change: move |_| {}, + on_port_change: move |_| {}, + on_connect: move |_| { + show_pairing.set(false); + let url = state.read().gateway_url.clone(); + spawn(async move { + connect_to_gateway(&url, state, gateway).await; + }); + }, + on_generate_key: move |_| { + // Generate keypair (placeholder) + public_key.set(Some("ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAA... desktop-client".to_string())); + if let Some(key) = &*public_key.read() { + qr_code_url.set(generate_qr_code(key)); + } + }, + on_cancel: move |_| show_pairing.set(false), + } + } +} + +/// Connect to the gateway. +async fn connect_to_gateway( + url: &str, + mut state: Signal, + mut gateway: Signal>>>, +) { + state.write().connection = ConnectionStatus::Connecting; + + match GatewayClient::connect(url).await { + Ok(client) => { + gateway.set(Some(Arc::new(Mutex::new(client)))); + state.write().connection = ConnectionStatus::Connected; + } + Err(e) => { + state.write().connection = ConnectionStatus::Error(e.to_string()); + tracing::error!("Failed to connect to gateway: {}", e); + } + } +} + +/// Handle a gateway event. +fn handle_gateway_event(event: GatewayEvent, mut state: Signal) { + match event { + GatewayEvent::Connected { agent, vault_locked, provider, model } => { + state.write().connection = ConnectionStatus::Connected; + state.write().agent_name = agent; + state.write().vault_locked = vault_locked; + state.write().provider = provider; + state.write().model = model; + } + GatewayEvent::Disconnected { reason } => { + state.write().connection = ConnectionStatus::Disconnected; + if let Some(r) = reason { + state.write().status_message = Some(format!("Disconnected: {}", r)); + } + } + GatewayEvent::AuthRequired => { + state.write().connection = ConnectionStatus::Authenticating; + } + GatewayEvent::AuthSuccess => { + state.write().connection = ConnectionStatus::Authenticated; + } + GatewayEvent::AuthFailed { message, .. } => { + state.write().status_message = Some(format!("Auth failed: {}", message)); + } + GatewayEvent::VaultLocked => { + state.write().vault_locked = true; + } + GatewayEvent::VaultUnlocked => { + state.write().vault_locked = false; + } + GatewayEvent::ModelReady { model } => { + state.write().model = Some(model); + } + GatewayEvent::ModelError { message } => { + state.write().status_message = Some(format!("Model error: {}", message)); + } + GatewayEvent::StreamStart => { + state.write().start_assistant_message(); + } + GatewayEvent::ThinkingStart => { + state.write().is_thinking = true; + } + GatewayEvent::ThinkingEnd => { + state.write().is_thinking = false; + } + GatewayEvent::Chunk { delta } => { + state.write().append_to_current_message(&delta); + } + GatewayEvent::ResponseDone => { + state.write().finish_current_message(); + } + GatewayEvent::ToolCall { id, name, arguments } => { + state.write().add_tool_call(id, name, arguments); + } + GatewayEvent::ToolResult { id, result, is_error, .. } => { + state.write().set_tool_result(&id, result, is_error); + } + GatewayEvent::ToolApprovalRequest { .. } => { + // TODO: Show approval dialog + } + GatewayEvent::ThreadsUpdate { threads, foreground_id } => { + state.write().threads = threads.into_iter().map(|t| ThreadInfo { + id: t.id, + label: t.label, + description: t.description, + status: t.status, + is_foreground: t.is_foreground, + message_count: t.message_count, + }).collect(); + state.write().foreground_thread_id = foreground_id; + } + GatewayEvent::Error { message } => { + state.write().status_message = Some(message); + state.write().is_processing = false; + } + GatewayEvent::Info { message } => { + state.write().status_message = Some(message); + } + } +} diff --git a/crates/rustyclaw-desktop/src/components/chat.rs b/crates/rustyclaw-desktop/src/components/chat.rs new file mode 100644 index 0000000..a9d4e3c --- /dev/null +++ b/crates/rustyclaw-desktop/src/components/chat.rs @@ -0,0 +1,136 @@ +//! Chat interface component. + +use dioxus::prelude::*; +use dioxus_bulma::prelude::*; + +use crate::state::{ChatMessage, MessageRole}; + +use super::message::MessageBubble; +use super::tool_call::ToolCallPanel; + +/// Props for the Chat component. +#[derive(Props, Clone, PartialEq)] +pub struct ChatProps { + /// Chat messages to display + pub messages: Vec, + /// Current input text + pub input: String, + /// Whether we're waiting for a response + pub is_processing: bool, + /// Whether the assistant is thinking + pub is_thinking: bool, + /// Callback when user submits a message + pub on_submit: EventHandler, + /// Callback when input changes + pub on_input_change: EventHandler, +} + +/// Main chat interface component. +#[component] +pub fn Chat(props: ChatProps) -> Element { + let mut input_ref = use_signal(|| props.input.clone()); + + // Update local input when prop changes + use_effect(move || { + input_ref.set(props.input.clone()); + }); + + let on_submit = props.on_submit.clone(); + let is_processing = props.is_processing; + + let handle_submit = move |_| { + let text = input_ref.read().trim().to_string(); + if !text.is_empty() && !is_processing { + on_submit.call(text); + input_ref.set(String::new()); + } + }; + + let handle_keypress = move |evt: KeyboardEvent| { + if evt.key() == Key::Enter && !evt.modifiers().shift() { + let text = input_ref.read().trim().to_string(); + if !text.is_empty() && !is_processing { + on_submit.call(text); + input_ref.set(String::new()); + } + } + }; + + rsx! { + div { class: "chat-container", + style: "display: flex; flex-direction: column; height: 100%;", + + // Message list + div { class: "message-list", + style: "flex: 1; overflow-y: auto; padding: 1rem;", + + for msg in props.messages.iter() { + div { key: "{msg.id}", + MessageBubble { + role: msg.role.clone(), + content: msg.content.clone(), + is_streaming: msg.is_streaming, + } + + // Tool calls for this message + for tool in msg.tool_calls.iter() { + ToolCallPanel { + id: tool.id.clone(), + name: tool.name.clone(), + arguments: tool.arguments.clone(), + result: tool.result.clone(), + is_error: tool.is_error, + collapsed: tool.collapsed, + } + } + } + } + + // Thinking indicator + if props.is_thinking { + div { class: "thinking-indicator", + style: "padding: 0.5rem; color: #666; font-style: italic;", + span { class: "icon is-small", + i { class: "fas fa-brain" } + } + " Thinking..." + } + } + } + + // Input area + div { class: "input-area", + style: "padding: 1rem; border-top: 1px solid #dbdbdb;", + + Field { addons: true, + Control { expanded: true, + textarea { + class: "textarea", + placeholder: "Type a message...", + value: "{input_ref}", + disabled: is_processing, + rows: 2, + onkeypress: handle_keypress, + oninput: move |evt| { + let value = evt.value(); + input_ref.set(value.clone()); + props.on_input_change.call(value); + }, + } + } + Control { + Button { + color: BulmaColor::Primary, + loading: is_processing, + disabled: is_processing || input_ref.read().trim().is_empty(), + onclick: handle_submit, + span { class: "icon", + i { class: "fas fa-paper-plane" } + } + } + } + } + } + } + } +} diff --git a/crates/rustyclaw-desktop/src/components/hatching.rs b/crates/rustyclaw-desktop/src/components/hatching.rs new file mode 100644 index 0000000..03ee14f --- /dev/null +++ b/crates/rustyclaw-desktop/src/components/hatching.rs @@ -0,0 +1,193 @@ +//! Hatching dialog for first-run identity setup. + +use dioxus::prelude::*; +use dioxus_bulma::prelude::*; + +/// Props for HatchingDialog. +#[derive(Props, Clone, PartialEq)] +pub struct HatchingDialogProps { + /// Whether the dialog is visible + pub visible: bool, + /// Callback when hatching is complete + pub on_complete: EventHandler, + /// Callback to cancel + pub on_cancel: EventHandler<()>, +} + +/// Result of the hatching process. +#[derive(Clone, Debug)] +pub struct HatchingResult { + pub name: String, + pub personality: Option, +} + +/// Hatching dialog component. +#[component] +pub fn HatchingDialog(props: HatchingDialogProps) -> Element { + let mut name = use_signal(String::new); + let mut personality = use_signal(String::new); + let mut step = use_signal(|| 1); + + let on_complete = props.on_complete.clone(); + + let handle_next = move |_| { + let current_step = *step.read(); + if current_step == 1 && !name.read().trim().is_empty() { + step.set(2); + } else if current_step == 2 { + on_complete.call(HatchingResult { + name: name.read().trim().to_string(), + personality: if personality.read().trim().is_empty() { + None + } else { + Some(personality.read().trim().to_string()) + }, + }); + } + }; + + let handle_back = move |_| { + let current_step = *step.read(); + if current_step > 1 { + step.set(current_step - 1); + } + }; + + if !props.visible { + return rsx! {}; + } + + let current_step = *step.read(); + let is_next_disabled = current_step == 1 && name.read().trim().is_empty(); + + rsx! { + div { class: "modal is-active", + div { class: "modal-background", + onclick: move |_| props.on_cancel.call(()), + } + + div { class: "modal-card", + style: "max-width: 500px;", + + header { class: "modal-card-head", + p { class: "modal-card-title", + span { class: "icon", + i { class: "fas fa-egg" } + } + " Hatching" + } + } + + section { class: "modal-card-body", + // Progress indicator + div { class: "steps", + style: "display: flex; justify-content: center; margin-bottom: 1.5rem;", + + span { + class: if current_step >= 1 { "tag is-primary is-medium" } else { "tag is-light is-medium" }, + "1" + } + span { style: "width: 50px; height: 2px; background: #dbdbdb; align-self: center;" } + span { + class: if current_step >= 2 { "tag is-primary is-medium" } else { "tag is-light is-medium" }, + "2" + } + } + + match current_step { + 1 => rsx! { + div { class: "content", + h4 { "What's your name?" } + p { class: "has-text-grey", + "This will be used to identify your agent." + } + + Field { + Control { class: "has-icons-left", + input { + class: "input is-medium", + r#type: "text", + placeholder: "Enter agent name", + value: "{name}", + autofocus: true, + oninput: move |evt| name.set(evt.value()), + onkeypress: move |evt: KeyboardEvent| { + if evt.key() == Key::Enter && !name.read().trim().is_empty() { + step.set(2); + } + }, + } + span { class: "icon is-left", + i { class: "fas fa-robot" } + } + } + } + } + }, + 2 => rsx! { + div { class: "content", + h4 { "Personality (optional)" } + p { class: "has-text-grey", + "Describe your agent's personality or leave blank for default." + } + + Field { + Control { + textarea { + class: "textarea", + placeholder: "e.g., Friendly and helpful, with a dry sense of humor", + rows: 4, + value: "{personality}", + oninput: move |evt| personality.set(evt.value()), + } + } + } + } + }, + _ => rsx! {} + } + } + + footer { class: "modal-card-foot", + style: "justify-content: space-between;", + + if current_step > 1 { + Button { + color: BulmaColor::Light, + onclick: handle_back, + + span { class: "icon", + i { class: "fas fa-arrow-left" } + } + span { "Back" } + } + } else { + Button { + color: BulmaColor::Light, + onclick: move |_| props.on_cancel.call(()), + "Cancel" + } + } + + Button { + color: BulmaColor::Primary, + disabled: is_next_disabled, + onclick: handle_next, + + if current_step == 2 { + span { class: "icon", + i { class: "fas fa-check" } + } + span { "Complete" } + } else { + span { "Next" } + span { class: "icon", + i { class: "fas fa-arrow-right" } + } + } + } + } + } + } + } +} diff --git a/crates/rustyclaw-desktop/src/components/message.rs b/crates/rustyclaw-desktop/src/components/message.rs new file mode 100644 index 0000000..5d29644 --- /dev/null +++ b/crates/rustyclaw-desktop/src/components/message.rs @@ -0,0 +1,75 @@ +//! Message bubble component. + +use dioxus::prelude::*; + +use crate::state::MessageRole; + +/// Props for MessageBubble. +#[derive(Props, Clone, PartialEq)] +pub struct MessageBubbleProps { + /// Message role (user/assistant/system) + pub role: MessageRole, + /// Message content + pub content: String, + /// Whether the message is still streaming + #[props(default = false)] + pub is_streaming: bool, +} + +/// A single message bubble in the chat. +#[component] +pub fn MessageBubble(props: MessageBubbleProps) -> Element { + let (bubble_class, icon_class, bg_color) = match props.role { + MessageRole::User => ("is-primary", "fa-user", "#3273dc"), + MessageRole::Assistant => ("is-info", "fa-robot", "#209cee"), + MessageRole::System => ("is-warning", "fa-cog", "#ffdd57"), + }; + + let is_user = props.role == MessageRole::User; + let align = if is_user { "flex-end" } else { "flex-start" }; + + rsx! { + div { + class: "message-bubble", + style: "display: flex; justify-content: {align}; margin-bottom: 0.75rem;", + + div { + class: "box", + style: "max-width: 80%; background-color: {bg_color}; color: white; padding: 0.75rem 1rem;", + + // Header with icon + div { + class: "message-header", + style: "display: flex; align-items: center; margin-bottom: 0.25rem; opacity: 0.8; font-size: 0.85rem;", + + span { class: "icon is-small", + i { class: "fas {icon_class}" } + } + span { style: "margin-left: 0.25rem;", + match props.role { + MessageRole::User => "You", + MessageRole::Assistant => "Assistant", + MessageRole::System => "System", + } + } + } + + // Content + div { class: "message-content", + style: "white-space: pre-wrap; word-break: break-word;", + + "{props.content}" + + // Streaming cursor + if props.is_streaming { + span { + class: "streaming-cursor", + style: "animation: blink 1s infinite;", + "▊" + } + } + } + } + } + } +} diff --git a/crates/rustyclaw-desktop/src/components/mod.rs b/crates/rustyclaw-desktop/src/components/mod.rs new file mode 100644 index 0000000..5336466 --- /dev/null +++ b/crates/rustyclaw-desktop/src/components/mod.rs @@ -0,0 +1,15 @@ +//! UI Components for the desktop client. + +mod chat; +mod hatching; +mod message; +mod pairing; +mod sidebar; +mod tool_call; + +pub use chat::Chat; +pub use hatching::{HatchingDialog, HatchingResult}; +pub use message::MessageBubble; +pub use pairing::{generate_qr_code, PairingDialog}; +pub use sidebar::Sidebar; +pub use tool_call::ToolCallPanel; diff --git a/crates/rustyclaw-desktop/src/components/pairing.rs b/crates/rustyclaw-desktop/src/components/pairing.rs new file mode 100644 index 0000000..610fe7e --- /dev/null +++ b/crates/rustyclaw-desktop/src/components/pairing.rs @@ -0,0 +1,255 @@ +//! Pairing dialog with QR code generation. + +use dioxus::prelude::*; +use dioxus_bulma::prelude::*; + +/// Props for PairingDialog. +#[derive(Props, Clone, PartialEq)] +pub struct PairingDialogProps { + /// Whether the dialog is visible + pub visible: bool, + /// Client public key (for display) + pub public_key: Option, + /// QR code data URL (base64 PNG) + pub qr_code_data_url: Option, + /// Gateway host + pub gateway_host: String, + /// Gateway port + pub gateway_port: u16, + /// Callback when host changes + pub on_host_change: EventHandler, + /// Callback when port changes + pub on_port_change: EventHandler, + /// Callback to connect + pub on_connect: EventHandler<()>, + /// Callback to generate new keypair + pub on_generate_key: EventHandler<()>, + /// Callback to cancel + pub on_cancel: EventHandler<()>, +} + +/// Pairing dialog component. +#[component] +pub fn PairingDialog(props: PairingDialogProps) -> Element { + let mut host = use_signal(|| props.gateway_host.clone()); + let mut port_str = use_signal(|| props.gateway_port.to_string()); + let mut copied = use_signal(|| false); + + // Reset copied state after 2 seconds + use_effect(move || { + if *copied.read() { + spawn(async move { + tokio::time::sleep(std::time::Duration::from_secs(2)).await; + copied.set(false); + }); + } + }); + + if !props.visible { + return rsx! {}; + } + + let public_key = props.public_key.clone(); + let handle_copy = move |_| { + if let Some(key) = &public_key { + // In a real implementation, use clipboard API + // For now, just mark as copied + tracing::info!("Copy public key: {}", key); + copied.set(true); + } + }; + + rsx! { + div { class: "modal is-active", + div { class: "modal-background", + onclick: move |_| props.on_cancel.call(()), + } + + div { class: "modal-card", + style: "max-width: 550px;", + + header { class: "modal-card-head", + p { class: "modal-card-title", + span { class: "icon", + i { class: "fas fa-link" } + } + " Pair with Gateway" + } + button { + class: "delete", + onclick: move |_| props.on_cancel.call(()), + } + } + + section { class: "modal-card-body", + // Public key display + div { class: "box", + style: "background: #f5f5f5;", + + p { class: "has-text-weight-semibold", + span { class: "icon is-small", + i { class: "fas fa-key" } + } + " Your Public Key" + } + + if let Some(key) = &props.public_key { + div { style: "margin-top: 0.5rem;", + pre { + style: "background: white; padding: 0.5rem; border-radius: 4px; font-size: 0.75rem; overflow-x: auto;", + "{key}" + } + + div { class: "buttons is-right", + style: "margin-top: 0.5rem;", + + Button { + size: BulmaSize::Small, + color: if *copied.read() { BulmaColor::Success } else { BulmaColor::Light }, + onclick: handle_copy, + + span { class: "icon is-small", + i { class: if *copied.read() { "fas fa-check" } else { "fas fa-copy" } } + } + span { if *copied.read() { "Copied!" } else { "Copy" } } + } + } + } + } else { + div { style: "margin-top: 0.5rem;", + p { class: "has-text-grey", "No keypair generated" } + Button { + size: BulmaSize::Small, + color: BulmaColor::Primary, + onclick: move |_| props.on_generate_key.call(()), + + span { class: "icon is-small", + i { class: "fas fa-plus" } + } + span { "Generate Keypair" } + } + } + } + } + + // QR code + if let Some(qr_url) = &props.qr_code_data_url { + div { class: "has-text-centered", + style: "margin: 1rem 0;", + + p { class: "has-text-grey is-size-7", + "─── OR scan QR code ───" + } + + img { + src: "{qr_url}", + alt: "Pairing QR Code", + style: "max-width: 200px; margin: 1rem auto;", + } + } + } + + // Gateway connection settings + div { class: "box", + p { class: "has-text-weight-semibold", + span { class: "icon is-small", + i { class: "fas fa-server" } + } + " Gateway" + } + + div { class: "columns", + style: "margin-top: 0.5rem;", + + div { class: "column is-8", + Field { + FieldLabel { "Host" } + Control { class: "has-icons-left", + input { + class: "input", + r#type: "text", + placeholder: "127.0.0.1", + value: "{host}", + oninput: move |evt| { + let value = evt.value(); + host.set(value.clone()); + props.on_host_change.call(value); + }, + } + span { class: "icon is-left", + i { class: "fas fa-network-wired" } + } + } + } + } + + div { class: "column is-4", + Field { + FieldLabel { "Port" } + Control { + input { + class: "input", + r#type: "number", + placeholder: "9001", + value: "{port_str}", + oninput: move |evt| { + let value = evt.value(); + port_str.set(value.clone()); + if let Ok(port) = value.parse::() { + props.on_port_change.call(port); + } + }, + } + } + } + } + } + } + } + + footer { class: "modal-card-foot", + style: "justify-content: flex-end;", + + Button { + color: BulmaColor::Light, + onclick: move |_| props.on_cancel.call(()), + "Cancel" + } + + Button { + color: BulmaColor::Primary, + onclick: move |_| props.on_connect.call(()), + + span { class: "icon", + i { class: "fas fa-plug" } + } + span { "Connect" } + } + } + } + } + } +} + +/// Generate a QR code as a base64 data URL. +pub fn generate_qr_code(data: &str) -> Option { + use qrcode::QrCode; + use image::Luma; + + let code = QrCode::new(data.as_bytes()).ok()?; + let image = code.render::>().build(); + + let mut png_data = Vec::new(); + let encoder = image::codecs::png::PngEncoder::new(&mut png_data); + use image::ImageEncoder; + encoder.write_image( + image.as_raw(), + image.width(), + image.height(), + image::ExtendedColorType::L8, + ).ok()?; + + use base64::Engine; + let b64 = base64::engine::general_purpose::STANDARD.encode(&png_data); + Some(format!("data:image/png;base64,{}", b64)) +} diff --git a/crates/rustyclaw-desktop/src/components/sidebar.rs b/crates/rustyclaw-desktop/src/components/sidebar.rs new file mode 100644 index 0000000..0d4717b --- /dev/null +++ b/crates/rustyclaw-desktop/src/components/sidebar.rs @@ -0,0 +1,165 @@ +//! Sidebar component for sessions and settings. + +use dioxus::prelude::*; +use dioxus_bulma::prelude::*; + +use crate::state::{ConnectionStatus, ThreadInfo}; + +/// Props for Sidebar. +#[derive(Props, Clone, PartialEq)] +pub struct SidebarProps { + /// Connection status + pub connection: ConnectionStatus, + /// Agent name + pub agent_name: Option, + /// Current model + pub model: Option, + /// Current provider + pub provider: Option, + /// Active threads + pub threads: Vec, + /// Current foreground thread ID + pub foreground_id: Option, + /// Callback for new thread + pub on_new_thread: EventHandler<()>, + /// Callback for switching threads + pub on_switch_thread: EventHandler, + /// Callback for settings + pub on_settings: EventHandler<()>, +} + +/// Sidebar component. +#[component] +pub fn Sidebar(props: SidebarProps) -> Element { + let connection_color = match &props.connection { + ConnectionStatus::Disconnected => "has-text-grey", + ConnectionStatus::Connecting => "has-text-warning", + ConnectionStatus::Connected | ConnectionStatus::Authenticated => "has-text-success", + ConnectionStatus::Authenticating => "has-text-info", + ConnectionStatus::Error(_) => "has-text-danger", + }; + + let connection_icon = match &props.connection { + ConnectionStatus::Disconnected => "fa-plug", + ConnectionStatus::Connecting | ConnectionStatus::Authenticating => "fa-spinner fa-spin", + ConnectionStatus::Connected | ConnectionStatus::Authenticated => "fa-check-circle", + ConnectionStatus::Error(_) => "fa-exclamation-circle", + }; + + let connection_text = match &props.connection { + ConnectionStatus::Disconnected => "Disconnected".to_string(), + ConnectionStatus::Connecting => "Connecting...".to_string(), + ConnectionStatus::Connected => "Connected".to_string(), + ConnectionStatus::Authenticating => "Authenticating...".to_string(), + ConnectionStatus::Authenticated => "Ready".to_string(), + ConnectionStatus::Error(e) => format!("Error: {}", e), + }; + + rsx! { + aside { + class: "menu sidebar", + style: "width: 250px; padding: 1rem; background: #f5f5f5; border-right: 1px solid #dbdbdb; height: 100%; display: flex; flex-direction: column;", + + // Agent header + div { class: "sidebar-header", + style: "margin-bottom: 1rem;", + + p { class: "menu-label", + span { class: "icon-text", + span { class: "icon", + i { class: "fas fa-robot" } + } + span { + if let Some(name) = &props.agent_name { + "{name}" + } else { + "RustyClaw" + } + } + } + } + + // Connection status + p { class: "is-size-7 {connection_color}", + span { class: "icon is-small", + i { class: "fas {connection_icon}" } + } + " {connection_text}" + } + + // Model info + if let Some(model) = &props.model { + p { class: "is-size-7 has-text-grey", + span { class: "icon is-small", + i { class: "fas fa-brain" } + } + " {model}" + } + } + } + + // Threads/Sessions + p { class: "menu-label", "Sessions" } + + Button { + color: BulmaColor::Primary, + size: BulmaSize::Small, + fullwidth: true, + onclick: move |_| props.on_new_thread.call(()), + + span { class: "icon is-small", + i { class: "fas fa-plus" } + } + span { "New Session" } + } + + ul { class: "menu-list", + style: "flex: 1; overflow-y: auto; margin-top: 0.5rem;", + + for thread in props.threads.iter() { + li { key: "{thread.id}", + a { + class: if props.foreground_id == Some(thread.id) { "is-active" } else { "" }, + onclick: { + let thread_id = thread.id; + move |_| props.on_switch_thread.call(thread_id) + }, + + span { class: "icon is-small", + i { class: "fas fa-comments" } + } + span { + if let Some(label) = &thread.label { + "{label}" + } else { + "Session #{thread.id}" + } + } + span { class: "tag is-small is-rounded", + style: "margin-left: auto;", + "{thread.message_count}" + } + } + } + } + } + + // Footer with settings + div { class: "sidebar-footer", + style: "margin-top: auto; padding-top: 1rem; border-top: 1px solid #dbdbdb;", + + Button { + color: BulmaColor::Light, + size: BulmaSize::Small, + fullwidth: true, + onclick: move |_| props.on_settings.call(()), + + span { class: "icon is-small", + i { class: "fas fa-cog" } + } + span { "Settings" } + } + } + } + } +} diff --git a/crates/rustyclaw-desktop/src/components/tool_call.rs b/crates/rustyclaw-desktop/src/components/tool_call.rs new file mode 100644 index 0000000..d5fd73a --- /dev/null +++ b/crates/rustyclaw-desktop/src/components/tool_call.rs @@ -0,0 +1,112 @@ +//! Tool call display panel. + +use dioxus::prelude::*; +use dioxus_bulma::prelude::*; + +/// Props for ToolCallPanel. +#[derive(Props, Clone, PartialEq)] +pub struct ToolCallPanelProps { + /// Tool call ID + pub id: String, + /// Tool name + pub name: String, + /// Tool arguments (JSON) + pub arguments: String, + /// Tool result + pub result: Option, + /// Whether the result is an error + #[props(default = false)] + pub is_error: bool, + /// Whether the panel is collapsed + #[props(default = true)] + pub collapsed: bool, +} + +/// Collapsible panel showing tool call details. +#[component] +pub fn ToolCallPanel(props: ToolCallPanelProps) -> Element { + let mut is_collapsed = use_signal(|| props.collapsed); + + let status_class = if props.result.is_some() { + if props.is_error { "is-danger" } else { "is-success" } + } else { + "is-info" + }; + + let status_icon = if props.result.is_some() { + if props.is_error { "fa-times-circle" } else { "fa-check-circle" } + } else { + "fa-spinner fa-spin" + }; + + rsx! { + div { + class: "tool-call-panel message {status_class}", + style: "margin: 0.5rem 0; font-size: 0.9rem;", + + // Header (clickable) + div { + class: "message-header", + style: "cursor: pointer; padding: 0.5rem 0.75rem;", + onclick: move |_| { + let val = *is_collapsed.read(); + is_collapsed.set(!val); + }, + + span { class: "icon is-small", + i { class: "fas fa-wrench" } + } + span { style: "margin-left: 0.25rem; font-weight: 600;", + "{props.name}" + } + + span { style: "margin-left: auto;", + span { class: "icon is-small", + i { class: "fas {status_icon}" } + } + span { class: "icon is-small", + i { class: if *is_collapsed.read() { "fas fa-chevron-down" } else { "fas fa-chevron-up" } } + } + } + } + + // Body (collapsible) + if !*is_collapsed.read() { + div { class: "message-body", + style: "padding: 0.75rem;", + + // Arguments + div { class: "tool-arguments", + style: "margin-bottom: 0.5rem;", + + strong { "Arguments:" } + pre { + style: "background: rgba(0,0,0,0.1); padding: 0.5rem; border-radius: 4px; overflow-x: auto; margin-top: 0.25rem;", + code { + // Pretty print JSON if possible + { + serde_json::from_str::(&props.arguments) + .map(|v| serde_json::to_string_pretty(&v).unwrap_or(props.arguments.clone())) + .unwrap_or(props.arguments.clone()) + } + } + } + } + + // Result (if available) + if let Some(result) = &props.result { + div { class: "tool-result", + strong { + if props.is_error { "Error:" } else { "Result:" } + } + pre { + style: "background: rgba(0,0,0,0.1); padding: 0.5rem; border-radius: 4px; overflow-x: auto; margin-top: 0.25rem; max-height: 200px;", + code { "{result}" } + } + } + } + } + } + } + } +} diff --git a/crates/rustyclaw-desktop/src/gateway/client.rs b/crates/rustyclaw-desktop/src/gateway/client.rs new file mode 100644 index 0000000..f959648 --- /dev/null +++ b/crates/rustyclaw-desktop/src/gateway/client.rs @@ -0,0 +1,284 @@ +//! WebSocket client for gateway communication. + +use anyhow::{anyhow, Result}; +use futures::{SinkExt, StreamExt}; +use rustyclaw_core::gateway::{ChatMessage, ClientFrame, ClientPayload, ServerFrame, ServerPayload, StatusType}; +use std::sync::Arc; +use tokio::sync::{mpsc, Mutex}; +use tokio_tungstenite::{connect_async, tungstenite::Message}; +use url::Url; + +use super::protocol::{GatewayCommand, GatewayEvent, ThreadInfoDto}; + +/// Client for communicating with the RustyClaw gateway. +pub struct GatewayClient { + /// Channel to send commands to the gateway + cmd_tx: mpsc::Sender, + /// Channel to receive events from the gateway + event_rx: Arc>>, + /// Whether we're connected + connected: Arc, +} + +impl GatewayClient { + /// Connect to a gateway at the given URL. + pub async fn connect(url: &str) -> Result { + let url = Url::parse(url)?; + let (ws_stream, _) = connect_async(url.as_str()).await?; + let (mut write, mut read) = ws_stream.split(); + + // Channels for communication + let (cmd_tx, mut cmd_rx) = mpsc::channel::(32); + let (event_tx, event_rx) = mpsc::channel::(64); + + let connected = Arc::new(std::sync::atomic::AtomicBool::new(true)); + let connected_clone = connected.clone(); + + // Spawn task to handle outgoing commands + let event_tx_clone = event_tx.clone(); + tokio::spawn(async move { + while let Some(cmd) = cmd_rx.recv().await { + let frame = command_to_frame(cmd); + let data = bincode::serde::encode_to_vec(&frame, bincode::config::standard()) + .unwrap_or_default(); + + if write.send(Message::Binary(data.into())).await.is_err() { + let _ = event_tx_clone.send(GatewayEvent::Disconnected { + reason: Some("Send failed".into()), + }).await; + break; + } + } + }); + + // Spawn task to handle incoming messages + tokio::spawn(async move { + while let Some(msg) = read.next().await { + match msg { + Ok(Message::Binary(data)) => { + if let Ok((frame, _)) = bincode::serde::decode_from_slice::( + &data, + bincode::config::standard(), + ) { + if let Some(event) = frame_to_event(frame) { + if event_tx.send(event).await.is_err() { + break; + } + } + } + } + Ok(Message::Text(text)) => { + // Try JSON fallback + if let Ok(frame) = serde_json::from_str::(&text) { + if let Some(event) = frame_to_event(frame) { + if event_tx.send(event).await.is_err() { + break; + } + } + } + } + Ok(Message::Close(_)) => { + let _ = event_tx.send(GatewayEvent::Disconnected { reason: None }).await; + break; + } + Err(e) => { + let _ = event_tx.send(GatewayEvent::Disconnected { + reason: Some(e.to_string()), + }).await; + break; + } + _ => {} + } + } + connected_clone.store(false, std::sync::atomic::Ordering::SeqCst); + }); + + Ok(Self { + cmd_tx, + event_rx: Arc::new(Mutex::new(event_rx)), + connected, + }) + } + + /// Send a command to the gateway. + pub async fn send(&self, cmd: GatewayCommand) -> Result<()> { + self.cmd_tx + .send(cmd) + .await + .map_err(|_| anyhow!("Failed to send command")) + } + + /// Receive the next event from the gateway. + pub async fn recv(&self) -> Option { + let mut rx = self.event_rx.lock().await; + rx.recv().await + } + + /// Check if connected. + pub fn is_connected(&self) -> bool { + self.connected.load(std::sync::atomic::Ordering::SeqCst) + } + + /// Send a chat message. + pub async fn chat(&self, message: String) -> Result<()> { + self.send(GatewayCommand::Chat { message }).await + } + + /// Authenticate with TOTP code. + pub async fn authenticate(&self, code: String) -> Result<()> { + self.send(GatewayCommand::Auth { code }).await + } + + /// Unlock the vault. + pub async fn unlock_vault(&self, password: String) -> Result<()> { + self.send(GatewayCommand::VaultUnlock { password }).await + } + + /// Approve or deny a tool call. + pub async fn respond_tool_approval(&self, id: String, approved: bool) -> Result<()> { + self.send(GatewayCommand::ToolApprove { id, approved }).await + } +} + +/// Convert a gateway command to a client frame. +fn command_to_frame(cmd: GatewayCommand) -> ClientFrame { + use rustyclaw_core::gateway::ClientFrameType; + + match cmd { + GatewayCommand::Chat { message } => ClientFrame { + frame_type: ClientFrameType::Chat, + payload: ClientPayload::Chat { + messages: vec![ChatMessage::text("user", &message)], + }, + }, + GatewayCommand::Auth { code } => ClientFrame { + frame_type: ClientFrameType::AuthResponse, + payload: ClientPayload::AuthResponse { code }, + }, + GatewayCommand::VaultUnlock { password } => ClientFrame { + frame_type: ClientFrameType::UnlockVault, + payload: ClientPayload::UnlockVault { password }, + }, + GatewayCommand::ToolApprove { id, approved } => ClientFrame { + frame_type: ClientFrameType::ToolApprovalResponse, + payload: ClientPayload::ToolApprovalResponse { + id, + approved, + }, + }, + GatewayCommand::ThreadSwitch { thread_id } => ClientFrame { + frame_type: ClientFrameType::ThreadSwitch, + payload: ClientPayload::ThreadSwitch { thread_id }, + }, + GatewayCommand::ThreadCreate { label } => ClientFrame { + frame_type: ClientFrameType::ThreadCreate, + payload: ClientPayload::ThreadCreate { label: label.unwrap_or_default() }, + }, + GatewayCommand::SecretsList => ClientFrame { + frame_type: ClientFrameType::SecretsList, + payload: ClientPayload::SecretsList, + }, + GatewayCommand::Cancel => ClientFrame { + frame_type: ClientFrameType::Cancel, + payload: ClientPayload::Empty, + }, + } +} + +/// Convert a server frame to a gateway event. +fn frame_to_event(frame: ServerFrame) -> Option { + match frame.payload { + ServerPayload::Hello { + agent, + vault_locked, + provider, + model, + .. + } => Some(GatewayEvent::Connected { + agent: Some(agent), + vault_locked, + provider, + model, + }), + ServerPayload::Status { status, detail } => match status { + StatusType::ModelReady => Some(GatewayEvent::ModelReady { model: detail }), + StatusType::ModelError => Some(GatewayEvent::ModelError { message: detail }), + StatusType::VaultLocked => Some(GatewayEvent::VaultLocked), + _ => Some(GatewayEvent::Info { message: detail }), + }, + ServerPayload::AuthChallenge { .. } => Some(GatewayEvent::AuthRequired), + ServerPayload::AuthResult { ok, message, retry } => { + if ok { + Some(GatewayEvent::AuthSuccess) + } else { + Some(GatewayEvent::AuthFailed { + message: message.unwrap_or_default(), + retry: retry.unwrap_or(false), + }) + } + } + ServerPayload::VaultUnlocked { ok, message } => { + if ok { + Some(GatewayEvent::VaultUnlocked) + } else { + Some(GatewayEvent::Error { + message: message.unwrap_or_else(|| "Failed to unlock vault".into()), + }) + } + } + ServerPayload::StreamStart => Some(GatewayEvent::StreamStart), + ServerPayload::ThinkingStart => Some(GatewayEvent::ThinkingStart), + ServerPayload::ThinkingEnd => Some(GatewayEvent::ThinkingEnd), + ServerPayload::Chunk { delta } => Some(GatewayEvent::Chunk { delta }), + ServerPayload::ResponseDone { .. } => Some(GatewayEvent::ResponseDone), + ServerPayload::ToolCall { + id, + name, + arguments, + } => Some(GatewayEvent::ToolCall { + id, + name, + arguments, + }), + ServerPayload::ToolResult { + id, + name, + result, + is_error, + } => Some(GatewayEvent::ToolResult { + id, + name, + result, + is_error, + }), + ServerPayload::ToolApprovalRequest { + id, + name, + arguments, + } => Some(GatewayEvent::ToolApprovalRequest { + id, + name, + arguments, + }), + ServerPayload::ThreadsUpdate { + threads, + foreground_id, + } => Some(GatewayEvent::ThreadsUpdate { + threads: threads + .into_iter() + .map(|t| ThreadInfoDto { + id: t.id, + label: Some(t.label), + description: t.description, + status: t.status.unwrap_or_default(), + is_foreground: t.is_foreground, + message_count: t.message_count, + }) + .collect(), + foreground_id, + }), + ServerPayload::Error { message, .. } => Some(GatewayEvent::Error { message }), + ServerPayload::Info { message } => Some(GatewayEvent::Info { message }), + _ => None, + } +} diff --git a/crates/rustyclaw-desktop/src/gateway/mod.rs b/crates/rustyclaw-desktop/src/gateway/mod.rs new file mode 100644 index 0000000..956be51 --- /dev/null +++ b/crates/rustyclaw-desktop/src/gateway/mod.rs @@ -0,0 +1,7 @@ +//! Gateway WebSocket client. + +mod client; +mod protocol; + +pub use client::GatewayClient; +pub use protocol::{GatewayCommand, GatewayEvent}; diff --git a/crates/rustyclaw-desktop/src/gateway/protocol.rs b/crates/rustyclaw-desktop/src/gateway/protocol.rs new file mode 100644 index 0000000..5c65e2b --- /dev/null +++ b/crates/rustyclaw-desktop/src/gateway/protocol.rs @@ -0,0 +1,136 @@ +//! Protocol types for gateway communication. + +use serde::{Deserialize, Serialize}; + +/// Events received from the gateway. +#[derive(Clone, Debug)] +pub enum GatewayEvent { + /// Connected to gateway + Connected { + agent: Option, + vault_locked: bool, + provider: Option, + model: Option, + }, + + /// Disconnected from gateway + Disconnected { reason: Option }, + + /// Authentication required + AuthRequired, + + /// Authentication succeeded + AuthSuccess, + + /// Authentication failed + AuthFailed { message: String, retry: bool }, + + /// Vault needs unlocking + VaultLocked, + + /// Vault unlocked successfully + VaultUnlocked, + + /// Model is ready + ModelReady { model: String }, + + /// Model error + ModelError { message: String }, + + /// Stream starting + StreamStart, + + /// Thinking started (extended thinking) + ThinkingStart, + + /// Thinking ended + ThinkingEnd, + + /// Text chunk received + Chunk { delta: String }, + + /// Response complete + ResponseDone, + + /// Tool call initiated + ToolCall { + id: String, + name: String, + arguments: String, + }, + + /// Tool call result + ToolResult { + id: String, + name: String, + result: String, + is_error: bool, + }, + + /// Tool approval request + ToolApprovalRequest { + id: String, + name: String, + arguments: String, + }, + + /// Threads/sessions updated + ThreadsUpdate { + threads: Vec, + foreground_id: Option, + }, + + /// Error from gateway + Error { message: String }, + + /// Info message + Info { message: String }, +} + +/// Thread info from gateway. +#[derive(Clone, Debug, Serialize, Deserialize)] +pub struct ThreadInfoDto { + pub id: u64, + pub label: Option, + pub description: Option, + pub status: String, + pub is_foreground: bool, + pub message_count: usize, +} + +/// Commands to send to the gateway. +#[derive(Clone, Debug, Serialize)] +#[serde(tag = "type")] +pub enum GatewayCommand { + /// Send a chat message + #[serde(rename = "chat")] + Chat { message: String }, + + /// Authenticate with TOTP code + #[serde(rename = "auth")] + Auth { code: String }, + + /// Unlock vault with password + #[serde(rename = "vault_unlock")] + VaultUnlock { password: String }, + + /// Approve tool call + #[serde(rename = "tool_approve")] + ToolApprove { id: String, approved: bool }, + + /// Switch to a thread + #[serde(rename = "thread_switch")] + ThreadSwitch { thread_id: u64 }, + + /// Create a new thread + #[serde(rename = "thread_create")] + ThreadCreate { label: Option }, + + /// List secrets + #[serde(rename = "secrets_list")] + SecretsList, + + /// Cancel current operation + #[serde(rename = "cancel")] + Cancel, +} diff --git a/crates/rustyclaw-desktop/src/main.rs b/crates/rustyclaw-desktop/src/main.rs new file mode 100644 index 0000000..5acd1d5 --- /dev/null +++ b/crates/rustyclaw-desktop/src/main.rs @@ -0,0 +1,24 @@ +//! RustyClaw Desktop Client +//! +//! A GUI alternative to the TUI client, built with Dioxus and dioxus-bulma. + +use dioxus::prelude::*; +use tracing_subscriber::{layer::SubscriberExt, util::SubscriberInitExt, EnvFilter}; + +mod app; +mod components; +mod gateway; +mod state; + +fn main() { + // Initialize logging + tracing_subscriber::registry() + .with(EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info"))) + .with(tracing_subscriber::fmt::layer()) + .init(); + + tracing::info!("Starting RustyClaw Desktop"); + + // Launch the Dioxus app + dioxus::launch(app::App); +} diff --git a/crates/rustyclaw-desktop/src/state.rs b/crates/rustyclaw-desktop/src/state.rs new file mode 100644 index 0000000..ee67f01 --- /dev/null +++ b/crates/rustyclaw-desktop/src/state.rs @@ -0,0 +1,212 @@ +//! Application state management. + +use std::collections::VecDeque; + +/// Connection status to the gateway. +#[derive(Clone, Debug, PartialEq, Eq)] +pub enum ConnectionStatus { + Disconnected, + Connecting, + Connected, + Authenticating, + Authenticated, + Error(String), +} + +impl Default for ConnectionStatus { + fn default() -> Self { + Self::Disconnected + } +} + +/// A chat message in the conversation. +#[derive(Clone, Debug, PartialEq)] +pub struct ChatMessage { + pub id: String, + pub role: MessageRole, + pub content: String, + pub timestamp: chrono::DateTime, + pub tool_calls: Vec, + pub is_streaming: bool, +} + +#[derive(Clone, Debug, PartialEq, Eq)] +pub enum MessageRole { + User, + Assistant, + System, +} + +/// Information about a tool call. +#[derive(Clone, Debug, PartialEq)] +pub struct ToolCallInfo { + pub id: String, + pub name: String, + pub arguments: String, + pub result: Option, + pub is_error: bool, + pub collapsed: bool, +} + +/// Thread/session info. +#[derive(Clone, Debug, PartialEq)] +pub struct ThreadInfo { + pub id: u64, + pub label: Option, + pub description: Option, + pub status: String, + pub is_foreground: bool, + pub message_count: usize, +} + +/// Main application state. +#[derive(Clone, Debug)] +pub struct AppState { + /// Current connection status + pub connection: ConnectionStatus, + + /// Gateway URL + pub gateway_url: String, + + /// Chat messages + pub messages: VecDeque, + + /// Current input text + pub input: String, + + /// Whether we're waiting for a response + pub is_processing: bool, + + /// Whether the assistant is currently streaming + pub is_streaming: bool, + + /// Current thinking state (for extended thinking models) + pub is_thinking: bool, + + /// Active threads/sessions + pub threads: Vec, + + /// Current foreground thread ID + pub foreground_thread_id: Option, + + /// Agent name from hatching + pub agent_name: Option, + + /// Whether vault is locked + pub vault_locked: bool, + + /// Whether we need to show hatching dialog + pub needs_hatching: bool, + + /// Current model name + pub model: Option, + + /// Current provider name + pub provider: Option, + + /// Status messages + pub status_message: Option, +} + +impl Default for AppState { + fn default() -> Self { + Self { + connection: ConnectionStatus::Disconnected, + gateway_url: "ws://127.0.0.1:9001".to_string(), + messages: VecDeque::new(), + input: String::new(), + is_processing: false, + is_streaming: false, + is_thinking: false, + threads: Vec::new(), + foreground_thread_id: None, + agent_name: None, + vault_locked: false, + needs_hatching: false, + model: None, + provider: None, + status_message: None, + } + } +} + +impl AppState { + /// Add a user message to the conversation. + pub fn add_user_message(&mut self, content: String) { + let msg = ChatMessage { + id: uuid::Uuid::new_v4().to_string(), + role: MessageRole::User, + content, + timestamp: chrono::Utc::now(), + tool_calls: Vec::new(), + is_streaming: false, + }; + self.messages.push_back(msg); + } + + /// Start a new assistant message (streaming). + pub fn start_assistant_message(&mut self) -> String { + let id = uuid::Uuid::new_v4().to_string(); + let msg = ChatMessage { + id: id.clone(), + role: MessageRole::Assistant, + content: String::new(), + timestamp: chrono::Utc::now(), + tool_calls: Vec::new(), + is_streaming: true, + }; + self.messages.push_back(msg); + self.is_streaming = true; + id + } + + /// Append content to the current streaming message. + pub fn append_to_current_message(&mut self, delta: &str) { + if let Some(msg) = self.messages.back_mut() { + if msg.is_streaming { + msg.content.push_str(delta); + } + } + } + + /// Finish the current streaming message. + pub fn finish_current_message(&mut self) { + if let Some(msg) = self.messages.back_mut() { + msg.is_streaming = false; + } + self.is_streaming = false; + self.is_processing = false; + } + + /// Add a tool call to the current message. + pub fn add_tool_call(&mut self, id: String, name: String, arguments: String) { + if let Some(msg) = self.messages.back_mut() { + msg.tool_calls.push(ToolCallInfo { + id, + name, + arguments, + result: None, + is_error: false, + collapsed: true, + }); + } + } + + /// Set the result for a tool call. + pub fn set_tool_result(&mut self, id: &str, result: String, is_error: bool) { + for msg in self.messages.iter_mut().rev() { + for tool in &mut msg.tool_calls { + if tool.id == id { + tool.result = Some(result); + tool.is_error = is_error; + return; + } + } + } + } + + /// Clear all messages. + pub fn clear_messages(&mut self) { + self.messages.clear(); + } +}