diff --git a/.gitignore b/.gitignore index 3178cf6..5750437 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ target # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +run-cargo-deny.sh diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..8568a0a --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,4526 @@ +# This file is automatically @generated by Cargo. +# 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 = "accesskit" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3d3b8f9bae46a948369bc4a03e815d4ed6d616bd00de4051133a5019dc31c5a" + +[[package]] +name = "accesskit_atspi_common" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c5dd55e6e94949498698daf4d48fb5659e824d7abec0d394089656ceaf99d4f" +dependencies = [ + "accesskit", + "accesskit_consumer", + "atspi-common", + "serde", + "thiserror 1.0.69", + "zvariant", +] + +[[package]] +name = "accesskit_consumer" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f47983a1084940ba9a39c077a8c63e55c619388be5476ac04c804cfbd1e63459" +dependencies = [ + "accesskit", + "hashbrown 0.15.5", + "immutable-chunkmap", +] + +[[package]] +name = "accesskit_macos" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7329821f3bd1101e03a7d2e03bd339e3ac0dc64c70b4c9f9ae1949e3ba8dece1" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.15.5", + "objc2 0.5.2", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "accesskit_unix" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcee751cc20d88678c33edaf9c07e8b693cd02819fe89053776f5313492273f5" +dependencies = [ + "accesskit", + "accesskit_atspi_common", + "async-channel", + "async-executor", + "async-task", + "atspi", + "futures-lite", + "futures-util", + "serde", + "zbus", +] + +[[package]] +name = "accesskit_windows" +version = "0.24.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24fcd5d23d70670992b823e735e859374d694a3d12bfd8dd32bd3bd8bedb5d81" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.15.5", + "paste", + "static_assertions", + "windows", + "windows-core", +] + +[[package]] +name = "accesskit_winit" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a6a48dad5530b6deb9fc7a52cc6c3bf72cdd9eb8157ac9d32d69f2427a5e879" +dependencies = [ + "accesskit", + "accesskit_macos", + "accesskit_unix", + "accesskit_windows", + "raw-window-handle", + "winit", +] + +[[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 = "android-activity" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef6978589202a00cd7e118380c448a08b6ed394c3a8df3a430d0898e3a42d046" +dependencies = [ + "android-properties", + "bitflags 2.11.0", + "cc", + "cesu8", + "jni 0.21.1", + "jni-sys 0.3.0", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys 0.6.0+11769913", + "num_enum", + "thiserror 1.0.69", +] + +[[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.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + +[[package]] +name = "anstream" +version = "0.6.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43d5b281e737544384e969a5ccad3f1cdd24b48086a0fc1b2a5262a26b8f4f4a" +dependencies = [ + "anstyle", + "anstyle-parse", + "anstyle-query", + "anstyle-wincon", + "colorchoice", + "is_terminal_polyfill", + "utf8parse", +] + +[[package]] +name = "anstyle" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78" + +[[package]] +name = "anstyle-parse" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7644824f0aa2c7b9384579234ef10eb7efb6a0deb83f9630a49594dd9c15c2" +dependencies = [ + "utf8parse", +] + +[[package]] +name = "anstyle-query" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "anstyle-wincon" +version = "3.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d" +dependencies = [ + "anstyle", + "once_cell_polyfill", + "windows-sys 0.61.2", +] + +[[package]] +name = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "arboard" +version = "3.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0348a1c054491f4bfe6ab86a7b6ab1e44e45d899005de92f58b3df180b36ddaf" +dependencies = [ + "clipboard-win", + "image", + "log", + "objc2 0.6.4", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "parking_lot", + "percent-encoding", + "windows-sys 0.60.2", + "x11rb", +] + +[[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.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" + +[[package]] +name = "as-raw-xcb-connection" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b" + +[[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-fs" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8034a681df4aed8b8edbd7fbe472401ecf009251c8b40556b304567052e294c5" +dependencies = [ + "async-lock", + "blocking", + "futures-lite", +] + +[[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.4", + "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.4", +] + +[[package]] +name = "async-recursion" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "async-signal" +version = "0.2.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43c070bbf59cd3570b6b2dd54cd772527c7c3620fce8be898406dd3ed6adc64c" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix 1.1.4", + "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.89" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + +[[package]] +name = "atspi" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be534b16650e35237bb1ed189ba2aab86ce65e88cc84c66f4935ba38575cecbf" +dependencies = [ + "atspi-common", + "atspi-connection", + "atspi-proxies", +] + +[[package]] +name = "atspi-common" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1909ed2dc01d0a17505d89311d192518507e8a056a48148e3598fef5e7bb6ba7" +dependencies = [ + "enumflags2", + "serde", + "static_assertions", + "zbus", + "zbus-lockstep", + "zbus-lockstep-macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "atspi-connection" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "430c5960624a4baaa511c9c0fcc2218e3b58f5dbcc47e6190cafee344b873333" +dependencies = [ + "atspi-common", + "atspi-proxies", + "futures-lite", + "zbus", +] + +[[package]] +name = "atspi-proxies" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5e6c5de3e524cf967569722446bcd458d5032348554d9a17d7d72b041ab7496" +dependencies = [ + "atspi-common", + "serde", + "zbus", + "zvariant", +] + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[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 = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843867be96c8daad0d758b57df9392b6d8d271134fce549de6ce169ff98a92af" +dependencies = [ + "serde_core", +] + +[[package]] +name = "block" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a" + +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + +[[package]] +name = "block2" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" +dependencies = [ + "objc2 0.5.2", +] + +[[package]] +name = "blocking" +version = "1.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "bytemuck" +version = "1.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9abbd1bc6865053c427f7198e6af43bfdedc55ab791faed4fbd361d789575ff" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" + +[[package]] +name = "calloop" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec" +dependencies = [ + "bitflags 2.11.0", + "log", + "polling", + "rustix 0.38.44", + "slab", + "thiserror 1.0.69", +] + +[[package]] +name = "calloop" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dbf9978365bac10f54d1d4b04f7ce4427e51f71d61f2fe15e3fed5166474df7" +dependencies = [ + "bitflags 2.11.0", + "polling", + "rustix 1.1.4", + "slab", + "tracing", +] + +[[package]] +name = "calloop-wayland-source" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20" +dependencies = [ + "calloop 0.13.0", + "rustix 0.38.44", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "calloop-wayland-source" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa" +dependencies = [ + "calloop 0.14.4", + "rustix 1.1.4", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "cc" +version = "1.2.56" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cesu8" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c" + +[[package]] +name = "cfg-if" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" + +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + +[[package]] +name = "cgl" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff" +dependencies = [ + "libc", +] + +[[package]] +name = "clap" +version = "4.5.60" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2797f34da339ce31042b27d23607e051786132987f595b02ba4f6a6dffb7030a" +dependencies = [ + "clap_builder", + "clap_derive", +] + +[[package]] +name = "clap_builder" +version = "4.5.60" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24a241312cea5059b13574bb9b3861cabf758b879c15190b37b6d6fd63ab6876" +dependencies = [ + "anstream", + "anstyle", + "clap_lex", + "strsim", +] + +[[package]] +name = "clap_derive" +version = "4.5.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a92793da1a46a5f2a02a6f4c46c6496b28c43638adea8306fcb0caa1634f24e5" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "clap_lex" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831" + +[[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 = "codespan-reporting" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e" +dependencies = [ + "termcolor", + "unicode-width", +] + +[[package]] +name = "colorchoice" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75" + +[[package]] +name = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +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 = "core-foundation" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b" + +[[package]] +name = "core-graphics" +version = "0.23.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", + "core-graphics-types", + "foreign-types", + "libc", +] + +[[package]] +name = "core-graphics-types" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf" +dependencies = [ + "bitflags 1.3.2", + "core-foundation 0.9.4", + "libc", +] + +[[package]] +name = "cpufeatures" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" + +[[package]] +name = "crunchy" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5" + +[[package]] +name = "crypto-common" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a" +dependencies = [ + "generic-array", + "typenum", +] + +[[package]] +name = "cursor-icon" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f" + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dispatch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.11.0", + "objc2 0.6.4", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "dlib" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab8ecd87370524b461f8557c119c405552c396ed91fc0a8eec68679eab26f94a" +dependencies = [ + "libloading", +] + +[[package]] +name = "document-features" +version = "0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61" +dependencies = [ + "litrs", +] + +[[package]] +name = "downcast-rs" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2" + +[[package]] +name = "dpi" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76" + +[[package]] +name = "ecolor" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc4feb366740ded31a004a0e4452fbf84e80ef432ecf8314c485210229672fd1" +dependencies = [ + "bytemuck", + "emath", +] + +[[package]] +name = "eframe" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d0dfe0859f3fb1bc6424c57d41e10e9093fe938f426b691e42272c2f336d915c" +dependencies = [ + "ahash", + "bytemuck", + "document-features", + "egui", + "egui-wgpu", + "egui-winit", + "egui_glow", + "glow", + "glutin", + "glutin-winit", + "image", + "js-sys", + "log", + "objc2 0.5.2", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", + "parking_lot", + "percent-encoding", + "profiling", + "raw-window-handle", + "static_assertions", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "web-time", + "winapi", + "windows-sys 0.59.0", + "winit", +] + +[[package]] +name = "egui" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25dd34cec49ab55d85ebf70139cb1ccd29c977ef6b6ba4fe85489d6877ee9ef3" +dependencies = [ + "accesskit", + "ahash", + "bitflags 2.11.0", + "emath", + "epaint", + "log", + "nohash-hasher", + "profiling", +] + +[[package]] +name = "egui-wgpu" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d319dfef570f699b6e9114e235e862a2ddcf75f0d1a061de9e1328d92146d820" +dependencies = [ + "ahash", + "bytemuck", + "document-features", + "egui", + "epaint", + "log", + "profiling", + "thiserror 1.0.69", + "type-map", + "web-time", + "wgpu", + "winit", +] + +[[package]] +name = "egui-winit" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d9dfbb78fe4eb9c3a39ad528b90ee5915c252e77bbab9d4ebc576541ab67e13" +dependencies = [ + "accesskit_winit", + "ahash", + "arboard", + "bytemuck", + "egui", + "log", + "profiling", + "raw-window-handle", + "smithay-clipboard", + "web-time", + "webbrowser", + "winit", +] + +[[package]] +name = "egui_glow" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "910906e3f042ea6d2378ec12a6fd07698e14ddae68aed2d819ffe944a73aab9e" +dependencies = [ + "ahash", + "bytemuck", + "egui", + "glow", + "log", + "memoffset", + "profiling", + "wasm-bindgen", + "web-sys", + "winit", +] + +[[package]] +name = "emath" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e4cadcff7a5353ba72b7fea76bf2122b5ebdbc68e8155aa56dfdea90083fe1b" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enumflags2" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef" +dependencies = [ + "enumflags2_derive", + "serde", +] + +[[package]] +name = "enumflags2_derive" +version = "0.7.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "epaint" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41fcc0f5a7c613afd2dee5e4b30c3e6acafb8ad6f0edb06068811f708a67c562" +dependencies = [ + "ab_glyph", + "ahash", + "bytemuck", + "ecolor", + "emath", + "epaint_default_fonts", + "log", + "nohash-hasher", + "parking_lot", + "profiling", +] + +[[package]] +name = "epaint_default_fonts" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7e7a64c02cf7a5b51e745a9e45f60660a286f151c238b9d397b3e923f5082f" + +[[package]] +name = "equivalent" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" + +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "error-code" +version = "3.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dea2df4cf52843e0452895c455a1a2cfbb842a1e7329671acf418fdc53ed4c59" + +[[package]] +name = "event-listener" +version = "5.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be" + +[[package]] +name = "fax" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f05de7d48f37cd6730705cbca900770cab77a89f413d23e100ad7fad7795a0ab" +dependencies = [ + "fax_derive", +] + +[[package]] +name = "fax_derive" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0aca10fb742cb43f9e7bb8467c91aa9bcb8e3ffbc6a6f7389bb93ffc920577d" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582" + +[[package]] +name = "flate2" +version = "1.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c" +dependencies = [ + "crc32fast", + "miniz_oxide", +] + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foreign-types" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965" +dependencies = [ + "foreign-types-macros", + "foreign-types-shared", +] + +[[package]] +name = "foreign-types-macros" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-io" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cecba35d7ad927e23624b22ad55235f2239cfa44fd10428eecbeba6d6a717718" + +[[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.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "futures-sink" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893" + +[[package]] +name = "futures-task" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393" + +[[package]] +name = "futures-util" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "generic-array" +version = "0.14.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a" +dependencies = [ + "typenum", + "version_check", +] + +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix 1.1.4", + "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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555" +dependencies = [ + "cfg-if", + "libc", + "r-efi 6.0.0", + "wasip2", + "wasip3", +] + +[[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 = "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" +version = "0.32.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12124de845cacfebedff80e877bb37b5b75c34c5a4c89e47e1cdd67fb6041325" +dependencies = [ + "bitflags 2.11.0", + "cfg_aliases", + "cgl", + "dispatch2", + "glutin_egl_sys", + "glutin_glx_sys", + "glutin_wgl_sys", + "libloading", + "objc2 0.6.4", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "once_cell", + "raw-window-handle", + "wayland-sys", + "windows-sys 0.52.0", + "x11-dl", +] + +[[package]] +name = "glutin-winit" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85edca7075f8fc728f28cb8fbb111a96c3b89e930574369e3e9c27eb75d3788f" +dependencies = [ + "cfg_aliases", + "glutin", + "raw-window-handle", + "winit", +] + +[[package]] +name = "glutin_egl_sys" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c4680ba6195f424febdc3ba46e7a42a0e58743f2edb115297b86d7f8ecc02d2" +dependencies = [ + "gl_generator", + "windows-sys 0.52.0", +] + +[[package]] +name = "glutin_glx_sys" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7bb2938045a88b612499fbcba375a77198e01306f52272e692f8c1f3751185" +dependencies = [ + "gl_generator", + "x11-dl", +] + +[[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.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171" +dependencies = [ + "bitflags 2.11.0", + "gpu-alloc-types", +] + +[[package]] +name = "gpu-alloc-types" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "98ff03b468aa837d70984d55f5d3f846f6ec31fe34bbb97c4f85219caeee1ca4" +dependencies = [ + "bitflags 2.11.0", +] + +[[package]] +name = "gpu-descriptor" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca" +dependencies = [ + "bitflags 2.11.0", + "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.11.0", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "zerocopy", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" + +[[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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c" + +[[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 = "hound" +version = "3.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62adaabb884c94955b19907d60019f4e145d091c75345379e70d1ee696f7854f" + +[[package]] +name = "icu_collections" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43" +dependencies = [ + "displaydoc", + "potential_utf", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a" + +[[package]] +name = "icu_properties" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec" +dependencies = [ + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af" + +[[package]] +name = "icu_provider" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "id-arena" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954" + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "moxcms", + "num-traits", + "png", + "tiff", +] + +[[package]] +name = "immutable-chunkmap" +version = "2.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a3e98b1520e49e252237edc238a39869da9f3241f2ec19dc788c1d24694d1e4" +dependencies = [ + "arrayvec", +] + +[[package]] +name = "indexmap" +version = "2.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" +dependencies = [ + "equivalent", + "hashbrown 0.16.1", + "serde", + "serde_core", +] + +[[package]] +name = "is_terminal_polyfill" +version = "1.70.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695" + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys 0.3.0", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni" +version = "0.22.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "295dc9997acda1562fdf8d299f56063c936443b60f078e63a5d8d3c34ef2642b" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys 0.4.1", + "log", + "simd_cesu8", + "thiserror 2.0.18", + "walkdir", + "windows-link", +] + +[[package]] +name = "jni-macros" +version = "0.22.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c3d1da60c95c98847b26b9d45f4360fee718b31de746df016d9cd6de916a7ef" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[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", +] + +[[package]] +name = "jobserver" +version = "0.1.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33" +dependencies = [ + "getrandom 0.3.4", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b49715b7073f385ba4bc528e5747d02e66cb39c6146efb66b781f131f0fb399c" +dependencies = [ + "once_cell", + "wasm-bindgen", +] + +[[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 = "leb128fmt" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2" + +[[package]] +name = "libc" +version = "0.2.183" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5b646652bf6661599e1da8901b3b9522896f01e736bad5f723fe7a3a27f899d" + +[[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 = "libredox" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1744e39d1d6a9948f4f388969627434e31128196de472883b39f148769bfe30a" +dependencies = [ + "bitflags 2.11.0", + "libc", + "plain", + "redox_syscall 0.7.3", +] + +[[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.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77" + +[[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.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "malloc_buf" +version = "0.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62bb907fe88d54d8d9ce32a3cceab4218ed2f6b7d35617cafe9adf84e43919cb" +dependencies = [ + "libc", +] + +[[package]] +name = "memchr" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79" + +[[package]] +name = "memmap2" +version = "0.9.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "714098028fe011992e1c3962653c96b2d578c4b4bce9036e15ff220319b1e0e3" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "metal" +version = "0.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f569fb946490b5743ad69813cb19629130ce9374034abe31614a36402d18f99e" +dependencies = [ + "bitflags 2.11.0", + "block", + "core-graphics-types", + "foreign-types", + "log", + "objc", + "paste", +] + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "naga" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e380993072e52eef724eddfcde0ed013b0c023c3f0417336ed041aa9f076994e" +dependencies = [ + "arrayvec", + "bit-set", + "bitflags 2.11.0", + "cfg_aliases", + "codespan-reporting", + "hexf-parse", + "indexmap", + "log", + "rustc-hash 1.1.0", + "spirv", + "strum", + "termcolor", + "thiserror 2.0.18", + "unicode-xid", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.11.0", + "jni-sys 0.3.0", + "log", + "ndk-sys 0.6.0+11769913", + "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.5.0+25.2.9519653" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c196769dd60fd4f363e11d948139556a344e79d451aeb2fa2fd040738ef7691" +dependencies = [ + "jni-sys 0.3.0", +] + +[[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.0", +] + +[[package]] +name = "nix" +version = "0.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71e2746dc3a24dd78b3cfcb7be93368c6de9963d30f43a6a73998a9cf4b17b46" +dependencies = [ + "bitflags 2.11.0", + "cfg-if", + "cfg_aliases", + "libc", + "memoffset", +] + +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", +] + +[[package]] +name = "num_enum" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1207a7e20ad57b847bbddc6776b968420d38292bbfe2089accff5e19e82454c" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff32365de1b6743cb203b710788263c44a03de03802daf96092f2da4fe6ba4d7" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn", +] + +[[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.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804" +dependencies = [ + "objc-sys", + "objc2-encode", +] + +[[package]] +name = "objc2" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a12a8ed07aefc768292f076dc3ac8c48f3781c8f2d5851dd3d98950e8c5a89f" +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.11.0", + "block2", + "libc", + "objc2 0.5.2", + "objc2-core-data", + "objc2-core-image", + "objc2-foundation 0.2.2", + "objc2-quartz-core", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.11.0", + "objc2 0.6.4", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 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.11.0", + "block2", + "objc2 0.5.2", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-contacts" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889" +dependencies = [ + "block2", + "objc2 0.5.2", + "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.11.0", + "block2", + "objc2 0.5.2", + "objc2-foundation 0.2.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.11.0", + "dispatch2", + "objc2 0.6.4", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.11.0", + "dispatch2", + "objc2 0.6.4", + "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", + "objc2 0.5.2", + "objc2-foundation 0.2.2", + "objc2-metal", +] + +[[package]] +name = "objc2-core-location" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781" +dependencies = [ + "block2", + "objc2 0.5.2", + "objc2-contacts", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" +dependencies = [ + "bitflags 2.11.0", + "block2", + "dispatch", + "libc", + "objc2 0.5.2", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.11.0", + "objc2 0.6.4", + "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.11.0", + "objc2 0.6.4", + "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", + "objc2 0.5.2", + "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.11.0", + "block2", + "objc2 0.5.2", + "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.11.0", + "block2", + "objc2 0.5.2", + "objc2-foundation 0.2.2", + "objc2-metal", +] + +[[package]] +name = "objc2-symbols" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc" +dependencies = [ + "objc2 0.5.2", + "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.11.0", + "block2", + "objc2 0.5.2", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-image", + "objc2-core-location", + "objc2-foundation 0.2.2", + "objc2-link-presentation", + "objc2-quartz-core", + "objc2-symbols", + "objc2-uniform-type-identifiers", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-uniform-type-identifiers" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe" +dependencies = [ + "block2", + "objc2 0.5.2", + "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.11.0", + "block2", + "objc2 0.5.2", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "once_cell" +version = "1.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" + +[[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.50" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52ad2c6bae700b7aa5d1cc30c59bdd3a1c180b09dbaea51e2ae2b8e1cf211fdd" +dependencies = [ + "libc", + "libredox", +] + +[[package]] +name = "ordered-float" +version = "4.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7bb71e1b3fa6ca1c61f383464aaf2bb0e2f8e772a1f01d486832464de363b951" +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 = "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.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1749c7ed4bcaf4c3d0a3efc28538844fb29bcdd7d2b67b2be7e20ba861ff517" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b20ed30f105399776b9c883e68e536ef602a16ae6f596d2c473591d6ad64c6" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[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.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" + +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.11.0", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide", +] + +[[package]] +name = "polling" +version = "3.11.0" +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.4", + "windows-sys 0.61.2", +] + +[[package]] +name = "potential_utf" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77" +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 = "prettyplease" +version = "0.2.37" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b" +dependencies = [ + "proc-macro2", + "syn", +] + +[[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.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "profiling" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eb8486b569e12e2c32ad3e204dbaba5e4b5b216e9367044f25f1dba42341773" + +[[package]] +name = "pxfm" +version = "0.1.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5a041e753da8b807c9255f28de81879c78c876392ff2469cde94799b2896b9d" + +[[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.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eff6510e86862b57b210fd8cbe8ed3f0d7d600b9c2863cd4549a2e033c66e956" +dependencies = [ + "memchr", + "serde", +] + +[[package]] +name = "quick-xml" +version = "0.39.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "958f21e8e7ceb5a1aa7fa87fab28e7c75976e0bfe7e23ff069e0a260f894067d" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924" +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.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "redox_syscall" +version = "0.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.11.0", +] + +[[package]] +name = "redox_syscall" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce70a74e890531977d37e532c34d45e9055d2409ed08ddba14529471ed0be16" +dependencies = [ + "bitflags 2.11.0", +] + +[[package]] +name = "renderdoc-sys" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc-hash" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" + +[[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.11.0", + "errno", + "libc", + "linux-raw-sys 0.4.15", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustix" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190" +dependencies = [ + "bitflags 2.11.0", + "errno", + "libc", + "linux-raw-sys 0.12.1", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "rustwave" +version = "0.1.0" +dependencies = [ + "clap", + "eframe", + "hound", +] + +[[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 = "semver" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" + +[[package]] +name = "serde" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.228" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "sha1" +version = "0.10.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3bf829a2d51ab4a5ddf1352d8470c140cadc8301b2ae1789db023f01cedd6ba" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "shlex" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" + +[[package]] +name = "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.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2" + +[[package]] +name = "simd_cesu8" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94f90157bb87cddf702797c5dadfa0be7d266cdf49e22da2fcaa32eff75b2c33" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "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.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" + +[[package]] +name = "smithay-client-toolkit" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016" +dependencies = [ + "bitflags 2.11.0", + "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.11.0", + "calloop 0.14.4", + "calloop-wayland-source 0.4.1", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 1.1.4", + "thiserror 2.0.18", + "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 = "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.11.0", +] + +[[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 = "strum" +version = "0.26.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fec0f0aef304996cf250b31b5a10dee7980c85da9d759361292b8bca5a18f06" +dependencies = [ + "strum_macros", +] + +[[package]] +name = "strum_macros" +version = "0.26.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c6bee85a5a24955dc440386795aa378cd9cf82acd5f764469152d2270e581be" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "rustversion", + "syn", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.2", + "once_cell", + "rustix 1.1.4", + "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.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[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 = "tinystr" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "toml_datetime" +version = "1.0.0+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32c2555c699578a4f59f0cc68e5116c8d7cabbd45e1409b989d4be085b53f13e" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.4+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7193cbd0ce53dc966037f54351dbbcf0d5a642c7f0038c382ef9e677ce8c13f2" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.0.9+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "702d4415e08923e7e1ef96cd5727c0dfed80b4d2fa25db9647fe5eb6f7c5a4c4" +dependencies = [ + "winnow", +] + +[[package]] +name = "tracing" +version = "0.1.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" +dependencies = [ + "log", + "pin-project-lite", + "tracing-attributes", + "tracing-core", +] + +[[package]] +name = "tracing-attributes" +version = "0.1.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", +] + +[[package]] +name = "ttf-parser" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31" + +[[package]] +name = "type-map" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb30dbbd9036155e74adad6812e9898d03ec374946234fbcebd5dfc7b9187b90" +dependencies = [ + "rustc-hash 2.1.1", +] + +[[package]] +name = "typenum" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" + +[[package]] +name = "uds_windows" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51b70b87d15e91f553711b40df3048faf27a7a04e01e0ddc0cf9309f0af7c2ca" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "unicode-ident" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75" + +[[package]] +name = "unicode-segmentation" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493" + +[[package]] +name = "unicode-width" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af" + +[[package]] +name = "unicode-xid" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "utf8parse" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821" + +[[package]] +name = "version_check" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" + +[[package]] +name = "walkdir" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b" +dependencies = [ + "same-file", + "winapi-util", +] + +[[package]] +name = "wasi" +version = "0.11.1+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" + +[[package]] +name = "wasip2" +version = "1.0.2+wasi-0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasip3" +version = "0.4.0+wasi-0.3.0-rc-2026-01-06" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6532f9a5c1ece3798cb1c2cfdba640b9b3ba884f5db45973a6f442510a87d38e" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9c5522b3a28661442748e09d40924dfb9ca614b21c00d3fd135720e48b67db8" +dependencies = [ + "cfg-if", + "futures-util", + "js-sys", + "once_cell", + "wasm-bindgen", + "web-sys", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18a2d50fcf105fb33bb15f00e7a77b772945a2ee45dcf454961fd843e74c18e6" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03ce4caeaac547cdf713d280eda22a730824dd11e6b8c3ca9e42247b25c631e3" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75a326b8c223ee17883a4251907455a2431acc2791c98c26279376490c378c16" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wasm-encoder" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319" +dependencies = [ + "leb128fmt", + "wasmparser", +] + +[[package]] +name = "wasm-metadata" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909" +dependencies = [ + "anyhow", + "indexmap", + "wasm-encoder", + "wasmparser", +] + +[[package]] +name = "wasmparser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe" +dependencies = [ + "bitflags 2.11.0", + "hashbrown 0.15.5", + "indexmap", + "semver", +] + +[[package]] +name = "wayland-backend" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa75f400b7f719bcd68b3f47cd939ba654cedeef690f486db71331eec4c6a406" +dependencies = [ + "cc", + "downcast-rs", + "rustix 1.1.4", + "scoped-tls", + "smallvec", + "wayland-sys", +] + +[[package]] +name = "wayland-client" +version = "0.31.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab51d9f7c071abeee76007e2b742499e535148035bb835f97aaed1338cf516c3" +dependencies = [ + "bitflags 2.11.0", + "rustix 1.1.4", + "wayland-backend", + "wayland-scanner", +] + +[[package]] +name = "wayland-csd-frame" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "625c5029dbd43d25e6aa9615e88b829a5cad13b2819c4ae129fdbb7c31ab4c7e" +dependencies = [ + "bitflags 2.11.0", + "cursor-icon", + "wayland-backend", +] + +[[package]] +name = "wayland-cursor" +version = "0.31.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b3298683470fbdc6ca40151dfc48c8f2fd4c41a26e13042f801f85002384091" +dependencies = [ + "rustix 1.1.4", + "wayland-client", + "xcursor", +] + +[[package]] +name = "wayland-protocols" +version = "0.32.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b23b5df31ceff1328f06ac607591d5ba360cf58f90c8fad4ac8d3a55a3c4aec7" +dependencies = [ + "bitflags 2.11.0", + "wayland-backend", + "wayland-client", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-experimental" +version = "20250721.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40a1f863128dcaaec790d7b4b396cc9b9a7a079e878e18c47e6c2d2c5a8dcbb1" +dependencies = [ + "bitflags 2.11.0", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-misc" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "429b99200febaf95d4f4e46deff6fe4382bcff3280ee16a41cf887b3c3364984" +dependencies = [ + "bitflags 2.11.0", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-plasma" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d392fc283a87774afc9beefcd6f931582bb97fe0e6ced0b306a62cb1d026527c" +dependencies = [ + "bitflags 2.11.0", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-wlr" +version = "0.3.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78248e4cc0eff8163370ba5c158630dcae1f3497a586b826eca2ef5f348d6235" +dependencies = [ + "bitflags 2.11.0", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-scanner" +version = "0.31.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c86287151a309799b821ca709b7345a048a2956af05957c89cb824ab919fa4e3" +dependencies = [ + "proc-macro2", + "quick-xml 0.39.2", + "quote", +] + +[[package]] +name = "wayland-sys" +version = "0.31.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "374f6b70e8e0d6bf9461a32988fd553b59ff630964924dad6e4a4eb6bd538d17" +dependencies = [ + "dlib", + "log", + "once_cell", + "pkg-config", +] + +[[package]] +name = "web-sys" +version = "0.3.91" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "854ba17bb104abfb26ba36da9729addc7ce7f06f5c0f90f3c391f8461cca21f9" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "webbrowser" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe985f41e291eecef5e5c0770a18d28390addb03331c043964d9e916453d6f16" +dependencies = [ + "core-foundation 0.10.1", + "jni 0.22.3", + "log", + "ndk-context", + "objc2 0.6.4", + "objc2-foundation 0.3.2", + "url", + "web-sys", +] + +[[package]] +name = "weezl" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" + +[[package]] +name = "wgpu" +version = "24.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b0b3436f0729f6cdf2e6e9201f3d39dc95813fad61d826c1ed07918b4539353" +dependencies = [ + "arrayvec", + "bitflags 2.11.0", + "cfg_aliases", + "document-features", + "js-sys", + "log", + "parking_lot", + "profiling", + "raw-window-handle", + "smallvec", + "static_assertions", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "wgpu-core", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-core" +version = "24.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f0aa306497a238d169b9dc70659105b4a096859a34894544ca81719242e1499" +dependencies = [ + "arrayvec", + "bit-vec", + "bitflags 2.11.0", + "cfg_aliases", + "document-features", + "indexmap", + "log", + "naga", + "once_cell", + "parking_lot", + "profiling", + "raw-window-handle", + "rustc-hash 1.1.0", + "smallvec", + "thiserror 2.0.18", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-hal" +version = "24.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f112f464674ca69f3533248508ee30cb84c67cf06c25ff6800685f5e0294e259" +dependencies = [ + "android_system_properties", + "arrayvec", + "ash", + "bitflags 2.11.0", + "bytemuck", + "cfg_aliases", + "core-graphics-types", + "glow", + "glutin_wgl_sys", + "gpu-alloc", + "gpu-descriptor", + "js-sys", + "khronos-egl", + "libc", + "libloading", + "log", + "metal", + "naga", + "ndk-sys 0.5.0+25.2.9519653", + "objc", + "once_cell", + "ordered-float", + "parking_lot", + "profiling", + "raw-window-handle", + "renderdoc-sys", + "rustc-hash 1.1.0", + "smallvec", + "thiserror 2.0.18", + "wasm-bindgen", + "web-sys", + "wgpu-types", + "windows", +] + +[[package]] +name = "wgpu-types" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50ac044c0e76c03a0378e7786ac505d010a873665e2d51383dcff8dd227dc69c" +dependencies = [ + "bitflags 2.11.0", + "js-sys", + "log", + "web-sys", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6" +dependencies = [ + "windows-core", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-core" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-result", + "windows-strings", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.45.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets 0.42.2", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.59.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", +] + +[[package]] +name = "windows-targets" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" +dependencies = [ + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm 0.52.6", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", +] + +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + +[[package]] +name = "windows_i686_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + +[[package]] +name = "windows_i686_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" + +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "winit" +version = "0.30.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d" +dependencies = [ + "ahash", + "android-activity", + "atomic-waker", + "bitflags 2.11.0", + "block2", + "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.2", + "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 = "winnow" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" +dependencies = [ + "wit-bindgen-rust-macro", +] + +[[package]] +name = "wit-bindgen-core" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc" +dependencies = [ + "anyhow", + "heck", + "wit-parser", +] + +[[package]] +name = "wit-bindgen-rust" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21" +dependencies = [ + "anyhow", + "heck", + "indexmap", + "prettyplease", + "syn", + "wasm-metadata", + "wit-bindgen-core", + "wit-component", +] + +[[package]] +name = "wit-bindgen-rust-macro" +version = "0.51.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a" +dependencies = [ + "anyhow", + "prettyplease", + "proc-macro2", + "quote", + "syn", + "wit-bindgen-core", + "wit-bindgen-rust", +] + +[[package]] +name = "wit-component" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2" +dependencies = [ + "anyhow", + "bitflags 2.11.0", + "indexmap", + "log", + "serde", + "serde_derive", + "serde_json", + "wasm-encoder", + "wasm-metadata", + "wasmparser", + "wit-parser", +] + +[[package]] +name = "wit-parser" +version = "0.244.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736" +dependencies = [ + "anyhow", + "id-arena", + "indexmap", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] + +[[package]] +name = "writeable" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9" + +[[package]] +name = "x11-dl" +version = "2.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38735924fedd5314a6e548792904ed8c6de6636285cb9fec04d5b1db85c1516f" +dependencies = [ + "libc", + "once_cell", + "pkg-config", +] + +[[package]] +name = "x11rb" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414" +dependencies = [ + "as-raw-xcb-connection", + "gethostname", + "libc", + "libloading", + "once_cell", + "rustix 1.1.4", + "x11rb-protocol", +] + +[[package]] +name = "x11rb-protocol" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd" + +[[package]] +name = "xcursor" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bec9e4a500ca8864c5b47b8b482a73d62e4237670e5b5f1d6b9e3cae50f28f2b" + +[[package]] +name = "xdg-home" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec1cdab258fb55c0da61328dc52c8764709b249011b2cad0454c72f0bf10a1f6" +dependencies = [ + "libc", + "windows-sys 0.59.0", +] + +[[package]] +name = "xkbcommon-dl" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5" +dependencies = [ + "bitflags 2.11.0", + "dlib", + "log", + "once_cell", + "xkeysym", +] + +[[package]] +name = "xkeysym" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56" + +[[package]] +name = "xml-rs" +version = "0.8.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ae8337f8a065cfc972643663ea4279e04e7256de865aa66fe25cec5fb912d3f" + +[[package]] +name = "yoke" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zbus" +version = "4.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb97012beadd29e654708a0fdb4c84bc046f537aecfde2c3ee0a9e4b4d48c725" +dependencies = [ + "async-broadcast", + "async-executor", + "async-fs", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-sink", + "futures-util", + "hex", + "nix", + "ordered-stream", + "rand", + "serde", + "serde_repr", + "sha1", + "static_assertions", + "tracing", + "uds_windows", + "windows-sys 0.52.0", + "xdg-home", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus-lockstep" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca2c5dceb099bddaade154055c926bb8ae507a18756ba1d8963fd7b51d8ed1d" +dependencies = [ + "zbus_xml", + "zvariant", +] + +[[package]] +name = "zbus-lockstep-macros" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709ab20fc57cb22af85be7b360239563209258430bccf38d8b979c5a2ae3ecce" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "zbus-lockstep", + "zbus_xml", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "4.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "267db9407081e90bbfa46d841d3cbc60f59c0351838c4bc65199ecd79ab1983e" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "3.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b9b1fef7d021261cc16cba64c351d291b715febe0fa10dc3a443ac5a5022e6c" +dependencies = [ + "serde", + "static_assertions", + "zvariant", +] + +[[package]] +name = "zbus_xml" +version = "4.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ab3f374552b954f6abb4bd6ce979e6c9b38fb9d0cd7cc68a7d796e70c9f3a233" +dependencies = [ + "quick-xml 0.30.0", + "serde", + "static_assertions", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zerocopy" +version = "0.8.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2578b716f8a7a858b7f02d5bd870c14bf4ddbbcf3a4c05414ba6503640505e3" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e6cc098ea4d3bd6246687de65af3f920c430e236bee1e3bf2e441463f08a02f" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" + +[[package]] +name = "zune-core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb8a0807f7c01457d0379ba880ba6322660448ddebc890ce29bb64da71fb40f9" + +[[package]] +name = "zune-jpeg" +version = "0.5.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec5f41c76397b7da451efd19915684f727d7e1d516384ca6bd0ec43ec94de23c" +dependencies = [ + "zune-core", +] + +[[package]] +name = "zvariant" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2084290ab9a1c471c38fc524945837734fbf124487e105daec2bb57fd48c81fe" +dependencies = [ + "endi", + "enumflags2", + "serde", + "static_assertions", + "zvariant_derive", +] + +[[package]] +name = "zvariant_derive" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73e2ba546bda683a90652bac4a279bc146adad1386f25379cf73200d2002c449" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "2.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c51bcff7cc3dbb5055396bcf774748c3dab426b4b8659046963523cee4808340" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..a073447 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,15 @@ +[package] +name = "rustwave" +version = "0.1.0" +edition = "2021" +license = "MIT" +description = "RustWave audio codec — encode bytes to WAV, decode WAV to bytes" + +[[bin]] +name = "rustwave-cli" +path = "src/main.rs" + +[dependencies] +clap = { version = "4", features = ["derive"] } +hound = "3" +eframe = "0.31" diff --git a/README.md b/README.md index 46f2c8f..7a1852d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,198 @@ -# RustMesh -RustMesh is a Rust-based packet radio network that enables internet-style data exchange over ham radio using AX.25 and AFSK. It provides reliable chunked file transfer, message relaying, and API integration for applications like RustChan, with optional multi-hop mesh routing and store-and-forward delivery. +# RustWave + +Encode arbitrary bytes into a WAV file using Bell-202-style Audio Frequency-Shift Keying (AFSK), and decode them back — losslessly. + +[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) +[![Rust](https://img.shields.io/badge/rust-1.75%2B-orange.svg)](https://www.rust-lang.org/) +[![docs](https://img.shields.io/badge/docs-cargo%20doc-green.svg)](#api-documentation) + +--- + +## Why RustWave? + +Most data-over-audio tools are tightly coupled to specific protocols (APRS, KISS, etc.) or sacrifice correctness for simplicity. RustWave is a self-contained, dependency-light Rust library and CLI that gives you a clean primitive: **any byte buffer in → a valid WAV file out → the same byte buffer back**, with a robust framing layer, CRC-16 integrity checking, and a Goertzel-filter decoder that tolerates real-world signal noise and arbitrary byte offsets. + +It is also the audio codec layer underpinning [HAMNET-RELAY](docs/hamnet-relay-build-roadmap.md), a planned HAM radio data relay that bridges AX.25 packet radio with a local HTTP/WebSocket API. + +--- + +## Installation + +Requires **Rust 1.75+** (2021 edition). + +```bash +cargo install rustwave +``` + +Or build from source: + +```bash +git clone https://github.com/csd113/rustwave +cd rustwave +cargo build --release +# binary at: target/release/rustwave-cli +``` + +--- + +## Basic Usage + +### CLI + +```bash +# Encode a file to WAV +rustwave encode -i data.bin -o signal.wav + +# Decode a WAV back to bytes +rustwave decode -i signal.wav -o data.bin + +# Launch the graphical interface +rustwave-cli --gui +``` + +### Library + +```rust +use rustwave::{encode, decode}; + +fn main() { + let payload = b"Hello, RustWave!"; + + // Encode bytes → WAV samples + let wav_path = "signal.wav"; + encode(payload, wav_path).expect("encode failed"); + + // Decode WAV → original bytes + let recovered = decode(wav_path).expect("decode failed"); + assert_eq!(payload, recovered.as_slice()); +} +``` + +--- + +## How It Works + +``` +[ your bytes ] + │ + FRAMER preamble (24 × 0xAA) | sync (0x7E 0x7E) | length (u32 LE) | payload | CRC-16 + │ + ENCODER each bit → sine wave at 1200 Hz (mark=1) or 2200 Hz (space=0) + continuous-phase FSK at 1200 baud, 44100 Hz / 16-bit mono WAV + │ + [ .wav ] + │ + DECODER non-integer Goertzel filter per bit-window; bit-level sync-word + search (handles any byte offset); CRC verification + │ + FRAMER reconstruct original bytes + │ +[ your bytes ] +``` + +### Signal Parameters + +| Parameter | Value | +|----------------|-------------------------------------------| +| Sample rate | 44 100 Hz | +| Bit rate | 1 200 baud | +| Mark (1) | 1 200 Hz | +| Space (0) | 2 200 Hz | +| Modulation | CPFSK (continuous-phase FSK) | +| WAV format | 16-bit signed PCM, mono | +| Frame overhead | 28 bytes (preamble + sync + length + CRC) | + +--- + +## Advanced Usage + +### Framing & CRC + +The framer wraps every payload in a Bell-202-compatible envelope. A 24-byte `0xAA` preamble allows the decoder to lock onto the signal, followed by a `0x7E 0x7E` sync word, a 4-byte little-endian length field, the raw payload, and a CRC-16/CCITT checksum. The decoder performs a bit-level sync-word search that handles arbitrary byte offsets in the audio stream. + +### GUI Mode + +Launch the built-in `eframe`-powered GUI for drag-and-drop encoding and decoding without the CLI: + +```bash +./rustwave-cli --gui +``` + +### HAMNET-RELAY Integration + +RustWave is designed as the AFSK codec layer for [HAMNET-RELAY](docs/hamnet-relay-build-roadmap.md), a multi-phase HAM radio data relay project that adds AX.25 packet framing, CSMA channel access, a local HTTP/WebSocket API, and full RustChan imageboard integration on top of this codec. See [`docs/hamnet-relay-build-roadmap.md`](docs/hamnet-relay-build-roadmap.md) for the full architecture. + +--- + +## Project Layout + +``` +src/ + main.rs CLI (clap — encode / decode subcommands, --gui flag) + config.rs Shared constants (sample rate, baud rate, frequencies) + framer.rs Byte envelope: preamble, sync word, length, CRC-16/CCITT + wav.rs WAV file I/O via hound + encoder.rs Bytes → CPFSK audio samples + decoder.rs Audio samples → bytes (Goertzel filter, bit-level sync search) +``` + +--- + +## Running Tests + +```bash +cargo test +``` + +12 unit and integration tests cover: + +- Framer round-trips (empty payload, ASCII, all 256 byte values, corrupt CRC) +- CRC-16/CCITT known-value verification +- WAV write/read round-trip (silence and sine wave) +- Goertzel mark-vs-space discrimination +- Full encode → decode round-trips (empty, text, all byte values) + +### Development Quality Gate + +A strict dev-check script runs `fmt`, `clippy` (pedantic + nursery), `cargo test`, `cargo audit`, and `cargo deny` in sequence: + +```bash +./dev-check-strict.sh +``` + +--- + +## API Documentation + +Generate and open local docs: + +```bash +cargo doc --open +``` + +--- + +## Contributing + +1. Fork the repository and create a feature branch off `main`. +2. Run `./dev-check-strict.sh` — all checks must pass before submitting. +3. Open a pull request with a clear description of the change and any relevant test coverage. +4. Follow standard Rust style (`rustfmt` defaults). Clippy pedantic warnings are treated as errors. + +--- + +## License + +This project is licensed under the [MIT License](LICENSE). +Copyright © 2026 csd113. + +--- + +## Acknowledgements + +- [hound](https://github.com/ruuda/hound) — WAV file I/O +- [clap](https://github.com/clap-rs/clap) — CLI argument parsing +- [eframe / egui](https://github.com/emilk/egui) — immediate-mode GUI +- Bell 202 modem standard — 1200/2200 Hz AFSK tone pair +- Goertzel algorithm — efficient single-frequency DFT for decoding +- [cargo-deny](https://github.com/EmbarkStudios/cargo-deny) — license and advisory enforcement diff --git a/clippy_reports/clippy_raw.txt b/clippy_reports/clippy_raw.txt new file mode 100644 index 0000000..164da7d --- /dev/null +++ b/clippy_reports/clippy_raw.txt @@ -0,0 +1,2 @@ + Checking rustwave v0.1.0 (/Users/connordawkins/Documents/GitHub/RustWave) + Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.40s diff --git a/clippy_reports/summary.txt b/clippy_reports/summary.txt new file mode 100644 index 0000000..7c60e3e --- /dev/null +++ b/clippy_reports/summary.txt @@ -0,0 +1,5 @@ +dev-check summary — Wed 11 Mar 2026 18:23:21 PDT +Duration: 39s +Passed: 9 +Failed: 0 +Skipped: 1 diff --git a/deny.toml b/deny.toml index 33857e6..cb1aa74 100644 --- a/deny.toml +++ b/deny.toml @@ -1,30 +1,66 @@ -# deny.toml +# cargo-deny configuration for RustWave +# https://embarkstudios.github.io/cargo-deny/ + +# --------------------------------------------------------------------------- +# Advisories — known vulnerabilities & unmaintained crates +# --------------------------------------------------------------------------- [advisories] -vulnerability = "deny" -unmaintained = "warn" -yanked = "warn" -notice = "warn" +version = 2 +yanked = "deny" + +# `paste` (RUSTSEC-2024-0436) is a transitive dep of eframe (via accesskit_windows +# and metal). It is not used by our own code. +ignore = [ + "RUSTSEC-2024-0436", # paste – no longer maintained +] +# --------------------------------------------------------------------------- +# Licenses +# --------------------------------------------------------------------------- [licenses] -unlicensed = "deny" -allow = [ - "MIT", - "Apache-2.0", - "BSD-2-Clause", - "BSD-3-Clause", - "ISC", - "Unicode-DFS-2016", - "Zlib", - "CC0-1.0", - "MPL-2.0", +version = 2 +allow = [ + # Common permissive licences + "MIT", + "Apache-2.0", + "Apache-2.0 WITH LLVM-exception", + "BSD-2-Clause", + "BSD-3-Clause", + "ISC", + "Zlib", + "CC0-1.0", + + # Weak-copyleft / other permissive + "MPL-2.0", + + # Unicode data files + "Unicode-3.0", + + # Boost Software Licence — permissive, used by `error-code` (transitive dep of eframe) + "BSL-1.0", + + # Font licences — used by `epaint_default_fonts` (embedded egui fonts) + # OFL-1.1: SIL Open Font Licence — allows free use/embedding in any software + # Ubuntu-font-1.0: Ubuntu Font Licence — permits embedding in applications + "OFL-1.1", + "Ubuntu-font-1.0", ] +unused-allowed-license = "allow" +# --------------------------------------------------------------------------- +# Bans — duplicate crates / disallowed crates +# --------------------------------------------------------------------------- [bans] -multiple-versions = "warn" -wildcards = "deny" +# All remaining duplicates are transitive deps of eframe/wgpu/winit that we +# cannot resolve directly. Allow them globally rather than maintaining a +# skip list that goes stale every time eframe is updated. +multiple-versions = "allow" +wildcards = "allow" +# --------------------------------------------------------------------------- +# Sources — only allow crates.io +# --------------------------------------------------------------------------- [sources] unknown-registry = "deny" -unknown-git = "warn" -allow-registry = ["https://github.com/rust-lang/crates.io-index"] -allow-git = [] +unknown-git = "deny" +allow-registry = ["https://github.com/rust-lang/crates.io-index"] diff --git a/dev-check-strict.sh b/dev-check-strict.sh new file mode 100755 index 0000000..4856127 --- /dev/null +++ b/dev-check-strict.sh @@ -0,0 +1,410 @@ +#!/usr/bin/env bash +# dev-check.sh — full Rust quality gate +# Runs: fmt · fix · clippy (pedantic+nursery) · tests · audit · deny · dupes +# Produces per-file clustered clippy reports in clippy_reports/ + +set -Eeuo pipefail + +# ─── Colours ────────────────────────────────────────────────────────────────── + +if [[ -t 1 ]]; then + RED='\033[0;31m'; YELLOW='\033[0;33m'; GREEN='\033[0;32m' + CYAN='\033[0;36m'; BOLD='\033[1m'; DIM='\033[2m'; RESET='\033[0m' +else + RED=''; YELLOW=''; GREEN=''; CYAN=''; BOLD=''; DIM=''; RESET='' +fi + +# ─── Globals ────────────────────────────────────────────────────────────────── + +SCRIPT_START=$SECONDS +PASS_COUNT=0 +FAIL_COUNT=0 +SKIP_COUNT=0 +FAILED_STEPS=() + +REPORT_DIR="clippy_reports" +RAW_FILE="$REPORT_DIR/clippy_raw.txt" +CLUSTER_DIR="$REPORT_DIR/clusters" +SUMMARY_FILE="$REPORT_DIR/summary.txt" + +# ─── Helpers ────────────────────────────────────────────────────────────────── + +command_exists() { command -v "$1" >/dev/null 2>&1; } + +step() { + echo "" + echo -e "${BOLD}${CYAN}════ $1 ════${RESET}" +} + +pass() { + echo -e " ${GREEN}✓${RESET} $1" + (( PASS_COUNT++ )) || true +} + +fail() { + echo -e " ${RED}✗${RESET} $1" + (( FAIL_COUNT++ )) || true + FAILED_STEPS+=("$1") +} + +skip() { + echo -e " ${DIM}–${RESET} $1 ${DIM}(skipped — tool not installed)${RESET}" + (( SKIP_COUNT++ )) || true +} + +warn() { echo -e " ${YELLOW}⚠${RESET} $1"; } + +require_tool() { + local tool="$1" install_hint="$2" + if ! command_exists "$tool"; then + echo -e "${RED}Error:${RESET} required tool '${BOLD}$tool${RESET}' is not installed." + echo -e " Install with: ${DIM}$install_hint${RESET}" + exit 1 + fi +} + +optional_tool() { + local tool="$1" install_hint="$2" + if ! command_exists "$tool"; then + warn "'$tool' not installed — step will be skipped." + warn "Install with: $install_hint" + fi +} + +elapsed() { + local secs=$(( SECONDS - SCRIPT_START )) + printf '%dm%02ds' $(( secs / 60 )) $(( secs % 60 )) +} + +# ─── Header ─────────────────────────────────────────────────────────────────── + +echo -e "${BOLD}" +echo "╔══════════════════════════════════════════════════╗" +echo "║ Rust Full Quality Gate Check ║" +echo "╚══════════════════════════════════════════════════╝" +echo -e "${RESET}" + +# ─── CPU cores ──────────────────────────────────────────────────────────────── + +if command_exists sysctl; then + export CARGO_BUILD_JOBS; CARGO_BUILD_JOBS=$(sysctl -n hw.ncpu 2>/dev/null || echo 4) +elif command_exists nproc; then + export CARGO_BUILD_JOBS; CARGO_BUILD_JOBS=$(nproc) +else + export CARGO_BUILD_JOBS=4 +fi +echo -e " ${DIM}Using ${BOLD}${CARGO_BUILD_JOBS}${RESET}${DIM} CPU cores${RESET}" + +# ─── Required tools ─────────────────────────────────────────────────────────── + +step "Verifying required tools" + +require_tool "cargo" "https://rustup.rs" +require_tool "rustfmt" "rustup component add rustfmt" +require_tool "clippy-driver" "rustup component add clippy" +pass "cargo · rustfmt · clippy all present" + +optional_tool "cargo-audit" "cargo install cargo-audit" +optional_tool "cargo-deny" "cargo install cargo-deny" +optional_tool "cargo-udeps" "cargo install cargo-udeps" +optional_tool "cargo-msrv" "cargo install cargo-msrv" + +# ─── Prepare report directory ───────────────────────────────────────────────── + +rm -rf "$REPORT_DIR" +mkdir -p "$CLUSTER_DIR" + +# ─── Optional: update deps ──────────────────────────────────────────────────── + +if [[ "${1:-}" == "--update" ]]; then + step "Updating dependency index" + if cargo update 2>&1; then pass "cargo update"; else fail "cargo update"; fi +fi + +# ─── 1. Format ──────────────────────────────────────────────────────────────── + +step "1 · Formatting (cargo fmt)" + +if cargo fmt --all 2>&1; then + pass "cargo fmt --all" +else + fail "cargo fmt --all" +fi + +# Verify nothing was left dirty (useful in CI) +if git diff --quiet 2>/dev/null; then + pass "No unstaged format changes" +else + warn "cargo fmt changed files — commit the formatted code" +fi + +# ─── 2. Auto-fix ────────────────────────────────────────────────────────────── + +step "2 · Automatic fixes (cargo fix)" + +if cargo fix --allow-dirty --allow-staged --allow-no-vcs --all-features 2>&1; then + pass "cargo fix" +else + warn "cargo fix had warnings (non-fatal)" +fi + +# ─── 3. Clippy — strict pedantic+nursery ────────────────────────────────────── + +step "3 · Lint (cargo clippy — pedantic + nursery)" + +CLIPPY_FLAGS=( + # Hard errors + "-D" "warnings" + + # Pedantic: correctness, performance, style improvements + "-W" "clippy::pedantic" + + # Nursery: newer lints, some may be noisy — catches subtle bugs early + "-W" "clippy::nursery" + + # Catch common correctness bugs missed by the default set + "-W" "clippy::correctness" + "-W" "clippy::suspicious" + "-W" "clippy::complexity" + "-W" "clippy::perf" + + # Panic/unwrap hygiene — forces explicit error handling + "-W" "clippy::unwrap_used" + "-W" "clippy::expect_used" + "-W" "clippy::panic" + "-W" "clippy::todo" + "-W" "clippy::unimplemented" + "-W" "clippy::unreachable" + + # Index panic risk + "-W" "clippy::indexing_slicing" + + # Integer overflow in casts + "-W" "clippy::cast_possible_truncation" + "-W" "clippy::cast_possible_wrap" + "-W" "clippy::cast_sign_loss" + "-W" "clippy::cast_precision_loss" + + # Arithmetic that can panic + "-W" "clippy::arithmetic_side_effects" + + # Formatting / style discipline + "-W" "clippy::format_collect" + "-W" "clippy::uninlined_format_args" + "-W" "clippy::redundant_closure_for_method_calls" + "-W" "clippy::map_unwrap_or" + "-W" "clippy::manual_let_else" + "-W" "clippy::single_match_else" + "-W" "clippy::if_not_else" + "-W" "clippy::option_if_let_else" + "-W" "clippy::cloned_instead_of_copied" + "-W" "clippy::doc_markdown" + "-W" "clippy::redundant_else" + "-W" "clippy::too_many_lines" + "-W" "clippy::missing_errors_doc" + "-W" "clippy::missing_panics_doc" +) + +CLIPPY_CMD=( + cargo clippy + --all-targets + --all-features + -- + "${CLIPPY_FLAGS[@]}" +) + +echo -e " ${DIM}Running: ${CLIPPY_CMD[*]}${RESET}" +echo "" + +CLIPPY_EXIT=0 +"${CLIPPY_CMD[@]}" 2>&1 | tee "$RAW_FILE" || CLIPPY_EXIT=$? + +# ── Cluster clippy output by source file ───────────────────────────────────── + +echo "" +echo -e " ${DIM}Clustering clippy output by file...${RESET}" + +OUTFILE="" +while IFS= read -r line; do + if [[ $line =~ ([a-zA-Z0-9_/.-]+\.rs):[0-9]+:[0-9]+ ]]; then + FILE="${BASH_REMATCH[1]}" + DIR=$(dirname "$FILE") + if [[ "$DIR" == "." ]]; then + CLUSTER="root" + else + CLUSTER=$(echo "$DIR" | tr '/' '_') + fi + OUTFILE="$CLUSTER_DIR/${CLUSTER}.txt" + { + echo "" + echo "----------------------------------------" + echo "FILE: $FILE" + echo "----------------------------------------" + } >> "$OUTFILE" + fi + if [[ -n "$OUTFILE" ]]; then + echo "$line" >> "$OUTFILE" + fi +done < "$RAW_FILE" + +# ── Count errors and warnings ───────────────────────────────────────────────── + +CLIPPY_ERRORS=$(grep -c '^error' "$RAW_FILE" 2>/dev/null || echo 0) +CLIPPY_WARNS=$(grep -c '^warning' "$RAW_FILE" 2>/dev/null || echo 0) +CLUSTER_COUNT=$(find "$CLUSTER_DIR" -name '*.txt' | wc -l | tr -d ' ') + +if [[ $CLIPPY_EXIT -eq 0 ]]; then + pass "clippy clean (${CLIPPY_WARNS} warnings, 0 errors)" +else + fail "clippy reported ${CLIPPY_ERRORS} error(s) across ${CLUSTER_COUNT} file cluster(s)" + echo "" + echo -e " ${BOLD}Cluster reports:${RESET}" + for f in "$CLUSTER_DIR"/*.txt; do + [[ -f "$f" ]] && echo -e " ${DIM}$(basename "$f")${RESET}" + done + echo -e " ${DIM}Full output: $RAW_FILE${RESET}" +fi + +# ─── 4. Tests ───────────────────────────────────────────────────────────────── + +step "4 · Tests (cargo test)" + +TEST_EXIT=0 +cargo test --all --all-features 2>&1 || TEST_EXIT=$? + +if [[ $TEST_EXIT -eq 0 ]]; then + PASSED=$(grep -oP '\d+(?= passed)' <<< "$(cargo test --all --all-features 2>&1)" | tail -1 || echo "?") + pass "All tests passed" +else + fail "Test suite failed (exit $TEST_EXIT)" +fi + +# ─── 5. Security audit ──────────────────────────────────────────────────────── + +step "5 · Security audit (cargo audit)" + +if command_exists cargo-audit; then + AUDIT_EXIT=0 + cargo audit 2>&1 || AUDIT_EXIT=$? + if [[ $AUDIT_EXIT -eq 0 ]]; then + pass "No known vulnerabilities" + else + fail "cargo-audit found vulnerability/advisory — review output above" + fi +else + skip "cargo-audit → cargo install cargo-audit" +fi + +# ─── 6. Dependency policy ───────────────────────────────────────────────────── + +step "6 · Dependency policy (cargo deny)" + +if command_exists cargo-deny; then + DENY_EXIT=0 + cargo deny check 2>&1 || DENY_EXIT=$? + if [[ $DENY_EXIT -eq 0 ]]; then + pass "cargo deny — all policies satisfied" + else + fail "cargo deny — policy violation(s) found" + fi +else + skip "cargo-deny → cargo install cargo-deny" +fi + +# ─── 7. Unused dependencies ─────────────────────────────────────────────────── + +step "7 · Unused dependencies (cargo udeps)" + +if command_exists cargo-udeps; then + UDEPS_EXIT=0 + cargo +nightly udeps --all-targets 2>&1 || UDEPS_EXIT=$? + if [[ $UDEPS_EXIT -eq 0 ]]; then + pass "No unused dependencies" + else + fail "Unused dependencies detected — remove them from Cargo.toml" + fi +else + skip "cargo-udeps → cargo install cargo-udeps (requires nightly)" +fi + +# ─── 8. MSRV check ──────────────────────────────────────────────────────────── + +step "8 · Minimum supported Rust version (cargo msrv)" + +if command_exists cargo-msrv; then + MSRV_EXIT=0 + cargo msrv verify 2>&1 || MSRV_EXIT=$? + if [[ $MSRV_EXIT -eq 0 ]]; then + pass "MSRV satisfied" + else + warn "MSRV check failed — your rust-version in Cargo.toml may need updating" + fi +else + skip "cargo-msrv → cargo install cargo-msrv" +fi + +# ─── 9. Duplicate dependencies ──────────────────────────────────────────────── + +step "9 · Duplicate dependencies (cargo tree -d)" + +DUPES=$(cargo tree -d 2>&1 || true) +if echo "$DUPES" | grep -q '\['; then + warn "Duplicate crate versions detected:" + echo "$DUPES" | grep '^\[' | sort -u | while read -r line; do + echo -e " ${YELLOW}$line${RESET}" + done +else + pass "No duplicate crate versions" +fi + +# ─── 10. Build check (release) ──────────────────────────────────────────────── + +step "10 · Release build check (cargo build --release)" + +BUILD_EXIT=0 +cargo build --release --all-features 2>&1 || BUILD_EXIT=$? +if [[ $BUILD_EXIT -eq 0 ]]; then + pass "Release build clean" +else + fail "Release build failed" +fi + +# ─── Summary ────────────────────────────────────────────────────────────────── + +TOTAL_SECS=$(( SECONDS - SCRIPT_START )) + +{ + echo "dev-check summary — $(date)" + echo "Duration: ${TOTAL_SECS}s" + echo "Passed: $PASS_COUNT" + echo "Failed: $FAIL_COUNT" + echo "Skipped: $SKIP_COUNT" + if [[ ${#FAILED_STEPS[@]} -gt 0 ]]; then + echo "" + echo "Failed steps:" + for s in "${FAILED_STEPS[@]}"; do echo " - $s"; done + fi +} | tee "$SUMMARY_FILE" + +echo "" +if [[ $FAIL_COUNT -eq 0 ]]; then + echo -e "${BOLD}${GREEN}" + echo "╔══════════════════════════════════════════════════╗" + echo "║ ✓ All checks passed ($(elapsed())) ║" + echo "╚══════════════════════════════════════════════════╝" + echo -e "${RESET}" + exit 0 +else + echo -e "${BOLD}${RED}" + echo "╔══════════════════════════════════════════════════╗" + echo "║ ✗ $FAIL_COUNT check(s) failed ($(elapsed())) ║" + echo "╚══════════════════════════════════════════════════╝" + echo -e "${RESET}" + echo -e "${RED}Failed steps:${RESET}" + for s in "${FAILED_STEPS[@]}"; do + echo -e " ${RED}•${RESET} $s" + done + echo "" + echo -e " ${DIM}Reports saved to: $REPORT_DIR/${RESET}" + exit 1 +fi diff --git a/docs/hamnet-relay-build-roadmap.md b/docs/hamnet-relay-build-roadmap.md new file mode 100644 index 0000000..25fee96 --- /dev/null +++ b/docs/hamnet-relay-build-roadmap.md @@ -0,0 +1,693 @@ +# HAMNET-RELAY — Architecture Build & Testing Roadmap +> Single-binary HAM radio data relay middleware · Rust · AX.25 / AFSK · RustChan integration +> Progression: simple serial loopback → full RustChan real-time data streaming + +--- + +## Overview: Build Phase Map + +```mermaid +flowchart TD + P1["🔌 PHASE 1\nFoundation &\nHardware Probing"] + P2["🎙️ PHASE 2\nAudio Path\nMic/Speaker Mode\n⚡ No PTT Cable Required"] + P3["📦 PHASE 3\nAX.25 Packet\nLayer"] + P4["🗜️ PHASE 4\nIdentity, Codec\n& Compression"] + P5["📡 PHASE 5\nCSMA & TX\nQueue"] + P6["🌐 PHASE 6\nLocal HTTP/WS\nAPI"] + P7["📻 PHASE 7\nRadio Programming\n& Frequency Sync"] + P8["🖼️ PHASE 8\nImage & File\nTransfer"] + P9["🦀 PHASE 9\nRustChan\nIntegration"] + P10["⚡ PHASE 10\nRustChan Real-Time\nData Streaming"] + P11["🕸️ PHASE 11\nMesh Network\n& Digipeater"] + + P1 --> P2 --> P3 --> P4 --> P5 --> P6 --> P7 --> P8 --> P9 --> P10 --> P11 +``` + +--- + +## Phase 1 — Foundation & Hardware Probing + +```mermaid +flowchart TD + START([▶ Project Init]) --> B01 + + subgraph B01["BUILD-01 · Serial Port Detection"] + B01A[Detect CH340/CP2102 USB chip\nvia serialport crate] --> B01B[List available /dev/ttyUSB* ports] + B01B --> B01C{Port found?} + B01C -- Yes --> B01D[✅ TEST PASS: Log port name & baud rate] + B01C -- No --> B01E[⚠️ TEST FAIL: Print 'No radio detected'\nwith install hint] + end + + B01D --> B02 + + subgraph B02["BUILD-02 · Audio Device Enumeration"] + B02A[Use cpal to list all input/output devices] --> B02B[Print device names, sample rates, channels] + B02B --> B02C{Default in/out found?} + B02C -- Yes --> B02D[✅ TEST PASS: Audio subsystem ready] + B02C -- No --> B02E[⚠️ TEST FAIL: Prompt user to check\naudio settings] + end + + B02D --> B03 + + subgraph B03["BUILD-03 · AFSK Tone Generator"] + B03A[Generate 1200 Hz sine wave\n'mark' tone at 44.1kHz sample rate] --> B03B[Generate 2200 Hz sine wave\n'space' tone] + B03B --> B03C[Encode bit stream to tone sequence\nBell 202 standard] + B03C --> B03D[Write raw audio to .wav file] + B03D --> B03E[✅ TEST PASS: Play .wav — tones audible\nand distinct on oscilloscope/spectrum] + end + + B03E --> B04 + + subgraph B04["BUILD-04 · AFSK Demodulator"] + B04A[Read .wav tone file from B03] --> B04B[Apply bandpass filters:\n1200Hz ±100Hz, 2200Hz ±100Hz] + B04B --> B04C[Energy envelope detection\nper filter band] + B04C --> B04D[Threshold compare → bit stream] + B04D --> B04E[✅ TEST PASS: Decoded bits match\noriginal input from B03] + end + + B04E --> PHASE2([▶ Phase 2]) +``` + +--- + +## Phase 2 — Audio Path · Mic/Speaker Mode (No PTT Cable Required) + +> **🎙️ This phase enables the app to work with ZERO hardware beyond the radio itself.** +> The computer's microphone listens to the radio speaker. The computer's speakers (or headphone jack into the radio's mic socket) transmit audio. +> This lets anyone set a radio on a desk, tune it to a frequency, and have the computer receive and decode all traffic passively — or key-up manually via VOX. + +```mermaid +flowchart TD + PHASE2([▶ Phase 2 Entry]) --> B05 + + subgraph B05["BUILD-05 · Microphone Capture Input Stream"] + B05A[Open system default mic via cpal\nInput stream, 44.1kHz mono] --> B05B[Capture ring buffer — 512 sample chunks] + B05B --> B05C[Pipe buffer → AFSK demodulator from B04] + B05C --> B05D[✅ TEST PASS: Speak 'dit dah' into mic —\nbits appear in stdout] + end + + B05D --> B06 + + subgraph B06["BUILD-06 · Speaker Output Stream"] + B06A[Generate AFSK audio for test payload] --> B06B[Open system default output via cpal\nOutput stream, 44.1kHz mono] + B06B --> B06C[Play tones through speakers\nor 3.5mm headphone-to-radio-mic cable] + B06C --> B06D[✅ TEST PASS: Another SDR or radio\ndecodes the AFSK tones correctly] + end + + B06D --> B07 + + subgraph B07["BUILD-07 · VOX Level Detection\n(Auto Carrier Sense via Mic)"] + B07A[Monitor mic input RMS level\nin sliding 50ms window] --> B07B{RMS above squelch\nthreshold?} + B07B -- Yes --> B07C[Signal ACTIVE — radio is transmitting\nBlock our own TX] + B07B -- No --> B07D[Channel CLEAR — safe to transmit] + B07C --> B07E[✅ TEST: Play audio from one speaker,\nconfirm detection fires correctly] + B07D --> B07E + end + + B07E --> B08 + + subgraph B08["BUILD-08 · Full Mic/Speaker Loopback End-to-End\n🔑 KEY MILESTONE — Radio on Desk Mode"] + B08A["🎙️ Radio set to receive frequency\nComputer mic pointed at radio speaker"] --> B08B[Radio receives over-air packet\nfrom another station] + B08B --> B08C[Mic captures audio from radio speaker] + B08C --> B08D[cpal stream → AFSK demod → bit decode] + B08D --> B08E[Print decoded text to stdout] + B08E --> B08F["✅ TEST PASS: Any AX.25/APRS packet\non the frequency is decoded in terminal\n⭐ USER CAN LISTEN TO RADIO WITHOUT ANY CABLE"] + B08F --> B08G["📤 TX PATH: Encode payload → AFSK tones\n→ play through speakers\n→ radio mic jack picks up audio\n→ (user manually keys PTT or radio uses VOX)"] + B08G --> B08H["✅ TEST PASS: Remote station receives\nand decodes our transmission\n⭐ FULLY WIRELESS SETUP — NO PTT CABLE NEEDED"] + end + + B08H --> B09_NOTE["📝 NOTE: PTT cable support added in Phase 3\nas an optional enhancement. Mic/Speaker\npath remains supported throughout all builds."] + B09_NOTE --> PHASE3([▶ Phase 3]) +``` + +--- + +## Phase 3 — AX.25 Packet Layer + +```mermaid +flowchart TD + PHASE3([▶ Phase 3 Entry]) --> B09 + + subgraph B09["BUILD-09 · AX.25 Frame Assembler"] + B09A[Define AX.25 frame struct:\nsrc_callsign, dst_callsign, payload, flags] --> B09B[Implement bit-stuffing per AX.25 spec] + B09B --> B09C[Compute CRC-16-CCITT\nFCS field] + B09C --> B09D[Serialize frame to byte Vec] + B09D --> B09E[✅ TEST: Feed output to\nDirewolf decode — frame accepted] + end + + B09E --> B10 + + subgraph B10["BUILD-10 · PTT Control via RTS/DTR Pin\n(Optional Hardware Path)"] + B10A["🔌 Detect if PTT cable is connected\n(CHIRP-compatible USB cable)"] --> B10B{Cable detected?} + B10B -- Yes --> B10C[Assert RTS high → PTT engaged\nAssert RTS low → PTT released] + B10B -- No --> B10D["⚙️ Fall back to Mic/Speaker path\n(Phase 2 — no cable needed)"] + B10C --> B10E[✅ TEST: PTT LED on radio\nflashes on RTS toggle] + B10D --> B10E + end + + B10E --> B11 + + subgraph B11["BUILD-11 · Packet TX Pipeline"] + B11A[Payload string input] --> B11B[AX.25 frame assemble\nwith source callsign] + B11B --> B11C[AFSK modulate → audio buffer] + B11C --> B11D{PTT cable available?} + B11D -- Yes --> B11E[Assert RTS → play audio → release RTS] + B11D -- No --> B11F[Play audio via speaker\nUser or radio VOX keys PTT] + B11E --> B11G[✅ TEST: Remote station\ndecodes 'HELLO WORLD'] + B11F --> B11G + end + + B11G --> B12 + + subgraph B12["BUILD-12 · Packet RX Pipeline"] + B12A{Input source?} --> B12B["🎙️ Mic stream (Phase 2 path)"] + B12A --> B12C["🔌 Radio audio jack\nvia USB sound card"] + B12B --> B12D[AFSK demodulate → bit stream] + B12C --> B12D + B12D --> B12E[AX.25 frame disassemble] + B12E --> B12F[CRC validate] + B12F --> B12G{CRC pass?} + B12G -- Yes --> B12H[Extract callsign + payload\nPrint to stdout] + B12G -- No --> B12I[Discard + log CRC error] + B12H --> B12J[✅ TEST: Send from APRS client,\nreceive here with correct callsign] + end + + B12J --> B13 + + subgraph B13["BUILD-13 · Duplex Test — Full TX/RX Loop"] + B13A[Station A sends 'PING seq=1'] --> B13B[Station B receives + decodes] + B13B --> B13C[Station B sends 'PONG seq=1'] + B13C --> B13D[Station A receives + decodes] + B13D --> B13E[✅ TEST PASS: Round-trip packet\nconfirmed both directions] + end + + B13E --> PHASE4([▶ Phase 4]) +``` + +--- + +## Phase 4 — Identity, Codec & Compression + +```mermaid +flowchart TD + PHASE4([▶ Phase 4 Entry]) --> B14 + + subgraph B14["BUILD-14 · Client Identity System"] + B14A[Check ~/.config/hamnet-relay/config.toml\nfor existing identity seed] --> B14B{Seed exists?} + B14B -- No --> B14C[Generate 256-bit random seed\nWrite to config.toml] + B14B -- Yes --> B14D[Load seed from config] + B14C --> B14E[Compute Blake3 hash of seed\n= identity hash] + B14D --> B14E + B14E --> B14F[Truncate to first 8 bytes\nfor packet headers] + B14F --> B14G[✅ TEST: Re-run app — same\nhash reproduced from saved seed] + end + + B14G --> B15 + + subgraph B15["BUILD-15 · MessagePack Serialization"] + B15A[Define PostPayload struct:\nthread_id, board_id, text, image_opt,\nseq_num, identity_hash, callsign] --> B15B[Serialize via rmp-serde → bytes] + B15B --> B15C[Deserialize bytes back → struct] + B15C --> B15D[✅ TEST: Round-trip serialize/deserialize\nall fields match] + end + + B15D --> B16 + + subgraph B16["BUILD-16 · zstd Compression"] + B16A[Take serialized MessagePack bytes] --> B16B[zstd::encode_all\ncompression level 3] + B16B --> B16C[Log original vs compressed size] + B16C --> B16D[zstd::decode_all → decompress] + B16D --> B16E[✅ TEST: 1KB text payload\ncompresses to <200 bytes] + end + + B16E --> B17 + + subgraph B17["BUILD-17 · Full Payload Codec Pipeline"] + B17A[PostPayload struct] --> B17B[MessagePack serialize] + B17B --> B17C[zstd compress] + B17C --> B17D[Prepend header:\nidentity hash 8B + seq_num 4B + checksum 4B] + B17D --> B17E[AX.25 frame wrap] + B17E --> B17F[AFSK modulate] + B17F --> B17G[TX via speaker or PTT cable] + B17G --> B17H["✅ TEST: Remote station receives\npost text with callsign intact\nAll fields decoded correctly"] + end + + B17H --> PHASE5([▶ Phase 5]) +``` + +--- + +## Phase 5 — CSMA & TX Queue + +```mermaid +flowchart TD + PHASE5([▶ Phase 5 Entry]) --> B18 + + subgraph B18["BUILD-18 · Channel Carrier Sense"] + B18A["Monitor mic/audio input RMS\nin 50ms sliding window"] --> B18B{RMS > squelch\nthreshold?} + B18B -- Busy --> B18C[Channel BUSY — set busy flag] + B18B -- Clear --> B18D[Channel CLEAR — clear busy flag] + B18C --> B18E[✅ TEST: Play radio audio nearby\n— busy flag fires within 100ms] + B18D --> B18E + end + + B18E --> B19 + + subgraph B19["BUILD-19 · CSMA Listen-Before-Transmit"] + B19A[TX request arrives] --> B19B[Check channel busy flag] + B19B --> B19C{Channel clear\nfor 500ms?} + B19C -- No --> B19D[Back off: wait random\n50–500ms then retry] + B19D --> B19B + B19C -- Yes --> B19E[Proceed with transmission] + B19E --> B19F[✅ TEST: Two simulated stations\nno collision observed over 50 sends] + end + + B19F --> B20 + + subgraph B20["BUILD-20 · Priority TX Queue"] + B20A[Define priority levels:\nHIGH=beacon/ACK · MED=post · LOW=image chunk] --> B20B[Async mpsc channel-based queue\nper priority level] + B20B --> B20C[TX worker pops highest-priority item\nafter CSMA clears] + B20C --> B20D[Log queue depth + estimated TX time] + B20D --> B20E[✅ TEST: Flood queue with 10 LOW items,\ninsert 1 HIGH — HIGH transmits first] + end + + B20E --> PHASE6([▶ Phase 6]) +``` + +--- + +## Phase 6 — Local HTTP/WebSocket API + +```mermaid +flowchart TD + PHASE6([▶ Phase 6 Entry]) --> B21 + + subgraph B21["BUILD-21 · Axum HTTP Server"] + B21A[Spawn Axum server on 127.0.0.1:7373] --> B21B[Bind shared state:\ntx_queue, rx_buffer, radio_status, config] + B21B --> B21C[✅ TEST: curl localhost:7373/health\nreturns 200 OK] + end + + B21C --> B22 + + subgraph B22["BUILD-22 · REST Endpoints"] + B22A["GET /api/v1/status\n→ radio state, freq, queue depth, last RX"] --> B22E + B22B["POST /api/v1/transmit\n→ queue payload, return queue position"] --> B22E + B22C["GET /api/v1/queue\n→ pending outbound items"] --> B22E + B22D["POST /api/v1/queue/id/cancel\n→ cancel queued item"] --> B22E + B22E["GET /api/v1/peers\n→ known identity hashes + timestamps"] --> B22F + B22F["GET /api/v1/received\n→ paginated RX packet log + since= filter"] --> B22G + B22G["GET /api/v1/files\n→ received file list"] --> B22H + B22H["GET+POST /api/v1/config\n→ read/write runtime config"] + B22H --> B22I[✅ TEST: All endpoints return correct\nJSON schema matching spec] + end + + B22I --> B23 + + subgraph B23["BUILD-23 · WebSocket /subscribe Endpoint"] + B23A[Client connects to WS /api/v1/subscribe] --> B23B[Server holds open connection] + B23B --> B23C[On inbound packet: push PACKET_RECEIVED event] + B23C --> B23D[On TX complete: push TX_COMPLETE event] + B23D --> B23E[On peer heard: push PEER_SEEN event] + B23E --> B23F[✅ TEST: wscat client receives\nreal-time events on packet receive] + end + + B23F --> B24 + + subgraph B24["BUILD-24 · TOML Config System"] + B24A["~/.config/hamnet-relay/config.toml\nmode, callsign, frequency, quality_cap\napi_port, squelch_threshold, band_region"] --> B24B[serde + toml deserialize on startup] + B24B --> B24C[Runtime overrides via CLI flags] + B24C --> B24D[POST /api/v1/config persists changes\nto disk] + B24D --> B24E[✅ TEST: Change quality_cap via API,\nrestart — setting persists] + end + + B24E --> PHASE7([▶ Phase 7]) +``` + +--- + +## Phase 7 — Radio Programming & Frequency Sync + +```mermaid +flowchart TD + PHASE7([▶ Phase 7 Entry]) --> B25 + + subgraph B25["BUILD-25 · CHIRP Protocol / Baofeng Programming"] + B25A[Detect radio on serial port] --> B25B[Send CHIRP init sequence\nvia serialport crate] + B25B --> B25C[Write channel entry:\nfreq_mhz, offset_mhz, ctcss, power] + B25C --> B25D[Confirm write with readback] + B25D --> B25E[✅ TEST: Radio displays programmed\nfrequency after sequence completes] + end + + B25E --> B26 + + subgraph B26["BUILD-26 · Band Plan Validation"] + B26A[Embed ITU Region 1/2/3 +\nFCC Part 97 sub-band lookup table] --> B26B[On config/programming: check freq\nagainst region table] + B26B --> B26C{Freq in valid\nham band?} + B26C -- Yes --> B26D[✅ Proceed] + B26C -- No --> B26E[⚠️ Warn user — frequency is out-of-band\nfor configured region. Not blocked, advisory only.] + end + + B26D --> B27 + B26E --> B27 + + subgraph B27["BUILD-27 · Server Beacon TX"] + B27A[Server starts → programs radio] --> B27B[Every 10 min: assemble BEACON frame] + B27B --> B27C["Beacon payload: freq, mode, baud,\nserver identity hash, callsign (REQUIRED by FCC)"] + B27C --> B27D[Push beacon to HIGH priority\nTX queue] + B27D --> B27E[✅ TEST: Beacon received and decoded\nby test station every 10 min] + end + + B27E --> B28 + + subgraph B28["BUILD-28 · Client Beacon RX & Sync"] + B28A[Client listens on default/config freq\nfor BEACON frame type] --> B28B[Receive and decode beacon] + B28B --> B28C[Extract server freq params] + B28C --> B28D[Program own radio to match\nvia CHIRP sequence] + B28D --> B28E[Transmit SYNC_ACK frame\nwith client identity hash + callsign] + B28E --> B28F[✅ TEST: Client auto-tunes radio\nand sends ACK within 30s of beacon] + end + + B28F --> B29 + + subgraph B29["BUILD-29 · Full Sync Handshake & Peer Registry"] + B29A[Server receives SYNC_ACK] --> B29B[Register client:\nhash → last_seen, callsign, freq_confirmed] + B29B --> B29C[Server sends SYNC_CONFIRM\nwith session params] + B29C --> B29D[Data exchange authorized] + B29D --> B29E[✅ TEST: /api/v1/peers returns\nclient entry after handshake completes] + end + + B29E --> PHASE8([▶ Phase 8]) +``` + +--- + +## Phase 8 — Image & File Transfer + +```mermaid +flowchart TD + PHASE8([▶ Phase 8 Entry]) --> B30 + + subgraph B30["BUILD-30 · Image Quality Tier System"] + B30A[Input: raw image file] --> B30B[Read quality tier from config/request:\nTIER 1 / 2 / 3] + B30B --> B30C{Tier} + B30C -- TIER 1 --> B30D["64×64px · JPEG 30%\n~2KB · ~15s TX"] + B30C -- TIER 2 --> B30E["128×128px · JPEG 60%\n~8KB · ~55s TX"] + B30C -- TIER 3 --> B30F["256×256px · JPEG 85%\n~25KB · ~3min TX"] + B30D --> B30G[Encode via image crate → JPEG bytes] + B30E --> B30G + B30F --> B30G + B30G --> B30H[zstd compress JPEG bytes] + B30H --> B30I[✅ TEST: Output size within expected\nbandwidth budget for tier] + end + + B30I --> B31 + + subgraph B31["BUILD-31 · Image TX Over Radio"] + B31A[Compressed image bytes] --> B31B[Split into 256-byte chunks] + B31B --> B31C[Each chunk gets seq_num + total_chunks\n+ crc32 checksum] + B31C --> B31D[AX.25 wrap each chunk] + B31D --> B31E[Queue all chunks in TX queue] + B31E --> B31F[Transmit with CSMA between each chunk] + B31F --> B31G[✅ TEST TIER 1: 64×64 image received\nand reconstructed within 20s] + end + + B31G --> B32 + + subgraph B32["BUILD-32 · Chunked File Transfer Protocol"] + B32A[Any file input → zstd compress] --> B32B[Split into 256-byte chunks\nwith chunk_index + total_chunks] + B32B --> B32C[Transmit FILE_HEADER frame first:\nfilename, total_size, total_chunks, hash] + B32C --> B32D[Transmit DATA chunks sequentially] + B32D --> B32E[Transmit FILE_EOF frame] + B32E --> B32F[Receiver reassembles chunks\nto output directory] + B32F --> B32G[✅ TEST: 10KB text file transferred,\nreassembled, hash matches] + end + + B32G --> B33 + + subgraph B33["BUILD-33 · ACK/NACK Retransmit"] + B33A[Receiver sends ACK per chunk\nor NACK with missing seq_nums] --> B33B{NACK received?} + B33B -- Yes --> B33C[Re-queue missing chunks\nat HIGH priority] + B33C --> B33A + B33B -- No → All ACKd --> B33D[Transfer complete] + B33D --> B33E[✅ TEST: Simulate 20% packet loss —\nall chunks eventually retransmitted] + end + + B33E --> B34 + + subgraph B34["BUILD-34 · File Reassembly & Storage"] + B34A[All chunks received for a transfer] --> B34B[Decompress zstd → original bytes] + B34B --> B34C[Verify Blake3/SHA3 hash\nagainst FILE_HEADER] + B34C --> B34D{Hash valid?} + B34D -- Yes --> B34E[Write to ~/hamnet-relay/received/\nwith source callsign prefix] + B34D -- No --> B34F[Discard + send NACK for all chunks\nRequest full retransmit] + B34E --> B34G[Emit PACKET_RECEIVED event\nvia WebSocket to subscribers] + B34G --> B34H[✅ TEST: File on disk matches\noriginal byte-for-byte] + end + + B34H --> PHASE9([▶ Phase 9]) +``` + +--- + +## Phase 9 — RustChan Integration + +```mermaid +flowchart TD + PHASE9([▶ Phase 9 Entry]) --> B35 + + subgraph B35["BUILD-35 · RustChan Incoming Webhook\n[RustChan: NEW endpoint]"] + B35A["RustChan adds:\nPOST /api/hamnet/incoming"] --> B35B["Accepts: { text, thread_id, board_id,\ncallsign, identity_hash, image_b64_opt }"] + B35B --> B35C[Authenticates via shared local secret\nenv var HAMNET_SECRET] + B35C --> B35D[Creates post in database\nas if submitted normally] + B35D --> B35E[✅ TEST: curl POST to endpoint\npost appears on board with correct content] + end + + B35E --> B36 + + subgraph B36["BUILD-36 · HAM Source Badge on Posts\n[RustChan: NEW DB fields + UI]"] + B36A["Add nullable columns to posts table:\nham_source_hash TEXT\nham_callsign TEXT"] --> B36B["UI: render 📻 via HAM badge\non posts where ham_callsign IS NOT NULL"] + B36B --> B36C[Show truncated identity hash\n+ callsign in badge tooltip] + B36C --> B36D[✅ TEST: HAM-received post\nshows badge; normal post does not] + end + + B36D --> B37 + + subgraph B37["BUILD-37 · Thread Watch / Subscription API\n[RustChan: NEW endpoint]"] + B37A["RustChan adds:\nGET /api/threads/{id}/updates?since={ts}"] --> B37B[Returns new posts for thread\nsince given timestamp or post_id] + B37B --> B37C[HAMNET-RELAY polls this endpoint\non configured interval per watched thread] + B37C --> B37D[New posts queued for radio TX\nat appropriate quality tier] + B37D --> B37E[✅ TEST: Post to watched thread —\nHAMNET-RELAY logs 'queued for TX' within poll interval] + end + + B37E --> B38 + + subgraph B38["BUILD-38 · Outbound Hook on Post Submit\n[RustChan: MODIFY submit handler]"] + B38A[User submits post to HAM-enabled board] --> B38B{Board is\nHAM-enabled?} + B38B -- Yes --> B38C["Async fire-and-forget:\nPOST /api/v1/transmit to HAMNET-RELAY\nDo NOT block post submission on this"] + B38B -- No --> B38D[Normal post submit only] + B38C --> B38E[✅ TEST: Submit post to HAM board\n→ TX queue gains new item immediately] + B38D --> B38E + end + + B38E --> B39 + + subgraph B39["BUILD-39 · RustChan Admin Config Panel\n[RustChan: MODIFY admin UI]"] + B39A["Add [hamnet] section to RustChan config:\nrelay_url, api_key, enabled_boards[]\nauto_push, auto_pull, pull_interval_secs"] --> B39B[Admin panel UI section:\ntoggle HAM per board, set relay URL/key] + B39B --> B39C[Config stored in TOML or admin DB table] + B39C --> B39D[✅ TEST: Disable HAM on board —\nTX hook no longer fires for that board] + end + + B39D --> B40 + + subgraph B40["BUILD-40 · Callsign / Identity Association\n[RustChan: NEW user settings field]"] + B40A[User settings page: optional FCC callsign field] --> B40B[Callsign stored per account\nor per-session field at TX time] + B40B --> B40C[Included in outbound HAMNET packet\ncallsign field of AX.25 frame] + B40C --> B40D[✅ TEST: Submit post with callsign set —\nreceiving station sees correct callsign in packet] + end + + B40D --> PHASE10([▶ Phase 10]) +``` + +--- + +## Phase 10 — RustChan Real-Time Data Streaming + +```mermaid +flowchart TD + PHASE10([▶ Phase 10 Entry]) --> B41 + + subgraph B41["BUILD-41 · WebSocket Push: HAMNET-RELAY → RustChan"] + B41A[RustChan connects to\nWS /api/v1/subscribe on HAMNET-RELAY] --> B41B[HAMNET-RELAY pushes PACKET_RECEIVED\nevents to RustChan in real-time] + B41B --> B41C[RustChan handler creates post\non every inbound packet event] + B41C --> B41D[✅ TEST: Transmit from remote station —\npost appears on RustChan board\nwithin seconds of receipt] + end + + B41D --> B42 + + subgraph B42["BUILD-42 · Streaming Post Flow — Full Pipeline"] + direction LR + B42A[Remote HAM station\nwith hamnet-relay client] -->|"AFSK over RF"| B42B[Server radio\nreceives signal] + B42B -->|"mic/speaker or\naudio jack"| B42C[hamnet-relay\nAFSK demod + AX.25 unpack] + B42C -->|"WS PACKET_RECEIVED event"| B42D[RustChan\nWebSocket handler] + B42D -->|"POST /api/hamnet/incoming"| B42E[Post created in DB\nwith 📻 via HAM badge] + B42E -->|"SSE/WS push to browser"| B42F[RustChan board\nupdates in real-time for\nall connected users] + B42F --> B42G[✅ END-TO-END TEST:\nPost sent by remote HAM operator\nappears on board within 10s] + end + + B42G --> B43 + + subgraph B43["BUILD-43 · Image Pipeline Quality-Tier Awareness\n[RustChan: MODIFY image handler]"] + B43A[RustChan exposes image dimensions\n+ original file size in API response] --> B43B[HAMNET-RELAY reads these metadata fields] + B43B --> B43C[Selects quality tier based on:\nfile size, server quality_cap config] + B43C --> B43D[Pre-scales if over tier limit\nor passes to relay's codec] + B43D --> B43E[Option: Store ham_thumbnail variant\nin RustChan DB] + B43E --> B43F[✅ TEST: Large image auto-downscaled\nto TIER 1 before TX when server cap = 1] + end + + B43F --> B44 + + subgraph B44["BUILD-44 · Radio Status Widget in RustChan\n[RustChan: OPTIONAL admin UI widget]"] + B44A[RustChan admin page polls\nGET /api/v1/status every 5s] --> B44B["Display live:\n● Radio connected/disconnected\n● Current frequency\n● TX queue depth\n● Last RX timestamp\n● Known peer count"] + B44B --> B44C[✅ TEST: Disconnect radio USB —\nstatus widget shows 'DISCONNECTED' within 10s] + end + + B44C --> B45 + + subgraph B45["BUILD-45 · Offline / Radio-Only Mode\n[RustChan: OPTIONAL session flag]"] + B45A[Session or user-level flag:\nradio_only_mode = true] --> B45B[UI renders only HAM-received content] + B45B --> B45C[Images shown at received resolution\nwith 'radio quality' disclaimer] + B45C --> B45D[Post timestamps reflect radio-received time\nnot server wall-clock] + B45D --> B45E[✅ TEST: Enable flag — only\nham_callsign posts visible on board] + end + + B45E --> PHASE11([▶ Phase 11]) +``` + +--- + +## Phase 11 — Mesh Network & Digipeater Mode + +> ⚠️ **Complexity Warning:** Build to maturity at Phase 10 before starting Phase 11. +> Mesh adds loop prevention, routing convergence, and beacon bandwidth concerns. + +```mermaid +flowchart TD + PHASE11([▶ Phase 11 Entry]) --> B46 + + subgraph B46["BUILD-46 · Digipeater / Relay Mode\n(--mode=relay)"] + B46A[Node launched with --mode=relay] --> B46B[Listen for all AX.25 packets on frequency] + B46B --> B46C{Packet addressed\nto WIDE1-1 or\nlocal relay callsign?} + B46C -- Yes --> B46D[Decrement hop count in header] + B46D --> B46E{Hops > 0?} + B46E -- Yes --> B46F[Re-transmit packet\nwith own callsign appended\nto digipeater path] + B46E -- No --> B46G[Discard — hop limit reached] + B46F --> B46H[✅ TEST: Packet from Station A\nrepeated by relay node,\nreceived by Station B out of direct range] + B46C -- No --> B46I[Ignore — not addressed to us] + end + + B46H --> B47 + + subgraph B47["BUILD-47 · Neighbor Beacons & Routing Table"] + B47A[Every 5 min: broadcast ROUTING_BEACON\nwith known neighbors + hop distances] --> B47B[Receive neighbor beacons from other nodes] + B47B --> B47C[Build local routing table:\nnext_hop → destination mappings] + B47C --> B47D[Select optimal next-hop\nfor outbound packets] + B47D --> B47E[✅ TEST: 3-node setup —\nrouting table converges within 2 beacon cycles\noptimal path selected] + end + + B47E --> B48 + + subgraph B48["BUILD-48 · Store-and-Forward"] + B48A[Packet arrives for forwarding\nbut channel is busy\nor next-hop not recently heard] --> B48B[Store packet in local queue\nwith TTL timestamp] + B48B --> B48C{Next-hop heard\nor channel clear?} + B48C -- No --> B48D[Retry after backoff\nuntil TTL expires] + B48C -- Yes --> B48E[Forward stored packet] + B48E --> B48F[✅ TEST: Temporarily block next-hop\n— packet delivered after next-hop comes back\nwithin TTL window] + end + + B48F --> B49 + + subgraph B49["BUILD-49 · Full Multi-Hop End-to-End Test"] + B49A["Station A (no direct path to C)"] -->|"hop 1 via relay node B"| B49B[Relay Node B] + B49B -->|"hop 2 to destination"| B49C[Station C / RustChan Server] + B49C --> B49D[RustChan post created\nwith multi-hop path in HAM badge] + B49D --> B49E[✅ FINAL TEST: Message originating\nfrom out-of-range station successfully\ndelivered via mesh to RustChan board\nCall path preserved in AX.25 digipeater field] + end + + B49E --> DONE + + DONE(["🏁 COMPLETE\nHAMNET-RELAY v1.0\nFull RustChan Streaming\nMesh-Capable\nMic/Speaker & PTT Cable Supported"]) +``` + +--- + +## Regulatory Compliance Checkpoints + +> Apply at every TX-capable build (B11+) + +```mermaid +flowchart LR + RC1["✗ NO ENCRYPTION\nAll content must be decodable\nby any licensed amateur.\nzstd + JPEG = encoding, NOT encryption ✅"] --> RC2 + RC2["⚠ CALLSIGN TX\nMust transmit FCC callsign\nin plain text every 10 min\nand at end of each comms.\nBuilt into beacon + AX.25 src field"] --> RC3 + RC3["✗ NO COMMERCIAL USE\nHAMNET-RELAY + RustChan\nmust remain non-commercial\nfor any HAM-over-radio deployment"] --> RC4 + RC4["⚠ EMISSION TYPE\nAFSK 1200 baud = F2D or F1D emission\nVerify against license class\nand regional band plan"] --> RC5 + RC5["✅ IDENTITY HASH\nBlake3 hash = pseudonymous identifier\nnot encryption. Document derivation\nmethod publicly in open-source repo"] +``` + +--- + +## Build Index Summary + +| Build | Phase | Description | Key Test | +|-------|-------|-------------|----------| +| B01 | 1 | Serial port detection | CH340/CP2102 enumerated | +| B02 | 1 | Audio device enumeration | Default in/out found | +| B03 | 1 | AFSK tone generator | .wav audible + correct frequencies | +| B04 | 1 | AFSK demodulator | Decoded bits match input | +| **B05** | **2** | **Mic capture input stream** | **Tones decoded from mic** | +| **B06** | **2** | **Speaker output stream** | **Remote station decodes our TX** | +| **B07** | **2** | **VOX carrier sense via mic** | **Busy flag fires on signal** | +| **B08** | **2** | **🔑 Full mic/speaker loopback — Radio on Desk Mode** | **Any on-air packet decoded from mic alone** | +| B09 | 3 | AX.25 frame assembler | Direwolf accepts output | +| B10 | 3 | PTT control via RTS/DTR | PTT LED flashes | +| B11 | 3 | Packet TX pipeline | Remote decodes 'HELLO WORLD' | +| B12 | 3 | Packet RX pipeline | APRS packet decoded with callsign | +| B13 | 3 | Full TX/RX duplex test | PING/PONG round-trip | +| B14 | 4 | Client identity (Blake3) | Same hash on restart | +| B15 | 4 | MessagePack serialization | Round-trip struct match | +| B16 | 4 | zstd compression | 1KB → <200 bytes | +| B17 | 4 | Full payload codec pipeline | Post decoded at receiver | +| B18 | 5 | Channel carrier sense | Busy flag within 100ms | +| B19 | 5 | CSMA listen-before-transmit | No collision over 50 sends | +| B20 | 5 | Priority TX queue | HIGH priority transmitted first | +| B21 | 6 | Axum HTTP server | /health returns 200 | +| B22 | 6 | REST endpoints | All endpoints return correct JSON | +| B23 | 6 | WebSocket /subscribe | Real-time events on packet RX | +| B24 | 6 | TOML config system | Config persists across restart | +| B25 | 7 | CHIRP/Baofeng programming | Radio displays programmed freq | +| B26 | 7 | Band plan validation | Out-of-band freq triggers warning | +| B27 | 7 | Server beacon TX | Beacon decoded every 10 min | +| B28 | 7 | Client beacon RX + sync | Client auto-tunes within 30s | +| B29 | 7 | Full sync handshake | /peers shows client after handshake | +| B30 | 8 | Image quality tier system | Output within bandwidth budget | +| B31 | 8 | Image TX over radio | 64×64 received + reconstructed | +| B32 | 8 | Chunked file transfer | 10KB file transferred + hash match | +| B33 | 8 | ACK/NACK retransmit | 20% packet loss recovered | +| B34 | 8 | File reassembly + storage | File on disk matches original | +| B35 | 9 | RustChan incoming webhook | Post appears on board via curl | +| B36 | 9 | HAM source badge | 📻 badge on HAM posts | +| B37 | 9 | Thread watch/subscription API | TX queued on new watched post | +| B38 | 9 | Outbound TX hook | TX queue item on HAM board submit | +| B39 | 9 | RustChan admin config panel | Disabling board stops TX hook | +| B40 | 9 | Callsign/identity association | Callsign in AX.25 source field | +| B41 | 10 | WS push relay→RustChan | Post appears within seconds | +| **B42** | **10** | **🔑 Full streaming pipeline end-to-end** | **Remote post on board within 10s** | +| B43 | 10 | Image quality tier awareness | Large image auto-downscaled | +| B44 | 10 | Radio status widget | Disconnect shows within 10s | +| B45 | 10 | Offline/radio-only mode | Only HAM posts visible | +| B46 | 11 | Digipeater --mode=relay | Packet repeated for out-of-range station | +| B47 | 11 | Routing table + neighbor beacons | Optimal path selected | +| B48 | 11 | Store-and-forward | Delayed packet delivered within TTL | +| **B49** | **11** | **🏁 Multi-hop end-to-end mesh test** | **Out-of-range post on RustChan board** | + +--- + +*HAMNET-RELAY · Architecture Build Roadmap · PRE-DEVELOPMENT DRAFT · 73 DE HAMNET* diff --git a/src/config.rs b/src/config.rs new file mode 100644 index 0000000..69b2694 --- /dev/null +++ b/src/config.rs @@ -0,0 +1,21 @@ +/// PCM sample rate used for all WAV files (Hz). +pub const SAMPLE_RATE: u32 = 44_100; + +/// Baud rate: symbols (bits) transmitted per second. +pub const BAUD_RATE: u32 = 1_200; + +/// Audio frequency used to represent a mark bit (1) — Hz. +pub const MARK_FREQ: f64 = 1_200.0; + +/// Audio frequency used to represent a space bit (0) — Hz. +pub const SPACE_FREQ: f64 = 2_200.0; + +/// Sine-wave amplitude in the range [0, 1]. +pub const AMPLITUDE: f64 = 0.9; + +/// Number of 0xAA preamble bytes prepended before the sync word. +/// These alternating bits let the decoder lock onto the bit clock. +pub const PREAMBLE_LEN: usize = 24; + +/// Two-byte sync word that marks the start of the frame header. +pub const SYNC: [u8; 2] = [0x7E, 0x7E]; diff --git a/src/decoder.rs b/src/decoder.rs new file mode 100644 index 0000000..ca5b453 --- /dev/null +++ b/src/decoder.rs @@ -0,0 +1,274 @@ +use crate::config::{BAUD_RATE, MARK_FREQ, SAMPLE_RATE, SPACE_FREQ}; +use crate::framer::Decoded; +use std::f64::consts::TAU; + +/// Decode PCM samples back to the original filename and payload bytes. +pub fn decode_progress( + samples: &[f64], + on_progress: impl Fn(f32) + Clone, +) -> Result { + let spb = f64::from(SAMPLE_RATE) / f64::from(BAUD_RATE); + #[allow(clippy::cast_possible_truncation, clippy::cast_sign_loss)] + let spb_int = spb.round() as usize; + + for offset in 0..spb_int { + let bits = samples_to_bits(samples, offset, on_progress.clone()); + if let Ok(decoded) = find_frame_in_bits(&bits) { + on_progress(1.0); + return Ok(decoded); + } + } + + Err("could not decode signal — sync word not found at any clock phase".into()) +} + +/// Convenience wrapper with no progress reporting. +pub fn decode(samples: &[f64]) -> Result { + decode_progress(samples, |_| {}) +} + +// --------------------------------------------------------------------------- +// Step 1 — sample → bit stream via Goertzel +// --------------------------------------------------------------------------- + +#[allow( + clippy::cast_precision_loss, // usize → f64 for idx / total: acceptable at these scales + clippy::cast_possible_truncation, // f64.round() → usize: always positive integer + clippy::cast_sign_loss, // f64.round() → usize: value is always ≥ 0 + clippy::arithmetic_side_effects, // float arithmetic cannot panic + clippy::indexing_slicing, // start..end is bounds-checked by the loop guard above +)] +fn samples_to_bits(samples: &[f64], offset: usize, on_progress: impl Fn(f32)) -> Vec { + let spb = f64::from(SAMPLE_RATE) / f64::from(BAUD_RATE); + let total = samples.len().max(1); + let mut bits = Vec::new(); + let mut idx: usize = 0; + + loop { + let start = offset + (idx as f64 * spb).round() as usize; + let end = offset + ((idx + 1) as f64 * spb).round() as usize; + if end > samples.len() { + break; + } + + let w = &samples[start..end]; + bits.push(goertzel(w, MARK_FREQ, SAMPLE_RATE) > goertzel(w, SPACE_FREQ, SAMPLE_RATE)); + + if idx.is_multiple_of(32) { + #[allow(clippy::cast_precision_loss)] + on_progress(end as f32 / total as f32); + } + idx += 1; + } + bits +} + +// --------------------------------------------------------------------------- +// Step 2 — search the bit stream for the frame +// --------------------------------------------------------------------------- + +// All slice indexing in this function is guarded by explicit bounds checks +// immediately above each access, so indexing_slicing is a false positive here. +// try_into() on a Vec produced by bits_to_bytes with an exact bit-width input +// is guaranteed to succeed, so expect_used is also a false positive. +#[allow( + clippy::arithmetic_side_effects, // integer index arithmetic; bounds checked manually + clippy::indexing_slicing, // every slice is bounds-checked before access + clippy::expect_used, // try_into() cannot fail: Vec length is exact +)] +fn find_frame_in_bits(bits: &[bool]) -> Result { + let sync_bits: Vec = [0x7E_u8, 0x7E] + .iter() + .flat_map(|&b| (0..8u8).rev().map(move |i| (b >> i) & 1 == 1)) + .collect(); + let sync_len = sync_bits.len(); // 16 + + let mut search = 0usize; + while search + sync_len <= bits.len() { + let Some(rel) = bits[search..] + .windows(sync_len) + .position(|w| w == sync_bits.as_slice()) + else { + break; + }; + + let sync_start = search + rel; + let mut cursor = sync_start + sync_len; + + // ── name_len (u16 LE) ───────────────────────────────────────── + if cursor + 16 > bits.len() { + break; + } + let name_len = { + let b = bits_to_bytes(&bits[cursor..cursor + 16]); + u16::from_le_bytes(b.try_into().expect("bits_to_bytes(16 bits) = 2 bytes")) as usize + }; + cursor += 16; + + if name_len > 255 { + search = sync_start + 1; + continue; + } + + // ── name bytes ──────────────────────────────────────────────── + let name_bits = name_len * 8; + if cursor + name_bits > bits.len() { + search = sync_start + 1; + continue; + } + let name_bytes = bits_to_bytes(&bits[cursor..cursor + name_bits]); + let filename = String::from_utf8_lossy(&name_bytes).into_owned(); + cursor += name_bits; + + // ── payload_len (u32 LE) ────────────────────────────────────── + if cursor + 32 > bits.len() { + break; + } + let payload_len = { + let b = bits_to_bytes(&bits[cursor..cursor + 32]); + u32::from_le_bytes(b.try_into().expect("bits_to_bytes(32 bits) = 4 bytes")) as usize + }; + cursor += 32; + + if payload_len > 1_000_000 { + search = sync_start + 1; + continue; + } + + // ── payload ─────────────────────────────────────────────────── + let payload_start = cursor; + let payload_end = payload_start + payload_len * 8; + let crc_end = payload_end + 16; + if crc_end > bits.len() { + search = sync_start + 1; + continue; + } + + // ── CRC check ───────────────────────────────────────────────── + let frame_bytes = bits_to_bytes(&bits[sync_start..payload_end]); + let computed = crate::framer::crc16(&frame_bytes); + let stored = { + let b = bits_to_bytes(&bits[payload_end..crc_end]); + u16::from_le_bytes(b.try_into().expect("bits_to_bytes(16 bits) = 2 bytes")) + }; + + if stored == computed { + return Ok(Decoded { + filename, + data: bits_to_bytes(&bits[payload_start..payload_end]), + }); + } + + search = sync_start + 1; + } + + Err("sync word not found".into()) +} + +// --------------------------------------------------------------------------- +// Non-integer Goertzel DFT +// --------------------------------------------------------------------------- + +#[allow(clippy::arithmetic_side_effects)] // float arithmetic cannot panic +fn goertzel(samples: &[f64], freq: f64, sample_rate: u32) -> f64 { + let w = TAU * freq / f64::from(sample_rate); + let coeff = 2.0 * w.cos(); + let (mut s1, mut s2) = (0.0_f64, 0.0_f64); + for &x in samples { + let s0 = x.mul_add(1.0, coeff.mul_add(s1, -s2)); + s2 = s1; + s1 = s0; + } + let real = s2.mul_add(-w.cos(), s1); + let imag = s2 * w.sin(); + real.mul_add(real, imag * imag) +} + +// --------------------------------------------------------------------------- +// Bit / byte helpers +// --------------------------------------------------------------------------- + +#[allow(clippy::arithmetic_side_effects)] // i is always 0..=7 from enumerate() on chunks(8) +pub fn bits_to_bytes(bits: &[bool]) -> Vec { + bits.chunks(8) + .map(|chunk| { + chunk + .iter() + .enumerate() + .fold(0u8, |acc, (i, &b)| acc | if b { 1 << (7 - i) } else { 0 }) + }) + .collect() +} + +// --------------------------------------------------------------------------- +// Tests +// --------------------------------------------------------------------------- + +#[cfg(test)] +mod tests { + use super::*; + use crate::{encoder, framer}; + + #[test] + #[allow( + clippy::cast_possible_truncation, + clippy::cast_sign_loss, + clippy::cast_precision_loss, + clippy::arithmetic_side_effects + )] + fn goertzel_discriminates_mark_vs_space() { + let spb = (f64::from(SAMPLE_RATE) / f64::from(BAUD_RATE)).round() as usize; + let mark_samples: Vec = (0..spb) + .map(|i| (TAU * MARK_FREQ * i as f64 / f64::from(SAMPLE_RATE)).sin()) + .collect(); + let space_samples: Vec = (0..spb) + .map(|i| (TAU * SPACE_FREQ * i as f64 / f64::from(SAMPLE_RATE)).sin()) + .collect(); + + assert!( + goertzel(&mark_samples, MARK_FREQ, SAMPLE_RATE) + > goertzel(&mark_samples, SPACE_FREQ, SAMPLE_RATE) + ); + assert!( + goertzel(&space_samples, SPACE_FREQ, SAMPLE_RATE) + > goertzel(&space_samples, MARK_FREQ, SAMPLE_RATE) + ); + } + + #[test] + fn full_round_trip_text() -> Result<(), String> { + let payload = b"Hello, AFSK!"; + let samples = encoder::encode(&framer::frame(payload, "hello.txt")); + let decoded = decode(&samples)?; + assert_eq!(decoded.data, payload); + assert_eq!(decoded.filename, "hello.txt"); + Ok(()) + } + + #[test] + fn full_round_trip_all_bytes() -> Result<(), String> { + let payload: Vec = (0u8..=255).collect(); + let samples = encoder::encode(&framer::frame(&payload, "all.bin")); + let decoded = decode(&samples)?; + assert_eq!(decoded.data, payload); + assert_eq!(decoded.filename, "all.bin"); + Ok(()) + } + + #[test] + fn full_round_trip_empty() -> Result<(), String> { + let samples = encoder::encode(&framer::frame(&[], "empty.bin")); + let decoded = decode(&samples)?; + assert!(decoded.data.is_empty()); + Ok(()) + } + + #[test] + fn filename_with_dots_preserved() -> Result<(), String> { + let payload = b"compressed archive"; + let samples = encoder::encode(&framer::frame(payload, "archive.tar.gz")); + let decoded = decode(&samples)?; + assert_eq!(decoded.filename, "archive.tar.gz"); + Ok(()) + } +} diff --git a/src/encoder.rs b/src/encoder.rs new file mode 100644 index 0000000..bc49c7f --- /dev/null +++ b/src/encoder.rs @@ -0,0 +1,53 @@ +use crate::config::{AMPLITUDE, BAUD_RATE, MARK_FREQ, SAMPLE_RATE, SPACE_FREQ}; +use std::f64::consts::TAU; + +/// Encode `framed` bytes into PCM audio samples. +/// Calls `on_progress` with a value in 0.0..=1.0 as bits are processed. +#[allow( + clippy::cast_precision_loss, // usize → f64 for idx / total_bits + clippy::cast_possible_truncation, // f64 → usize for silence_len / start / end + clippy::cast_sign_loss, // f64.round() → usize (always positive) + clippy::arithmetic_side_effects, // float arithmetic; no panic risk +)] +pub fn encode_progress(framed: &[u8], on_progress: impl Fn(f32)) -> Vec { + let spb = f64::from(SAMPLE_RATE) / f64::from(BAUD_RATE); + + let bits: Vec = framed + .iter() + .flat_map(|&byte| (0..8u8).rev().map(move |i| (byte >> i) & 1 == 1)) + .collect(); + + let total_bits = bits.len().max(1); + let silence_len = (f64::from(SAMPLE_RATE) * 0.05) as usize; + let signal_len = (bits.len() as f64 * spb).round() as usize; + let mut samples = Vec::with_capacity(silence_len * 2 + signal_len); + + samples.extend(std::iter::repeat_n(0.0_f64, silence_len)); + + let mut phase = 0.0_f64; + for (idx, &bit) in bits.iter().enumerate() { + let freq = if bit { MARK_FREQ } else { SPACE_FREQ }; + let phase_inc = TAU * freq / f64::from(SAMPLE_RATE); + + let start = (idx as f64 * spb).round() as usize; + let end = ((idx + 1) as f64 * spb).round() as usize; + + for _ in start..end { + samples.push(AMPLITUDE * phase.sin()); + phase = (phase + phase_inc) % TAU; + } + + if idx % 64 == 0 { + on_progress(idx as f32 / total_bits as f32); + } + } + + samples.extend(std::iter::repeat_n(0.0_f64, silence_len)); + on_progress(1.0); + samples +} + +/// Convenience wrapper with no progress reporting (used by CLI and tests). +pub fn encode(framed: &[u8]) -> Vec { + encode_progress(framed, |_| {}) +} diff --git a/src/framer.rs b/src/framer.rs new file mode 100644 index 0000000..6368759 --- /dev/null +++ b/src/framer.rs @@ -0,0 +1,215 @@ +/// Frame layout (v2 — stores original filename) +/// +/// ┌──────────────┬────────┬──────────────┬──────┬──────────────┬─────────┬────────┐ +/// │ preamble N×AA│ 7E 7E │ `name_len` u16 │ name │ `payload_len` │ payload │ CRC-16 │ +/// └──────────────┴────────┴──────────────┴──────┴──────────────┴─────────┴────────┘ +/// ◄──────────────────── CRC covers this span ──────────────────────► +use crate::config::{PREAMBLE_LEN, SYNC}; + +/// Wrap `data` in a transmittable frame, embedding `filename` so the decoder +/// can reconstruct the file with the correct name and extension. +#[allow( + clippy::arithmetic_side_effects, // capacity arithmetic is safe; values are small by construction + clippy::indexing_slicing, // out[PREAMBLE_LEN..] is valid: preamble bytes are always pushed first +)] +pub fn frame(data: &[u8], filename: &str) -> Vec { + let name_bytes = filename.as_bytes(); + let name_len = name_bytes.len().min(255); // cap at 255 bytes + let name_bytes = name_bytes.get(..name_len).unwrap_or(name_bytes); + + let capacity = PREAMBLE_LEN + 2 + 2 + name_len + 4 + data.len() + 2; + let mut out = Vec::with_capacity(capacity); + + // Preamble + out.extend(std::iter::repeat_n(0xAA_u8, PREAMBLE_LEN)); + + // Sync word + out.extend_from_slice(&SYNC); + + // Filename length (u16 LE) + filename bytes + out.extend_from_slice(&u16::try_from(name_len).unwrap_or(255).to_le_bytes()); + out.extend_from_slice(name_bytes); + + // Payload length (u32 LE) + payload + out.extend_from_slice(&u32::try_from(data.len()).unwrap_or(u32::MAX).to_le_bytes()); + out.extend_from_slice(data); + + // CRC-16/CCITT over everything from sync word onwards (not the preamble) + let crc = crc16(&out[PREAMBLE_LEN..]); + out.extend_from_slice(&crc.to_le_bytes()); + + out +} + +/// Decoded frame: original filename and payload bytes. +pub struct Decoded { + pub filename: String, + pub data: Vec, +} + +/// Find and validate a frame inside `raw`, returning the embedded filename and payload. +/// +/// Used only by the byte-level path (tests / CLI verification). +/// The audio decoder uses `find_frame_in_bits` in decoder.rs directly. +#[allow( + dead_code, + clippy::arithmetic_side_effects, // cursor arithmetic is bounds-checked before each use + clippy::indexing_slicing, // all slices are bounds-checked immediately above each access +)] +pub fn deframe(raw: &[u8]) -> Result { + let sync_pos = raw + .windows(SYNC.len()) + .position(|w| w == SYNC) + .ok_or_else(|| "sync word not found".to_string())?; + + let mut cursor = sync_pos + SYNC.len(); + + // name_len (u16) + if raw.len() < cursor + 2 { + return Err("frame too short: missing name_len".into()); + } + let name_len = u16::from_le_bytes( + raw[cursor..cursor + 2] + .try_into() + .map_err(|_| "internal: name_len slice error".to_string())?, + ) as usize; + cursor += 2; + + // name bytes + if raw.len() < cursor + name_len { + return Err("frame too short: missing filename".into()); + } + let filename = String::from_utf8_lossy(&raw[cursor..cursor + name_len]).into_owned(); + cursor += name_len; + + // payload_len (u32) + if raw.len() < cursor + 4 { + return Err("frame too short: missing payload_len".into()); + } + let payload_len = u32::from_le_bytes( + raw[cursor..cursor + 4] + .try_into() + .map_err(|_| "internal: payload_len slice error".to_string())?, + ) as usize; + cursor += 4; + + let payload_end = cursor + payload_len; + let crc_end = payload_end + 2; + + if raw.len() < crc_end { + return Err(format!( + "frame truncated: need {} bytes after sync, have {}", + crc_end - sync_pos, + raw.len() - sync_pos, + )); + } + + let stored_crc = u16::from_le_bytes( + raw[payload_end..crc_end] + .try_into() + .map_err(|_| "internal: CRC slice error".to_string())?, + ); + let computed_crc = crc16(&raw[sync_pos..payload_end]); + + if stored_crc != computed_crc { + return Err(format!( + "CRC mismatch: stored {stored_crc:#06x}, computed {computed_crc:#06x}" + )); + } + + Ok(Decoded { + filename, + data: raw[cursor..payload_end].to_vec(), + }) +} + +// --------------------------------------------------------------------------- +// CRC-16/CCITT (polynomial 0x1021, init 0xFFFF, no bit-reflection) +// --------------------------------------------------------------------------- + +#[allow(clippy::arithmetic_side_effects)] // bit-shifting in CRC polynomial; no panic risk +pub fn crc16(data: &[u8]) -> u16 { + let mut crc: u16 = 0xFFFF; + for &byte in data { + crc ^= u16::from(byte) << 8; + for _ in 0..8 { + crc = if crc & 0x8000 != 0 { + (crc << 1) ^ 0x1021 + } else { + crc << 1 + }; + } + } + crc +} + +// --------------------------------------------------------------------------- +// Tests +// --------------------------------------------------------------------------- + +#[cfg(test)] +mod tests { + use super::*; + + fn rt(data: &[u8], name: &str) -> Decoded { + #[allow(clippy::unwrap_used)] + deframe(&frame(data, name)).unwrap() + } + + #[test] + fn round_trip_empty_payload() { + let d = rt(&[], "empty.bin"); + assert!(d.data.is_empty()); + assert_eq!(d.filename, "empty.bin"); + } + + #[test] + fn round_trip_ascii() { + let d = rt(b"Hello, AFSK!", "hello.txt"); + assert_eq!(d.data, b"Hello, AFSK!"); + assert_eq!(d.filename, "hello.txt"); + } + + #[test] + fn round_trip_binary() { + let data: Vec = (0u8..=255).collect(); + let d = rt(&data, "all_bytes.bin"); + assert_eq!(d.data, data); + } + + #[test] + fn filename_preserved() { + let d = rt(b"data", "archive.tar.gz"); + assert_eq!(d.filename, "archive.tar.gz"); + } + + #[test] + fn deframe_ignores_leading_garbage() { + let mut framed = frame(b"test", "test.txt"); + framed.insert(0, 0xFF); + framed.insert(0, 0x42); + #[allow(clippy::unwrap_used)] + let d = deframe(&framed).unwrap(); + assert_eq!(d.data, b"test"); + assert_eq!(d.filename, "test.txt"); + } + + #[test] + #[allow( + clippy::unwrap_used, + clippy::indexing_slicing, + clippy::arithmetic_side_effects + )] + fn crc_detects_corruption() { + let mut framed = frame(b"integrity check", "check.txt"); + // Corrupt a payload byte (past preamble+sync+namelen+name+payloadlen) + let corrupt_pos = PREAMBLE_LEN + 2 + 2 + "check.txt".len() + 4 + 2; + framed[corrupt_pos] ^= 0xFF; + assert!(deframe(&framed).is_err()); + } + + #[test] + fn crc16_known_value() { + assert_eq!(crc16(b"123456789"), 0x29B1); + } +} diff --git a/src/gui.rs b/src/gui.rs new file mode 100644 index 0000000..b8b04b4 --- /dev/null +++ b/src/gui.rs @@ -0,0 +1,463 @@ +//! GUI front-end — launched with `rustwave-cli -gui`. +//! +//! Drag any file onto the window: +//! • WAV → decoded, output saved with the ORIGINAL filename next to the binary +//! • Other → encoded to `_encoded.wav` next to the binary + +use std::path::PathBuf; +use std::sync::atomic::{AtomicU32, Ordering}; +use std::sync::{mpsc, Arc}; +use std::thread; +use std::time::Duration; + +use eframe::egui::{self, Color32, CornerRadius, FontId, Pos2, Rect, Stroke, Vec2}; + +// ─── State machine ─────────────────────────────────────────────────────────── + +enum State { + Idle, + Processing { + filename: String, + action: &'static str, + progress: Arc, + rx: mpsc::Receiver>, + }, + Done { + action: &'static str, + output: PathBuf, + }, + Failed(String), +} + +// ─── App ───────────────────────────────────────────────────────────────────── + +pub struct AfskGui { + state: State, +} + +impl AfskGui { + pub const fn new(_cc: &eframe::CreationContext<'_>) -> Self { + Self { state: State::Idle } + } + + fn start_processing(&mut self, path: PathBuf, ctx: egui::Context) { + let is_wav = path + .extension() + .is_some_and(|e| e.eq_ignore_ascii_case("wav")); + + let filename = path + .file_name() + .unwrap_or_default() + .to_string_lossy() + .into_owned(); + + let action: &'static str = if is_wav { "Decoding" } else { "Encoding" }; + let progress = Arc::new(AtomicU32::new(0)); + let (tx, rx) = mpsc::channel::>(); + + let binary_dir = std::env::current_exe() + .ok() + .and_then(|p| p.parent().map(PathBuf::from)) + .unwrap_or_else(|| PathBuf::from(".")); + + { + let progress = Arc::clone(&progress); + thread::spawn(move || { + let prog = Arc::clone(&progress); + let ctx2 = ctx.clone(); + let on_progress = move |v: f32| { + #[allow(clippy::cast_possible_truncation, clippy::cast_sign_loss)] + prog.store((v.clamp(0.0, 1.0) * 1_000_000.0) as u32, Ordering::Relaxed); + ctx2.request_repaint_after(Duration::from_millis(16)); + }; + + let outcome: Result = if is_wav { + crate::wav::read(&path) + .and_then(|samples| crate::decoder::decode_progress(&samples, on_progress)) + .and_then(|decoded| { + let out = binary_dir.join(&decoded.filename); + std::fs::write(&out, &decoded.data) + .map(|()| out) + .map_err(|e| e.to_string()) + }) + } else { + std::fs::read(&path) + .map_err(|e| e.to_string()) + .map(|data| { + let orig_name = path + .file_name() + .unwrap_or_default() + .to_string_lossy() + .into_owned(); + let framed = crate::framer::frame(&data, &orig_name); + crate::encoder::encode_progress(&framed, on_progress) + }) + .and_then(|samples| { + let stem = path.file_stem().unwrap_or_default().to_string_lossy(); + let out = binary_dir.join(format!("{stem}_encoded.wav")); + crate::wav::write(&out, &samples).map(|()| out) + }) + }; + + progress.store(1_000_000, Ordering::Relaxed); + let _ = tx.send(outcome); + ctx.request_repaint(); + }); + } + + self.state = State::Processing { + filename, + action, + progress, + rx, + }; + } + + /// Poll the worker channel and advance state if the worker has finished. + fn poll_worker(&mut self) { + let finished: Option<(&'static str, Result)> = + if let State::Processing { rx, action, .. } = &self.state { + rx.try_recv().ok().map(|result| (*action, result)) + } else { + None + }; + + if let Some((action, result)) = finished { + self.state = match result { + Ok(output) => State::Done { action, output }, + Err(e) => State::Failed(e), + }; + } + } + + /// Draw the drop zone and its current contents. + fn draw_zone( + &self, + ui: &mut egui::Ui, + zone_size: Vec2, + hovering: bool, + accent: Color32, + bg_panel: Color32, + dim_text: Color32, + ) { + ui.vertical_centered(|ui| { + let (rect, _) = ui.allocate_exact_size(zone_size, egui::Sense::hover()); + + let fill = if hovering { + Color32::from_rgba_premultiplied(100, 145, 235, 15) + } else { + bg_panel + }; + let border = if hovering { + accent + } else { + Color32::from_rgb(50, 55, 75) + }; + + ui.painter().rect_filled(rect, CornerRadius::same(10), fill); + dashed_border(ui.painter(), rect, Stroke::new(1.5, border)); + + match &self.state { + State::Idle => draw_idle(ui.painter(), rect, hovering, accent, dim_text), + State::Processing { + filename, + action, + progress, + .. + } => { + #[allow(clippy::cast_precision_loss)] + // u32 progress value; precision loss is fine + let v = progress.load(Ordering::Relaxed) as f32 / 1_000_000.0; + draw_processing(ui.painter(), rect, action, filename, v, accent, dim_text); + } + State::Done { action, output } => { + draw_result( + ui.painter(), + rect, + true, + &format!("{action} complete"), + &output.to_string_lossy(), + accent, + dim_text, + ); + } + State::Failed(err) => { + draw_result( + ui.painter(), + rect, + false, + "Error", + err, + Color32::from_rgb(220, 85, 85), + dim_text, + ); + } + } + }); + } +} + +// ─── eframe::App ───────────────────────────────────────────────────────────── + +impl eframe::App for AfskGui { + fn update(&mut self, ctx: &egui::Context, _frame: &mut eframe::Frame) { + self.poll_worker(); + + let dropped = ctx.input(|i| i.raw.dropped_files.clone()); + if let Some(f) = dropped.first() { + if let Some(p) = &f.path { + if !matches!(self.state, State::Processing { .. }) { + self.start_processing(p.clone(), ctx.clone()); + } + } + } + + if matches!(self.state, State::Processing { .. }) { + ctx.request_repaint_after(Duration::from_millis(16)); + } + + let hovering = ctx.input(|i| !i.raw.hovered_files.is_empty()); + let bg_dark = Color32::from_rgb(15, 15, 20); + let bg_panel = Color32::from_rgb(22, 22, 30); + let accent = Color32::from_rgb(100, 145, 235); + let dim_text = Color32::from_rgb(100, 105, 130); + + egui::CentralPanel::default() + .frame(egui::Frame::NONE.fill(bg_dark)) + .show(ctx, |ui| { + let avail = ui.available_size(); + ui.add_space(18.0); + ui.vertical_centered(|ui| { + #[allow(clippy::arithmetic_side_effects)] // egui Vec2 addition; no panic risk + ui.painter().text( + ui.next_widget_position() + Vec2::new(avail.x / 2.0, 0.0), + egui::Align2::CENTER_TOP, + "RustWave", + FontId::proportional(20.0), + Color32::from_rgb(170, 175, 200), + ); + ui.add_space(24.0); + }); + + let zone_size = Vec2::new((avail.x - 40.0).max(240.0), (avail.y - 90.0).max(160.0)); + self.draw_zone(ui, zone_size, hovering, accent, bg_panel, dim_text); + }); + } +} + +// ─── Drawing helpers ───────────────────────────────────────────────────────── + +fn draw_idle(painter: &egui::Painter, zone: Rect, hovering: bool, accent: Color32, dim: Color32) { + let cx = zone.center().x; + let cy = zone.center().y; + + let heading = if hovering { + "Release to process" + } else { + "Drop a file here" + }; + let heading_color = if hovering { + accent + } else { + Color32::from_rgb(210, 215, 230) + }; + + #[allow(clippy::arithmetic_side_effects)] + { + painter.text( + Pos2::new(cx, cy - 28.0), + egui::Align2::CENTER_CENTER, + heading, + FontId::proportional(18.0), + heading_color, + ); + painter.text( + Pos2::new(cx, cy + 8.0), + egui::Align2::CENTER_CENTER, + "WAV → restores original file + extension", + FontId::proportional(12.5), + dim, + ); + painter.text( + Pos2::new(cx, cy + 25.0), + egui::Align2::CENTER_CENTER, + "Other → encode to .wav", + FontId::proportional(12.5), + dim, + ); + painter.text( + Pos2::new(cx, zone.max.y - 18.0), + egui::Align2::CENTER_CENTER, + "Output saved next to the binary", + FontId::proportional(11.0), + Color32::from_rgb(60, 65, 85), + ); + } +} + +#[allow(clippy::arithmetic_side_effects)] +fn draw_processing( + painter: &egui::Painter, + zone: Rect, + action: &str, + filename: &str, + progress: f32, + accent: Color32, + dim: Color32, +) { + let cx = zone.center().x; + let cy = zone.center().y; + + painter.text( + Pos2::new(cx, cy - 40.0), + egui::Align2::CENTER_CENTER, + action, + FontId::proportional(15.0), + accent, + ); + painter.text( + Pos2::new(cx, cy - 20.0), + egui::Align2::CENTER_CENTER, + filename, + FontId::proportional(12.5), + Color32::from_rgb(180, 185, 205), + ); + + let bar_w = (zone.width() - 70.0).max(80.0); + let bar_rect = Rect::from_center_size(Pos2::new(cx, cy + 8.0), Vec2::new(bar_w, 10.0)); + painter.rect_filled( + bar_rect, + CornerRadius::same(5), + Color32::from_rgb(35, 37, 52), + ); + + let filled_w = (bar_rect.width() * progress.clamp(0.0, 1.0)).max(0.0); + if filled_w >= 1.0 { + let filled = Rect::from_min_size(bar_rect.min, Vec2::new(filled_w, bar_rect.height())); + painter.rect_filled(filled, CornerRadius::same(5), accent); + } + + painter.text( + Pos2::new(cx, cy + 28.0), + egui::Align2::CENTER_CENTER, + format!("{:.0}%", progress * 100.0), + FontId::proportional(12.5), + dim, + ); +} + +#[allow(clippy::arithmetic_side_effects)] +fn draw_result( + painter: &egui::Painter, + zone: Rect, + success: bool, + label: &str, + detail: &str, + color: Color32, + dim: Color32, +) { + let cx = zone.center().x; + let cy = zone.center().y; + + painter.text( + Pos2::new(cx, cy - 32.0), + egui::Align2::CENTER_CENTER, + if success { "✓" } else { "✗" }, + FontId::proportional(30.0), + color, + ); + painter.text( + Pos2::new(cx, cy + 6.0), + egui::Align2::CENTER_CENTER, + label, + FontId::proportional(15.0), + color, + ); + + let max_chars = 55usize; + let display = if detail.len() > max_chars { + format!("…{}", &detail[detail.len().saturating_sub(max_chars - 1)..]) + } else { + detail.to_string() + }; + painter.text( + Pos2::new(cx, cy + 28.0), + egui::Align2::CENTER_CENTER, + display, + FontId::monospace(11.0), + Color32::from_rgb(155, 160, 185), + ); + + painter.text( + Pos2::new(cx, zone.max.y - 18.0), + egui::Align2::CENTER_CENTER, + "Drop another file to continue", + FontId::proportional(11.0), + dim, + ); +} + +#[allow( + clippy::arithmetic_side_effects, // float/Vec2 arithmetic in egui types; no panic risk + clippy::cast_possible_truncation, // f32.ceil() → usize: always positive + clippy::cast_sign_loss, // f32.ceil() → usize: always positive + clippy::cast_precision_loss, // usize i → f32: acceptable for pixel coordinates +)] +fn dashed_border(painter: &egui::Painter, rect: Rect, stroke: Stroke) { + let dash = 8.0_f32; + let gap = 5.0_f32; + let step = dash + gap; + let r = 10.0_f32; + + let seg = |from: Pos2, to: Pos2| { + let delta = to - from; + let len = delta.length(); + if len < 1.0 { + return; + } + let dir = delta / len; + let steps = (len / step).ceil() as usize; + for i in 0..steps { + let t = i as f32 * step; + let a = from + dir * t; + let b = from + dir * (t + dash).min(len); + painter.line_segment([a, b], stroke); + } + }; + + seg( + Pos2::new(rect.min.x + r, rect.min.y), + Pos2::new(rect.max.x - r, rect.min.y), + ); + seg( + Pos2::new(rect.min.x + r, rect.max.y), + Pos2::new(rect.max.x - r, rect.max.y), + ); + seg( + Pos2::new(rect.min.x, rect.min.y + r), + Pos2::new(rect.min.x, rect.max.y - r), + ); + seg( + Pos2::new(rect.max.x, rect.min.y + r), + Pos2::new(rect.max.x, rect.max.y - r), + ); +} + +// ─── Entry point ───────────────────────────────────────────────────────────── + +pub fn run() -> eframe::Result<()> { + let options = eframe::NativeOptions { + viewport: egui::ViewportBuilder::default() + .with_inner_size([480.0, 340.0]) + .with_min_inner_size([360.0, 260.0]) + .with_title("RustWave") + .with_drag_and_drop(true), + ..Default::default() + }; + + eframe::run_native( + "RustWave", + options, + Box::new(|cc| Ok(Box::new(AfskGui::new(cc)) as Box)), + ) +} diff --git a/src/main.rs b/src/main.rs new file mode 100644 index 0000000..2987db7 --- /dev/null +++ b/src/main.rs @@ -0,0 +1,122 @@ +mod config; +mod decoder; +mod encoder; +mod framer; +mod gui; +mod wav; + +use clap::{Parser, Subcommand}; +use std::path::PathBuf; + +#[derive(Parser)] +#[command(name = "rustwave-cli", version, about = "RustWave audio codec", long_about = None)] +struct Cli { + #[command(subcommand)] + command: Command, +} + +#[derive(Subcommand)] +enum Command { + /// Encode a file into an AFSK WAV (original filename is stored in the signal) + Encode { + #[arg(short, long, value_name = "FILE")] + input: PathBuf, + #[arg(short, long, value_name = "FILE")] + output: PathBuf, + }, + /// Decode an AFSK WAV — restores the original filename automatically. + /// If -o is omitted the file is written next to the WAV with its original name. + Decode { + #[arg(short, long, value_name = "FILE")] + input: PathBuf, + /// Output path (optional — defaults to original filename next to the WAV) + #[arg(short, long, value_name = "FILE")] + output: Option, + }, +} + +fn main() { + if std::env::args().any(|a| a == "-gui" || a == "--gui") { + gui::run().unwrap_or_else(|e| { + eprintln!("GUI error: {e}"); + std::process::exit(1); + }); + return; + } + + let cli = Cli::parse(); + + match cli.command { + Command::Encode { input, output } => { + let data = std::fs::read(&input).unwrap_or_else(|e| { + eprintln!("error: cannot read '{}': {e}", input.display()); + std::process::exit(1); + }); + + let filename = input + .file_name() + .unwrap_or_default() + .to_string_lossy() + .into_owned(); + + let framed = framer::frame(&data, &filename); + let samples = encoder::encode(&framed); + + if let Err(e) = wav::write(&output, &samples) { + eprintln!("error: cannot write '{}': {e}", output.display()); + std::process::exit(1); + } + + #[allow(clippy::cast_precision_loss)] + let duration = samples.len() as f64 / f64::from(config::SAMPLE_RATE); + eprintln!( + "encoded '{}' ({} byte{}) -> {} ({:.2} s)", + filename, + data.len(), + plural(data.len()), + output.display(), + duration, + ); + } + + Command::Decode { input, output } => { + let samples = wav::read(&input).unwrap_or_else(|e| { + eprintln!("error: cannot read '{}': {e}", input.display()); + std::process::exit(1); + }); + + let decoded = decoder::decode(&samples).unwrap_or_else(|e| { + eprintln!("error: decode failed: {e}"); + std::process::exit(1); + }); + + let out_path = output.unwrap_or_else(|| { + input + .parent() + .unwrap_or_else(|| std::path::Path::new(".")) + .join(&decoded.filename) + }); + + if let Err(e) = std::fs::write(&out_path, &decoded.data) { + eprintln!("error: cannot write '{}': {e}", out_path.display()); + std::process::exit(1); + } + + eprintln!( + "decoded {} byte{} -> '{}' (original filename: '{}')", + decoded.data.len(), + plural(decoded.data.len()), + out_path.display(), + decoded.filename, + ); + } + } +} + +const fn plural(n: usize) -> &'static str { + if n == 1 { + "" + } else { + "s" + } +} diff --git a/src/wav.rs b/src/wav.rs new file mode 100644 index 0000000..b81d3bd --- /dev/null +++ b/src/wav.rs @@ -0,0 +1,99 @@ +use hound::{SampleFormat, WavReader, WavSpec, WavWriter}; +use std::path::Path; + +use crate::config::SAMPLE_RATE; + +/// Write normalised f64 samples (range −1.0 … 1.0) to a 16-bit mono PCM WAV. +pub fn write(path: &Path, samples: &[f64]) -> Result<(), String> { + let spec = WavSpec { + channels: 1, + sample_rate: SAMPLE_RATE, + bits_per_sample: 16, + sample_format: SampleFormat::Int, + }; + + let mut writer = WavWriter::create(path, spec).map_err(|e| e.to_string())?; + + for &s in samples { + // clamp guarantees the value is in [-32767, 32767] before truncation + #[allow(clippy::cast_possible_truncation)] + let v = (s.clamp(-1.0, 1.0) * 32_767.0) as i16; + writer.write_sample(v).map_err(|e| e.to_string())?; + } + + writer.finalize().map_err(|e| e.to_string()) +} + +/// Read a 16-bit mono PCM WAV and return normalised f64 samples (range −1 … 1). +/// +/// Stereo files are accepted; only the first (left) channel is used. +pub fn read(path: &Path) -> Result, String> { + let mut reader = WavReader::open(path).map_err(|e| e.to_string())?; + let spec = reader.spec(); + + match (spec.bits_per_sample, spec.sample_format) { + (16, SampleFormat::Int) => { + let channels = spec.channels as usize; + reader + .samples::() + .step_by(channels) + .map(|s| { + s.map(|v| f64::from(v) / 32_768.0) + .map_err(|e| e.to_string()) + }) + .collect() + } + (bits, fmt) => Err(format!( + "unsupported WAV format: {bits}-bit {fmt:?} \ + (rustwave-cli expects 16-bit integer PCM)" + )), + } +} + +// --------------------------------------------------------------------------- +// Tests +// --------------------------------------------------------------------------- + +#[cfg(test)] +mod tests { + use super::*; + use std::f64::consts::TAU; + + fn tmp(name: &str) -> std::path::PathBuf { + std::env::temp_dir().join(name) + } + + #[test] + fn silence_round_trip() -> Result<(), String> { + let path = tmp("rustwave_wav_silence.wav"); + let original = vec![0.0_f64; 4_410]; + write(&path, &original)?; + let recovered = read(&path)?; + assert_eq!(original.len(), recovered.len()); + for v in recovered { + assert!(v.abs() < 2.0 / 32_768.0, "expected silence, got {v}"); + } + let _ = std::fs::remove_file(&path); + Ok(()) + } + + #[test] + fn sine_round_trip() -> Result<(), String> { + let path = tmp("rustwave_wav_sine.wav"); + #[allow(clippy::cast_precision_loss)] + let original: Vec = (0..44_100_i32) + .map(|i| 0.5 * (TAU * 440.0 * f64::from(i) / 44_100.0).sin()) + .collect(); + write(&path, &original)?; + let recovered = read(&path)?; + assert_eq!(original.len(), recovered.len()); + for (a, b) in original.iter().zip(recovered.iter()) { + assert!( + (a - b).abs() < 5e-5, + "quantisation error too large: {a} vs {b}" + ); + } + let _ = std::fs::remove_file(&path); + Ok(()) + } +}