diff --git a/README.md b/README.md index 119c31a..f1f7715 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +![BDGM Logo](./logo-slim.svg) + # Blu-Ray Disc Game BDGM is a UDF-based specification for storing and playing cross-platform games on optical discs (CD, DVD, Blu-Ray). diff --git a/bdgm/.envrc b/bdgm/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/bdgm/.envrc @@ -0,0 +1 @@ +use flake diff --git a/bdgm/.gitignore b/bdgm/.gitignore index 6d7ffbd..4d58f46 100644 --- a/bdgm/.gitignore +++ b/bdgm/.gitignore @@ -2,3 +2,13 @@ target/ *.BDGM *.udf !DISC_read.BDGM +.direnv/ + +# Development certificate +devcert.pfx + +# Winapp CLI stuff +.winapp/ +AppX/ +dist/ +*.msix diff --git a/bdgm/Assets/AppList.png b/bdgm/Assets/AppList.png new file mode 100644 index 0000000..a37370c Binary files /dev/null and b/bdgm/Assets/AppList.png differ diff --git a/bdgm/Assets/AppList.scale-125.png b/bdgm/Assets/AppList.scale-125.png new file mode 100644 index 0000000..f5209c9 Binary files /dev/null and b/bdgm/Assets/AppList.scale-125.png differ diff --git a/bdgm/Assets/AppList.scale-150.png b/bdgm/Assets/AppList.scale-150.png new file mode 100644 index 0000000..6683583 Binary files /dev/null and b/bdgm/Assets/AppList.scale-150.png differ diff --git a/bdgm/Assets/AppList.scale-200.png b/bdgm/Assets/AppList.scale-200.png new file mode 100644 index 0000000..2fe3145 Binary files /dev/null and b/bdgm/Assets/AppList.scale-200.png differ diff --git a/bdgm/Assets/AppList.scale-400.png b/bdgm/Assets/AppList.scale-400.png new file mode 100644 index 0000000..282cd3c Binary files /dev/null and b/bdgm/Assets/AppList.scale-400.png differ diff --git a/bdgm/Assets/AppList.targetsize-16.png b/bdgm/Assets/AppList.targetsize-16.png new file mode 100644 index 0000000..09b9ae0 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-16.png differ diff --git a/bdgm/Assets/AppList.targetsize-16_altform-unplated.png b/bdgm/Assets/AppList.targetsize-16_altform-unplated.png new file mode 100644 index 0000000..09b9ae0 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-16_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-20.png b/bdgm/Assets/AppList.targetsize-20.png new file mode 100644 index 0000000..020ff78 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-20.png differ diff --git a/bdgm/Assets/AppList.targetsize-20_altform-unplated.png b/bdgm/Assets/AppList.targetsize-20_altform-unplated.png new file mode 100644 index 0000000..020ff78 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-20_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-24.png b/bdgm/Assets/AppList.targetsize-24.png new file mode 100644 index 0000000..79b149d Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-24.png differ diff --git a/bdgm/Assets/AppList.targetsize-24_altform-unplated.png b/bdgm/Assets/AppList.targetsize-24_altform-unplated.png new file mode 100644 index 0000000..79b149d Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-24_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-256.png b/bdgm/Assets/AppList.targetsize-256.png new file mode 100644 index 0000000..cb2da1b Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-256.png differ diff --git a/bdgm/Assets/AppList.targetsize-256_altform-unplated.png b/bdgm/Assets/AppList.targetsize-256_altform-unplated.png new file mode 100644 index 0000000..cb2da1b Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-256_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-30.png b/bdgm/Assets/AppList.targetsize-30.png new file mode 100644 index 0000000..f5e329a Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-30.png differ diff --git a/bdgm/Assets/AppList.targetsize-30_altform-unplated.png b/bdgm/Assets/AppList.targetsize-30_altform-unplated.png new file mode 100644 index 0000000..f5e329a Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-30_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-32.png b/bdgm/Assets/AppList.targetsize-32.png new file mode 100644 index 0000000..dc1e52b Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-32.png differ diff --git a/bdgm/Assets/AppList.targetsize-32_altform-unplated.png b/bdgm/Assets/AppList.targetsize-32_altform-unplated.png new file mode 100644 index 0000000..dc1e52b Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-32_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-36.png b/bdgm/Assets/AppList.targetsize-36.png new file mode 100644 index 0000000..310e984 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-36.png differ diff --git a/bdgm/Assets/AppList.targetsize-36_altform-unplated.png b/bdgm/Assets/AppList.targetsize-36_altform-unplated.png new file mode 100644 index 0000000..310e984 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-36_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-40.png b/bdgm/Assets/AppList.targetsize-40.png new file mode 100644 index 0000000..56c0013 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-40.png differ diff --git a/bdgm/Assets/AppList.targetsize-40_altform-unplated.png b/bdgm/Assets/AppList.targetsize-40_altform-unplated.png new file mode 100644 index 0000000..56c0013 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-40_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-48.png b/bdgm/Assets/AppList.targetsize-48.png new file mode 100644 index 0000000..dce3963 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-48.png differ diff --git a/bdgm/Assets/AppList.targetsize-48_altform-unplated.png b/bdgm/Assets/AppList.targetsize-48_altform-unplated.png new file mode 100644 index 0000000..dce3963 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-48_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-60.png b/bdgm/Assets/AppList.targetsize-60.png new file mode 100644 index 0000000..5878994 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-60.png differ diff --git a/bdgm/Assets/AppList.targetsize-60_altform-unplated.png b/bdgm/Assets/AppList.targetsize-60_altform-unplated.png new file mode 100644 index 0000000..5878994 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-60_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-64.png b/bdgm/Assets/AppList.targetsize-64.png new file mode 100644 index 0000000..78e0d76 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-64.png differ diff --git a/bdgm/Assets/AppList.targetsize-64_altform-unplated.png b/bdgm/Assets/AppList.targetsize-64_altform-unplated.png new file mode 100644 index 0000000..78e0d76 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-64_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-72.png b/bdgm/Assets/AppList.targetsize-72.png new file mode 100644 index 0000000..5bfb41c Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-72.png differ diff --git a/bdgm/Assets/AppList.targetsize-72_altform-unplated.png b/bdgm/Assets/AppList.targetsize-72_altform-unplated.png new file mode 100644 index 0000000..5bfb41c Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-72_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-80.png b/bdgm/Assets/AppList.targetsize-80.png new file mode 100644 index 0000000..42f25db Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-80.png differ diff --git a/bdgm/Assets/AppList.targetsize-80_altform-unplated.png b/bdgm/Assets/AppList.targetsize-80_altform-unplated.png new file mode 100644 index 0000000..42f25db Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-80_altform-unplated.png differ diff --git a/bdgm/Assets/AppList.targetsize-96.png b/bdgm/Assets/AppList.targetsize-96.png new file mode 100644 index 0000000..ed9e7c5 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-96.png differ diff --git a/bdgm/Assets/AppList.targetsize-96_altform-unplated.png b/bdgm/Assets/AppList.targetsize-96_altform-unplated.png new file mode 100644 index 0000000..ed9e7c5 Binary files /dev/null and b/bdgm/Assets/AppList.targetsize-96_altform-unplated.png differ diff --git a/bdgm/Assets/MedTile.png b/bdgm/Assets/MedTile.png new file mode 100644 index 0000000..1e0d593 Binary files /dev/null and b/bdgm/Assets/MedTile.png differ diff --git a/bdgm/Assets/MedTile.scale-125.png b/bdgm/Assets/MedTile.scale-125.png new file mode 100644 index 0000000..c09afee Binary files /dev/null and b/bdgm/Assets/MedTile.scale-125.png differ diff --git a/bdgm/Assets/MedTile.scale-150.png b/bdgm/Assets/MedTile.scale-150.png new file mode 100644 index 0000000..41d5f8b Binary files /dev/null and b/bdgm/Assets/MedTile.scale-150.png differ diff --git a/bdgm/Assets/MedTile.scale-200.png b/bdgm/Assets/MedTile.scale-200.png new file mode 100644 index 0000000..f792293 Binary files /dev/null and b/bdgm/Assets/MedTile.scale-200.png differ diff --git a/bdgm/Assets/MedTile.scale-400.png b/bdgm/Assets/MedTile.scale-400.png new file mode 100644 index 0000000..5587c10 Binary files /dev/null and b/bdgm/Assets/MedTile.scale-400.png differ diff --git a/bdgm/Assets/StoreLogo.png b/bdgm/Assets/StoreLogo.png new file mode 100644 index 0000000..eae5de5 Binary files /dev/null and b/bdgm/Assets/StoreLogo.png differ diff --git a/bdgm/Assets/StoreLogo.scale-125.png b/bdgm/Assets/StoreLogo.scale-125.png new file mode 100644 index 0000000..7993e66 Binary files /dev/null and b/bdgm/Assets/StoreLogo.scale-125.png differ diff --git a/bdgm/Assets/StoreLogo.scale-150.png b/bdgm/Assets/StoreLogo.scale-150.png new file mode 100644 index 0000000..9e51118 Binary files /dev/null and b/bdgm/Assets/StoreLogo.scale-150.png differ diff --git a/bdgm/Assets/StoreLogo.scale-200.png b/bdgm/Assets/StoreLogo.scale-200.png new file mode 100644 index 0000000..2471314 Binary files /dev/null and b/bdgm/Assets/StoreLogo.scale-200.png differ diff --git a/bdgm/Assets/StoreLogo.scale-400.png b/bdgm/Assets/StoreLogo.scale-400.png new file mode 100644 index 0000000..a56d6a9 Binary files /dev/null and b/bdgm/Assets/StoreLogo.scale-400.png differ diff --git a/bdgm/Assets/WideTile.png b/bdgm/Assets/WideTile.png new file mode 100644 index 0000000..b9b9676 Binary files /dev/null and b/bdgm/Assets/WideTile.png differ diff --git a/bdgm/Assets/WideTile.scale-125.png b/bdgm/Assets/WideTile.scale-125.png new file mode 100644 index 0000000..2c31a2d Binary files /dev/null and b/bdgm/Assets/WideTile.scale-125.png differ diff --git a/bdgm/Assets/WideTile.scale-150.png b/bdgm/Assets/WideTile.scale-150.png new file mode 100644 index 0000000..eea40ce Binary files /dev/null and b/bdgm/Assets/WideTile.scale-150.png differ diff --git a/bdgm/Assets/WideTile.scale-200.png b/bdgm/Assets/WideTile.scale-200.png new file mode 100644 index 0000000..7587297 Binary files /dev/null and b/bdgm/Assets/WideTile.scale-200.png differ diff --git a/bdgm/Assets/WideTile.scale-400.png b/bdgm/Assets/WideTile.scale-400.png new file mode 100644 index 0000000..a92a5bf Binary files /dev/null and b/bdgm/Assets/WideTile.scale-400.png differ diff --git a/bdgm/Assets/app.ico b/bdgm/Assets/app.ico new file mode 100644 index 0000000..7438c31 Binary files /dev/null and b/bdgm/Assets/app.ico differ diff --git a/bdgm/Cargo.lock b/bdgm/Cargo.lock index 60db7ae..325b6d3 100644 --- a/bdgm/Cargo.lock +++ b/bdgm/Cargo.lock @@ -2,6 +2,102 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "ab_glyph" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2" +dependencies = [ + "ab_glyph_rasterizer", + "owned_ttf_parser", +] + +[[package]] +name = "ab_glyph_rasterizer" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618" + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "getrandom 0.3.4", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aligned" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee4508988c62edf04abd8d92897fca0c2995d907ce1dfeaf369dac3716a40685" +dependencies = [ + "as-slice", +] + +[[package]] +name = "aligned-vec" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b" +dependencies = [ + "equator", +] + +[[package]] +name = "android-activity" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f2a1bb052857d5dd49572219344a7332b31b76405648eabac5bc68978251bcd" +dependencies = [ + "android-properties", + "bitflags 2.13.2", + "cc", + "jni", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "num_enum", + "thiserror 2.0.21", +] + +[[package]] +name = "android-build" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9fc9904ad2ad097c3c1cfe2eacaaf0fc24710936fa9ed941cb310b7c6ed2ab7" +dependencies = [ + "windows-sys 0.52.0", +] + +[[package]] +name = "android-properties" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04" + +[[package]] +name = "android_system_properties" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" +dependencies = [ + "libc", +] + [[package]] name = "anstream" version = "1.0.0" @@ -38,7 +134,7 @@ version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" dependencies = [ - "windows-sys", + "windows-sys 0.61.2", ] [[package]] @@ -49,7 +145,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" dependencies = [ "anstyle", "once_cell_polyfill", - "windows-sys", + "windows-sys 0.61.2", ] [[package]] @@ -58,6 +154,190 @@ version = "1.0.104" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" +[[package]] +name = "arbitrary" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed" + +[[package]] +name = "arg_enum_proc_macro" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "arrayref" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb" + +[[package]] +name = "arrayvec" +version = "0.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "as-raw-xcb-connection" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b" + +[[package]] +name = "as-slice" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "516b6b4f0e40d50dcda9365d53964ec74560ad4284da2e7fc97122cd83174516" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "ash" +version = "0.38.0+1.3.281" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f" +dependencies = [ + "libloading", +] + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix 1.1.5", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix 1.1.5", +] + +[[package]] +name = "async-recursion" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix 1.1.5", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + [[package]] name = "atomic-waker" version = "1.1.2" @@ -70,6 +350,49 @@ version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" +[[package]] +name = "av-scenechange" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f321d77c20e19b92c39e7471cf986812cbb46659d2af674adc4331ef3f18394" +dependencies = [ + "aligned", + "anyhow", + "arg_enum_proc_macro", + "arrayvec", + "log", + "num-rational", + "num-traits", + "pastey", + "rayon", + "thiserror 2.0.21", + "v_frame", + "y4m", +] + +[[package]] +name = "av1-grain" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cfddb07216410377231960af4fcab838eaa12e013417781b78bd95ee22077f8" +dependencies = [ + "anyhow", + "arrayvec", + "log", + "nom", + "num-rational", + "v_frame", +] + +[[package]] +name = "avif-serialize" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7178fe5f7d460b13895ebb9dcb28a3a6216d2df2574a0806cb51b555d297f38" +dependencies = [ + "arrayvec", +] + [[package]] name = "axum" version = "0.8.9" @@ -153,8 +476,10 @@ dependencies = [ "clap", "fs_extra", "hadris-udf", + "iced", "percent-encoding", "platform-dirs", + "rfd", "serde", "serde_json", "tempfile", @@ -162,7 +487,7 @@ dependencies = [ "tokio", "tower-http", "webbrowser", - "windows-sys", + "windows-sys 0.61.2", ] [[package]] @@ -174,6 +499,33 @@ dependencies = [ "serde", ] +[[package]] +name = "bit-set" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7" + +[[package]] +name = "bit_field" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + [[package]] name = "bitflags" version = "2.13.2" @@ -183,6 +535,58 @@ dependencies = [ "bytemuck", ] +[[package]] +name = "bitstream-io" +version = "4.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7eff00be299a18769011411c9def0d827e8f2d7bf0c3dbf53633147a8867fd1f" +dependencies = [ + "no_std_io2", +] + +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + +[[package]] +name = "block2" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" +dependencies = [ + "objc2 0.5.3", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2 0.6.5", +] + +[[package]] +name = "blocking" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "built" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c0e531d93d39c34eef561e929e8a7f86d77a5af08aac4f6d6e39976c51858e9" + [[package]] name = "bumpalo" version = "3.20.3" @@ -215,6 +619,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.12.1" @@ -222,36 +632,104 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" [[package]] -name = "cfg-if" -version = "1.0.5" +name = "calloop" +version = "0.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" +checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec" +dependencies = [ + "bitflags 2.13.2", + "log", + "polling", + "rustix 0.38.44", + "slab", + "thiserror 1.0.69", +] [[package]] -name = "chacha20" -version = "0.10.2" +name = "calloop" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +checksum = "43b32313e937c8721c9d17ee9bf60699a6402b4b7c2cb6ac1bee0ffcaa4b4e5e" dependencies = [ - "cfg-if", - "cpufeatures", - "rand_core", + "bitflags 2.13.2", + "polling", + "rustix 1.1.5", + "tracing", ] [[package]] -name = "chrono" -version = "0.4.45" +name = "calloop-wayland-source" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20" dependencies = [ - "num-traits", + "calloop 0.13.0", + "rustix 0.38.44", + "wayland-backend", + "wayland-client", ] [[package]] -name = "clap" -version = "4.6.7" +name = "calloop-wayland-source" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" +checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa" +dependencies = [ + "calloop 0.14.5", + "rustix 1.1.5", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "cc" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f74872d07caf508b30a21f6836e7d7016a2eaf7d9ff4f48deaa58cd8a0407630" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + +[[package]] +name = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures", + "rand_core 0.10.1", +] + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "num-traits", +] + +[[package]] +name = "clap" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946" dependencies = [ "clap_builder", "clap_derive", @@ -287,6 +765,62 @@ version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486" +[[package]] +name = "clipboard-win" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4" +dependencies = [ + "error-code", +] + +[[package]] +name = "clipboard_macos" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b7f4aaa047ba3c3630b080bb9860894732ff23e2aee290a418909aa6d5df38f" +dependencies = [ + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "clipboard_wayland" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "003f886bc4e2987729d10c1db3424e7f80809f3fc22dbc16c685738887cb37b8" +dependencies = [ + "smithay-clipboard", +] + +[[package]] +name = "clipboard_x11" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd63e33452ffdafd39924c4f05a5dd1e94db646c779c6bd59148a3d95fff5ad4" +dependencies = [ + "thiserror 2.0.21", + "x11rb", +] + +[[package]] +name = "codespan-reporting" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81" +dependencies = [ + "serde", + "termcolor", + "unicode-width", +] + +[[package]] +name = "color_quant" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b" + [[package]] name = "colorchoice" version = "1.0.5" @@ -304,1028 +838,4414 @@ dependencies = [ ] [[package]] -name = "cpufeatures" -version = "0.3.1" +name = "concurrent-queue" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" dependencies = [ + "core-foundation-sys", "libc", ] [[package]] -name = "crc" -version = "3.4.0" +name = "core-foundation" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5eb8a2a1cd12ab0d987a5d5e825195d372001a4094a0376319d5a0ad71c1ba0d" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" dependencies = [ - "crc-catalog", + "core-foundation-sys", + "libc", ] [[package]] -name = "crc-catalog" -version = "2.5.0" +name = "core-foundation-sys" +version = "0.8.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "217698eaf96b4a3f0bc4f3662aaa55bdf913cd54d7204591faa790070c6d0853" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" [[package]] -name = "dirs-next" -version = "1.0.2" +name = "core-graphics" +version = "0.23.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf36e65a80337bea855cd4ef9b8401ffce06a7baedf2e85ec467b1ac3f6e82b6" +checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081" dependencies = [ - "cfg-if", - "dirs-sys-next", + "bitflags 1.3.2", + "core-foundation 0.9.4", + "core-graphics-types 0.1.3", + "foreign-types", + "libc", ] [[package]] -name = "dirs-sys-next" -version = "0.1.2" +name = "core-graphics-types" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" +checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf" dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", "libc", - "redox_users", - "winapi", ] [[package]] -name = "dispatch2" -version = "0.3.1" +name = "core-graphics-types" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb" dependencies = [ - "bitflags", - "objc2", + "bitflags 2.13.2", + "core-foundation 0.10.1", + "libc", ] [[package]] -name = "displaydoc" -version = "0.2.7" +name = "core_maths" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +checksum = "77745e017f5edba1a9c1d854f6f3a52dac8a12dd5af5d2f54aecf61e43d80d30" dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.6", + "libm", ] [[package]] -name = "embedded-io" -version = "0.7.1" +name = "cosmic-text" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9eb1aa714776b75c7e67e1da744b81a129b3ff919c8712b5e1b32252c1f07cc7" +checksum = "173852283a9a57a3cbe365d86e74dc428a09c50421477d5ad6fe9d9509e37737" +dependencies = [ + "bitflags 2.13.2", + "fontdb", + "harfrust", + "linebender_resource_handle", + "log", + "rangemap", + "rustc-hash 1.1.0", + "self_cell", + "skrifa 0.37.0", + "smol_str", + "swash", + "sys-locale", + "unicode-bidi", + "unicode-linebreak", + "unicode-script", + "unicode-segmentation", +] [[package]] -name = "embedded-io-async" -version = "0.7.0" +name = "cpufeatures" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2564b9f813c544241430e147d8bc454815ef9ac998878d30cc3055449f7fd4c0" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" dependencies = [ - "embedded-io", + "libc", ] [[package]] -name = "errno" -version = "0.3.14" +name = "crc" +version = "3.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +checksum = "5eb8a2a1cd12ab0d987a5d5e825195d372001a4094a0376319d5a0ad71c1ba0d" dependencies = [ - "libc", - "windows-sys", + "crc-catalog", ] [[package]] -name = "fastrand" +name = "crc-catalog" version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" +checksum = "217698eaf96b4a3f0bc4f3662aaa55bdf913cd54d7204591faa790070c6d0853" [[package]] -name = "form_urlencoded" -version = "1.2.2" +name = "crc32fast" +version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78" dependencies = [ - "percent-encoding", + "cfg-if", ] [[package]] -name = "fs_extra" -version = "1.3.0" +name = "crossbeam-deque" +version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" +checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] [[package]] -name = "futures-channel" -version = "0.3.34" +name = "crossbeam-epoch" +version = "0.9.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d" dependencies = [ - "futures-core", + "crossbeam-utils", ] [[package]] -name = "futures-core" -version = "0.3.34" +name = "crossbeam-utils" +version = "0.8.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" [[package]] -name = "futures-sink" -version = "0.3.34" +name = "crunchy" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" [[package]] -name = "futures-task" -version = "0.3.34" +name = "cryoglyph" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" +checksum = "08bc795bdbccdbd461736fb163930a009da6597b226d6f6fce33e7a8eb6ec519" +dependencies = [ + "cosmic-text", + "etagere", + "lru", + "rustc-hash 2.1.3", + "wgpu", +] [[package]] -name = "futures-util" -version = "0.3.34" +name = "ctor" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +checksum = "83cf0d42651b16c6dfe68685716d18480d18a9c39c62d76e8cf3eb6ed5d8bcbf" dependencies = [ - "futures-core", - "futures-task", - "pin-project-lite", - "slab", + "dtor", ] [[package]] -name = "getrandom" -version = "0.2.17" +name = "cursor-icon" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" -dependencies = [ - "cfg-if", - "libc", - "wasi", -] +checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f" [[package]] -name = "getrandom" -version = "0.4.3" +name = "dirs-next" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +checksum = "cf36e65a80337bea855cd4ef9b8401ffce06a7baedf2e85ec467b1ac3f6e82b6" dependencies = [ "cfg-if", - "libc", - "r-efi", - "rand_core", + "dirs-sys-next", ] [[package]] -name = "hadris-common" -version = "2.4.0" +name = "dirs-sys-next" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2419641e2ce38205ac40e8c127d5d635f700f4b6bd79494f570141296b7682e9" +checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d" dependencies = [ - "bytemuck", - "chrono", - "crc", - "hadris-fixed", - "hadris-io", - "hadris-path", - "heapless", - "rand", - "zerocopy", + "libc", + "redox_users", + "winapi", ] [[package]] -name = "hadris-fixed" -version = "2.4.0" +name = "dispatch" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2f979ce5abdf45f06df09e7fede7b7ac54aae20b63407e3f5f9595999f5cb96" -dependencies = [ - "bytemuck", -] +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" [[package]] -name = "hadris-io" -version = "2.4.0" +name = "dispatch2" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85372a1e658e46128d98b0b2221485dd72ab6adaca1b643d7f9bfc0fa42bc290" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" dependencies = [ - "bytemuck", - "cfg-if", - "embedded-io", - "embedded-io-async", + "bitflags 2.13.2", + "block2 0.6.2", + "libc", + "objc2 0.6.5", ] [[package]] -name = "hadris-macros" -version = "2.4.0" +name = "displaydoc" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793233288d1b5f23451f75b2c57696808b544eabd45919cceed46b5403c7df8e" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" dependencies = [ "proc-macro2", + "quote", + "syn 3.0.6", ] [[package]] -name = "hadris-path" -version = "2.4.0" +name = "dlib" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af25620d0760ae6cdcf56a5c269d29f2e380a712355924143c199552cba895de" +checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a" +dependencies = [ + "libloading", +] [[package]] -name = "hadris-udf" -version = "2.4.0" +name = "document-features" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff80abdac13b09d30c90aca9ecd69e61388a8c19c12192d9e5e244d800125fde" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" dependencies = [ - "bitflags", - "bytemuck", - "hadris-common", - "hadris-io", - "hadris-macros", - "hadris-path", - "spin", - "thiserror 2.0.21", + "litrs", ] [[package]] -name = "hash32" -version = "0.3.1" +name = "downcast-rs" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47d60b12902ba28e2730cd37e95b8c9223af2808df9e902d4df49588d1470606" -dependencies = [ - "byteorder", -] +checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" [[package]] -name = "heapless" -version = "0.9.3" +name = "dpi" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25ba4bd83f9415b58b4ed8dc5714c76e626a105be4646c02630ad730ad3b5aa4" -dependencies = [ - "hash32", - "stable_deref_trait", -] +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" [[package]] -name = "heck" -version = "0.5.0" +name = "dtor" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" +checksum = "edf234dd1594d6dd434a8fb8cada51ddbbc593e40e4a01556a0b31c62da2775b" [[package]] -name = "http" -version = "1.5.0" +name = "either" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" + +[[package]] +name = "embedded-io" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9eb1aa714776b75c7e67e1da744b81a129b3ff919c8712b5e1b32252c1f07cc7" + +[[package]] +name = "embedded-io-async" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2564b9f813c544241430e147d8bc454815ef9ac998878d30cc3055449f7fd4c0" dependencies = [ - "bytes", - "itoa", + "embedded-io", ] [[package]] -name = "http-body" -version = "1.1.0" +name = "endi" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" dependencies = [ - "bytes", - "http", + "enumflags2_derive", + "serde", ] [[package]] -name = "http-body-util" -version = "0.1.5" +name = "enumflags2_derive" +version = "0.7.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" dependencies = [ - "bytes", - "futures-core", - "http", - "http-body", - "pin-project-lite", + "proc-macro2", + "quote", + "syn 2.0.119", ] [[package]] -name = "http-range-header" +name = "equator" version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c" +checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc" +dependencies = [ + "equator-macro", +] [[package]] -name = "httparse" -version = "1.10.1" +name = "equator-macro" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" +checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] [[package]] -name = "httpdate" -version = "1.0.3" +name = "equivalent" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" [[package]] -name = "hyper" -version = "1.11.1" +name = "errno" +version = "0.3.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27b501faa50e7a26c3d3560ca625132f4078a17771f4810baf70475ae48cbe43" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" dependencies = [ - "atomic-waker", - "bytes", - "futures-channel", - "futures-core", - "http", - "http-body", - "httparse", - "httpdate", - "itoa", + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "error-code" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" + +[[package]] +name = "etagere" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc89bf99e5dc15954a60f707c1e09d7540e5cd9af85fa75caa0b510bc08c5342" +dependencies = [ + "euclid", + "svg_fmt", +] + +[[package]] +name = "euclid" +version = "0.22.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06" +dependencies = [ + "num-traits", +] + +[[package]] +name = "event-listener" +version = "5.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2" +dependencies = [ + "parking", "pin-project-lite", - "smallvec", - "tokio", ] [[package]] -name = "hyper-util" -version = "0.1.21" +name = "event-listener-strategy" +version = "0.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" dependencies = [ - "bytes", - "http", - "http-body", - "hyper", + "event-listener", "pin-project-lite", - "tokio", - "tower-service", ] [[package]] -name = "icu_collections" -version = "2.3.0" +name = "exr" +version = "1.74.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +checksum = "711fe42c9964295e01ee3fba3f9fe0e1d24b98886950d68efe81b1c76e21adf3" dependencies = [ - "displaydoc", - "potential_utf", - "utf8_iter", - "yoke", - "zerofrom", - "zerovec", + "bit_field", + "half", + "lebe", + "miniz_oxide 0.8.9", + "num-complex", + "pulp", + "rayon-core", + "smallvec", + "zune-inflate", ] [[package]] -name = "icu_locale_core" -version = "2.3.0" +name = "fastrand" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fax" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" dependencies = [ - "displaydoc", - "litemap", - "tinystr", - "writeable", - "zerovec", + "simd-adler32", ] [[package]] -name = "icu_normalizer" -version = "2.3.0" +name = "find-msvc-tools" +version = "0.1.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484" + +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" dependencies = [ - "icu_collections", - "icu_normalizer_data", - "icu_properties", - "icu_provider", - "smallvec", - "zerovec", + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", ] [[package]] -name = "icu_normalizer_data" -version = "2.3.0" +name = "foldhash" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" [[package]] -name = "icu_properties" -version = "2.3.0" +name = "foldhash" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "font-types" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39a654f404bbcbd48ea58c617c2993ee91d1cb63727a37bf2323a4edeed1b8c5" dependencies = [ - "displaydoc", - "icu_collections", - "icu_locale_core", - "icu_properties_data", - "icu_provider", - "zerotrie", - "zerovec", + "bytemuck", ] [[package]] -name = "icu_properties_data" -version = "2.3.0" +name = "font-types" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" +checksum = "6c92d9081c7ab3bd83ef1eecdfad090f3d966e3ce74106779664114cfe1a6274" +dependencies = [ + "bytemuck", +] [[package]] -name = "icu_provider" -version = "2.3.1" +name = "fontconfig-parser" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" +checksum = "bbc773e24e02d4ddd8395fd30dc147524273a83e54e0f312d986ea30de5f5646" dependencies = [ - "displaydoc", - "icu_locale_core", - "writeable", - "yoke", - "zerofrom", - "zerotrie", - "zerovec", + "roxmltree", ] [[package]] -name = "idna" -version = "1.1.0" +name = "fontdb" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +checksum = "457e789b3d1202543297a350643cf459f836cade38934e7a4cf6a39e7cde2905" dependencies = [ - "idna_adapter", - "smallvec", - "utf8_iter", + "fontconfig-parser", + "log", + "memmap2", + "slotmap", + "tinyvec", + "ttf-parser", ] [[package]] -name = "idna_adapter" +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" dependencies = [ - "icu_normalizer", - "icu_properties", + "percent-encoding", +] + +[[package]] +name = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + +[[package]] +name = "futures" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3" +dependencies = [ + "futures-channel", + "futures-core", + "futures-executor", + "futures-io", + "futures-sink", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-executor" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432" +dependencies = [ + "futures-core", + "futures-task", + "futures-util", +] + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-channel", + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix 1.1.5", + "windows-link", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "rand_core 0.10.1", +] + +[[package]] +name = "gif" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee8cfcc411d9adbbaba82fb72661cc1bcca13e8bba98b364e62b2dba8f960159" +dependencies = [ + "color_quant", + "weezl", +] + +[[package]] +name = "gl_generator" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a95dfc23a2b4a9a2f5ab41d194f8bfda3cabec42af4e39f08c339eb2a0c124d" +dependencies = [ + "khronos_api", + "log", + "xml-rs", +] + +[[package]] +name = "glam" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "151665d9be52f9bb40fc7966565d39666f2d1e69233571b71b87791c7e0528b3" + +[[package]] +name = "glow" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5e5ea60d70410161c8bf5da3fdfeaa1c72ed2c15f8bbb9d19fe3a4fad085f08" +dependencies = [ + "js-sys", + "slotmap", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "glutin_wgl_sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e" +dependencies = [ + "gl_generator", +] + +[[package]] +name = "gpu-alloc" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45cf04b2726f02df5508c6de726acdc90cdf97ac771a9a0ffd8ba10a6e696bf9" +dependencies = [ + "bitflags 2.13.2", + "gpu-alloc-types", +] + +[[package]] +name = "gpu-alloc-types" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2bbed164dd10ed526c2e4fe3e721ca4a71c61730e5aafac6844b417b3227058" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "gpu-allocator" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c151a2a5ef800297b4e79efa4f4bec035c5f51d5ae587287c9b952bdf734cacd" +dependencies = [ + "log", + "presser", + "thiserror 1.0.69", + "windows 0.58.0", +] + +[[package]] +name = "gpu-descriptor" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca" +dependencies = [ + "bitflags 2.13.2", + "gpu-descriptor-types", + "hashbrown 0.15.5", +] + +[[package]] +name = "gpu-descriptor-types" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "guillotiere" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b62d5865c036cb1393e23c50693df631d3f5d7bcca4c04fe4cc0fd592e74a782" +dependencies = [ + "euclid", + "svg_fmt", +] + +[[package]] +name = "hadris-common" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0848bdca19cf3cdced59392757a2dfcdc4165cb2ca8751f9ea65953e84e7d9ec" +dependencies = [ + "bytemuck", + "chrono", + "crc", + "hadris-fixed", + "hadris-io", + "hadris-path", + "heapless", + "rand 0.10.3", + "zerocopy", +] + +[[package]] +name = "hadris-fixed" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9113caea96eb0e12db9045d69e8baefe6677384b2d21b7adff491819bdd0f8f" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "hadris-io" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16435cbe44eb91d440d8c6c85086c265ef51d8e3d5f95db5ef5f9aa82bb044e4" +dependencies = [ + "bytemuck", + "embedded-io", + "embedded-io-async", +] + +[[package]] +name = "hadris-macros" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3d6d0b20f4982244c26a3d796d8479d7f89f2b562d70d4df3c73d67eb1070d0" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "hadris-path" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0179c8acf85bf76fb3134c67e41dc53420457f02331f520172bbeb6ac1ab19b5" + +[[package]] +name = "hadris-udf" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b9e1a3e9ab294007df532a9f6b413a5d62d0f5aef14e3db194df91a875f651b" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "hadris-common", + "hadris-io", + "hadris-macros", + "hadris-path", + "spin", + "thiserror 2.0.21", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "num-traits", + "zerocopy", +] + +[[package]] +name = "harfrust" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92c020db12c71d8a12a3fe7607873cade3a01a6287e29d540c8723276221b9d8" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "core_maths", + "read-fonts 0.35.0", + "smallvec", +] + +[[package]] +name = "hash32" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d60b12902ba28e2730cd37e95b8c9223af2808df9e902d4df49588d1470606" +dependencies = [ + "byteorder", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "foldhash 0.2.0", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" + +[[package]] +name = "heapless" +version = "0.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25ba4bd83f9415b58b4ed8dc5714c76e626a105be4646c02630ad730ad3b5aa4" +dependencies = [ + "hash32", + "stable_deref_trait", +] + +[[package]] +name = "heck" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea" + +[[package]] +name = "hermit-abi" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "hexf-parse" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df" + +[[package]] +name = "http" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "http-range-header" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c" + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "httpdate" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" + +[[package]] +name = "hyper" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" +dependencies = [ + "atomic-waker", + "bytes", + "futures-core", + "http", + "http-body", + "httparse", + "httpdate", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", +] + +[[package]] +name = "hyper-util" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff" +dependencies = [ + "bytes", + "http", + "http-body", + "hyper", + "pin-project-lite", + "tokio", + "tower-service", +] + +[[package]] +name = "iced" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000e01026c93ba643f8357a3db3ada0e6555265a377f6f9291c472f6dd701fb3" +dependencies = [ + "iced_core", + "iced_debug", + "iced_futures", + "iced_renderer", + "iced_runtime", + "iced_widget", + "iced_winit", + "image", + "thiserror 2.0.21", +] + +[[package]] +name = "iced_core" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91ab1937d699403e7e69252ae743a902bcee9f4ab2052cc4c9a46fcf34729d85" +dependencies = [ + "bitflags 2.13.2", + "bytes", + "glam", + "lilt", + "log", + "num-traits", + "rustc-hash 2.1.3", + "smol_str", + "thiserror 2.0.21", + "web-time", +] + +[[package]] +name = "iced_debug" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25035ab0215a620e53f4103e36fc4e59a1fb2817e4bfc38a30ad27b4202ea0be" +dependencies = [ + "iced_core", + "iced_futures", + "log", +] + +[[package]] +name = "iced_futures" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c0c85ccad42dfbec7293c36c018af0ea0dbcc52d137a4a9a0b0f6822a3fdf0a" +dependencies = [ + "futures", + "iced_core", + "log", + "rustc-hash 2.1.3", + "tokio", + "wasm-bindgen-futures", + "wasmtimer", +] + +[[package]] +name = "iced_graphics" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "234ca1c2cec4155055f68fa5fad1b5242c496ac8238d80a259bca382fb44a102" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "cosmic-text", + "half", + "iced_core", + "iced_futures", + "image", + "kamadak-exif", + "log", + "raw-window-handle", + "rustc-hash 2.1.3", + "thiserror 2.0.21", + "unicode-segmentation", +] + +[[package]] +name = "iced_program" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dfafec2947cda688d8eb00dac337ba11aa60f9ef6335aed343e189d26e4a673" +dependencies = [ + "iced_graphics", + "iced_runtime", +] + +[[package]] +name = "iced_renderer" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "250cc0802408e8c077986ec56c7d07c65f423ee658a4b9fd795a1f2aae5dac05" +dependencies = [ + "iced_graphics", + "iced_tiny_skia", + "iced_wgpu", + "log", + "thiserror 2.0.21", +] + +[[package]] +name = "iced_runtime" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1889b819ce4c06674183242e336c8d49465665441396914dc07cc86f44fa8d4" +dependencies = [ + "bytes", + "iced_core", + "iced_futures", + "raw-window-handle", + "thiserror 2.0.21", +] + +[[package]] +name = "iced_tiny_skia" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c267596d742714b1853cc10c3983a367762816fc4836bd3b79f76ce76787d6f8" +dependencies = [ + "bytemuck", + "cosmic-text", + "iced_debug", + "iced_graphics", + "kurbo", + "log", + "rustc-hash 2.1.3", + "softbuffer", + "tiny-skia", +] + +[[package]] +name = "iced_wgpu" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff144a999b0ca0f8a10257934500060240825c42e950ec0ebee9c8ae30561c13" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "cryoglyph", + "futures", + "glam", + "guillotiere", + "iced_debug", + "iced_graphics", + "log", + "rustc-hash 2.1.3", + "thiserror 2.0.21", + "wgpu", +] + +[[package]] +name = "iced_widget" +version = "0.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1596afa0d3109c2618e8bc12bae6c11d3064df8f95c42dfce570397dbe957ab" +dependencies = [ + "iced_renderer", + "log", + "num-traits", + "rustc-hash 2.1.3", + "thiserror 2.0.21", + "unicode-segmentation", +] + +[[package]] +name = "iced_winit" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7589888c8e951899cc688247a69933bb7a0511f0b4b2e122ac3fcd5dacb37f72" +dependencies = [ + "iced_debug", + "iced_program", + "log", + "mundy", + "rustc-hash 2.1.3", + "thiserror 2.0.21", + "tracing", + "wasm-bindgen-futures", + "web-sys", + "window_clipboard", + "winit", +] + +[[package]] +name = "icu_collections" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" + +[[package]] +name = "icu_properties" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" + +[[package]] +name = "icu_provider" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "color_quant", + "exr", + "gif", + "image-webp", + "moxcms", + "num-traits", + "png", + "qoi", + "ravif", + "rayon", + "rgb", + "tiff", + "zune-core", + "zune-jpeg", +] + +[[package]] +name = "image-webp" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3" +dependencies = [ + "byteorder-lite", + "quick-error", +] + +[[package]] +name = "imgref" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e44b0a4eaa4c82f441d50a963f2d5f05a787240aeee097597033e72accfd22f" + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", +] + +[[package]] +name = "interpolate_name" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itertools" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[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.21", + "walkdir", + "windows-link", +] + +[[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.119", +] + +[[package]] +name = "jni-sys" +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 = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom 0.4.3", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "kamadak-exif" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1130d80c7374efad55a117d715a3af9368f0fa7a2c54573afc15a188cd984837" +dependencies = [ + "mutate_once", +] + +[[package]] +name = "khronos-egl" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76" +dependencies = [ + "libc", + "libloading", + "pkg-config", +] + +[[package]] +name = "khronos_api" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc" + +[[package]] +name = "kurbo" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1618d4ebd923e97d67e7cd363d80aef35fe961005cbbbb3d2dad8bdd1bc63440" +dependencies = [ + "arrayvec", + "smallvec", +] + +[[package]] +name = "lebe" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8" + +[[package]] +name = "libc" +version = "0.2.190" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce5d3ddc6d3fa000eb1536d85e147bfe31aacaba692ed6a876f95cb7c855be78" + +[[package]] +name = "libfuzzer-sys" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9fd2f41a1cba099f79a0b6b6c35656cf7c03351a7bae8ff0f28f25270f929d2" +dependencies = [ + "arbitrary", + "cc", +] + +[[package]] +name = "libloading" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if", + "windows-link", +] + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "libredox" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d" +dependencies = [ + "bitflags 2.13.2", + "libc", + "plain", + "redox_syscall 0.9.4", +] + +[[package]] +name = "lilt" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "337d4c256f7d9f2dbd633891d48ace853efa5b1554122d9220b172ad9c03c3a9" +dependencies = [ + "web-time", +] + +[[package]] +name = "linebender_resource_handle" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" + +[[package]] +name = "linux-raw-sys" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" + +[[package]] +name = "litrs" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" + +[[package]] +name = "loop9" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062" +dependencies = [ + "imgref", +] + +[[package]] +name = "lru" +version = "0.16.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f66e8d5d03f609abc3a39e6f08e4164ebf1447a732906d39eb9b99b7919ef39" + +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + +[[package]] +name = "matchit" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" + +[[package]] +name = "maybe-rayon" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519" +dependencies = [ + "cfg-if", + "rayon", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memmap2" +version = "0.9.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0" +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 = "metal" +version = "0.32.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00c15a6f673ff72ddcc22394663290f870fb224c1bfce55734a75c414150e605" +dependencies = [ + "bitflags 2.13.2", + "block", + "core-graphics-types 0.2.0", + "foreign-types", + "log", + "objc", + "paste", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess" +version = "2.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +dependencies = [ + "mime", + "unicase", +] + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "mundy" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f32eb0db40f2df2bcfb05c93b8f73938d4c26ce9ac8881f1df0c8d3296921a73" +dependencies = [ + "android-build", + "async-io", + "cfg-if", + "dispatch", + "futures-channel", + "futures-lite", + "jni", + "ndk-context", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "pin-project-lite", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "windows 0.62.2", + "zbus", +] + +[[package]] +name = "mutate_once" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13d2233c9842d08cfe13f9eac96e207ca6a2ea10b80259ebe8ad0268be27d2af" + +[[package]] +name = "naga" +version = "27.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "066cf25f0e8b11ee0df221219010f213ad429855f57c494f995590c861a9a7d8" +dependencies = [ + "arrayvec", + "bit-set", + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "codespan-reporting", + "half", + "hashbrown 0.16.1", + "hexf-parse", + "indexmap", + "libm", + "log", + "num-traits", + "once_cell", + "rustc-hash 1.1.0", + "spirv", + "thiserror 2.0.21", + "unicode-ident", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.2", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "no_std_io2" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "418abd1b6d34fbf6cae440dc874771b0525a604428704c76e48b29a5e67b8003" +dependencies = [ + "memchr", +] + +[[package]] +name = "nom" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405" +dependencies = [ + "memchr", +] + +[[package]] +name = "noop_proc_macro" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8" + +[[package]] +name = "num-bigint" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367" +dependencies = [ + "num-integer", + "num-traits", +] + +[[package]] +name = "num-complex" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" +dependencies = [ + "bytemuck", + "num-traits", +] + +[[package]] +name = "num-derive" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "num-integer" +version = "0.1.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b" +dependencies = [ + "num-traits", +] + +[[package]] +name = "num-rational" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" +dependencies = [ + "num-bigint", + "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_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", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", +] + +[[package]] +name = "objc-sys" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" + +[[package]] +name = "objc2" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d5490aaf8f1d7cf7688dfa9b0ce07900e168852c45cd2c03f534dfd27cfd0b" +dependencies = [ + "objc-sys", + "objc2-encode", +] + +[[package]] +name = "objc2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8" +dependencies = [ + "objc2-encode", +] + +[[package]] +name = "objc2-app-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "libc", + "objc2 0.5.3", + "objc2-core-data 0.2.2", + "objc2-core-image 0.2.2", + "objc2-foundation 0.2.2", + "objc2-quartz-core 0.2.2", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "libc", + "objc2 0.6.5", + "objc2-cloud-kit 0.3.2", + "objc2-core-data 0.3.2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-core-image 0.3.2", + "objc2-core-text", + "objc2-core-video", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-cloud-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-contacts" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-data" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-data" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal", +] + +[[package]] +name = "objc2-core-image" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006" +dependencies = [ + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-core-location" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-contacts", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", +] + +[[package]] +name = "objc2-core-video" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-io-surface", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "dispatch", + "libc", + "objc2 0.5.3", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "libc", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-link-presentation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-metal" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-symbols" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc" +dependencies = [ + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-cloud-kit 0.2.2", + "objc2-core-data 0.2.2", + "objc2-core-image 0.2.2", + "objc2-core-location", + "objc2-foundation 0.2.2", + "objc2-link-presentation", + "objc2-quartz-core 0.2.2", + "objc2-symbols", + "objc2-uniform-type-identifiers", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-uniform-type-identifiers" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "once_cell_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" + +[[package]] +name = "orbclient" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5df339f526ea9a60e371768d50efc2f2508c7203290731565d1f7a6f71d21747" +dependencies = [ + "libc", + "libredox", +] + +[[package]] +name = "ordered-float" +version = "5.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c7c9e0d9b23589f26070720bac724174bfec1083e82f7854cdd0267518343c0" +dependencies = [ + "num-traits", +] + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "owned_ttf_parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b" +dependencies = [ + "ttf-parser", +] + +[[package]] +name = "parking" +version = "2.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba" + +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core", +] + +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall 0.5.18", + "smallvec", + "windows-link", +] + +[[package]] +name = "paste" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" + +[[package]] +name = "pastey" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "35fb2e5f958ec131621fdd531e9fc186ed768cbe395337403ae56c17a74c68ec" + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "pin-project" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "pin-utils" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13bee6c73da26345c729282832b60b0363cf3dd9f4bfd81d8551b7a1c889a113" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "platform-dirs" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e188d043c1a692985f78b5464853a263f1a27e5bd6322bad3a4078ee3c998a38" +dependencies = [ + "dirs-next", +] + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix 1.1.5", + "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 = "portable-atomic" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" + +[[package]] +name = "portable-atomic-util" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715" +dependencies = [ + "portable-atomic", +] + +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "zerovec", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9" +dependencies = [ + "zerocopy", +] + +[[package]] +name = "presser" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "profiling" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5" +dependencies = [ + "profiling-procmacros", +] + +[[package]] +name = "profiling-procmacros" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4488a4a36b9a4ba6b9334a32a39971f77c1436ec82c38707bce707699cc3bbcb" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "pulp" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "046aa45b989642ec2e4717c8e72d677b13edd831a4d3b6cf37d9a3e54912496a" +dependencies = [ + "bytemuck", + "cfg-if", + "libm", + "num-complex", + "paste", + "pulp-wasm-simd-flag", + "raw-cpuid", + "reborrow", + "version_check", +] + +[[package]] +name = "pulp-wasm-simd-flag" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d8f70e07b9c3962945a74e59ca1c511bba65b6419468acc217c457d93f3c740" + +[[package]] +name = "pxfm" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea" + +[[package]] +name = "qoi" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + +[[package]] +name = "quick-xml" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +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 = "rand" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41" +dependencies = [ + "rand_chacha", + "rand_core 0.9.5", +] + +[[package]] +name = "rand" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core 0.10.1", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "range-alloc" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08" + +[[package]] +name = "rangemap" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a611d15b50743feb4c76b7d03edcb0e64f399c26961e4efe6975bc398be6aa3d" + +[[package]] +name = "rav1e" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43b6dd56e85d9483277cde964fd1bdb0428de4fec5ebba7540995639a21cb32b" +dependencies = [ + "aligned-vec", + "arbitrary", + "arg_enum_proc_macro", + "arrayvec", + "av-scenechange", + "av1-grain", + "bitstream-io", + "built", + "cfg-if", + "interpolate_name", + "itertools", + "libc", + "libfuzzer-sys", + "log", + "maybe-rayon", + "new_debug_unreachable", + "noop_proc_macro", + "num-derive", + "num-traits", + "paste", + "profiling", + "rand 0.9.5", + "rand_chacha", + "simd_helpers", + "thiserror 2.0.21", + "v_frame", + "wasm-bindgen", +] + +[[package]] +name = "ravif" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e52310197d971b0f5be7fe6b57530dcd27beb35c1b013f29d66c1ad73fbbcc45" +dependencies = [ + "avif-serialize", + "imgref", + "loop9", + "quick-error", + "rav1e", + "rayon", + "rgb", +] + +[[package]] +name = "raw-cpuid" +version = "11.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "498cd0dc59d73224351ee52a95fee0f1a617a2eae0e7d9d720cc622c73a54186" +dependencies = [ + "bitflags 2.13.2", +] + +[[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.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "read-fonts" +version = "0.35.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6717cf23b488adf64b9d711329542ba34de147df262370221940dfabc2c91358" +dependencies = [ + "bytemuck", + "core_maths", + "font-types 0.10.1", +] + +[[package]] +name = "read-fonts" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "046a7d674daf459825b32f5062056d6882db0d2f5a479fbd76ccfc870ac18709" +dependencies = [ + "bytemuck", + "font-types 0.12.6", + "once_cell", +] + +[[package]] +name = "reborrow" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03251193000f4bd3b042892be858ee50e8b3719f2b08e5833ac4353724632430" + +[[package]] +name = "redox_syscall" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +dependencies = [ + "bitflags 1.3.2", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "redox_syscall" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "737970939a87c6fa31e7acad13307bccbb017a073b695b6089a2c484f929e20e" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "redox_users" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 1.0.69", +] + +[[package]] +name = "renderdoc-sys" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" + +[[package]] +name = "rfd" +version = "0.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20dafead71c16a34e1ff357ddefc8afc11e7d51d6d2b9fbd07eaa48e3e540220" +dependencies = [ + "block2 0.6.2", + "dispatch2", + "js-sys", + "libc", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "percent-encoding", + "pollster", + "raw-window-handle", + "wasm-bindgen", + "wasm-bindgen-futures", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "web-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "rgb" +version = "0.8.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4" + +[[package]] +name = "roxmltree" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c20b6793b5c2fa6553b250154b78d6d0db37e72700ae35fad9387a46f487c97" + +[[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.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "0.38.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.4.15", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustix" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.12.1", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "sctk-adwaita" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec" +dependencies = [ + "ab_glyph", + "log", + "memmap2", + "smithay-client-toolkit 0.19.2", + "tiny-skia", +] + +[[package]] +name = "self_cell" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab42ca02749e120097e328d91d415325bdf43b1c72c4c8badf37375fe40a813" + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "serde_json" +version = "1.0.151" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_path_to_error" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +dependencies = [ + "itoa", + "serde", + "serde_core", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simd_helpers" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6" +dependencies = [ + "quote", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "skrifa" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c31071dedf532758ecf3fed987cdb4bd9509f900e026ab684b4ecb81ea49841" +dependencies = [ + "bytemuck", + "read-fonts 0.35.0", +] + +[[package]] +name = "skrifa" +version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819ab7d62b1d3e72d9d9dea5650bac30424f9111364bb94928dbf5ecad1baa68" +dependencies = [ + "bytemuck", + "read-fonts 0.41.0", +] + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "slotmap" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" +dependencies = [ + "version_check", +] + +[[package]] +name = "smallvec" +version = "1.16.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9395f0f0eee849a9b707b2f06bb92a6a422090e2123bb2ef8e87a0e61892a8e" + +[[package]] +name = "smithay-client-toolkit" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.13.0", + "calloop-wayland-source 0.3.0", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 0.38.44", + "thiserror 1.0.69", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-client-toolkit" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.14.5", + "calloop-wayland-source 0.4.1", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 1.1.5", + "thiserror 2.0.21", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-experimental", + "wayland-protocols-misc", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-clipboard" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226" +dependencies = [ + "libc", + "smithay-client-toolkit 0.20.0", + "wayland-backend", +] + +[[package]] +name = "smol_str" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead" +dependencies = [ + "serde", +] + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "softbuffer" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3" +dependencies = [ + "as-raw-xcb-connection", + "bytemuck", + "fastrand", + "js-sys", + "memmap2", + "ndk", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", + "raw-window-handle", + "redox_syscall 0.5.18", + "rustix 1.1.5", + "tiny-xlib", + "tracing", + "wasm-bindgen", + "wayland-backend", + "wayland-client", + "wayland-sys", + "web-sys", + "windows-sys 0.61.2", + "x11rb", +] + +[[package]] +name = "spin" +version = "0.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0134f9043ed38b087ac4f7d4af44c79e2c9e5094421fe3164f435ce585953b10" +dependencies = [ + "lock_api", +] + +[[package]] +name = "spirv" +version = "0.3.0+sdk-1.3.268.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eda41003dc44290527a59b13432d4a0379379fa074b70174882adfbdfd917844" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strict-num" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" + +[[package]] +name = "strsim" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" + +[[package]] +name = "svg_fmt" +version = "0.4.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0193cc4331cfd2f3d2011ef287590868599a2f33c3e69bc22c1a3d3acf9e02fb" + +[[package]] +name = "swash" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c2499c2d826531388872b2268718aed907a39bd785ab0dcfe57fab26283f92e" +dependencies = [ + "skrifa 0.44.0", + "yazi", + "zeno", +] + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" + +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "sys-locale" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4" +dependencies = [ + "libc", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix 1.1.5", + "windows-sys 0.61.2", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl 2.0.21", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "tiff" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52" +dependencies = [ + "fax", + "flate2", + "half", + "quick-error", + "weezl", + "zune-jpeg", +] + +[[package]] +name = "tiny-skia" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab" +dependencies = [ + "arrayref", + "arrayvec", + "bytemuck", + "cfg-if", + "log", + "tiny-skia-path", +] + +[[package]] +name = "tiny-skia-path" +version = "0.11.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93" +dependencies = [ + "arrayref", + "bytemuck", + "strict-num", +] + +[[package]] +name = "tiny-xlib" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a90a0ca3ee6a69f2ad28fd11621a4c3f03b371f366be500b64df260c4ffbafb4" +dependencies = [ + "as-raw-xcb-connection", + "ctor", + "libloading", + "pkg-config", + "tracing", +] + +[[package]] +name = "tinystr" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" + +[[package]] +name = "tokio" +version = "1.53.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e95f91fcc7a621e8b030f6aa23c71fe9838ae2fb4d8118b75602a328f5144044" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "signal-hook-registry", + "socket2", + "tokio-macros", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-macros" +version = "2.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.6", +] + +[[package]] +name = "tokio-util" +version = "0.7.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml_datetime" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.16+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88f38f3af8bf71841c67a990f4e2b52143b2d0a1a994c72513ff4c14977fc722" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.1.4+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bed810ee007d8e7f9cf20b4774e7198142fa27186e0f805871da7f3c39eaf333" +dependencies = [ + "winnow", +] + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags 2.13.2", + "bytes", + "futures-core", + "futures-util", + "http", + "http-body", + "http-body-util", + "http-range-header", + "httpdate", + "mime", + "mime_guess", + "percent-encoding", + "pin-project-lite", + "tokio", + "tokio-util", + "tower-layer", + "tower-service", ] [[package]] -name = "is_terminal_polyfill" -version = "1.70.2" +name = "tower-layer" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" [[package]] -name = "itoa" -version = "1.0.18" +name = "tower-service" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" [[package]] -name = "jni" -version = "0.22.4" +name = "tracing" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" dependencies = [ - "cfg-if", - "combine", - "jni-macros", - "jni-sys", "log", - "simd_cesu8", - "thiserror 2.0.21", - "walkdir", - "windows-link", + "pin-project-lite", + "tracing-attributes", + "tracing-core", ] [[package]] -name = "jni-macros" -version = "0.22.4" +name = "tracing-attributes" +version = "0.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" dependencies = [ "proc-macro2", "quote", - "rustc_version", - "simd_cesu8", "syn 2.0.119", ] [[package]] -name = "jni-sys" -version = "0.4.1" +name = "tracing-core" +version = "0.1.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ - "jni-sys-macros", + "once_cell", ] [[package]] -name = "jni-sys-macros" -version = "0.4.1" +name = "ttf-parser" +version = "0.25.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31" dependencies = [ - "quote", - "syn 2.0.119", + "core_maths", ] [[package]] -name = "js-sys" -version = "0.3.106" +name = "uds_windows" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" dependencies = [ - "cfg-if", - "futures-util", - "wasm-bindgen", + "memoffset", + "tempfile", + "windows-sys 0.61.2", ] [[package]] -name = "libc" -version = "0.2.189" +name = "unicase" +version = "2.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2" +checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f" [[package]] -name = "libredox" -version = "0.1.25" +name = "unicode-bidi" +version = "0.3.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d" -dependencies = [ - "libc", -] +checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5" [[package]] -name = "linux-raw-sys" -version = "0.12.1" +name = "unicode-ident" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" +checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954" [[package]] -name = "litemap" -version = "0.8.3" +name = "unicode-linebreak" +version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" +checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" [[package]] -name = "lock_api" -version = "0.4.14" +name = "unicode-script" +version = "0.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" -dependencies = [ - "scopeguard", -] +checksum = "383ad40bb927465ec0ce7720e033cb4ca06912855fc35db31b5755d0de75b1ee" [[package]] -name = "log" -version = "0.4.34" +name = "unicode-segmentation" +version = "1.13.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" [[package]] -name = "matchit" -version = "0.8.4" +name = "unicode-width" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47e1ffaa40ddd1f3ed91f717a33c8c0ee23fff369e3aa8772b9605cc1d22f4c3" +checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" [[package]] -name = "memchr" -version = "2.8.3" +name = "url" +version = "2.5.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] [[package]] -name = "mime" -version = "0.3.17" +name = "utf8_iter" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" [[package]] -name = "mime_guess" -version = "2.0.5" +name = "utf8parse" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7c44f8e672c00fe5308fa235f821cb4198414e1c77935c1ab6948d3fd78550e" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "uuid" +version = "1.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97277d36b9c3ace13e58fa6e753f8b0bbbf302a18dd193240d70f9e29681059a" dependencies = [ - "mime", - "unicase", + "js-sys", + "serde_core", + "wasm-bindgen", ] [[package]] -name = "mio" -version = "1.2.3" +name = "v_frame" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4b18443e9c262bfe8fa82f51666e2642c53393f7e5c27b3e1aeab922cff5b9d8" +checksum = "666b7727c8875d6ab5db9533418d7c764233ac9c0cff1d469aec8fa127597be2" dependencies = [ - "libc", - "wasi", - "windows-sys", + "aligned-vec", + "num-traits", + "wasm-bindgen", ] [[package]] -name = "ndk-context" -version = "0.1.1" +name = "version_check" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] -name = "num-traits" -version = "0.2.19" +name = "walkdir" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" dependencies = [ - "autocfg", + "same-file", + "winapi-util", ] [[package]] -name = "objc2" -version = "0.6.4" +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" -dependencies = [ - "objc2-encode", -] +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" [[package]] -name = "objc2-app-kit" -version = "0.3.2" +name = "wasip2" +version = "1.0.4+wasi-0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" dependencies = [ - "bitflags", - "objc2", - "objc2-foundation", + "wit-bindgen", ] [[package]] -name = "objc2-core-foundation" -version = "0.3.2" +name = "wasm-bindgen" +version = "0.2.129" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409" dependencies = [ - "bitflags", - "dispatch2", - "objc2", + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", ] [[package]] -name = "objc2-encode" -version = "4.1.0" +name = "wasm-bindgen-futures" +version = "0.4.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" +checksum = "3cbab34de2d982e9b48e18d216d04c4a6f641066ff19ffb699980f591ee3610e" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] [[package]] -name = "objc2-foundation" -version = "0.3.2" +name = "wasm-bindgen-macro" +version = "0.2.129" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535" dependencies = [ - "bitflags", - "objc2", - "objc2-core-foundation", + "quote", + "wasm-bindgen-macro-support", ] [[package]] -name = "once_cell" -version = "1.21.4" +name = "wasm-bindgen-macro-support" +version = "0.2.129" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" +checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.6", + "wasm-bindgen-shared", +] [[package]] -name = "once_cell_polyfill" -version = "1.70.2" +name = "wasm-bindgen-shared" +version = "0.2.129" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe" +checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6" +dependencies = [ + "unicode-ident", +] [[package]] -name = "percent-encoding" -version = "2.3.2" +name = "wasmtimer" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" +checksum = "1c598d6b99ea013e35844697fc4670d08339d5cda15588f193c6beedd12f644b" +dependencies = [ + "futures", + "js-sys", + "parking_lot", + "pin-utils", + "slab", + "wasm-bindgen", +] [[package]] -name = "pin-project-lite" -version = "0.2.17" +name = "wayland-backend" +version = "0.3.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" +checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078" +dependencies = [ + "cc", + "downcast-rs", + "rustix 1.1.5", + "scoped-tls", + "smallvec", + "wayland-sys", +] [[package]] -name = "platform-dirs" -version = "0.3.0" +name = "wayland-client" +version = "0.31.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e188d043c1a692985f78b5464853a263f1a27e5bd6322bad3a4078ee3c998a38" +checksum = "e3c36a0f861ad76d0901f2800b46321410d9f73f2ea88aac0650d86c32688073" dependencies = [ - "dirs-next", + "bitflags 2.13.2", + "rustix 1.1.5", + "wayland-backend", + "wayland-scanner", ] [[package]] -name = "potential_utf" -version = "0.1.6" +name = "wayland-csd-frame" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e" dependencies = [ - "zerovec", + "bitflags 2.13.2", + "cursor-icon", + "wayland-backend", ] [[package]] -name = "proc-macro2" -version = "1.0.107" +name = "wayland-cursor" +version = "0.31.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d" dependencies = [ - "unicode-ident", + "rustix 1.1.5", + "wayland-client", + "xcursor", ] [[package]] -name = "quote" -version = "1.0.47" +name = "wayland-protocols" +version = "0.32.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +checksum = "23d0c813de3daa2ed6520af85a3bd49b0e722a3078506899aa9686fea58dc4b6" dependencies = [ - "proc-macro2", + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-scanner", ] [[package]] -name = "r-efi" -version = "6.0.0" +name = "wayland-protocols-experimental" +version = "20250721.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" +checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] [[package]] -name = "rand" -version = "0.10.3" +name = "wayland-protocols-misc" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8" dependencies = [ - "chacha20", - "getrandom 0.4.3", - "rand_core", + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", ] [[package]] -name = "rand_core" -version = "0.10.1" +name = "wayland-protocols-plasma" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" +checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] [[package]] -name = "redox_users" -version = "0.4.6" +name = "wayland-protocols-wlr" +version = "0.3.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" +checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234" dependencies = [ - "getrandom 0.2.17", - "libredox", - "thiserror 1.0.69", + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", ] [[package]] -name = "rustc_version" -version = "0.4.1" +name = "wayland-scanner" +version = "0.31.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +checksum = "338e30461b3a2b67d70eb30a6d89f8e0c93a833e07d2ae89085cd070c4a00ac0" dependencies = [ - "semver", + "proc-macro2", + "quick-xml", + "quote", ] [[package]] -name = "rustix" -version = "1.1.5" +name = "wayland-sys" +version = "0.31.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d" +checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be" dependencies = [ - "bitflags", - "errno", - "libc", - "linux-raw-sys", - "windows-sys", + "dlib", + "log", + "once_cell", + "pkg-config", ] [[package]] -name = "rustversion" -version = "1.0.23" +name = "web-sys" +version = "0.3.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" +checksum = "88261b9deccee56594c11a3460c462c41f58d148598fe70ad77070126a68aba4" +dependencies = [ + "js-sys", + "wasm-bindgen", +] [[package]] -name = "ryu" -version = "1.0.23" +name = "web-time" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] [[package]] -name = "same-file" -version = "1.0.6" +name = "webbrowser" +version = "1.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +checksum = "62c35be770821a214dbc362fc26908c853e776c0004294d0b10b8a6bad582f94" dependencies = [ - "winapi-util", + "jni", + "log", + "ndk-context", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "url", + "web-sys", ] [[package]] -name = "scopeguard" -version = "1.2.0" +name = "weezl" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" [[package]] -name = "semver" -version = "1.0.28" +name = "wgpu" +version = "27.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" +checksum = "bfe68bac7cde125de7a731c3400723cadaaf1703795ad3f4805f187459cd7a77" +dependencies = [ + "arrayvec", + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "document-features", + "hashbrown 0.16.1", + "js-sys", + "log", + "naga", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "smallvec", + "static_assertions", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "wgpu-core", + "wgpu-hal", + "wgpu-types", +] [[package]] -name = "serde" -version = "1.0.229" +name = "wgpu-core" +version = "27.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +checksum = "27a75de515543b1897b26119f93731b385a19aea165a1ec5f0e3acecc229cae7" dependencies = [ - "serde_core", - "serde_derive", + "arrayvec", + "bit-set", + "bit-vec", + "bitflags 2.13.2", + "bytemuck", + "cfg_aliases", + "document-features", + "hashbrown 0.16.1", + "indexmap", + "log", + "naga", + "once_cell", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "rustc-hash 1.1.0", + "smallvec", + "thiserror 2.0.21", + "wgpu-core-deps-apple", + "wgpu-core-deps-emscripten", + "wgpu-core-deps-windows-linux-android", + "wgpu-hal", + "wgpu-types", ] [[package]] -name = "serde_core" -version = "1.0.229" +name = "wgpu-core-deps-apple" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +checksum = "0772ae958e9be0c729561d5e3fd9a19679bcdfb945b8b1a1969d9bfe8056d233" dependencies = [ - "serde_derive", + "wgpu-hal", ] [[package]] -name = "serde_derive" -version = "1.0.229" +name = "wgpu-core-deps-emscripten" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +checksum = "b06ac3444a95b0813ecfd81ddb2774b66220b264b3e2031152a4a29fda4da6b5" dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.6", + "wgpu-hal", ] [[package]] -name = "serde_json" -version = "1.0.151" +name = "wgpu-core-deps-windows-linux-android" +version = "27.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14" +checksum = "71197027d61a71748e4120f05a9242b2ad142e3c01f8c1b47707945a879a03c3" dependencies = [ - "itoa", - "memchr", - "serde", - "serde_core", - "zmij", + "wgpu-hal", ] [[package]] -name = "serde_path_to_error" -version = "0.1.20" +name = "wgpu-hal" +version = "27.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10a9ff822e371bb5403e391ecd83e182e0e77ba7f6fe0160b795797109d1b457" +checksum = "5b21cb61c57ee198bc4aff71aeadff4cbb80b927beb912506af9c780d64313ce" dependencies = [ - "itoa", - "serde", - "serde_core", + "android_system_properties", + "arrayvec", + "ash", + "bit-set", + "bitflags 2.13.2", + "block", + "bytemuck", + "cfg-if", + "cfg_aliases", + "core-graphics-types 0.2.0", + "glow", + "glutin_wgl_sys", + "gpu-alloc", + "gpu-allocator", + "gpu-descriptor", + "hashbrown 0.16.1", + "js-sys", + "khronos-egl", + "libc", + "libloading", + "log", + "metal", + "naga", + "ndk-sys", + "objc", + "once_cell", + "ordered-float", + "parking_lot", + "portable-atomic", + "portable-atomic-util", + "profiling", + "range-alloc", + "raw-window-handle", + "renderdoc-sys", + "smallvec", + "thiserror 2.0.21", + "wasm-bindgen", + "web-sys", + "wgpu-types", + "windows 0.58.0", + "windows-core 0.58.0", ] [[package]] -name = "serde_urlencoded" -version = "0.7.1" +name = "wgpu-types" +version = "27.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +checksum = "afdcf84c395990db737f2dd91628706cb31e86d72e53482320d368e52b5da5eb" dependencies = [ - "form_urlencoded", - "itoa", - "ryu", - "serde", + "bitflags 2.13.2", + "bytemuck", + "js-sys", + "log", + "thiserror 2.0.21", + "web-sys", ] [[package]] -name = "simd_cesu8" -version = "1.2.0" +name = "winapi" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" dependencies = [ - "rustc_version", - "simdutf8", + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", ] [[package]] -name = "simdutf8" -version = "0.1.5" +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" [[package]] -name = "slab" -version = "0.4.12" +name = "winapi-util" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] [[package]] -name = "smallvec" -version = "1.16.2" +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9395f0f0eee849a9b707b2f06bb92a6a422090e2123bb2ef8e87a0e61892a8e" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] -name = "socket2" -version = "0.6.5" +name = "window_clipboard" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +checksum = "d5654226305eaf2dde8853fb482861d28e5dcecbbd40cb88e8393d94bb80d733" dependencies = [ - "libc", - "windows-sys", + "clipboard-win", + "clipboard_macos", + "clipboard_wayland", + "clipboard_x11", + "raw-window-handle", + "thiserror 2.0.21", ] [[package]] -name = "spin" -version = "0.12.3" +name = "windows" +version = "0.58.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0134f9043ed38b087ac4f7d4af44c79e2c9e5094421fe3164f435ce585953b10" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" dependencies = [ - "lock_api", + "windows-core 0.58.0", + "windows-targets", ] [[package]] -name = "stable_deref_trait" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" - -[[package]] -name = "strsim" -version = "0.11.1" +name = "windows" +version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f" +checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" +dependencies = [ + "windows-collections", + "windows-core 0.62.2", + "windows-future", + "windows-numerics", +] [[package]] -name = "syn" -version = "2.0.119" +name = "windows-collections" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", + "windows-core 0.62.2", ] [[package]] -name = "syn" -version = "3.0.6" +name = "windows-core" +version = "0.58.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8593e8e72159ed2257d083c7a454a85cbf854f37a0966d8d483aff8c8a3ebcee" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" dependencies = [ - "proc-macro2", - "quote", - "unicode-ident", + "windows-implement 0.58.0", + "windows-interface 0.58.0", + "windows-result 0.2.0", + "windows-strings 0.1.0", + "windows-targets", ] [[package]] -name = "sync_wrapper" -version = "1.0.2" +name = "windows-core" +version = "0.62.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] [[package]] -name = "synstructure" -version = "0.14.0" +name = "windows-future" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.6", + "windows-core 0.62.2", + "windows-link", + "windows-threading", ] [[package]] -name = "tempfile" -version = "3.27.0" +name = "windows-implement" +version = "0.58.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" dependencies = [ - "fastrand", - "getrandom 0.4.3", - "once_cell", - "rustix", - "windows-sys", + "proc-macro2", + "quote", + "syn 2.0.119", ] [[package]] -name = "thiserror" -version = "1.0.69" +name = "windows-implement" +version = "0.60.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" dependencies = [ - "thiserror-impl 1.0.69", + "proc-macro2", + "quote", + "syn 2.0.119", ] [[package]] -name = "thiserror" -version = "2.0.21" +name = "windows-interface" +version = "0.58.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" dependencies = [ - "thiserror-impl 2.0.21", + "proc-macro2", + "quote", + "syn 2.0.119", ] [[package]] -name = "thiserror-impl" -version = "1.0.69" +name = "windows-interface" +version = "0.59.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" dependencies = [ "proc-macro2", "quote", @@ -1333,312 +5253,305 @@ dependencies = [ ] [[package]] -name = "thiserror-impl" -version = "2.0.21" +name = "windows-link" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.6", + "windows-core 0.62.2", + "windows-link", ] [[package]] -name = "tinystr" -version = "0.8.4" +name = "windows-result" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" dependencies = [ - "displaydoc", - "zerovec", + "windows-targets", ] [[package]] -name = "tokio" -version = "1.53.1" +name = "windows-result" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "202caea871b69668250d242070849eb495be178ed697a3e98aebce5bc81a0bed" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" dependencies = [ - "bytes", - "libc", - "mio", - "pin-project-lite", - "socket2", - "tokio-macros", - "windows-sys", + "windows-link", ] [[package]] -name = "tokio-macros" -version = "2.7.2" +name = "windows-strings" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" dependencies = [ - "proc-macro2", - "quote", - "syn 3.0.6", + "windows-result 0.2.0", + "windows-targets", ] [[package]] -name = "tokio-util" -version = "0.7.19" +name = "windows-strings" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "494815d09bf52b5548659851081238f0ca39ff638363907596da739561c62c52" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" dependencies = [ - "bytes", - "futures-core", - "futures-sink", - "pin-project-lite", - "tokio", + "windows-link", ] [[package]] -name = "tower" -version = "0.5.3" +name = "windows-sys" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "futures-core", - "futures-util", - "pin-project-lite", - "sync_wrapper", - "tokio", - "tower-layer", - "tower-service", - "tracing", + "windows-targets", ] [[package]] -name = "tower-http" -version = "0.6.11" +name = "windows-sys" +version = "0.59.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" dependencies = [ - "bitflags", - "bytes", - "futures-core", - "futures-util", - "http", - "http-body", - "http-body-util", - "http-range-header", - "httpdate", - "mime", - "mime_guess", - "percent-encoding", - "pin-project-lite", - "tokio", - "tokio-util", - "tower-layer", - "tower-service", + "windows-targets", ] [[package]] -name = "tower-layer" -version = "0.3.3" +name = "windows-sys" +version = "0.61.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] [[package]] -name = "tower-service" -version = "0.3.3" +name = "windows-targets" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_gnullvm", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] [[package]] -name = "tracing" -version = "0.1.44" +name = "windows-threading" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" dependencies = [ - "log", - "pin-project-lite", - "tracing-core", + "windows-link", ] [[package]] -name = "tracing-core" -version = "0.1.36" +name = "windows_aarch64_gnullvm" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" -dependencies = [ - "once_cell", -] +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] -name = "unicase" -version = "2.9.0" +name = "windows_aarch64_msvc" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbc4bc3a9f746d862c45cb89d705aa10f187bb96c76001afab07a0d35ce60142" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] -name = "unicode-ident" -version = "1.0.26" +name = "windows_i686_gnu" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" [[package]] -name = "url" -version = "2.5.8" +name = "windows_i686_gnullvm" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" -dependencies = [ - "form_urlencoded", - "idna", - "percent-encoding", - "serde", -] +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] -name = "utf8_iter" -version = "1.0.4" +name = "windows_i686_msvc" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] -name = "utf8parse" -version = "0.2.2" +name = "windows_x86_64_gnu" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] -name = "walkdir" -version = "2.5.0" +name = "windows_x86_64_gnullvm" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" -dependencies = [ - "same-file", - "winapi-util", -] +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] -name = "wasi" -version = "0.11.1+wasi-snapshot-preview1" +name = "windows_x86_64_msvc" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] -name = "wasm-bindgen" -version = "0.2.129" +name = "winit" +version = "0.30.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409" +checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d" dependencies = [ - "cfg-if", - "once_cell", - "rustversion", - "wasm-bindgen-macro", - "wasm-bindgen-shared", + "ahash", + "android-activity", + "atomic-waker", + "bitflags 2.13.2", + "block2 0.5.1", + "bytemuck", + "calloop 0.13.0", + "cfg_aliases", + "concurrent-queue", + "core-foundation 0.9.4", + "core-graphics", + "cursor-icon", + "dpi", + "js-sys", + "libc", + "memmap2", + "ndk", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", + "objc2-ui-kit", + "orbclient", + "percent-encoding", + "pin-project", + "raw-window-handle", + "redox_syscall 0.4.1", + "rustix 0.38.44", + "sctk-adwaita", + "smithay-client-toolkit 0.19.2", + "smol_str", + "tracing", + "unicode-segmentation", + "wasm-bindgen", + "wasm-bindgen-futures", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-protocols-plasma", + "web-sys", + "web-time", + "windows-sys 0.52.0", + "x11-dl", + "x11rb", + "xkbcommon-dl", ] [[package]] -name = "wasm-bindgen-macro" -version = "0.2.129" +name = "winnow" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535" +checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" dependencies = [ - "quote", - "wasm-bindgen-macro-support", + "memchr", ] [[package]] -name = "wasm-bindgen-macro-support" -version = "0.2.129" +name = "wit-bindgen" +version = "0.57.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7" -dependencies = [ - "bumpalo", - "proc-macro2", - "quote", - "syn 3.0.6", - "wasm-bindgen-shared", -] +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" [[package]] -name = "wasm-bindgen-shared" -version = "0.2.129" +name = "writeable" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6" -dependencies = [ - "unicode-ident", -] +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" [[package]] -name = "web-sys" -version = "0.3.106" +name = "x11-dl" +version = "2.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88261b9deccee56594c11a3460c462c41f58d148598fe70ad77070126a68aba4" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" dependencies = [ - "js-sys", - "wasm-bindgen", + "libc", + "once_cell", + "pkg-config", ] [[package]] -name = "webbrowser" -version = "1.2.4" +name = "x11rb" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62c35be770821a214dbc362fc26908c853e776c0004294d0b10b8a6bad582f94" +checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" dependencies = [ - "jni", - "log", - "ndk-context", - "objc2", - "objc2-app-kit", - "objc2-foundation", - "url", - "web-sys", + "as-raw-xcb-connection", + "gethostname", + "libc", + "libloading", + "once_cell", + "rustix 1.1.5", + "x11rb-protocol", ] [[package]] -name = "winapi" -version = "0.3.9" +name = "x11rb-protocol" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] +checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" [[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" +name = "xcursor" +version = "0.3.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" +checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23" [[package]] -name = "winapi-util" -version = "0.1.11" +name = "xkbcommon-dl" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5" dependencies = [ - "windows-sys", + "bitflags 2.13.2", + "dlib", + "log", + "once_cell", + "xkeysym", ] [[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" +name = "xkeysym" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56" [[package]] -name = "windows-link" -version = "0.2.1" +name = "xml-rs" +version = "0.8.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" +checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7" [[package]] -name = "windows-sys" -version = "0.61.2" +name = "y4m" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" -dependencies = [ - "windows-link", -] +checksum = "7a5a4b21e1a62b67a2970e6831bc091d7b87e119e7f9791aef9702e3bef04448" [[package]] -name = "writeable" -version = "0.6.4" +name = "yazi" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" +checksum = "e01738255b5a16e78bbb83e7fbba0a1e7dd506905cfc53f4622d89015a03fbb5" [[package]] name = "yoke" @@ -1663,20 +5576,96 @@ dependencies = [ "synstructure", ] +[[package]] +name = "zbus" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix 1.1.5", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.6", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8bf88b4a3ff53e883001e0e0115b297a9d53c31b9c1edd2bfdd853e3428624e" +dependencies = [ + "serde", + "winnow", + "zvariant", +] + +[[package]] +name = "zcheapstr" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1afec51604565183aeb5c54c20aeab286120d4e4460f7f76e3e8bb8c0d99473" +dependencies = [ + "serde", +] + +[[package]] +name = "zeno" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524" + [[package]] name = "zerocopy" -version = "0.8.59" +version = "0.8.62" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6df92bf3d9227be3d53173901ddbffac2babc27ae50f397776ffd6dc33f800cb" +checksum = "86502bf56ac7c77571a32e2647bb2a15894565e981fb2a48d7bde2d91c965a9d" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.59" +version = "0.8.62" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac4f328cf2f05d084e496c3e9c3f33ed0a183656a16e1fcec4d464d8373aec82" +checksum = "5457206954b06561e2608c7e19cf58b1926586d999c246eebe4502f7e2039d1a" dependencies = [ "proc-macro2", "quote", @@ -1737,8 +5726,79 @@ dependencies = [ "syn 3.0.6", ] +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + [[package]] name = "zmij" version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zune-core" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" + +[[package]] +name = "zune-inflate" +version = "0.2.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] + +[[package]] +name = "zvariant" +version = "5.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1d34c27cc6cdd1f458427519dd6b8612f7b7e3f7b9a0b2355d041dda9869147" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow", + "zcheapstr", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "864155e69b4352db0c7f374917bf45d1e0c8d17659c8b3dbf9795f3673f8c497" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.6", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 3.0.6", + "winnow", +] diff --git a/bdgm/Package.appxmanifest b/bdgm/Package.appxmanifest new file mode 100644 index 0000000..76c8f4f --- /dev/null +++ b/bdgm/Package.appxmanifest @@ -0,0 +1,54 @@ + + + + + + + + BDGM Player + yesseruser + Assets\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bdgm/bdgm-play/Cargo.toml b/bdgm/bdgm-play/Cargo.toml index 2461b15..3826713 100644 --- a/bdgm/bdgm-play/Cargo.toml +++ b/bdgm/bdgm-play/Cargo.toml @@ -19,15 +19,20 @@ hadris-udf = { version = "2.1.0" } webbrowser = "1" windows-sys = { version = "0.61", features = [ "Win32_Foundation", + "Win32_System_Console", "Win32_System_IO", "Win32_System_Ioctl", + "Win32_Storage_FileSystem", + "Win32_UI_WindowsAndMessaging", ] } axum = "0.8" -tokio = { version = "1", features = [ "macros", "rt-multi-thread", "net" ] } +tokio = { version = "1", features = [ "macros", "rt-multi-thread", "net", "process", "sync", "time" ] } tower-http = { version = "0.6", features = [ "fs" ] } percent-encoding = "2" serde = { version = "1", features = [ "derive" ] } serde_json = "1" bimap = { version = "0.6", features = [ "serde" ] } +iced = { version="0.14", features = ["tokio", "image"] } +rfd = "0.17" diff --git a/bdgm/bdgm-play/src/app.rs b/bdgm/bdgm-play/src/app.rs deleted file mode 100644 index a46aa08..0000000 --- a/bdgm/bdgm-play/src/app.rs +++ /dev/null @@ -1,30 +0,0 @@ -use std::process::ExitStatus; - -use bdgm::game::{Game, ValidatedGame}; -use bdgm_play::{ - args::Args, error::AppError, image::resolve_image_args, install::install, launch::launch_game, - read_manifest, -}; -use clap::Parser; -use platform_dirs::AppDirs; - -pub(crate) async fn run() -> anyhow::Result { - let app_dirs = AppDirs::new(Some("bdgm-play"), true).ok_or(AppError::NoAppDirs)?; - - let args = Args::parse(); - let (args, tempdir) = resolve_image_args(args)?; - - let manifest = read_manifest(&args)?; - - let game = Game::from_str(&manifest)?; - let game = ValidatedGame::validate(game)?; - - println!("Found: {} version {}", game.name(), game.version()); - install(&game, &app_dirs, &args)?; - - println!("Launching..."); - let status = launch_game(&game, &args, &app_dirs, true).await?; - drop(tempdir); - - Ok(status) -} diff --git a/bdgm/bdgm-play/src/cli/app.rs b/bdgm/bdgm-play/src/cli/app.rs new file mode 100644 index 0000000..cbedb4a --- /dev/null +++ b/bdgm/bdgm-play/src/cli/app.rs @@ -0,0 +1,14 @@ +use std::process::ExitStatus; + +use crate::{ + cli::args::Args, + core::{image::resolve_image_args_with_progress, run_sanitized}, +}; + +pub async fn run(args: Args) -> anyhow::Result { + let (args, tempdir) = resolve_image_args_with_progress(args, |_, _| {})?; + + let result = run_sanitized(args, true).await; + drop(tempdir); + result +} diff --git a/bdgm/bdgm-play/src/args.rs b/bdgm/bdgm-play/src/cli/args.rs similarity index 78% rename from bdgm/bdgm-play/src/args.rs rename to bdgm/bdgm-play/src/cli/args.rs index dc3deaf..e26bfbf 100644 --- a/bdgm/bdgm-play/src/args.rs +++ b/bdgm/bdgm-play/src/cli/args.rs @@ -7,7 +7,7 @@ use clap::Parser; #[command(version, about, long_about = None)] pub struct Args { /// The mounted root of the game disc. This is the parent of the BDGM directory. - pub location: PathBuf, + pub location: Option, /// Whether the path points to an image instead of a mount point. #[arg(long)] @@ -24,7 +24,7 @@ pub struct Args { } impl Args { - pub fn new_imageless(location: PathBuf, runtime: Option) -> Self { + pub fn new_imageless(location: Option, runtime: Option) -> Self { #[cfg(windows)] { Args { @@ -53,4 +53,14 @@ impl Args { #[allow(unreachable_code)] false } + + #[allow(unused)] + pub fn set_raw_disc(&mut self, value: bool) -> Option<()> { + #[cfg(windows)] + { + self.raw_disc = value; + return Some(()); + } + None + } } diff --git a/bdgm/bdgm-play/src/cli/mod.rs b/bdgm/bdgm-play/src/cli/mod.rs new file mode 100644 index 0000000..4f66858 --- /dev/null +++ b/bdgm/bdgm-play/src/cli/mod.rs @@ -0,0 +1,2 @@ +pub mod app; +pub mod args; diff --git a/bdgm/bdgm-play/src/dirs.rs b/bdgm/bdgm-play/src/core/dirs.rs similarity index 59% rename from bdgm/bdgm-play/src/dirs.rs rename to bdgm/bdgm-play/src/core/dirs.rs index 3325abe..85da7fa 100644 --- a/bdgm/bdgm-play/src/dirs.rs +++ b/bdgm/bdgm-play/src/core/dirs.rs @@ -3,7 +3,13 @@ use std::path::PathBuf; use bdgm::{error::BDGMError, game::ValidatedGame}; use platform_dirs::AppDirs; -use crate::{args::Args, error::AppError}; +use crate::{ + cli::args::Args, + core::error::{ + AppError, + IoError::{self}, + }, +}; pub struct GameDirs { pub root: PathBuf, @@ -14,9 +20,9 @@ pub struct GameDirs { impl GameDirs { pub fn from(game: &ValidatedGame, app_dirs: &AppDirs) -> Self { - let root = app_dirs.data_dir.join(&game.id()); + let root = app_dirs.data_dir.join(game.id()); let install = root.join("app").join(game.version()); - let cache = app_dirs.cache_dir.join(&game.id()); + let cache = app_dirs.cache_dir.join(game.id()); let data = root.join("data"); GameDirs { @@ -28,13 +34,17 @@ impl GameDirs { } } -pub fn get_app_dir_path(args: &Args) -> PathBuf { - args.location.join("BDGM").join("APP") +pub fn get_app_dir_path(args: &Args) -> Option { + args.location.as_ref().map(|p| p.join("BDGM").join("APP")) } pub fn try_get_executable_path(args: &Args, game: &ValidatedGame) -> anyhow::Result { - let app_dir_path = get_app_dir_path(args); - let executable_path = app_dir_path.join(&game.executable()); + let app_dir_path = match get_app_dir_path(args) { + Some(p) => p, + None => return Err(IoError::PathNone.into()), + }; + + let executable_path = app_dir_path.join(game.executable()); if !executable_path.try_exists()? { return Err(AppError::InvalidGameFile(BDGMError::ExecutableMissing( @@ -47,7 +57,10 @@ pub fn try_get_executable_path(args: &Args, game: &ValidatedGame) -> anyhow::Res } pub fn try_get_manifest_path(args: &Args) -> anyhow::Result { - let manifest_path = args.location.join("BDGM").join("DISC.BDGM"); + let manifest_path = match args.location.as_ref() { + Some(p) => p.join("BDGM").join("DISC.BDGM"), + None => return Err(IoError::PathNone.into()), + }; if !manifest_path.try_exists()? { return Err(BDGMError::DiscFileMissing.into()); diff --git a/bdgm/bdgm-play/src/dump.rs b/bdgm/bdgm-play/src/core/dump.rs similarity index 94% rename from bdgm/bdgm-play/src/dump.rs rename to bdgm/bdgm-play/src/core/dump.rs index 48e3f3c..b47e9d7 100644 --- a/bdgm/bdgm-play/src/dump.rs +++ b/bdgm/bdgm-play/src/core/dump.rs @@ -118,7 +118,11 @@ fn disc_size(file: &File) -> io::Result { } #[cfg(windows)] -pub fn dump_disc(drive: &str, output: &str) -> io::Result<()> { +pub fn dump_disc_with_progress( + drive: &str, + output: &str, + mut on_progress: impl FnMut(u64, u64), +) -> io::Result<()> { let mut drive = OpenOptions::new() .read(true) .custom_flags(FILE_FLAG_NO_BUFFERING) @@ -163,6 +167,10 @@ pub fn dump_disc(drive: &str, output: &str) -> io::Result<()> { drive.read_exact(&mut buffer)?; output.write_all(&buffer)?; + if sector % 512 == 0 || sector + 1 == sectors_to_copy { + on_progress(sector + 1, sectors_to_copy); + } + if sector % 1024 == 0 { println!( "{}/{} sectors ({:.1}%)", @@ -178,6 +186,11 @@ pub fn dump_disc(drive: &str, output: &str) -> io::Result<()> { Ok(()) } +#[cfg(windows)] +pub fn dump_disc(drive: &str, output: &str) -> io::Result<()> { + dump_disc_with_progress(drive, output, |_, _| {}) +} + pub fn extract_udf_dir( udf: &UdfVolume, dir: &UdfDir, diff --git a/bdgm/bdgm-play/src/error.rs b/bdgm/bdgm-play/src/core/error.rs similarity index 53% rename from bdgm/bdgm-play/src/error.rs rename to bdgm/bdgm-play/src/core/error.rs index 617370b..bc9c176 100644 --- a/bdgm/bdgm-play/src/error.rs +++ b/bdgm/bdgm-play/src/core/error.rs @@ -1,4 +1,4 @@ -use std::{fmt::Display, fs, io}; +use std::{fmt::Display, fs, io, path::Path}; use bdgm::error::BDGMError; use thiserror::Error; @@ -27,6 +27,7 @@ pub enum IoError { IoError(io::Error), TryLockError(fs::TryLockError), FsExtraError(fs_extra::error::Error), + PathNone, } impl Display for IoError { @@ -35,6 +36,7 @@ impl Display for IoError { IoError::IoError(error) => error.fmt(f), IoError::TryLockError(error) => error.fmt(f), IoError::FsExtraError(error) => error.fmt(f), + IoError::PathNone => write!(f, "Path is None"), } } } @@ -54,3 +56,45 @@ impl From for IoError { Self::FsExtraError(value) } } + +/// Error for a missing runtime binary when spawning a game process. +/// +/// Displays as `Runtime [ ] was not found, is it installed?`. +#[derive(Debug, Error)] +pub struct RuntimeNotFound { + display: String, + version: Option, +} + +impl Display for RuntimeNotFound { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match &self.version { + Some(version) => write!( + f, + "Runtime {} {} was not found, is it installed?", + self.display, version + ), + None => write!( + f, + "Runtime {} was not found, is it installed?", + self.display + ), + } + } +} + +impl RuntimeNotFound { + pub fn from_game(game: &bdgm::game::ValidatedGame) -> Self { + Self { + display: game.runtime().display_name().to_string(), + version: game.runtime_version().map(|s| s.to_owned()), + } + } + + pub fn from_path(path: &Path, version: Option) -> Self { + Self { + display: path.display().to_string(), + version, + } + } +} diff --git a/bdgm/bdgm-play/src/fs.rs b/bdgm/bdgm-play/src/core/fs.rs similarity index 63% rename from bdgm/bdgm-play/src/fs.rs rename to bdgm/bdgm-play/src/core/fs.rs index c9b982c..15f31af 100644 --- a/bdgm/bdgm-play/src/fs.rs +++ b/bdgm/bdgm-play/src/core/fs.rs @@ -6,23 +6,21 @@ use std::{ use fs_extra::dir; -use crate::error::IoError; +use crate::core::error::IoError; pub fn acquire_lock(path: &Path, blocking: bool, verbose: bool) -> Result { - match path.parent() { - Some(dir_path) => { - if dir_path.exists() && !dir_path.is_dir() { - return Err(IoError::IoError(io::Error::new( - io::ErrorKind::NotADirectory, - format!( - "Parent of {} (which was attempted to lock) exists but is not a directory", - path.display() - ), - ))); - } - dir::create_all(dir_path, false)?; + // If the parent does not exist, locking will probably fail, but we'll still try. + if let Some(dir_path) = path.parent() { + if dir_path.exists() && !dir_path.is_dir() { + return Err(IoError::IoError(io::Error::new( + io::ErrorKind::NotADirectory, + format!( + "Parent of {} (which was attempted to lock) exists but is not a directory", + path.display() + ), + ))); } - None => {} // Parent does not exist so locking will probably fail, but we'll still try + dir::create_all(dir_path, false)?; } let file = get_file(&path.with_added_extension("lock"))?; @@ -46,10 +44,13 @@ pub fn acquire_lock(path: &Path, blocking: bool, verbose: bool) -> Result io::Result { + // truncate(false): callers such as `load_ports` read existing contents + // through this handle, so opening must never discard them. File::options() .write(true) .read(true) .create(true) + .truncate(false) .open(path) } diff --git a/bdgm/bdgm-play/src/image.rs b/bdgm/bdgm-play/src/core/image.rs similarity index 61% rename from bdgm/bdgm-play/src/image.rs rename to bdgm/bdgm-play/src/core/image.rs index aa6b235..2ea72b4 100644 --- a/bdgm/bdgm-play/src/image.rs +++ b/bdgm/bdgm-play/src/core/image.rs @@ -3,10 +3,10 @@ use std::fs::File; use hadris_udf::UdfVolume; use tempfile::{TempDir, tempdir}; -use crate::{args::Args, dump::extract_udf_dir}; +use crate::{cli::args::Args, core::dump::extract_udf_dir, core::error::IoError}; #[cfg(windows)] -use crate::dump::dump_disc; +use crate::core::dump::dump_disc_with_progress; #[cfg(windows)] use tempfile::NamedTempFile; @@ -31,18 +31,25 @@ impl ImageState { } } -pub fn resolve_image_args(args: Args) -> anyhow::Result<(Args, Option)> { +#[allow(unused_mut)] +pub fn resolve_image_args_with_progress( + args: Args, + mut on_progress: impl FnMut(u64, u64) + Send, +) -> anyhow::Result<(Args, Option)> { + #[cfg(not(windows))] + let _ = &mut on_progress; let image_state = ImageState::from(&args); let file = match image_state { ImageState::MountedDirectory => return Ok((args, None)), - ImageState::Image => File::open(&args.location)?, + ImageState::Image => File::open(&args.location.ok_or(IoError::PathNone)?)?, #[cfg(windows)] ImageState::RawDisc => { let dump_file = NamedTempFile::new()?; - dump_disc( - &args.location.to_string_lossy(), + dump_disc_with_progress( + &args.location.ok_or(IoError::PathNone)?.to_string_lossy(), &dump_file.path().to_string_lossy(), + &mut on_progress, )?; File::open(dump_file.path())? @@ -54,7 +61,7 @@ pub fn resolve_image_args(args: Args) -> anyhow::Result<(Args, Option)> extract_udf_dir(&udf, &udf.root_dir()?, extract_dir.path())?; Ok(( - Args::new_imageless(extract_dir.path().to_path_buf(), args.runtime), + Args::new_imageless(Some(extract_dir.path().to_path_buf()), args.runtime), Some(extract_dir), )) } diff --git a/bdgm/bdgm-play/src/install.rs b/bdgm/bdgm-play/src/core/install.rs similarity index 79% rename from bdgm/bdgm-play/src/install.rs rename to bdgm/bdgm-play/src/core/install.rs index f424698..fd7c945 100644 --- a/bdgm/bdgm-play/src/install.rs +++ b/bdgm/bdgm-play/src/core/install.rs @@ -4,16 +4,18 @@ use bdgm::game::ValidatedGame; use fs_extra::dir::{self, CopyOptions}; use platform_dirs::AppDirs; -use crate::{args::Args, dirs::get_app_dir_path, fs::acquire_lock}; +use crate::{ + cli::args::Args, core::dirs::get_app_dir_path, core::error::IoError, core::fs::acquire_lock, +}; pub fn install(game: &ValidatedGame, app_dirs: &AppDirs, args: &Args) -> anyhow::Result<()> { let id = game.id(); - let game_dir = app_dirs.data_dir.join(&id); + let game_dir = app_dirs.data_dir.join(id); let install_dir = game_dir.join("app").join(game.version()); let install_part_dir = install_dir.with_added_extension("part"); if !install_dir.try_exists()? { let lock = acquire_lock(&install_dir, false, false).map_err(|e| match e { - crate::error::IoError::TryLockError(try_lock_error) => io::Error::new( + crate::core::error::IoError::TryLockError(try_lock_error) => io::Error::new( io::ErrorKind::ResourceBusy, format!("An installation is in progress: {}", try_lock_error), ) @@ -28,7 +30,7 @@ pub fn install(game: &ValidatedGame, app_dirs: &AppDirs, args: &Args) -> anyhow: println!("Copying files..."); dir::copy( - &get_app_dir_path(args), + &get_app_dir_path(args).ok_or(IoError::PathNone)?, &install_part_dir, &CopyOptions::new().overwrite(true).content_only(true), )?; diff --git a/bdgm/bdgm-play/src/core/launch.rs b/bdgm/bdgm-play/src/core/launch.rs new file mode 100644 index 0000000..45236e8 --- /dev/null +++ b/bdgm/bdgm-play/src/core/launch.rs @@ -0,0 +1,214 @@ +use std::{collections::HashMap, path::PathBuf, process::ExitStatus, sync::Arc}; + +use bdgm::game::ValidatedGame; +use bdgm::runtime::Runtime; +use platform_dirs::AppDirs; +use tokio::sync::Mutex as AsyncMutex; + +use crate::{ + cli::args::Args, + core::{ + dirs::{GameDirs, get_app_dir_path}, + error::RuntimeNotFound, + server::play_html_game, + }, +}; + +pub fn get_envvars( + game: &ValidatedGame, + args: &Args, + app_dirs: &AppDirs, +) -> HashMap<&'static str, String> { + let game_dirs = GameDirs::from(game, app_dirs); + + let mut envvars = HashMap::new(); + envvars.insert("BDGM_DATA", game_dirs.data.to_string_lossy().into_owned()); + envvars.insert( + "XDG_DATA_DIRS", + game_dirs.data.to_string_lossy().into_owned(), + ); + envvars.insert("BDGM_CACHE", game_dirs.cache.to_string_lossy().into_owned()); + if let Some(path) = get_app_dir_path(args) { + envvars.insert("BDGM_APP", path.to_string_lossy().into_owned()); + } + if let Some(path) = &args.location { + envvars.insert("BDGM_DISC", path.to_string_lossy().into_owned()); + } + envvars.insert("BDGM_VERSION", game.bdgm_version().to_string()); + + envvars +} + +/// Build the async command for a native (non-HTML) game. +/// +/// Single place for runtime dispatch shared by `run_game` (CLI, awaited) +/// and `spawn_game_process` (GUI, killable). Returns an error for HTML +/// games — use `server::start_html_server` instead. +pub fn build_command( + game: &ValidatedGame, + args: &Args, + app_dirs: &AppDirs, +) -> anyhow::Result { + let envvars = get_envvars(game, args, app_dirs); + let game_dirs = GameDirs::from(game, app_dirs); + let runtime_path = args + .runtime + .as_ref() + .map(|x| x.to_string_lossy().to_string()); + + let mut cmd = match game.runtime() { + Runtime::Java => { + let mut c = tokio::process::Command::new(runtime_path.as_deref().unwrap_or("java")); + c.args(game.runtime_args()) + .arg("-jar") + .arg(game_dirs.install.join(game.executable())) + .args(game.args()); + c + } + Runtime::Dotnet => { + let mut c = tokio::process::Command::new(runtime_path.as_deref().unwrap_or("dotnet")); + c.args(game.runtime_args()) + .arg(game_dirs.install.join(game.executable())) + .args(game.args()); + c + } + Runtime::Python => { + let mut c = tokio::process::Command::new(runtime_path.as_deref().unwrap_or("python")); + c.args(game.runtime_args()) + .arg(game_dirs.install.join(game.executable())) + .args(game.args()); + c + } + Runtime::Windows => { + if cfg!(target_os = "windows") { + let mut c = tokio::process::Command::new(game_dirs.install.join(game.executable())); + c.args(game.args()); + c + } else { + let mut c = tokio::process::Command::new(runtime_path.as_deref().unwrap_or("wine")); + c.args(game.runtime_args()) + .arg(game_dirs.install.join(game.executable())) + .args(game.args()) + .env("WINEPREFIX", game_dirs.root.join("wineprefix")); + c + } + } + Runtime::HTML => { + return Err(anyhow::anyhow!( + "HTML games must be started via server::start_html_server" + )); + } + }; + + cmd.envs(envvars).current_dir(&game_dirs.install); + Ok(cmd) +} + +/// Map a `spawn` I/O error to [`RuntimeNotFound`] when the runtime binary +/// is missing (`ErrorKind::NotFound`). All other errors pass through. +/// +/// The native Windows launch (spawning the game exe directly) is excluded: +/// a `NotFound` there means a missing game file, not a missing runtime. +fn map_spawn_error( + e: std::io::Error, + game: &ValidatedGame, + runtime: Option<&PathBuf>, +) -> anyhow::Error { + let is_native_windows_launch = + cfg!(target_os = "windows") && matches!(game.runtime(), Runtime::Windows); + if e.kind() == std::io::ErrorKind::NotFound && !is_native_windows_launch { + match runtime { + Some(p) => anyhow::anyhow!(RuntimeNotFound::from_path(p, None)), + None => anyhow::anyhow!(RuntimeNotFound::from_game(game)), + } + } else { + e.into() + } +} +/// Run a game to completion, awaiting its exit. +/// +/// CLI path: just await this. HTML games are served via +/// `server::play_html_game` (start + await); native games use the shared +/// `build_command` and await the child. +pub async fn run_game( + game: &ValidatedGame, + args: &Args, + app_dirs: &AppDirs, + verbose: bool, +) -> anyhow::Result { + let game_dirs = GameDirs::from(game, app_dirs); + + let status = match game.runtime() { + Runtime::HTML => { + play_html_game(game, &game_dirs.install, app_dirs, verbose).await?; + std::process::ExitStatus::default() + } + _ => { + build_command(game, args, app_dirs)? + .spawn() + .map_err(|e| map_spawn_error(e, game, args.runtime.as_ref()))? + .wait() + .await? + } + }; + if !status.success() && verbose { + eprintln!("Your game crashed: {status}"); + if (cfg!(windows) && !matches!(game.runtime(), Runtime::Windows)) || cfg!(not(windows)) { + eprintln!("Specifying a runtime with `--runtime /path/to/runtime` may fix your issue."); + } + } + + Ok(status) +} + +/// Shared handle to a running native game process. +/// +/// Cloning shares ownership of the same child. The child is spawned with +/// `kill_on_drop(true)`, so dropping the last handle without an explicit +/// kill still terminates the game. Killing is done via a brief lock + +/// `start_kill`, while the exit-waiter polls `try_wait` so the lock is +/// never held across a long wait. +#[derive(Clone, Debug)] +pub struct ProcessHandle { + pub child: Arc>, +} + +/// Spawn a native (non-HTML) game without blocking, returning a killable handle. +/// +/// Returns an error for HTML games — use `server::start_html_server` instead. +pub fn spawn_game_process( + game: &ValidatedGame, + args: &Args, + app_dirs: &AppDirs, +) -> anyhow::Result { + let child = build_command(game, args, app_dirs)? + .kill_on_drop(true) + .spawn() + .map_err(|e| map_spawn_error(e, game, args.runtime.as_ref()))?; + + Ok(ProcessHandle { + child: Arc::new(AsyncMutex::new(child)), + }) +} + +/// Kill a running process without blocking the caller for long. +pub async fn kill_process(handle: &ProcessHandle) { + let mut child = handle.child.lock().await; + let _ = child.start_kill(); +} + +/// Poll a running process until it exits, returning its exit code (if any). +/// +/// Uses `try_wait` in a loop so the child mutex is only held briefly, +/// leaving room for `kill_process` to acquire it. +pub async fn wait_for_process(handle: ProcessHandle) -> anyhow::Result> { + loop { + { + let mut child = handle.child.lock().await; + if let Some(status) = child.try_wait()? { + return Ok(status.code()); + } + } + tokio::time::sleep(std::time::Duration::from_millis(200)).await; + } +} diff --git a/bdgm/bdgm-play/src/core/mod.rs b/bdgm/bdgm-play/src/core/mod.rs new file mode 100644 index 0000000..6e008c2 --- /dev/null +++ b/bdgm/bdgm-play/src/core/mod.rs @@ -0,0 +1,42 @@ +use std::{fs::File, io::Read, process::ExitStatus, str::FromStr}; + +use bdgm::game::{Game, ValidatedGame}; +use platform_dirs::AppDirs; + +use crate::{ + cli::args::Args, + core::{dirs::try_get_manifest_path, error::AppError, install::install, launch::run_game}, +}; + +pub mod dirs; +pub mod dump; +pub mod error; +pub mod fs; +pub mod image; +pub mod install; +pub mod launch; +pub mod server; + +pub fn read_manifest(args: &Args) -> anyhow::Result { + let path = try_get_manifest_path(args)?; + let mut manifest = File::open(path)?; + let mut contents = String::new(); + manifest.read_to_string(&mut contents)?; + Ok(contents) +} + +pub async fn run_sanitized(args: Args, verbose: bool) -> anyhow::Result { + let app_dirs = AppDirs::new(Some("bdgm-play"), true).ok_or(AppError::NoAppDirs)?; + let manifest = read_manifest(&args)?; + + let game = Game::from_str(&manifest)?; + let game = ValidatedGame::validate(game)?; + + println!("Found: {} version {}", game.name(), game.version()); + install(&game, &app_dirs, &args)?; + + println!("Launching..."); + let status = run_game(&game, &args, &app_dirs, verbose).await?; + + Ok(status) +} diff --git a/bdgm/bdgm-play/src/server.rs b/bdgm/bdgm-play/src/core/server.rs similarity index 71% rename from bdgm/bdgm-play/src/server.rs rename to bdgm/bdgm-play/src/core/server.rs index 9453ad0..16a2248 100644 --- a/bdgm/bdgm-play/src/server.rs +++ b/bdgm/bdgm-play/src/core/server.rs @@ -1,7 +1,7 @@ use std::{ fs::{self, File}, io::{Read, Write}, - path::PathBuf, + path::{Path, PathBuf}, }; use anyhow::{Context, Result}; @@ -13,7 +13,7 @@ use platform_dirs::AppDirs; use tokio::net::TcpListener; use tower_http::services::ServeDir; -use crate::{ +use crate::core::{ error::AppError, fs::{acquire_lock, get_file, get_part_file, truncate}, }; @@ -37,9 +37,9 @@ pub async fn serve(listener: TcpListener, directory: &PathBuf) -> Result<()> { Ok(()) } -const PORTLIST_FILE_NAME: &'static str = "ports.json"; +const PORTLIST_FILE_NAME: &str = "ports.json"; -pub fn get_portlist_file_path(data_dir: &PathBuf) -> PathBuf { +pub fn get_portlist_file_path(data_dir: &Path) -> PathBuf { data_dir.join(PORTLIST_FILE_NAME) } @@ -81,12 +81,24 @@ pub fn save_ports(ports: BiMap, lock_file: File, data_dir: &PathBuf Ok(()) } -pub async fn play_html_game( +pub struct HtmlServerHandle { + pub addr: std::net::SocketAddr, + pub url: String, + pub join: tokio::task::JoinHandle>, + pub abort: tokio::task::AbortHandle, +} + +/// Start an HTML game server without blocking, returning a handle that can +/// be aborted to free the port. +/// +/// Killable primitive for the GUI modal (abort the handle on Stop). +/// The CLI path just awaits via `play_html_game` (used by `launch::run_game`). +pub async fn start_html_server( game: &ValidatedGame, - install_dir: &PathBuf, + install_dir: &Path, app_dirs: &AppDirs, verbose: bool, -) -> anyhow::Result<()> { +) -> anyhow::Result { let lock = acquire_lock(&get_portlist_file_path(&app_dirs.data_dir), true, verbose)?; let mut file = get_file(&get_portlist_file_path(&app_dirs.data_dir))?; let mut ports = load_ports(&mut file)?; @@ -103,7 +115,7 @@ pub async fn play_html_game( let mut port = listener.local_addr()?.port(); let mut tries = 0; - while ports.get_by_right(&&port).is_some() { + while ports.get_by_right(&port).is_some() { listener = create_listener(None).await?; port = listener.local_addr()?.port(); @@ -124,7 +136,7 @@ pub async fn play_html_game( }; let executable = game.executable().to_string_lossy(); - let encoded = utf8_percent_encode(&executable, &ENCODE_SET); + let encoded = utf8_percent_encode(&executable, ENCODE_SET); let address = format!("http://{}/{}", listener.local_addr()?, encoded); if verbose { @@ -135,7 +147,33 @@ pub async fn play_html_game( if verbose { println!("Running server, press Ctrl + C to stop."); } - serve(listener, install_dir).await?; + let addr = listener.local_addr()?; + let url = address; + let dir = install_dir.to_path_buf(); + let join = tokio::spawn(async move { serve(listener, &dir).await }); + let abort = join.abort_handle(); + + Ok(HtmlServerHandle { + addr, + url, + join, + abort, + }) +} + +/// Start an HTML game and await its server future until it exits. +/// +/// CLI convenience wrapper over `start_html_server`: start + await. +/// Aborting the returned handle stops the server so the same persisted +/// port can be rebound on the next launch. +pub async fn play_html_game( + game: &ValidatedGame, + install_dir: &Path, + app_dirs: &AppDirs, + verbose: bool, +) -> anyhow::Result<()> { + let handle = start_html_server(game, install_dir, app_dirs, verbose).await?; + handle.join.await??; Ok(()) } diff --git a/bdgm/bdgm-play/src/gui/app.rs b/bdgm/bdgm-play/src/gui/app.rs new file mode 100644 index 0000000..ad36d17 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/app.rs @@ -0,0 +1,35 @@ +use iced::{ + Theme, + window::{self, icon}, +}; + +use crate::cli::args::Args; + +use super::{state::AppState, update::update, view::view}; + +pub fn run_gui(args: Args) -> iced::Result { + let initial_runtime = args.runtime; + iced::application( + move || AppState { + initial_runtime: initial_runtime.clone(), + ..AppState::default() + }, + update, + view, + ) + .theme(|_: &AppState| Theme::CatppuccinMocha) + .title("BDGM Player") + .window(window::Settings { + icon: icon::from_file_data(include_bytes!("../../../../logo.png"), None).ok(), + size: iced::Size { + width: 700.0, + height: 500.0, + }, + min_size: Some(iced::Size { + width: 400.0, + height: 300.0, + }), + ..Default::default() + }) + .run() +} diff --git a/bdgm/bdgm-play/src/gui/args_resolve.rs b/bdgm/bdgm-play/src/gui/args_resolve.rs new file mode 100644 index 0000000..98b79eb --- /dev/null +++ b/bdgm/bdgm-play/src/gui/args_resolve.rs @@ -0,0 +1,25 @@ +use std::path::PathBuf; + +use crate::cli::args::Args; + +#[allow(unused)] +pub(crate) fn resolve_mounted_disc(args: &mut Args, path: PathBuf) { + args.location = Some(path); + args.image = false; + args.set_raw_disc(false); +} + +#[allow(unused)] +pub(crate) fn resolve_raw_disc(args: &mut Args, drive_letter: char) { + let path = PathBuf::from(format!("\\\\.\\{drive_letter}:")); + + args.location = Some(path); + args.set_raw_disc(true); + args.image = false; +} + +pub(crate) fn resolve_image(args: &mut Args, path: PathBuf) { + args.location = Some(path); + args.image = true; + args.set_raw_disc(false); +} diff --git a/bdgm/bdgm-play/src/gui/console.rs b/bdgm/bdgm-play/src/gui/console.rs new file mode 100644 index 0000000..f487af1 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/console.rs @@ -0,0 +1,57 @@ +//! Windows console handling for GUI launches. +//! +//! The `bdgm-play` binary keeps the `console` subsystem so CLI usage +//! (`bdgm-play `, `--help`, errors) always has somewhere to print. +//! That means Windows also creates a console window for GUI launches from +//! Explorer / shortcuts / the Start menu, which is undesirable. +//! +//! [`hide_console_if_launched_without_shell`] hides that window, but only +//! when the process owns the console alone (i.e. it was *not* started from an +//! existing shell such as `cmd`, PowerShell, or Windows Terminal, where the +//! console is shared and must be kept for log output). +//! +//! The console is hidden with `ShowWindow(SW_HIDE)` rather than detached with +//! `FreeConsole`: detaching destroys the console while our stdin/stdout/stderr +//! handles still point at it, so later child-game spawns with inherited stdio +//! fail with OS error 50 (`ERROR_NOT_SUPPORTED`). Hiding keeps the console +//! attached (handles stay valid, games inherit the hidden console instead of +//! popping their own visible one) while making it invisible. + +/// Hide the console window if the GUI was launched outside of a shell. +/// +/// Returns `true` if the console was hidden, `false` otherwise +/// (non-Windows, no console attached, shared console, or API failure -- +/// in all of these cases keeping the console visible is the safe fallback). +#[cfg(windows)] +pub fn hide_console_if_launched_without_shell() -> bool { + use windows_sys::Win32::System::Console::{GetConsoleProcessList, GetConsoleWindow}; + use windows_sys::Win32::UI::WindowsAndMessaging::{SW_HIDE, ShowWindow}; + + // SAFETY: All called functions take no borrowed state; the buffer passed + // to `GetConsoleProcessList` is a valid local array. + unsafe { + let hwnd = GetConsoleWindow(); + if hwnd.is_null() { + // No Win32 console attached (e.g. mintty/MSYS2, GUI parent). + return false; + } + + let mut pids = [0u32; 4]; + let count = GetConsoleProcessList(pids.as_mut_ptr(), pids.len() as u32); + if count != 1 { + // 0 = error (keep console as fail-safe); >= 2 (or more than the + // buffer holds) = console shared with a shell, keep it visible. + return false; + } + + // Sole owner, i.e. launched from Explorer/shortcut: hide the window + // while staying attached so std handles remain valid. + ShowWindow(hwnd, SW_HIDE) != 0 + } +} + +/// Non-Windows stub: there is no Win32 console to hide. +#[cfg(not(windows))] +pub fn hide_console_if_launched_without_shell() -> bool { + false +} diff --git a/bdgm/bdgm-play/src/gui/dialogs.rs b/bdgm/bdgm-play/src/gui/dialogs.rs new file mode 100644 index 0000000..df61931 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/dialogs.rs @@ -0,0 +1,82 @@ +use std::path::PathBuf; + +use iced::Task; +use rfd::{AsyncFileDialog, FileHandle}; + +use super::message::Message; + +pub(crate) fn gen_dialog() -> AsyncFileDialog { + AsyncFileDialog::new().set_directory("~") +} + +pub(crate) fn extract_path(file: Option) -> Option { + file.map(|f| f.path().to_path_buf()) +} + +#[cfg(windows)] +pub(crate) fn list_candidate_drives() -> Vec { + use windows_sys::Win32::Storage::FileSystem::{GetDriveTypeW, GetLogicalDrives}; + + // windows-sys does not export DRIVE_* constants, so define locally. + // Values from Win32 fileapi.h: 0 UNKNOWN, 1 NO_ROOT, 2 REMOVABLE, + // 3 FIXED, 4 REMOTE, 5 CDROM, 6 RAMDISK. + const DRIVE_CDROM: u32 = 5; + + // SAFETY: GetLogicalDrives takes no args and returns a bitmask. + let mask = unsafe { GetLogicalDrives() }; + if mask == 0 { + return Vec::new(); + } + + let mut all = Vec::new(); + let mut cdrom = Vec::new(); + for i in 0..26u32 { + if (mask & (1 << i)) == 0 { + continue; + } + let letter = (b'A' + i as u8) as char; + // NUL-terminated "X:\" UTF-16 for GetDriveTypeW. + let path: [u16; 4] = [letter as u16, b':' as u16, b'\\' as u16, 0]; + // SAFETY: path is a valid NUL-terminated UTF-16 root path. + let drive_type = unsafe { GetDriveTypeW(path.as_ptr()) }; + all.push(letter); + if drive_type == DRIVE_CDROM { + cdrom.push(letter); + } + } + if cdrom.is_empty() { all } else { cdrom } +} + +#[cfg(unix)] +pub(crate) fn open_disc_folder() -> Task { + Task::perform( + async { + let res = gen_dialog() + .set_title("Select mounted BDGM disc") + .pick_folder() + .await; + extract_path(res) + }, + |path| match path { + Some(path) => Message::OpenDiscMounted(path), + None => Message::None, + }, + ) +} + +pub(crate) fn open_image_file() -> Task { + Task::perform( + async { + let res = gen_dialog() + .set_title("Select BDGM image") + .add_filter("BDGM Image File", &["bin", "udf", "iso"]) + .pick_file() + .await; + extract_path(res) + }, + |path| match path { + Some(path) => Message::OpenImage(path), + None => Message::None, + }, + ) +} diff --git a/bdgm/bdgm-play/src/gui/message.rs b/bdgm/bdgm-play/src/gui/message.rs new file mode 100644 index 0000000..e0cd0e6 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/message.rs @@ -0,0 +1,24 @@ +use std::path::PathBuf; + +use super::state::GameInfo; + +#[derive(Debug, Clone)] +pub(crate) enum Message { + #[cfg(windows)] + OpenDrivePicker, + #[cfg(unix)] + OpenDiscDirectory, + OpenImageFile, + #[cfg(windows)] + OpenDiscRaw(char), + #[cfg(unix)] + OpenDiscMounted(PathBuf), + OpenImage(PathBuf), + #[cfg(windows)] + DrivePickerClosed, + DumpProgress(u64, u64), + GameStarted(Result), + GameExited(Result, String>), + StopGame, + None, +} diff --git a/bdgm/bdgm-play/src/gui/mod.rs b/bdgm/bdgm-play/src/gui/mod.rs new file mode 100644 index 0000000..88227a2 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/mod.rs @@ -0,0 +1,10 @@ +pub mod app; +mod args_resolve; +pub mod console; +mod dialogs; +mod message; +mod session; +mod state; +mod tasks; +pub(crate) mod update; +pub(crate) mod view; diff --git a/bdgm/bdgm-play/src/gui/session.rs b/bdgm/bdgm-play/src/gui/session.rs new file mode 100644 index 0000000..0c44148 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/session.rs @@ -0,0 +1,45 @@ +use std::sync::{Arc, Mutex}; + +use iced::Task; + +use crate::cli::args::Args; + +use super::{ + message::Message, + state::{AppState, Slot, StartedSession}, + tasks::start_game_stream, +}; + +pub(crate) fn is_busy(state: &AppState) -> bool { + matches!( + state.phase, + super::state::Phase::Starting | super::state::Phase::Playing + ) +} + +/// Shared busy guard: reports "already running" and returns `true` when the +/// caller should bail out with `Task::none()`. +pub(crate) fn ensure_not_busy(state: &mut AppState) -> bool { + if is_busy(state) { + state.status = String::from("A game is already running — stop it first."); + true + } else { + false + } +} + +pub(crate) fn begin_launch(state: &mut AppState, args: Args) -> Task { + if ensure_not_busy(state) { + return Task::none(); + } + let slot: Slot = Arc::new(Mutex::new(None)); + state.starting_slot = Some(Arc::clone(&slot)); + state.phase = super::state::Phase::Starting; + state.status = String::from("Starting game..."); + state.dump_progress = None; + Task::stream(start_game_stream(args, slot)) +} + +pub(crate) fn take_starting_session(state: &mut AppState) -> Option { + state.starting_slot.take()?.lock().ok()?.take() +} diff --git a/bdgm/bdgm-play/src/gui/state.rs b/bdgm/bdgm-play/src/gui/state.rs new file mode 100644 index 0000000..df44d4c --- /dev/null +++ b/bdgm/bdgm-play/src/gui/state.rs @@ -0,0 +1,136 @@ +use std::{ + path::PathBuf, + sync::{Arc, Mutex}, +}; + +use bdgm::game::ValidatedGame; +use tempfile::TempDir; + +// --------------------------------------------------------------------------- +// GAME INFO GROUNDWORK +// +// `GameInfo` is the display model for the running-game modal. It is built +// once at launch from `ValidatedGame` (+ the HTML server URL when relevant) +// and stored in `AppState::playing_info`. Extend this struct (e.g. cover art, +// description, playtime) to show more in the modal without touching the +// launch/kill plumbing. +// --------------------------------------------------------------------------- + +#[derive(Debug, Clone, Default)] +// Unread fields are display-model groundwork for extending the modal. +#[allow(dead_code)] +pub(crate) struct GameInfo { + pub(crate) name: String, + pub(crate) id: String, + pub(crate) version: String, + pub(crate) executable: String, + pub(crate) runtime: String, + pub(crate) runtime_version: Option, + /// Set for HTML games (server URL opened in the browser). + pub(crate) url: Option, +} + +impl From<&ValidatedGame> for GameInfo { + fn from(game: &ValidatedGame) -> Self { + Self { + name: game.name().to_owned(), + id: game.id().to_owned(), + version: game.version().to_owned(), + executable: game.executable().to_string_lossy().into_owned(), + runtime: game.runtime().to_string(), + runtime_version: game.runtime_version().map(|s| s.to_owned()), + url: None, + } + } +} + +#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)] +pub(crate) enum Phase { + #[default] + Idle, + Starting, + Playing, +} + +// Killable handle for whatever is running behind the modal. +#[derive(Clone)] +pub(crate) enum PlayHandle { + Process(crate::core::launch::ProcessHandle), + Server { abort: tokio::task::AbortHandle }, +} + +impl std::fmt::Debug for PlayHandle { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + Self::Process(_) => f.write_str("Process(..)"), + Self::Server { .. } => f.write_str("Server(..)"), + } + } +} + +// Session created by the background start task. Moved into `AppState` on +// `GameStarted(Ok)` via the slot below — never travels inside `Message` +// (which must stay `Clone`), so it can hold `JoinHandle` + `TempDir`. +pub(crate) struct StartedSession { + pub(crate) handle: StartedHandle, + pub(crate) tempdir: Option, + pub(crate) info: GameInfo, +} + +pub(crate) enum StartedHandle { + Process(crate::core::launch::ProcessHandle), + Server { + join: tokio::task::JoinHandle>, + abort: tokio::task::AbortHandle, + }, +} + +pub(crate) type Slot = Arc>>; + +pub(crate) struct AppState { + #[cfg(windows)] + pub(crate) show_drive_picker: bool, + #[cfg(windows)] + pub(crate) drives: Vec, + /// Runtime override from CLI `--runtime`, preserved across game selection. + pub(crate) initial_runtime: Option, + pub(crate) phase: Phase, + pub(crate) status: String, + /// Raw-disc dump progress as `(sectors_done, sectors_total)`. + /// `Some` while dumping on Windows; `None` otherwise. + pub(crate) dump_progress: Option<(u64, u64)>, + pub(crate) starting_slot: Option, + pub(crate) playing_info: Option, + pub(crate) playing_handle: Option, + pub(crate) playing_tempdir: Option, +} + +impl Default for AppState { + fn default() -> Self { + Self { + #[cfg(windows)] + show_drive_picker: false, + #[cfg(windows)] + drives: Vec::new(), + initial_runtime: None, + phase: Phase::Idle, + status: String::from(""), + dump_progress: None, + starting_slot: None, + playing_info: None, + playing_handle: None, + playing_tempdir: None, + } + } +} + +impl std::fmt::Debug for AppState { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.debug_struct("AppState") + .field("phase", &self.phase) + .field("status", &self.status) + .field("playing_info", &self.playing_info) + .field("playing_handle", &self.playing_handle) + .finish_non_exhaustive() + } +} diff --git a/bdgm/bdgm-play/src/gui/tasks.rs b/bdgm/bdgm-play/src/gui/tasks.rs new file mode 100644 index 0000000..baa5b05 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/tasks.rs @@ -0,0 +1,172 @@ +use std::str::FromStr; + +use bdgm::game::{Game, ValidatedGame}; +use platform_dirs::AppDirs; +use tempfile::TempDir; + +use crate::{ + cli::args::Args, + core::{ + dirs::GameDirs, + image::resolve_image_args_with_progress, + install::install, + launch::{kill_process, spawn_game_process, wait_for_process}, + read_manifest, + server::start_html_server, + }, +}; + +use super::{ + message::Message, + state::{GameInfo, Slot, StartedHandle, StartedSession}, +}; + +// Synchronous preparation: resolve image -> manifest -> validate -> +// install. Runs inside `spawn_blocking` so the UI stays responsive while +// a raw disc is being dumped. Reports `(sectors_done, sectors_total)` via +// `on_progress` (only the Windows raw-disc path emits progress). +struct Prepared { + resolved: Args, + tempdir: Option, + game: ValidatedGame, + app_dirs: AppDirs, +} + +fn prepare_blocking( + args: Args, + on_progress: impl FnMut(u64, u64) + Send, +) -> anyhow::Result { + let (resolved, tempdir) = resolve_image_args_with_progress(args, on_progress)?; + let manifest = read_manifest(&resolved)?; + let game = Game::from_str(&manifest)?; + let game = ValidatedGame::validate(game)?; + + let app_dirs = + AppDirs::new(Some("bdgm-play"), true).ok_or_else(|| anyhow::anyhow!("NoAppDirs"))?; + // NOTE: runs on a blocking thread; large installs will not freeze the UI, + // but install itself still has no progress reporting. + install(&game, &app_dirs, &resolved)?; + + Ok(Prepared { + resolved, + tempdir, + game, + app_dirs, + }) +} + +fn store_session( + slot: &Slot, + handle: StartedHandle, + tempdir: Option, + info: GameInfo, +) -> anyhow::Result { + slot.lock() + .map_err(|_| anyhow::anyhow!("starting slot poisoned"))? + .replace(StartedSession { + handle, + tempdir, + info: info.clone(), + }); + + Ok(info) +} + +// Background start as a stream: yields `DumpProgress` while a raw disc is +// being dumped, then a single terminal `GameStarted`. The blocking +// resolve/install phase runs in `spawn_blocking` with progress bridged over +// a tokio unbounded channel; the async HTML-server spawn runs afterwards. +pub(crate) fn start_game_stream( + args: Args, + slot: Slot, +) -> impl iced::futures::Stream + Send + 'static { + iced::stream::channel( + 100, + move |mut output: iced::futures::channel::mpsc::Sender| async move { + use iced::futures::SinkExt; + + let (tx, mut rx) = tokio::sync::mpsc::unbounded_channel::<(u64, u64)>(); + + let blocking = tokio::task::spawn_blocking(move || { + prepare_blocking(args, |done, total| { + let _ = tx.send((done, total)); + }) + }); + + // Forward dump progress concurrently so the bar moves while the + // blocking thread is still copying sectors. + let mut forward_output = output.clone(); + let forwarder = tokio::spawn(async move { + while let Some((done, total)) = rx.recv().await { + let _ = forward_output + .send(Message::DumpProgress(done, total)) + .await; + } + }); + + let prepared: anyhow::Result = match blocking.await { + Ok(result) => result, + Err(join_err) => Err(anyhow::anyhow!("background task failed: {join_err}")), + }; + // `tx` is dropped with the blocking closure, so the forwarder drains + // and exits here before we emit the terminal message. + let _ = forwarder.await; + + let result: Result = match prepared { + Err(e) => Err(format!("{e:#}")), + Ok(prep) => finish_async(prep, &slot).await, + }; + + let _ = output.send(Message::GameStarted(result)).await; + }, + ) +} + +async fn finish_async(prep: Prepared, slot: &Slot) -> Result { + let mut info = GameInfo::from(&prep.game); + let handle_result: anyhow::Result = match prep.game.runtime() { + bdgm::runtime::Runtime::HTML => { + let game_dirs = GameDirs::from(&prep.game, &prep.app_dirs); + match start_html_server(&prep.game, &game_dirs.install, &prep.app_dirs, false).await { + Ok(server) => { + info.url = Some(server.url.clone()); + Ok(StartedHandle::Server { + join: server.join, + abort: server.abort, + }) + } + Err(e) => Err(e), + } + } + _ => match spawn_game_process(&prep.game, &prep.resolved, &prep.app_dirs) { + Ok(proc) => Ok(StartedHandle::Process(proc)), + Err(e) => Err(e), + }, + }; + + match handle_result { + Ok(handle) => store_session(slot, handle, prep.tempdir, info).map_err(|e| format!("{e:#}")), + Err(e) => Err(format!("{e:#}")), + } +} + +pub(crate) async fn wait_process_task( + handle: crate::core::launch::ProcessHandle, +) -> Result, String> { + wait_for_process(handle).await.map_err(|e| format!("{e:#}")) +} + +pub(crate) async fn wait_server_task( + join: tokio::task::JoinHandle>, +) -> Result, String> { + match join.await { + Ok(Ok(())) => Ok(None), + Ok(Err(e)) => Err(format!("Server crashed: {e:#}")), + Err(join_err) if join_err.is_cancelled() => Ok(None), + Err(join_err) => Err(format!("Server task failed: {join_err}")), + } +} + +pub(crate) async fn kill_process_task(handle: crate::core::launch::ProcessHandle) { + kill_process(&handle).await; +} diff --git a/bdgm/bdgm-play/src/gui/update/disc.rs b/bdgm/bdgm-play/src/gui/update/disc.rs new file mode 100644 index 0000000..6d3c4f3 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/update/disc.rs @@ -0,0 +1,55 @@ +#[cfg(unix)] +use std::path::PathBuf; + +use iced::Task; + +use crate::cli::args::Args; + +#[cfg(unix)] +use super::super::{args_resolve::resolve_mounted_disc, dialogs::open_disc_folder}; +#[cfg(windows)] +use super::super::{args_resolve::resolve_raw_disc, dialogs::list_candidate_drives}; +use super::super::{ + message::Message, + session::{begin_launch, ensure_not_busy}, + state::AppState, +}; + +#[cfg(windows)] +pub(super) fn handle_open_drive_picker(state: &mut AppState) -> Task { + if ensure_not_busy(state) { + return Task::none(); + } + state.drives = list_candidate_drives(); + state.show_drive_picker = true; + Task::none() +} + +#[cfg(windows)] +pub(super) fn handle_open_disc_raw(state: &mut AppState, letter: char) -> Task { + state.show_drive_picker = false; + let mut args = Args::new_imageless(None, state.initial_runtime.clone()); + resolve_raw_disc(&mut args, letter); + begin_launch(state, args) +} + +#[cfg(windows)] +pub(super) fn handle_drive_picker_closed(state: &mut AppState) -> Task { + state.show_drive_picker = false; + Task::none() +} + +#[cfg(unix)] +pub(super) fn handle_open_disc_mounted(state: &mut AppState, path: PathBuf) -> Task { + let mut args = Args::new_imageless(None, state.initial_runtime.clone()); + resolve_mounted_disc(&mut args, path); + begin_launch(state, args) +} + +#[cfg(unix)] +pub(super) fn handle_open_disc_directory(state: &mut AppState) -> Task { + if ensure_not_busy(state) { + return Task::none(); + } + open_disc_folder() +} diff --git a/bdgm/bdgm-play/src/gui/update/exited.rs b/bdgm/bdgm-play/src/gui/update/exited.rs new file mode 100644 index 0000000..154b039 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/update/exited.rs @@ -0,0 +1,44 @@ +use iced::Task; + +use super::super::{ + message::Message, + state::{AppState, Phase}, +}; + +pub(super) fn handle_game_exited( + state: &mut AppState, + result: Result, String>, +) -> Task { + // Natural exit or server crash: auto-close the modal by leaving + // `Playing`. Dropping `playing_tempdir` cleans the extract dir; + // the port was already freed because the server task ended. + reset_playing_state(state); + match result { + Ok(code) => handle_game_exited_ok(state, code), + Err(err) => handle_game_exited_err(state, err), + } + Task::none() +} + +fn reset_playing_state(state: &mut AppState) { + state.playing_handle = None; + state.playing_tempdir = None; + state.starting_slot = None; + state.phase = Phase::Idle; +} + +fn handle_game_exited_ok(state: &mut AppState, code: Option) { + let name = state + .playing_info + .as_ref() + .map(|i| i.name.clone()) + .unwrap_or_else(|| String::from("Game")); + state.status = match code { + Some(0) | None => format!("{name} exited."), + Some(c) => format!("{name} exited with code {c}."), + }; +} + +fn handle_game_exited_err(state: &mut AppState, err: String) { + state.status = format!("Game ended: {err}"); +} diff --git a/bdgm/bdgm-play/src/gui/update/image.rs b/bdgm/bdgm-play/src/gui/update/image.rs new file mode 100644 index 0000000..50d7cd8 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/update/image.rs @@ -0,0 +1,26 @@ +use std::path::PathBuf; + +use iced::Task; + +use crate::cli::args::Args; + +use super::super::{ + args_resolve::resolve_image, + dialogs::open_image_file, + message::Message, + session::{begin_launch, ensure_not_busy}, + state::AppState, +}; + +pub(super) fn handle_open_image(state: &mut AppState, path: PathBuf) -> Task { + let mut args = Args::new_imageless(None, state.initial_runtime.clone()); + resolve_image(&mut args, path); + begin_launch(state, args) +} + +pub(super) fn handle_open_image_file(state: &mut AppState) -> Task { + if ensure_not_busy(state) { + return Task::none(); + } + open_image_file() +} diff --git a/bdgm/bdgm-play/src/gui/update/mod.rs b/bdgm/bdgm-play/src/gui/update/mod.rs new file mode 100644 index 0000000..09ff0ca --- /dev/null +++ b/bdgm/bdgm-play/src/gui/update/mod.rs @@ -0,0 +1,32 @@ +use iced::Task; + +use crate::gui::{message::Message, state::AppState}; + +mod disc; +mod exited; +mod image; +mod progress; +mod started; +mod stop; + +pub(crate) fn update(state: &mut AppState, message: Message) -> Task { + match message { + #[cfg(windows)] + Message::OpenDrivePicker => disc::handle_open_drive_picker(state), + #[cfg(windows)] + Message::OpenDiscRaw(letter) => disc::handle_open_disc_raw(state, letter), + #[cfg(windows)] + Message::DrivePickerClosed => disc::handle_drive_picker_closed(state), + #[cfg(unix)] + Message::OpenDiscMounted(path) => disc::handle_open_disc_mounted(state, path), + Message::OpenImage(path) => image::handle_open_image(state, path), + Message::DumpProgress(done, total) => progress::handle_dump_progress(state, done, total), + #[cfg(unix)] + Message::OpenDiscDirectory => disc::handle_open_disc_directory(state), + Message::OpenImageFile => image::handle_open_image_file(state), + Message::GameStarted(result) => started::handle_game_started(state, result), + Message::GameExited(result) => exited::handle_game_exited(state, result), + Message::StopGame => stop::handle_stop_game(state), + Message::None => Task::none(), + } +} diff --git a/bdgm/bdgm-play/src/gui/update/progress.rs b/bdgm/bdgm-play/src/gui/update/progress.rs new file mode 100644 index 0000000..58c15c5 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/update/progress.rs @@ -0,0 +1,30 @@ +use iced::Task; + +use super::super::{message::Message, state::AppState}; + +#[cfg(windows)] +const SECTOR_SIZE: u64 = 2048; + +pub(super) fn handle_dump_progress(state: &mut AppState, done: u64, total: u64) -> Task { + // Ignore stale progress (e.g. after the game already started/failed). + if !matches!(state.phase, super::super::state::Phase::Starting) { + return Task::none(); + } + state.dump_progress = Some((done, total)); + #[cfg(windows)] + { + let mib_done = done as f64 * SECTOR_SIZE as f64 / 1024.0 / 1024.0; + let mib_total = total as f64 * SECTOR_SIZE as f64 / 1024.0 / 1024.0; + let pct = if total > 0 { + done as f64 * 100.0 / total as f64 + } else { + 0.0 + }; + state.status = format!("Reading disc: {mib_done:.1}/{mib_total:.1} MiB ({pct:.1}%)"); + } + #[cfg(not(windows))] + { + state.status = format!("Reading disc: {done}/{total} sectors"); + } + Task::none() +} diff --git a/bdgm/bdgm-play/src/gui/update/started.rs b/bdgm/bdgm-play/src/gui/update/started.rs new file mode 100644 index 0000000..f0985b6 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/update/started.rs @@ -0,0 +1,67 @@ +use iced::Task; +use tempfile::TempDir; + +use super::super::{ + message::Message, + session::take_starting_session, + state::{AppState, GameInfo, Phase, PlayHandle, StartedHandle}, + tasks::{wait_process_task, wait_server_task}, +}; + +pub(super) fn handle_game_started( + state: &mut AppState, + result: Result, +) -> Task { + match result { + Ok(_) => handle_game_started_ok(state), + Err(err) => handle_game_started_err(state, err), + } +} + +fn handle_game_started_ok(state: &mut AppState) -> Task { + state.dump_progress = None; + let Some(session) = take_starting_session(state) else { + state.phase = Phase::Idle; + state.status = String::from("Game started but session was lost."); + return Task::none(); + }; + state.status = format!("Running: {}", session.info.name); + state.playing_info = Some(session.info.clone()); + match session.handle { + StartedHandle::Process(proc) => attach_process_session(state, proc, session.tempdir), + StartedHandle::Server { join, abort } => { + attach_server_session(state, join, abort, session.tempdir) + } + } +} + +fn handle_game_started_err(state: &mut AppState, err: String) -> Task { + state.dump_progress = None; + state.starting_slot = None; + state.phase = Phase::Idle; + state.status = format!("Failed to start: {err}"); + Task::none() +} + +fn attach_process_session( + state: &mut AppState, + proc: crate::core::launch::ProcessHandle, + tempdir: Option, +) -> Task { + state.playing_handle = Some(PlayHandle::Process(proc.clone())); + state.playing_tempdir = tempdir; + state.phase = Phase::Playing; + Task::perform(wait_process_task(proc), Message::GameExited) +} + +fn attach_server_session( + state: &mut AppState, + join: tokio::task::JoinHandle>, + abort: tokio::task::AbortHandle, + tempdir: Option, +) -> Task { + state.playing_handle = Some(PlayHandle::Server { abort }); + state.playing_tempdir = tempdir; + state.phase = Phase::Playing; + Task::perform(wait_server_task(join), Message::GameExited) +} diff --git a/bdgm/bdgm-play/src/gui/update/stop.rs b/bdgm/bdgm-play/src/gui/update/stop.rs new file mode 100644 index 0000000..02f1777 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/update/stop.rs @@ -0,0 +1,44 @@ +use iced::Task; + +use super::super::{ + message::Message, + state::{AppState, Phase, PlayHandle}, + tasks::kill_process_task, +}; + +pub(super) fn handle_stop_game(state: &mut AppState) -> Task { + // Modal closed by the user: kill whatever is running. The waiter + // task then reports `GameExited`, which auto-closes the modal + // and frees the port / temp dir. + match state.playing_handle.clone() { + Some(PlayHandle::Process(proc)) => handle_stop_process(state, proc), + Some(PlayHandle::Server { abort }) => handle_stop_server(state, abort), + None => handle_stop_idle(state), + } +} + +fn handle_stop_process( + state: &mut AppState, + proc: crate::core::launch::ProcessHandle, +) -> Task { + state.status = String::from("Stopping game..."); + Task::perform( + async move { + kill_process_task(proc).await; + }, + |_| Message::None, + ) +} + +fn handle_stop_server(state: &mut AppState, abort: tokio::task::AbortHandle) -> Task { + abort.abort(); + state.status = String::from("Stopping server..."); + Task::none() +} + +fn handle_stop_idle(state: &mut AppState) -> Task { + state.playing_tempdir = None; + state.phase = Phase::Idle; + state.status = String::from(""); + Task::none() +} diff --git a/bdgm/bdgm-play/src/gui/view/buttons.rs b/bdgm/bdgm-play/src/gui/view/buttons.rs new file mode 100644 index 0000000..410b982 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/view/buttons.rs @@ -0,0 +1,31 @@ +use iced::widget::{Button, button}; + +use crate::gui::message::Message; + +use super::components::centered_label; + +pub(super) fn open_disc_button(busy: bool) -> Button<'static, Message> { + button(centered_label("Open Disc")) + .width(150) + .height(50) + .on_press_maybe(if busy { + None + } else { + #[cfg(unix)] + let r = Some(Message::OpenDiscDirectory); + #[cfg(windows)] + let r = Some(Message::OpenDrivePicker); + r + }) +} + +pub(super) fn open_image_button(busy: bool) -> Button<'static, Message> { + button(centered_label("Open Image")) + .width(150) + .height(50) + .on_press_maybe(if busy { + None + } else { + Some(Message::OpenImageFile) + }) +} diff --git a/bdgm/bdgm-play/src/gui/view/components.rs b/bdgm/bdgm-play/src/gui/view/components.rs new file mode 100644 index 0000000..1a4dde4 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/view/components.rs @@ -0,0 +1,24 @@ +use iced::{ + Element, + Length::Fill, + font::{Font, Weight}, + widget::{container, text, text::Text}, +}; + +use crate::gui::message::Message; + +pub(super) const BUTTON_TEXT_SIZE: f32 = 20.0; + +pub(super) fn button_text<'a>(label: impl Into) -> Text<'a> { + text(label.into()).size(BUTTON_TEXT_SIZE).font(Font { + weight: Weight::Bold, + ..Font::DEFAULT + }) +} + +pub(super) fn centered_label<'a>(label: impl Into) -> Element<'a, Message> { + container(button_text(label)) + .center_x(Fill) + .center_y(Fill) + .into() +} diff --git a/bdgm/bdgm-play/src/gui/view/mod.rs b/bdgm/bdgm-play/src/gui/view/mod.rs new file mode 100644 index 0000000..2919e69 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/view/mod.rs @@ -0,0 +1,83 @@ +use iced::{ + Alignment, Element, Length, + widget::{ProgressBar, container, row, text}, +}; + +use super::{ + message::Message, + session::is_busy, + state::{AppState, Phase}, +}; + +mod buttons; +mod components; +mod modal; + +use buttons::{open_disc_button, open_image_button}; +use modal::game_modal; + +#[cfg(windows)] +use components::button_text; + +pub(crate) fn view(state: &AppState) -> Element<'_, Message> { + #[cfg(windows)] + if state.show_drive_picker { + return drive_picker_view(state); + } + + let busy = is_busy(state); + + let open_disc_button = open_disc_button(busy); + let open_image_button = open_image_button(busy); + + let mut main = iced::widget::column![row![open_disc_button, open_image_button].spacing(10),] + .spacing(10) + .padding(10) + .align_x(Alignment::Center); + + match state.phase { + Phase::Idle if state.status.is_empty() => {} + Phase::Idle => main = main.push(text(state.status.clone()).size(14)), + Phase::Starting => { + main = main.push(text(state.status.clone()).size(14)); + if let Some((done, total)) = state.dump_progress { + let fraction = if total > 0 { + (done as f32 / total as f32).clamp(0.0, 1.0) + } else { + 0.0 + }; + main = main.push(ProgressBar::new(0.0..=1.0, fraction).length(350)); + } + } + Phase::Playing => { + if let Some(info) = &state.playing_info { + main = main.push(game_modal(info)); + } + } + } + + container(main) + .center_x(Length::Fill) + .center_y(Length::Fill) + .into() +} + +#[cfg(windows)] +fn drive_picker_view(state: &AppState) -> Element<'_, Message> { + let mut col = iced::widget::column![text("Select disc drive:")] + .spacing(10) + .align_x(Alignment::Center); + for drive in &state.drives { + col = col.push( + iced::widget::button(button_text(format!("Drive {drive}:"))) + .on_press(Message::OpenDiscRaw(*drive)), + ); + } + col = + col.push(iced::widget::button(button_text("Cancel")).on_press(Message::DrivePickerClosed)); + container(col) + .padding(10) + .center_x(Length::Fill) + .center_y(Length::Fill) + .into() +} diff --git a/bdgm/bdgm-play/src/gui/view/modal.rs b/bdgm/bdgm-play/src/gui/view/modal.rs new file mode 100644 index 0000000..cb1ac43 --- /dev/null +++ b/bdgm/bdgm-play/src/gui/view/modal.rs @@ -0,0 +1,29 @@ +use iced::{ + Alignment, Element, + Length::Fill, + widget::{button, container, text}, +}; + +use crate::gui::{message::Message, state::GameInfo}; + +use super::components::button_text; + +// GAME INFO GROUNDWORK: extend this card (art, description, version history) +// — all data comes from `AppState::playing_info: Option`. +pub(super) fn game_modal<'a>(info: &'a GameInfo) -> Element<'a, Message> { + let mut card = iced::widget::column![ + text(format!("Running: {} version {}", info.name, info.version)).size(22), + text(format!("ID: {}", info.id)).size(14), + ] + .spacing(4) + .padding(16) + .align_x(Alignment::Center); + + if let Some(url) = &info.url { + card = card.push(text(format!("Serving at {url}")).size(14)); + } + + card = card.push(button(button_text("Stop")).on_press(Message::StopGame)); + + container(card).padding(8).width(Fill).center_x(Fill).into() +} diff --git a/bdgm/bdgm-play/src/launch.rs b/bdgm/bdgm-play/src/launch.rs deleted file mode 100644 index 34d6188..0000000 --- a/bdgm/bdgm-play/src/launch.rs +++ /dev/null @@ -1,107 +0,0 @@ -use std::{ - collections::HashMap, - process::{Command, ExitStatus}, -}; - -use bdgm::game::ValidatedGame; -use platform_dirs::AppDirs; - -use crate::{ - args::Args, - dirs::{GameDirs, get_app_dir_path}, - server::play_html_game, -}; - -pub fn get_envvars( - game: &ValidatedGame, - args: &Args, - app_dirs: &AppDirs, -) -> HashMap<&'static str, String> { - let game_dirs = GameDirs::from(game, app_dirs); - - let mut envvars = HashMap::new(); - envvars.insert("BDGM_DATA", game_dirs.data.to_string_lossy().into_owned()); - envvars.insert( - "XDG_DATA_DIRS", - game_dirs.data.to_string_lossy().into_owned(), - ); - envvars.insert("BDGM_CACHE", game_dirs.cache.to_string_lossy().into_owned()); - envvars.insert( - "BDGM_APP", - get_app_dir_path(args).to_string_lossy().into_owned(), - ); - envvars.insert("BDGM_DISC", args.location.to_string_lossy().into_owned()); - envvars.insert("BDGM_VERSION", game.bdgm_version().to_string()); - - envvars -} - -pub async fn launch_game( - game: &ValidatedGame, - args: &Args, - app_dirs: &AppDirs, - verbose: bool, -) -> anyhow::Result { - let envvars = get_envvars(&game, &args, &app_dirs); - let runtime = game.runtime(); - let game_dirs = GameDirs::from(&game, &app_dirs); - let runtime_path = args - .runtime - .as_ref() - .map(|x| x.to_string_lossy().to_string()); - - let status = match runtime { - bdgm::runtime::Runtime::Java => Command::new(runtime_path.as_deref().unwrap_or("java")) - .args(game.runtime_args()) - .arg("-jar") - .arg(game_dirs.install.join(game.executable())) - .args(game.args()) - .envs(envvars) - .current_dir(&game_dirs.install) - .status()?, - bdgm::runtime::Runtime::Dotnet => Command::new(runtime_path.as_deref().unwrap_or("dotnet")) - .args(game.runtime_args()) - .arg(game_dirs.install.join(game.executable())) - .args(game.args()) - .envs(envvars) - .current_dir(&game_dirs.install) - .status()?, - bdgm::runtime::Runtime::Python => Command::new(runtime_path.as_deref().unwrap_or("python")) - .args(game.runtime_args()) - .arg(game_dirs.install.join(game.executable())) - .args(game.args()) - .envs(envvars) - .current_dir(&game_dirs.install) - .status()?, - bdgm::runtime::Runtime::HTML => { - play_html_game(&game, &game_dirs.install, app_dirs, verbose).await?; - std::process::ExitStatus::default() - } - bdgm::runtime::Runtime::Windows => { - if cfg!(target_os = "windows") { - Command::new(game_dirs.install.join(game.executable())) - .args(game.args()) - .envs(envvars) - .current_dir(&game_dirs.install) - .status()? - } else { - Command::new(runtime_path.as_deref().unwrap_or("wine")) - .args(game.runtime_args()) - .arg(game_dirs.install.join(game.executable())) - .args(game.args()) - .envs(envvars) - .env("WINEPREFIX", game_dirs.root.join("wineprefix")) - .current_dir(&game_dirs.install) - .status()? - } - } - }; - if !status.success() { - if verbose { - eprintln!("Your game crashed: {status}"); - eprintln!("Setting a runtime with `--runtime /path/to/runtime` may fix your issue."); - } - } - - Ok(status) -} diff --git a/bdgm/bdgm-play/src/lib.rs b/bdgm/bdgm-play/src/lib.rs index c7e9966..b2b6a05 100644 --- a/bdgm/bdgm-play/src/lib.rs +++ b/bdgm/bdgm-play/src/lib.rs @@ -1,20 +1,3 @@ -use std::{fs::File, io::Read}; - -use crate::{args::Args, dirs::try_get_manifest_path}; -pub mod args; -pub mod dirs; -pub mod dump; -pub mod error; -pub mod fs; -pub mod image; -pub mod install; -pub mod launch; -pub mod server; - -pub fn read_manifest(args: &Args) -> anyhow::Result { - let path = try_get_manifest_path(args)?; - let mut manifest = File::open(path)?; - let mut contents = String::new(); - manifest.read_to_string(&mut contents)?; - Ok(contents) -} +pub mod cli; +pub mod core; +pub mod gui; diff --git a/bdgm/bdgm-play/src/main.rs b/bdgm/bdgm-play/src/main.rs index 06a9c2f..d2bd0a5 100644 --- a/bdgm/bdgm-play/src/main.rs +++ b/bdgm/bdgm-play/src/main.rs @@ -1,16 +1,78 @@ -use crate::app::run; +use bdgm_play::{ + cli::{app::run, args::Args}, + gui::app::run_gui, +}; +use clap::Parser; -mod app; +fn main() -> anyhow::Result<()> { + let mut args = Args::parse(); + args.runtime = match args.runtime.take() { + Some(path) + if path.components().count() == 1 + && matches!( + path.components().next(), + Some(std::path::Component::Normal(_)) + ) => + { + Some(path) + } + Some(p) => Some(std::path::absolute(p)?), + None => None, + }; -#[tokio::main] -async fn main() { - match run().await { - Ok(status) => { - if let Some(code) = status.code() { - std::process::exit(code); - } else if !status.success() { - // For example on SIGKILL + let status = match args.location { + Some(_) => match tokio::runtime::Builder::new_multi_thread() + .enable_all() + .build() + { + Ok(runtime) => runtime.block_on(run(args)).map(Some), + Err(e) => Err(e.into()), + }, + None => { + if args.is_raw_disc() { + eprintln!( + "--raw-disc is selected but no path is specified. Specify a path or remove the argument to launch GUI." + ); std::process::exit(1); + } else if args.image { + eprintln!( + "--image is selected but no path is specified. Specify a path or remove the argument to launch GUI." + ); + std::process::exit(1); + } else { + #[cfg(windows)] + let console_hidden = + bdgm_play::gui::console::hide_console_if_launched_without_shell(); + match run_gui(args) { + Ok(_) => Ok(None), + Err(e) => { + eprintln!("Error while running app: {e}"); + // The console is gone in Explorer launches, so surface + // the failure in a dialog instead of losing it. + #[cfg(windows)] + if console_hidden { + rfd::MessageDialog::new() + .set_title("bdgm-play error") + .set_description(format!("Error while running app: {e}")) + .set_level(rfd::MessageLevel::Error) + .show(); + } + std::process::exit(1); + } + } + } + } + }; + + match status { + Ok(status) => { + if let Some(status) = status { + if let Some(code) = status.code() { + std::process::exit(code); + } else if !status.success() { + // For example on SIGKILL + std::process::exit(1); + } } } Err(e) => { @@ -18,4 +80,6 @@ async fn main() { std::process::exit(1); } } + + Ok(()) } diff --git a/bdgm/bdgm/src/disc.rs b/bdgm/bdgm/src/disc.rs index 3a7fa42..3be939f 100644 --- a/bdgm/bdgm/src/disc.rs +++ b/bdgm/bdgm/src/disc.rs @@ -2,6 +2,7 @@ use std::{ fs, io::{self, Read}, path::{Path, PathBuf}, + str::FromStr, }; pub use hadris_udf::UdfRevision; diff --git a/bdgm/bdgm/src/error.rs b/bdgm/bdgm/src/error.rs index 8eb52b5..23eb039 100644 --- a/bdgm/bdgm/src/error.rs +++ b/bdgm/bdgm/src/error.rs @@ -105,7 +105,7 @@ impl BDGMErrors { /// Returns `Ok` if the set contains no errors, otherwise returns `Err(self)`. pub fn evaluate(self) -> Result<(), Self> { - if self.0.len() > 0 { Err(self) } else { Ok(()) } + if !self.0.is_empty() { Err(self) } else { Ok(()) } } } diff --git a/bdgm/bdgm/src/game.rs b/bdgm/bdgm/src/game.rs index 4edc5e8..fff344d 100644 --- a/bdgm/bdgm/src/game.rs +++ b/bdgm/bdgm/src/game.rs @@ -3,6 +3,7 @@ use serde::{Deserialize, Serialize}; use std::{ fmt::Write, path::{Path, PathBuf}, + str::FromStr, }; use crate::{ @@ -43,22 +44,23 @@ impl Game { runtime_args: Vec::new(), } } +} + +impl FromStr for Game { + type Err = anyhow::Error; /// Parses a `Game` from `DISC.BDGM` file contents. - pub fn from_str(str: &str) -> anyhow::Result { + fn from_str(s: &str) -> Result { let mut result = Game::new(); - let mut lines = str.lines(); + let mut lines = s.lines(); result.bdgm_version = match lines.next() { Some(header) => { let split: Vec<_> = header.split('/').collect(); - if split.len() != 2 || split.get(0).is_none_or(|x| *x != "BDGM") { + if split.len() != 2 || split.first().is_none_or(|x| *x != "BDGM") { return Err(Error::from(ParserError::InvalidHeader)); } - match split.get(1) { - Some(x) => Some(x.to_string()), - None => None, - } + split.get(1).map(|x| x.to_string()) } None => None, }; @@ -170,7 +172,7 @@ impl ValidatedGame { let args = game.args; let runtime = match game.runtime { Some(runtime_string) => { - let runtime = Runtime::from_str(&runtime_string); + let runtime = Runtime::from_name(&runtime_string); if runtime.is_none() { errors.add(BDGMError::RuntimeInvalid(runtime_string)); } @@ -226,8 +228,8 @@ impl ValidatedGame { } } - if let Some(runtime) = &runtime { - if *runtime != Runtime::Windows + if let Some(runtime) = &runtime + && *runtime != Runtime::Windows && *runtime != Runtime::HTML && runtime_version.is_none() { @@ -235,7 +237,6 @@ impl ValidatedGame { "runtime_version".to_string(), )); } - } let executable: Option = if !executable.is_empty() { if executable.contains('\\') { @@ -369,7 +370,7 @@ impl From for Game { #[cfg(test)] mod test { use std::io::Write; - use std::{fs::File, io::Read}; + use std::{fs::File, io::Read, str::FromStr}; use crate::game::ValidatedGame; use crate::{game::Game, runtime::Runtime}; diff --git a/bdgm/bdgm/src/runtime.rs b/bdgm/bdgm/src/runtime.rs index 93d18c8..415fd23 100644 --- a/bdgm/bdgm/src/runtime.rs +++ b/bdgm/bdgm/src/runtime.rs @@ -32,8 +32,8 @@ impl Display for Runtime { impl Runtime { /// Creates a `Runtime` from the value of the `runtime` field of `DISC.BDGM`. - pub fn from_str(str: &str) -> Option { - match str { + pub fn from_name(name: &str) -> Option { + match name { "java" => Some(Self::Java), "dotnet" => Some(Self::Dotnet), "python" => Some(Self::Python), @@ -43,6 +43,19 @@ impl Runtime { } } + /// Human-friendly display name for user-facing messages. + /// Note: `Windows` maps to `"Wine"` since the native Windows launch + /// cannot fail with a missing runtime binary. + pub fn display_name(&self) -> &'static str { + match self { + Self::Java => "Java", + Self::Dotnet => ".NET", + Self::Python => "Python", + Self::Windows => "Wine", + Self::HTML => "HTML", + } + } + /// Formats all runtimes as a comma-separated `String` of `DISC.BDGM` `runtime` field values. pub fn display_all() -> String { format!( diff --git a/bdgm/flake.lock b/bdgm/flake.lock new file mode 100644 index 0000000..1847731 --- /dev/null +++ b/bdgm/flake.lock @@ -0,0 +1,136 @@ +{ + "nodes": { + "fenix": { + "inputs": { + "nixpkgs": [ + "naersk", + "nixpkgs" + ], + "rust-analyzer-src": "rust-analyzer-src" + }, + "locked": { + "lastModified": 1752475459, + "narHash": "sha256-z6QEu4ZFuHiqdOPbYss4/Q8B0BFhacR8ts6jO/F/aOU=", + "owner": "nix-community", + "repo": "fenix", + "rev": "bf0d6f70f4c9a9cf8845f992105652173f4b617f", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "fenix", + "type": "github" + } + }, + "flake-utils": { + "inputs": { + "systems": "systems" + }, + "locked": { + "lastModified": 1731533236, + "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=", + "owner": "numtide", + "repo": "flake-utils", + "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b", + "type": "github" + }, + "original": { + "owner": "numtide", + "repo": "flake-utils", + "type": "github" + } + }, + "naersk": { + "inputs": { + "fenix": "fenix", + "nixpkgs": "nixpkgs" + }, + "locked": { + "lastModified": 1782220280, + "narHash": "sha256-thLTFbp9D5Qknmh8q/v4FRpLGphUSijT3E86cbLYTXo=", + "owner": "nix-community", + "repo": "naersk", + "rev": "9aa07bb0256d300219b30622d2454e85f7f3667e", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "naersk", + "type": "github" + } + }, + "nixpkgs": { + "locked": { + "lastModified": 1752077645, + "narHash": "sha256-HM791ZQtXV93xtCY+ZxG1REzhQenSQO020cu6rHtAPk=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "be9e214982e20b8310878ac2baa063a961c1bdf6", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1791260994, + "narHash": "sha256-Miqqk/ammqnTUxaoCyvtwoPeLbI1ksFyLxi/CazZpWY=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "151fa4e8ddfdd8dd25d945ad94ed54a13de9f6e4", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "flake-utils": "flake-utils", + "naersk": "naersk", + "nixpkgs": "nixpkgs_2" + } + }, + "rust-analyzer-src": { + "flake": false, + "locked": { + "lastModified": 1752428706, + "narHash": "sha256-EJcdxw3aXfP8Ex1Nm3s0awyH9egQvB2Gu+QEnJn2Sfg=", + "owner": "rust-lang", + "repo": "rust-analyzer", + "rev": "591e3b7624be97e4443ea7b5542c191311aa141d", + "type": "github" + }, + "original": { + "owner": "rust-lang", + "ref": "nightly", + "repo": "rust-analyzer", + "type": "github" + } + }, + "systems": { + "locked": { + "lastModified": 1681028828, + "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=", + "owner": "nix-systems", + "repo": "default", + "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e", + "type": "github" + }, + "original": { + "owner": "nix-systems", + "repo": "default", + "type": "github" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/bdgm/flake.nix b/bdgm/flake.nix new file mode 100644 index 0000000..a62744d --- /dev/null +++ b/bdgm/flake.nix @@ -0,0 +1,76 @@ +{ + description = "BDGM utils"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + flake-utils.url = "github:numtide/flake-utils"; + naersk.url = "github:nix-community/naersk"; + }; + + outputs = + { + self, + nixpkgs, + flake-utils, + naersk, + }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = import nixpkgs { inherit system; }; + naersk' = pkgs.callPackage naersk { }; + guiBuildInputs = with pkgs; [ + wayland + libxkbcommon + libGL + expat + fontconfig + freetype + openssl + libX11 + libXcursor + libXi + libXrandr + ]; + mkPackage = + name: bin-name: + naersk'.buildPackage { + src = ./.; + pname = name; + cargoBuildOptions = + x: + x + ++ [ + "-p" + name + ]; + nativeBuildInputs = with pkgs; [ pkg-config ]; + buildInputs = guiBuildInputs; + meta.mainProgram = bin-name; + }; + in + { + packages = { + play = mkPackage "bdgm-play" "bdgm-play"; + build = mkPackage "bdgm-build" "bdgm-build"; + default = self.packages.${system}.play; + }; + devShells.default = pkgs.mkShell { + nativeBuildInputs = with pkgs; [ + pkg-config + cargo + rustc + clippy + rustfmt + rust-analyzer + ]; + + buildInputs = guiBuildInputs; + + shellHook = '' + export LD_LIBRARY_PATH=${pkgs.lib.makeLibraryPath guiBuildInputs}''${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} + ''; + }; + } + ); +} diff --git a/bdgm/winapp.yaml b/bdgm/winapp.yaml new file mode 100644 index 0000000..6fc545c --- /dev/null +++ b/bdgm/winapp.yaml @@ -0,0 +1,13 @@ +packages: + - name: Microsoft.Windows.CppWinRT + version: 3.0.260818.1 + - name: Microsoft.WindowsAppSDK + version: 2.5.1 + - name: Microsoft.Windows.ImplementationLibrary + version: 1.0.260126.7 + - name: Microsoft.Windows.SDK.CPP + version: 10.0.28000.2705 + - name: Microsoft.Windows.SDK.CPP.x64 + version: 10.0.28000.2705 + - name: Microsoft.Windows.SDK.CPP.arm64 + version: 10.0.28000.2705 diff --git a/logo-slim.svg b/logo-slim.svg new file mode 100644 index 0000000..a7b3941 --- /dev/null +++ b/logo-slim.svg @@ -0,0 +1,43 @@ + + diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..f690984 Binary files /dev/null and b/logo.png differ diff --git a/logo.svg b/logo.svg new file mode 100644 index 0000000..39532f1 --- /dev/null +++ b/logo.svg @@ -0,0 +1,43 @@ + +