diff --git a/Cargo.lock b/Cargo.lock index f97bb7a..7896b33 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,5568 @@ # 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 4.2.0", +] + +[[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 4.4.0", +] + +[[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 0.58.0", +] + +[[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.7.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891477e0c6a8957309ee5c45a6368af3ae14bb510732d2684ffa19af310920f9" +dependencies = [ + "getrandom 0.2.17", + "once_cell", + "version_check", +] + +[[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 = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a130427c27518df266943a5308ed92d4b226cc639f5a8f1002816174301" +dependencies = [ + "memchr", +] + +[[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", + "jni-sys", + "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 = "anyhow" +version = "1.0.102" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" + +[[package]] +name = "approx" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0e60b75072ecd4168020818c0107f2857bb6c4e64252d8d3983f6263b40a5c3" +dependencies = [ + "num-traits", +] + +[[package]] +name = "arbitrary" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1" +dependencies = [ + "derive_arbitrary", +] + +[[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 = "ashpd" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2f3f79755c74fd155000314eb349864caa787c6592eace6c6882dad873d9c39" +dependencies = [ + "async-fs", + "async-net", + "enumflags2", + "futures-channel", + "futures-util", + "rand 0.9.2", + "raw-window-handle", + "serde", + "serde_repr", + "url", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "zbus 5.14.0", +] + +[[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-net" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7" +dependencies = [ + "async-io", + "blocking", + "futures-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 2.0.117", +] + +[[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 2.0.117", +] + +[[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 4.4.0", + "zbus-lockstep", + "zbus-lockstep-macros", + "zbus_names 3.0.0", + "zvariant 4.2.0", +] + +[[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 4.4.0", +] + +[[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 4.4.0", + "zvariant 4.2.0", +] + +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" + +[[package]] +name = "base-x" +version = "0.2.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cbbc9d0964165b47557570cce6c952866c2678457aca742aafc9fb771d30270" + +[[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 = "bitvec" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bc2832c24239b0141d5674bb9174f9d68a8b5b3f2753311927c172ca46f7e9c" +dependencies = [ + "funty", + "radium", + "tap", + "wyz", +] + +[[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 = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2 0.6.4", +] + +[[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 = "borsh" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1da5ab77c1437701eeff7c88d968729e7766172279eab0676857b3d63af7a6f" +dependencies = [ + "borsh-derive", + "cfg_aliases", +] + +[[package]] +name = "borsh-derive" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0686c856aa6aac0c4498f936d7d6a02df690f614c03e4d906d1018062b5c5e2c" +dependencies = [ + "once_cell", + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "bstr" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63044e1ae8e69f3b5a92c736ca6269b8d12fa7efe39bf34ddb06d102cf0e2cab" +dependencies = [ + "memchr", + "regex-automata", + "serde", +] + +[[package]] +name = "bumpalo" +version = "3.20.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d20789868f4b01b2f2caec9f5c4e0213b41e3e5702a50157d699ae31ced2fcb" + +[[package]] +name = "bytecheck" +version = "0.6.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23cdc57ce23ac53c931e88a43d06d070a6fd142f2617be5855eb75efc9beb1c2" +dependencies = [ + "bytecheck_derive", + "ptr_meta", + "simdutf8", +] + +[[package]] +name = "bytecheck_derive" +version = "0.6.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3db406d29fbcd95542e92559bed4d8ad92636d1ca8b3b72ede10b4bcc010e659" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[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 2.0.117", +] + +[[package]] +name = "byteorder" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "bytes" +version = "1.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33" + +[[package]] +name = "calamine" +version = "0.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138646b9af2c5d7f1804ea4bf93afc597737d2bd4f7341d67c48b03316976eb1" +dependencies = [ + "byteorder", + "codepage", + "encoding_rs", + "log", + "quick-xml 0.31.0", + "serde", + "zip", +] + +[[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 = "chrono" +version = "0.4.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "serde", + "wasm-bindgen", + "windows-link", +] + +[[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 = "codepage" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48f68d061bc2828ae826206326e61251aca94c1e4a5305cf52d9138639c918b4" +dependencies = [ + "encoding_rs", +] + +[[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 = "combine" +version = "4.6.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd" +dependencies = [ + "bytes", + "memchr", +] + [[package]] name = "comparador-notas" version = "0.1.0" +dependencies = [ + "calamine", + "chrono", + "csv", + "dirs", + "eframe", + "egui", + "encoding_rs", + "genpdf", + "regex", + "rfd", + "rusqlite", + "rust_decimal", + "rust_decimal_macros", + "serde", + "serde_json", + "thiserror 2.0.18", +] + +[[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 = "const_fn" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f8a2ca5ac02d09563609681103aada9e1777d54fc57a5acd7a41404f9c93b6e" + +[[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 = "csv" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52cd9d68cf7efc6ddfaaee42e7288d3a99d613d4b50f76ce9827ae0c6e14f938" +dependencies = [ + "csv-core", + "itoa 1.0.17", + "ryu", + "serde_core", +] + +[[package]] +name = "csv-core" +version = "0.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "704a3c26996a80471189265814dbc2c257598b96b8a7feae2d31ace646bb9782" +dependencies = [ + "memchr", +] + +[[package]] +name = "cursor-icon" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f" + +[[package]] +name = "derive_arbitrary" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e567bd82dcff979e4b03460c307b3cdc9e96fde3d73bed1496d2bc75d9dd62a" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "derive_more" +version = "0.99.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6edb4b64a43d977b8e99788fe3a04d483834fba1215a7e02caa415b626497f7f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "5.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.48.0", +] + +[[package]] +name = "discard" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0" + +[[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", + "block2 0.6.2", + "libc", + "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 2.0.117", +] + +[[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 = "dtoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56899898ce76aaf4a0f24d914c97ea6ed976d42fec6ad33fcbb0a1103e07b2b0" + +[[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 0.8.12", + "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 0.8.12", + "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 0.8.12", + "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 0.8.12", + "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 0.8.12", + "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 = "encoding" +version = "0.2.33" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b0d943856b990d12d3b55b359144ff341533e516d94098b1d3fc1ac666d36ec" +dependencies = [ + "encoding-index-japanese", + "encoding-index-korean", + "encoding-index-simpchinese", + "encoding-index-singlebyte", + "encoding-index-tradchinese", +] + +[[package]] +name = "encoding-index-japanese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04e8b2ff42e9a05335dbf8b5c6f7567e5591d0d916ccef4e0b1710d32a0d0c91" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-korean" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dc33fb8e6bcba213fe2f14275f0963fd16f0a02c878e3095ecfdf5bee529d81" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-simpchinese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87a7194909b9118fc707194baa434a4e3b0fb6a5a757c73c3adb07aa25031f7" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-singlebyte" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3351d5acffb224af9ca265f435b859c7c01537c0849754d3db3fdf2bfe2ae84a" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding-index-tradchinese" +version = "1.20141219.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd0e20d5688ce3cab59eb3ef3a2083a5c77bf496cb798dc6fcdb75f323890c18" +dependencies = [ + "encoding_index_tests", +] + +[[package]] +name = "encoding_index_tests" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a246d82be1c9d791c5dfde9a2bd045fc3cbba3fa2b11ad558f27d01712f00569" + +[[package]] +name = "encoding_rs" +version = "0.8.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3" +dependencies = [ + "cfg-if", +] + +[[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 2.0.117", +] + +[[package]] +name = "epaint" +version = "0.31.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41fcc0f5a7c613afd2dee5e4b30c3e6acafb8ad6f0edb06068811f708a67c562" +dependencies = [ + "ab_glyph", + "ahash 0.8.12", + "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 = "fallible-iterator" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" + +[[package]] +name = "fallible-streaming-iterator" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7360491ce676a36bf9bb3c56c1aa791658183a54d2744120f27285738d90465a" + +[[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 2.0.117", +] + +[[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 2.0.117", +] + +[[package]] +name = "foreign-types-shared" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b" + +[[package]] +name = "form_urlencoded" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf" +dependencies = [ + "percent-encoding", +] + +[[package]] +name = "funty" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" + +[[package]] +name = "futures-channel" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d" +dependencies = [ + "futures-core", +] + +[[package]] +name = "futures-core" +version = "0.3.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d" + +[[package]] +name = "futures-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 2.0.117", +] + +[[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 = "genpdf" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1c422344482708cb32db843cf3f55f27918cd24fec7b505bde895a1e8702c34" +dependencies = [ + "derive_more", + "lopdf", + "printpdf", + "rusttype", +] + +[[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", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec" +dependencies = [ + "cfg-if", + "libc", + "r-efi", + "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.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +dependencies = [ + "ahash 0.7.8", +] + +[[package]] +name = "hashbrown" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" +dependencies = [ + "ahash 0.8.12", +] + +[[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 = "hashlink" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ba4ff7128dee98c7dc9794b6a411377e1404dba1c97deb8d1a55297bd25d8af" +dependencies = [ + "hashbrown 0.14.5", +] + +[[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 = "iana-time-zone" +version = "0.1.65" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core 0.62.2", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[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.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6506c6c10786659413faa717ceebcb8f70731c0a60cbae39795fdf114519c1a" +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 = "itoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" + +[[package]] +name = "itoa" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" + +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + +[[package]] +name = "jni-sys" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130" + +[[package]] +name = "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.182" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112" + +[[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 = "libsqlite3-sys" +version = "0.30.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e99fb7a497b1e3339bc746195567ed8d3e24945ecd636e3619d20b9de9e9149" +dependencies = [ + "cc", + "pkg-config", + "vcpkg", +] + +[[package]] +name = "linked-hash-map" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f" + +[[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 = "lopdf" +version = "0.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b49a0272112719d0037ab63d4bb67f73ba659e1e90bc38f235f163a457ac16f3" +dependencies = [ + "chrono", + "dtoa", + "encoding", + "flate2", + "itoa 0.4.8", + "linked-hash-map", + "log", + "lzw", + "pom", + "time", +] + +[[package]] +name = "lzw" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d947cbb889ed21c2a84be6ffbaebf5b4e0f4340638cba0444907e38b56be084" + +[[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.7.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac9557c559cd6fc9867e122e20d2cbefc9ca29d80d027a8e39310920ed2f0a97" +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", + "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", +] + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys", +] + +[[package]] +name = "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 2.0.117", +] + +[[package]] +name = "objc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1" +dependencies = [ + "malloc_buf", +] + +[[package]] +name = "objc-sys" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" + +[[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 0.5.1", + "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", + "block2 0.6.2", + "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 0.5.1", + "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 0.5.1", + "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 0.5.1", + "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 0.5.1", + "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 0.5.1", + "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 0.5.1", + "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 0.5.1", + "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 0.5.1", + "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 0.5.1", + "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 0.5.1", + "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 0.5.1", + "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 0.5.1", + "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 = "option-ext" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" + +[[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 = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3305af35278dd29f46fcdd139e0b1fbfae2153f0e5928b39b035542dd31e37b7" +dependencies = [ + "num-traits", +] + +[[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 2.0.117", +] + +[[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 = "pollster" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3" + +[[package]] +name = "pom" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c972d8f86e943ad532d0b04e8965a749ad1d18bb981a9c7b3ae72fe7fd7744b" +dependencies = [ + "bstr", +] + +[[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 2.0.117", +] + +[[package]] +name = "printpdf" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a2472a184bcb128d0e3db65b59ebd11d010259a5e14fd9d048cba8f2c9302d4" +dependencies = [ + "js-sys", + "lopdf", + "rusttype", + "time", +] + +[[package]] +name = "proc-macro-crate" +version = "3.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro-hack" +version = "0.5.20+deprecated" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068" + +[[package]] +name = "proc-macro2" +version = "1.0.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "profiling" +version = "1.0.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3eb8486b569e12e2c32ad3e204dbaba5e4b5b216e9367044f25f1dba42341773" + +[[package]] +name = "ptr_meta" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0738ccf7ea06b608c10564b31debd4f5bc5e197fc8bfe088f68ae5ce81e7a4f1" +dependencies = [ + "ptr_meta_derive", +] + +[[package]] +name = "ptr_meta_derive" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16b845dbfca988fa33db069c0e230574d15a3088f147a87b64c7589eb662c9ac" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[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.31.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1004a344b30a54e2ee58d66a71b32d2db2feb0a31f9a2d302bf0536f15de2a33" +dependencies = [ + "encoding_rs", + "memchr", +] + +[[package]] +name = "quick-xml" +version = "0.38.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b66c2058c55a409d601666cffe35f04333cf1013010882cec174a7467cd4e21c" +dependencies = [ + "memchr", +] + +[[package]] +name = "quote" +version = "1.0.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" +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 = "radium" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09" + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha 0.3.1", + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core 0.6.4", +] + +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", +] + +[[package]] +name = "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 = "redox_users" +version = "0.4.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43" +dependencies = [ + "getrandom 0.2.17", + "libredox", + "thiserror 1.0.69", +] + +[[package]] +name = "regex" +version = "1.12.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e1dd4122fc1595e8162618945476892eefca7b88c52820e74af6262213cae8f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" + +[[package]] +name = "rend" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71fe3824f5629716b1589be05dacd749f6aa084c87e00e016714a8cdfccc997c" +dependencies = [ + "bytecheck", +] + +[[package]] +name = "renderdoc-sys" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" + +[[package]] +name = "rfd" +version = "0.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2bee61e6cffa4635c72d7d81a84294e28f0930db0ddcb0f66d10244674ebed" +dependencies = [ + "ashpd", + "block2 0.6.2", + "dispatch2", + "js-sys", + "log", + "objc2 0.6.4", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "pollster", + "raw-window-handle", + "urlencoding", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "windows-sys 0.59.0", +] + +[[package]] +name = "rkyv" +version = "0.7.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2297bf9c81a3f0dc96bc9521370b88f054168c29826a75e89c55ff196e7ed6a1" +dependencies = [ + "bitvec", + "bytecheck", + "bytes", + "hashbrown 0.12.3", + "ptr_meta", + "rend", + "rkyv_derive", + "seahash", + "tinyvec", + "uuid", +] + +[[package]] +name = "rkyv_derive" +version = "0.7.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84d7b42d4b8d06048d3ac8db0eb31bcb942cbeb709f0b5f2b2ebde398d3038f5" +dependencies = [ + "proc-macro2", + "quote", + "syn 1.0.109", +] + +[[package]] +name = "rusqlite" +version = "0.32.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7753b721174eb8ff87a9a0e799e2d7bc3749323e773db92e0984debb00019d6e" +dependencies = [ + "bitflags 2.11.0", + "fallible-iterator", + "fallible-streaming-iterator", + "hashlink", + "libsqlite3-sys", + "smallvec", +] + +[[package]] +name = "rust_decimal" +version = "1.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61f703d19852dbf87cbc513643fa81428361eb6940f1ac14fd58155d295a3eb0" +dependencies = [ + "arrayvec", + "borsh", + "bytes", + "num-traits", + "rand 0.8.5", + "rkyv", + "serde", + "serde_json", +] + +[[package]] +name = "rust_decimal_macros" +version = "1.40.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "74a5a6f027e892c7a035c6fddb50435a1fbf5a734ffc0c2a9fed4d0221440519" +dependencies = [ + "quote", + "syn 2.0.117", +] + +[[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.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" +dependencies = [ + "semver 0.9.0", +] + +[[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 = "rusttype" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f61411055101f7b60ecf1041d87fb74205fb20b0c7a723f07ef39174cf6b4c0" +dependencies = [ + "approx", + "ordered-float 1.1.1", + "stb_truetype", +] + +[[package]] +name = "rustversion" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "scoped-tls" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1cf6437eb19a8f4a6cc0f7dca544973b0b78843adbfeb3683d1a94a0024a294" + +[[package]] +name = "scopeguard" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" + +[[package]] +name = "sctk-adwaita" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec" +dependencies = [ + "ab_glyph", + "log", + "memmap2", + "smithay-client-toolkit 0.19.2", + "tiny-skia", +] + +[[package]] +name = "seahash" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c107b6f4780854c8b126e228ea8869f4d7b71260f962fefb57b996b8959ba6b" + +[[package]] +name = "semver" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" +dependencies = [ + "semver-parser", +] + +[[package]] +name = "semver" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2" + +[[package]] +name = "semver-parser" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" + +[[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 2.0.117", +] + +[[package]] +name = "serde_json" +version = "1.0.149" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" +dependencies = [ + "itoa 1.0.17", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "sha1" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1da05c97445caa12d05e848c4a4fcbbea29e748ac28f7e80e9b010392063770" +dependencies = [ + "sha1_smol", +] + +[[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 = "sha1_smol" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d" + +[[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 = "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 = "standback" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e113fb6f3de07a243d434a56ec6f186dfd51cb08448239fe7bcae73f87ff28ff" +dependencies = [ + "version_check", +] + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "stb_truetype" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f77b6b07e862c66a9f3e62a07588fee67cd90a9135a2b942409f195507b4fb51" +dependencies = [ + "byteorder", +] + +[[package]] +name = "stdweb" +version = "0.4.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d022496b16281348b52d0e30ae99e01a73d737b2f45d38fed4edf79f9325a1d5" +dependencies = [ + "discard", + "rustc_version", + "stdweb-derive", + "stdweb-internal-macros", + "stdweb-internal-runtime", + "wasm-bindgen", +] + +[[package]] +name = "stdweb-derive" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c87a60a40fccc84bef0652345bbbbbe20a605bf5d0ce81719fc476f5c03b50ef" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "serde_derive", + "syn 1.0.109", +] + +[[package]] +name = "stdweb-internal-macros" +version = "0.2.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58fa5ff6ad0d98d1ffa8cb115892b6e69d67799f6763e162a1c9db421dc22e11" +dependencies = [ + "base-x", + "proc-macro2", + "quote", + "serde", + "serde_derive", + "serde_json", + "sha1 0.6.1", + "syn 1.0.109", +] + +[[package]] +name = "stdweb-internal-runtime" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0" + +[[package]] +name = "strict-num" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" + +[[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 2.0.117", +] + +[[package]] +name = "syn" +version = "1.0.109" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "2.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tap" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369" + +[[package]] +name = "tempfile" +version = "3.26.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82a72c767771b47409d2345987fda8628641887d5466101319899796367354a0" +dependencies = [ + "fastrand", + "getrandom 0.4.1", + "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 2.0.117", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "tiff" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af9605de7fee8d9551863fd692cce7637f548dbd9db9180fcc07ccc6d26c336f" +dependencies = [ + "fax", + "flate2", + "half", + "quick-error", + "weezl", + "zune-jpeg", +] + +[[package]] +name = "time" +version = "0.2.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4752a97f8eebd6854ff91f1c1824cd6160626ac4bd44287f7f4ea2035a02a242" +dependencies = [ + "const_fn", + "libc", + "standback", + "stdweb", + "time-macros", + "version_check", + "winapi", +] + +[[package]] +name = "time-macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "957e9c6e26f12cb6d0dd7fc776bb67a706312e7299aed74c8dd5b17ebb27e2f1" +dependencies = [ + "proc-macro-hack", + "time-macros-impl", +] + +[[package]] +name = "time-macros-impl" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3c141a1b43194f3f56a1411225df8646c55781d5f26db825b3d98507eb482f" +dependencies = [ + "proc-macro-hack", + "proc-macro2", + "quote", + "standback", + "syn 1.0.109", +] + +[[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 = "tinyvec" +version = "1.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "toml_datetime" +version = "0.7.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.23.10+spec-1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269" +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 2.0.117", +] + +[[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.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "89daebc3e6fd160ac4aa9fc8b3bf71e1f74fbf92367ae71fb83a037e8bf164b9" +dependencies = [ + "memoffset", + "tempfile", + "winapi", +] + +[[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", + "serde_derive", +] + +[[package]] +name = "urlencoding" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b672338555252d43fd2240c714dc444b8c6fb0a5c5335e65a07bba7742735ddb" +dependencies = [ + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + +[[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 2.0.117", + "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 1.0.27", +] + +[[package]] +name = "wayland-backend" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fee64194ccd96bf648f42a65a7e589547096dfa702f7cadef84347b66ad164f9" +dependencies = [ + "cc", + "downcast-rs", + "rustix 1.1.4", + "scoped-tls", + "smallvec", + "wayland-sys", +] + +[[package]] +name = "wayland-client" +version = "0.31.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e6faa537fbb6c186cb9f1d41f2f811a4120d1b57ec61f50da451a0c5122bec" +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.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5864c4b5b6064b06b1e8b74ead4a98a6c45a285fe7a0e784d24735f011fdb078" +dependencies = [ + "rustix 1.1.4", + "wayland-client", + "xcursor", +] + +[[package]] +name = "wayland-protocols" +version = "0.32.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baeda9ffbcfc8cd6ddaade385eaf2393bd2115a69523c735f12242353c3df4f3" +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.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791c58fdeec5406aa37169dd815327d1e47f334219b523444bc26d70ceb4c34e" +dependencies = [ + "bitflags 2.11.0", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-plasma" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa98634619300a535a9a97f338aed9a5ff1e01a461943e8346ff4ae26007306b" +dependencies = [ + "bitflags 2.11.0", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-wlr" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9597cdf02cf0c34cd5823786dce6b5ae8598f05c2daf5621b6e178d4f7345f3" +dependencies = [ + "bitflags 2.11.0", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-scanner" +version = "0.31.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5423e94b6a63e68e439803a3e153a9252d5ead12fd853334e2ad33997e3889e3" +dependencies = [ + "proc-macro2", + "quick-xml 0.38.4", + "quote", +] + +[[package]] +name = "wayland-sys" +version = "0.31.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6dbfc3ac5ef974c92a2235805cc0114033018ae1290a72e474aa8b28cbbdfd" +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.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f00bb839c1cf1e3036066614cbdcd035ecf215206691ea646aa3c60a24f68f2" +dependencies = [ + "core-foundation 0.10.1", + "jni", + "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 4.6.0", + "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 0.58.0", + "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 0.58.0", + "windows-interface 0.58.0", + "windows-result 0.2.0", + "windows-strings 0.1.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement 0.60.2", + "windows-interface 0.59.3", + "windows-link", + "windows-result 0.4.1", + "windows-strings 0.5.1", +] + +[[package]] +name = "windows-implement" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-interface" +version = "0.58.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-result" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e" +dependencies = [ + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10" +dependencies = [ + "windows-result 0.2.0", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[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.48.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +dependencies = [ + "windows-targets 0.48.5", +] + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" +dependencies = [ + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[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.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[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 0.8.12", + "android-activity", + "atomic-waker", + "bitflags 2.11.0", + "block2 0.5.1", + "bytemuck", + "calloop 0.13.0", + "cfg_aliases", + "concurrent-queue", + "core-foundation 0.9.4", + "core-graphics", + "cursor-icon", + "dpi", + "js-sys", + "libc", + "memmap2", + "ndk", + "objc2 0.5.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.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829" +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 2.0.117", + "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 2.0.117", + "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 1.0.27", + "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 = "wyz" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed" +dependencies = [ + "tap", +] + +[[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 2.0.117", + "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 0.8.5", + "serde", + "serde_repr", + "sha1 0.10.6", + "static_assertions", + "tracing", + "uds_windows", + "windows-sys 0.52.0", + "xdg-home", + "zbus_macros 4.4.0", + "zbus_names 3.0.0", + "zvariant 4.2.0", +] + +[[package]] +name = "zbus" +version = "5.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca82f95dbd3943a40a53cfded6c2d0a2ca26192011846a1810c4256ef92c60bc" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix 1.1.4", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow", + "zbus_macros 5.14.0", + "zbus_names 4.3.1", + "zvariant 5.10.0", +] + +[[package]] +name = "zbus-lockstep" +version = "0.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca2c5dceb099bddaade154055c926bb8ae507a18756ba1d8963fd7b51d8ed1d" +dependencies = [ + "zbus_xml", + "zvariant 4.2.0", +] + +[[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 2.0.117", + "zbus-lockstep", + "zbus_xml", + "zvariant 4.2.0", +] + +[[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 2.0.117", + "zvariant_utils 2.1.0", +] + +[[package]] +name = "zbus_macros" +version = "5.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "897e79616e84aac4b2c46e9132a4f63b93105d54fe8c0e8f6bffc21fa8d49222" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", + "zbus_names 4.3.1", + "zvariant 5.10.0", + "zvariant_utils 3.3.0", +] + +[[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 4.2.0", +] + +[[package]] +name = "zbus_names" +version = "4.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ffd8af6d5b78619bab301ff3c560a5bd22426150253db278f164d6cf3b72c50f" +dependencies = [ + "serde", + "winnow", + "zvariant 5.10.0", +] + +[[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 3.0.0", + "zvariant 4.2.0", +] + +[[package]] +name = "zerocopy" +version = "0.8.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a789c6e490b576db9f7e6b6d661bcc9799f7c0ac8352f56ea20193b2681532e5" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f65c489a7071a749c849713807783f70672b28094011623e200cb86dcb835953" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zerofrom" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", + "synstructure", +] + +[[package]] +name = "zerotrie" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.117", +] + +[[package]] +name = "zip" +version = "2.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fabe6324e908f85a1c52063ce7aa26b68dcb7eb6dbc83a2d148403c9bc3eba50" +dependencies = [ + "arbitrary", + "crc32fast", + "crossbeam-utils", + "displaydoc", + "flate2", + "indexmap", + "memchr", + "thiserror 2.0.18", + "zopfli", +] + +[[package]] +name = "zmij" +version = "1.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa" + +[[package]] +name = "zopfli" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f05cd8797d63865425ff89b5c4a48804f35ba0ce8d125800027ad6017d2b5249" +dependencies = [ + "bumpalo", + "crc32fast", + "log", + "simd-adler32", +] + +[[package]] +name = "zune-core" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a" + +[[package]] +name = "zune-jpeg" +version = "0.4.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29ce2c8a9384ad323cf564b67da86e21d3cfdff87908bc1223ed5c99bc792713" +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 4.2.0", +] + +[[package]] +name = "zvariant" +version = "5.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5708299b21903bbe348e94729f22c49c55d04720a004aa350f1f9c122fd2540b" +dependencies = [ + "endi", + "enumflags2", + "serde", + "url", + "winnow", + "zvariant_derive 5.10.0", + "zvariant_utils 3.3.0", +] + +[[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 2.0.117", + "zvariant_utils 2.1.0", +] + +[[package]] +name = "zvariant_derive" +version = "5.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b59b012ebe9c46656f9cc08d8da8b4c726510aef12559da3e5f1bf72780752c" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.117", + "zvariant_utils 3.3.0", +] + +[[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 2.0.117", +] + +[[package]] +name = "zvariant_utils" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75c23a64ef8f40f13a6989991e643554d9bef1d682a281160cf0c1bc389c5e9" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 2.0.117", + "winnow", +] diff --git a/Cargo.toml b/Cargo.toml index 3207414..be86072 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,3 +4,19 @@ version = "0.1.0" edition = "2024" [dependencies] +eframe = "0.31" +egui = "0.31" +rusqlite = { version = "0.32", features = ["bundled"] } +csv = "1.3" +calamine = "0.26" +rust_decimal = { version = "1.36", features = ["serde"] } +rust_decimal_macros = "1.36" +serde = { version = "1", features = ["derive"] } +serde_json = "1" +genpdf = "0.2" +chrono = { version = "0.4", features = ["serde"] } +encoding_rs = "0.8" +dirs = "5" +thiserror = "2" +regex = "1" +rfd = "0.15" diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..95d23b8 --- /dev/null +++ b/mise.toml @@ -0,0 +1,2 @@ +[tools] +rust = "latest" diff --git a/src/application/mod.rs b/src/application/mod.rs new file mode 100644 index 0000000..f67d8b7 --- /dev/null +++ b/src/application/mod.rs @@ -0,0 +1 @@ +pub mod usecases; diff --git a/src/application/usecases/executar_analise.rs b/src/application/usecases/executar_analise.rs new file mode 100644 index 0000000..37efeee --- /dev/null +++ b/src/application/usecases/executar_analise.rs @@ -0,0 +1,145 @@ +use crate::domain::{ + entities::{ + nota::Nota, + resultado_analise::{IntervaloSerie, ResultadoAnalise, ResultadoPreAnalise}, + }, + services::{ + detector_duplicidade::duplicidades_por_serie, + detector_sequencia::{calcular_intervalo, detectar_faltantes, LIMITE_FALTANTES}, + }, +}; +use rust_decimal::Decimal; +use std::collections::HashMap; + +/// Executa a pré-análise: calcula intervalos e duplicatas, sem expandir faltantes. +/// O caller deve verificar se algum intervalo excede `LIMITE_FALTANTES` e, +/// se sim, exibir confirmação ao usuário antes de chamar `expandir_analise`. +pub fn pre_analisar(notas: &[Nota]) -> ResultadoPreAnalise { + // Agrupar por série + let mut por_serie: HashMap> = HashMap::new(); + for nota in notas { + por_serie.entry(nota.serie.clone()).or_default().push(nota); + } + + let mut intervalos_por_serie = HashMap::new(); + let mut soma_total = Decimal::ZERO; + let mut soma_por_serie: HashMap = HashMap::new(); + let mut total_por_serie: HashMap = HashMap::new(); + + for (serie, notas_serie) in &por_serie { + // Somar valores + for nota in notas_serie.iter() { + if let Some(v) = nota.valor { + soma_total += v; + *soma_por_serie.entry(serie.clone()).or_insert(Decimal::ZERO) += v; + } + } + *total_por_serie.entry(serie.clone()).or_insert(0) += notas_serie.len(); + + // Calcular intervalo de faltantes + if let Some(intervalo) = calcular_intervalo(notas_serie) { + intervalos_por_serie.insert(serie.clone(), intervalo); + } + } + + let duplicadas_por_serie = duplicidades_por_serie(notas); + + ResultadoPreAnalise { + intervalos_por_serie, + duplicadas_por_serie, + soma_total, + soma_por_serie, + total_por_serie, + } +} + +/// Verifica se alguma série excede o limite de faltantes. +/// Retorna lista de séries que precisam de confirmação. +pub fn series_com_intervalo_excessivo( + pre: &ResultadoPreAnalise, +) -> Vec<(String, u64)> { + pre.intervalos_por_serie + .iter() + .filter(|(_, iv)| iv.excede_limite(LIMITE_FALTANTES)) + .map(|(serie, iv)| (serie.clone(), iv.contagem_faltantes)) + .collect() +} + +/// Expande a pré-análise para o resultado completo, materializando a lista de faltantes. +/// Deve ser chamado após confirmação do usuário (ou quando nenhum intervalo excede o limite). +pub fn expandir_analise(pre: ResultadoPreAnalise, notas: &[Nota]) -> ResultadoAnalise { + let mut por_serie: HashMap> = HashMap::new(); + for nota in notas { + por_serie.entry(nota.serie.clone()).or_default().push(nota); + } + + let mut faltantes_por_serie = HashMap::new(); + + for (serie, notas_serie) in &por_serie { + let faltantes = detectar_faltantes(notas_serie); + faltantes_por_serie.insert(serie.clone(), faltantes); + } + + ResultadoAnalise { + faltantes_por_serie, + duplicadas_por_serie: pre.duplicadas_por_serie, + soma_total: pre.soma_total, + soma_por_serie: pre.soma_por_serie, + total_por_serie: pre.total_por_serie, + } +} + +/// Executa análise completa sem verificar limites (use case simplificado). +/// Útil quando o caller já confirmou ou sabe que não há intervalos excessivos. +pub fn executar_analise(notas: &[Nota]) -> ResultadoAnalise { + let pre = pre_analisar(notas); + expandir_analise(pre, notas) +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::domain::entities::nota::Nota; + use rust_decimal_macros::dec; + + fn nota(numero: u64, serie: &str, valor: Option) -> Nota { + Nota::new(numero, serie.to_string(), valor, None) + } + + #[test] + fn analise_simples() { + let notas = vec![ + nota(1, "001", Some(dec!(100.00))), + nota(2, "001", Some(dec!(200.00))), + nota(4, "001", Some(dec!(50.00))), + ]; + let resultado = executar_analise(¬as); + assert_eq!(resultado.faltantes_por_serie["001"], vec![3u64]); + assert_eq!(resultado.soma_total, dec!(350.00)); + } + + #[test] + fn analise_multiplas_series() { + let notas = vec![ + nota(1, "001", None), + nota(3, "001", None), + nota(1, "002", None), + nota(2, "002", None), + ]; + let resultado = executar_analise(¬as); + assert_eq!(resultado.faltantes_por_serie["001"], vec![2u64]); + assert!(resultado.faltantes_por_serie["002"].is_empty()); + } + + #[test] + fn pre_analise_detecta_intervalo_excessivo() { + let notas = vec![ + nota(1, "001", None), + nota(20_000, "001", None), + ]; + let pre = pre_analisar(¬as); + let excessivos = series_com_intervalo_excessivo(&pre); + assert_eq!(excessivos.len(), 1); + assert_eq!(excessivos[0].0, "001"); + } +} diff --git a/src/application/usecases/exportar_pdf.rs b/src/application/usecases/exportar_pdf.rs new file mode 100644 index 0000000..64ffcd6 --- /dev/null +++ b/src/application/usecases/exportar_pdf.rs @@ -0,0 +1,23 @@ +use crate::domain::entities::resultado_analise::ResultadoAnalise; +use crate::infrastructure::pdf_generator::{MetadadosRelatorio, PdfGenerator}; +use chrono::Local; +use std::path::Path; + +/// Exporta o resultado da análise para um arquivo PDF. +/// +/// Depende da trait abstrata `PdfGenerator`, não de `genpdf` diretamente. +pub fn exportar_pdf( + gerador: &dyn PdfGenerator, + resultado: &ResultadoAnalise, + nome_arquivo: &str, + nome_layout: Option<&str>, + caminho_saida: &Path, +) -> Result<(), String> { + let meta = MetadadosRelatorio { + nome_arquivo: nome_arquivo.to_string(), + nome_layout: nome_layout.map(|s| s.to_string()), + gerado_em: Local::now(), + }; + + gerador.gerar(resultado, &meta, caminho_saida) +} diff --git a/src/application/usecases/importar_arquivo.rs b/src/application/usecases/importar_arquivo.rs new file mode 100644 index 0000000..63414c4 --- /dev/null +++ b/src/application/usecases/importar_arquivo.rs @@ -0,0 +1,230 @@ +use crate::domain::entities::layout::{Layout, LayoutCsv, LayoutXlsx}; +use crate::domain::entities::nota::Nota; +use crate::domain::entities::serie::validar_serie; +use crate::domain::errors::{ErroArquivo, ResumoAvisos}; +use crate::infrastructure::{csv_reader, xlsx_reader}; +use chrono::NaiveDate; +use std::path::Path; + +/// Resultado da importação de arquivo. +pub struct ResultadoImportacao { + pub notas: Vec, + pub avisos: ResumoAvisos, +} + +/// Resultado parcial após seleção de arquivo XLSX (antes de configurar campos). +pub struct InfoXlsx { + pub abas: Vec, +} + +/// Lista as abas de um arquivo XLSX para exibição ao usuário. +pub fn listar_abas_xlsx(caminho: &Path) -> Result { + let abas = xlsx_reader::listar_abas(caminho)?; + Ok(InfoXlsx { abas }) +} + +/// Importa um arquivo CSV e retorna as notas válidas + avisos consolidados. +pub fn importar_csv(caminho: &Path, config: &LayoutCsv) -> Result { + let resultado = csv_reader::ler_csv( + caminho, + config.delimitador as u8, + &config.encoding, + config.linha_cabecalho, + )?; + + let mut avisos = resultado.avisos; + let notas = mapear_linhas_para_notas( + &resultado.linhas, + config.indice_numero, + config.indice_serie, + config.indice_valor, + config.indice_data, + &mut avisos, + ); + + Ok(ResultadoImportacao { notas, avisos }) +} + +/// Importa um arquivo XLSX e retorna as notas válidas + avisos consolidados. +pub fn importar_xlsx(caminho: &Path, config: &LayoutXlsx) -> Result { + // Determinar linha de início a partir de qualquer campo mapeado + let linha_inicio = { + let coord_num = xlsx_reader::parsear_letra_linha(&config.pos_numero) + .ok_or_else(|| ErroArquivo::ErroLeitura(format!( + "Posição de Numero inválida: '{}'", config.pos_numero + )))?; + let coord_ser = xlsx_reader::parsear_letra_linha(&config.pos_serie) + .ok_or_else(|| ErroArquivo::ErroLeitura(format!( + "Posição de Serie inválida: '{}'", config.pos_serie + )))?; + coord_num.linha.min(coord_ser.linha) + }; + + let resultado = xlsx_reader::ler_xlsx(caminho, &config.aba, linha_inicio)?; + + // Calcular índices de coluna para cada campo + let col_numero = xlsx_reader::parsear_letra_linha(&config.pos_numero) + .map(|c| c.coluna as usize) + .ok_or_else(|| ErroArquivo::ErroLeitura("Posição de Numero inválida".to_string()))?; + let col_serie = xlsx_reader::parsear_letra_linha(&config.pos_serie) + .map(|c| c.coluna as usize) + .ok_or_else(|| ErroArquivo::ErroLeitura("Posição de Serie inválida".to_string()))?; + let col_valor = config + .pos_valor + .as_ref() + .and_then(|p| xlsx_reader::parsear_letra_linha(p)) + .map(|c| c.coluna as usize); + let col_data = config + .pos_data + .as_ref() + .and_then(|p| xlsx_reader::parsear_letra_linha(p)) + .map(|c| c.coluna as usize); + + let mut avisos = resultado.avisos; + let notas = mapear_linhas_para_notas( + &resultado.linhas, + col_numero, + col_serie, + col_valor, + col_data, + &mut avisos, + ); + + Ok(ResultadoImportacao { notas, avisos }) +} + +/// Converte linhas brutas (Vec>) em notas fiscais, +/// aplicando validações e coletando avisos. +fn mapear_linhas_para_notas( + linhas: &[Vec], + idx_numero: usize, + idx_serie: usize, + idx_valor: Option, + idx_data: Option, + avisos: &mut ResumoAvisos, +) -> Vec { + let mut notas = Vec::new(); + + for (i, linha) in linhas.iter().enumerate() { + let linha_num = i + 1; + + // Extrair número + let str_numero = match linha.get(idx_numero) { + Some(s) if !s.trim().is_empty() => s.trim().to_string(), + _ => { + avisos.numeros_invalidos += 1; + avisos.detalhes.push(format!("Linha {}: campo Numero ausente", linha_num)); + continue; + } + }; + + // Tentar extrair apenas dígitos se não for numérico + let numero = match parse_numero(&str_numero) { + Ok(n) => n, + Err(msg) => { + avisos.numeros_invalidos += 1; + avisos.detalhes.push(format!("Linha {}: {}", linha_num, msg)); + continue; + } + }; + + // Extrair série + let str_serie = match linha.get(idx_serie) { + Some(s) => s.trim().to_string(), + None => { + avisos.series_invalidas += 1; + avisos.detalhes.push(format!("Linha {}: campo Serie ausente", linha_num)); + continue; + } + }; + + let serie = match validar_serie(&str_serie) { + Ok(s) => s, + Err(_) => { + avisos.series_invalidas += 1; + avisos.detalhes.push(format!( + "Linha {}: Série inválida '{}'", + linha_num, str_serie + )); + continue; + } + }; + + // Extrair valor (opcional) + let valor = if let Some(idx) = idx_valor { + match linha.get(idx) { + Some(s) if !s.trim().is_empty() => { + match crate::domain::services::parser_monetario::parse_valor(s.trim()) { + Ok(v) => Some(v), + Err(_) => { + avisos.valores_invalidos += 1; + avisos.detalhes.push(format!( + "Linha {}: valor monetário inválido '{}'", + linha_num, s + )); + None + } + } + } + _ => None, + } + } else { + None + }; + + // Extrair data (opcional) — suporte a formatos dd/mm/aaaa e aaaa-mm-dd + let data = if let Some(idx) = idx_data { + match linha.get(idx) { + Some(s) if !s.trim().is_empty() => parse_data(s.trim()), + _ => None, + } + } else { + None + }; + + notas.push(Nota::new(numero, serie, valor, data)); + } + + notas +} + +/// Faz o parsing de um número, tentando extrair dígitos se necessário. +/// Rejeita zero. +fn parse_numero(s: &str) -> Result { + // Tentativa direta + if let Ok(n) = s.parse::() { + if n == 0 { + return Err(format!("Numero zero ('{}')", s)); + } + return Ok(n); + } + + // Tentar extrair apenas dígitos + let apenas_digitos: String = s.chars().filter(|c| c.is_ascii_digit()).collect(); + if apenas_digitos.is_empty() { + return Err(format!("Numero não numérico: '{}'", s)); + } + + match apenas_digitos.parse::() { + Ok(0) => Err(format!("Numero zero após extração de dígitos: '{}'", s)), + Ok(n) => Ok(n), + Err(_) => Err(format!("Numero inválido: '{}'", s)), + } +} + +/// Tenta parsear uma string de data em diversos formatos. +fn parse_data(s: &str) -> Option { + // dd/mm/aaaa + if let Ok(d) = NaiveDate::parse_from_str(s, "%d/%m/%Y") { + return Some(d); + } + // aaaa-mm-dd + if let Ok(d) = NaiveDate::parse_from_str(s, "%Y-%m-%d") { + return Some(d); + } + // dd-mm-aaaa + if let Ok(d) = NaiveDate::parse_from_str(s, "%d-%m-%Y") { + return Some(d); + } + None +} diff --git a/src/application/usecases/layouts.rs b/src/application/usecases/layouts.rs new file mode 100644 index 0000000..f55c21a --- /dev/null +++ b/src/application/usecases/layouts.rs @@ -0,0 +1,110 @@ +use crate::domain::{ + entities::layout::{Layout, LayoutJson}, + errors::ErroLayout, +}; +use crate::infrastructure::sqlite::{layout_repository, migrations}; +use rusqlite::Connection; + +/// Salva um layout no banco de dados. +/// Se o layout já tem um id, atualiza. Caso contrário, insere. +pub fn salvar_layout(conn: &Connection, layout: &Layout) -> Result { + // Validar campos obrigatórios + if layout.nome().trim().is_empty() { + return Err("Nome do layout não pode ser vazio".to_string()); + } + + if let Some(id) = layout.id() { + layout_repository::atualizar(conn, layout) + .map_err(|e| e.to_string())?; + Ok(id) + } else { + layout_repository::salvar(conn, layout) + .map_err(|e| e.to_string()) + } +} + +/// Lista todos os layouts salvos. +pub fn listar_layouts(conn: &Connection) -> Result, String> { + layout_repository::listar(conn).map_err(|e| e.to_string()) +} + +/// Carrega um layout pelo id. +pub fn carregar_layout(conn: &Connection, id: i64) -> Result, String> { + layout_repository::buscar_por_id(conn, id).map_err(|e| e.to_string()) +} + +/// Exclui um layout pelo id. +pub fn excluir_layout(conn: &Connection, id: i64) -> Result<(), String> { + layout_repository::excluir(conn, id).map_err(|e| e.to_string()) +} + +/// Exporta um layout para JSON. +/// Retorna o conteúdo JSON como string e o nome de arquivo sugerido. +pub fn exportar_layout_json(layout: &Layout) -> Result<(String, String), String> { + let json_repr = LayoutJson::from(layout); + let conteudo = serde_json::to_string_pretty(&json_repr) + .map_err(|e| format!("Erro ao serializar layout: {}", e))?; + + let nome_arquivo = format!("{}.json", layout.nome()); + Ok((conteudo, nome_arquivo)) +} + +/// Importa um layout a partir de uma string JSON. +/// +/// # Comportamento de conflito de nome +/// Se `sobrescrever_se_existir` for `true` e o nome já existir no banco, sobrescreve. +/// Se `false` e o nome já existir, retorna `ErroLayout::NomeConflitante`. +pub fn importar_layout_json( + conn: &Connection, + json: &str, + sobrescrever_se_existir: bool, + novo_nome: Option<&str>, +) -> Result { + // Deserializar + let json_repr: LayoutJson = serde_json::from_str(json) + .map_err(|e| ErroLayout::JsonMalformado(e.to_string()))?; + + let mut layout = Layout::try_from(json_repr)?; + + // Aplicar novo nome se fornecido + if let Some(nome) = novo_nome { + match &mut layout { + Layout::Csv { nome: n, .. } => *n = nome.to_string(), + Layout::Xlsx { nome: n, .. } => *n = nome.to_string(), + } + } + + // Verificar conflito de nome + let nome_atual = layout.nome().to_string(); + let existe = layout_repository::existe_nome(conn, &nome_atual) + .map_err(|e| ErroLayout::JsonMalformado(e.to_string()))?; + + if existe { + if sobrescrever_se_existir { + // Buscar o id existente para sobrescrever + let layouts_existentes = layout_repository::listar(conn) + .map_err(|e| ErroLayout::JsonMalformado(e.to_string()))?; + + let id_existente = layouts_existentes + .iter() + .find(|l| l.nome() == nome_atual) + .and_then(|l| l.id()); + + if let Some(id) = id_existente { + match &mut layout { + Layout::Csv { id: i, .. } => *i = Some(id), + Layout::Xlsx { id: i, .. } => *i = Some(id), + } + layout_repository::atualizar(conn, &layout) + .map_err(|e| ErroLayout::JsonMalformado(e.to_string()))?; + return Ok(id); + } + } else { + return Err(ErroLayout::NomeConflitante(nome_atual)); + } + } + + // Inserir novo + layout_repository::salvar(conn, &layout) + .map_err(|e| ErroLayout::JsonMalformado(e.to_string())) +} diff --git a/src/application/usecases/mod.rs b/src/application/usecases/mod.rs new file mode 100644 index 0000000..5d2b954 --- /dev/null +++ b/src/application/usecases/mod.rs @@ -0,0 +1,4 @@ +pub mod executar_analise; +pub mod exportar_pdf; +pub mod importar_arquivo; +pub mod layouts; diff --git a/src/domain/entities/layout.rs b/src/domain/entities/layout.rs new file mode 100644 index 0000000..4ea9c94 --- /dev/null +++ b/src/domain/entities/layout.rs @@ -0,0 +1,244 @@ +use serde::{Deserialize, Serialize}; + +/// Tipo de arquivo suportado pelo sistema. +#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)] +#[serde(rename_all = "lowercase")] +pub enum TipoArquivo { + Csv, + Xlsx, +} + +impl std::fmt::Display for TipoArquivo { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + TipoArquivo::Csv => write!(f, "csv"), + TipoArquivo::Xlsx => write!(f, "xlsx"), + } + } +} + +/// Configurações de um layout para arquivo CSV. +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct LayoutCsv { + /// Caractere delimitador: ',', ';' ou '\t' + pub delimitador: char, + /// Encoding do arquivo: "utf-8" ou "windows-1252" + pub encoding: String, + /// Número da linha do cabeçalho (base 1). 0 = sem cabeçalho. + pub linha_cabecalho: usize, + /// Índice da coluna Numero (base 0) + pub indice_numero: usize, + /// Índice da coluna Serie (base 0) + pub indice_serie: usize, + /// Índice da coluna Valor (base 0, None se não mapeado) + pub indice_valor: Option, + /// Índice da coluna Data (base 0, None se não mapeado) + pub indice_data: Option, +} + +impl Default for LayoutCsv { + fn default() -> Self { + Self { + delimitador: ';', + encoding: "utf-8".to_string(), + linha_cabecalho: 1, + indice_numero: 0, + indice_serie: 1, + indice_valor: None, + indice_data: None, + } + } +} + +/// Configurações de um layout para arquivo XLSX. +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct LayoutXlsx { + /// Nome ou índice (como string) da aba a ser processada + pub aba: String, + /// Posição inicial da coluna Numero no formato LetraLinha (ex: "D3") + pub pos_numero: String, + /// Posição inicial da coluna Serie no formato LetraLinha (ex: "B3") + pub pos_serie: String, + /// Posição inicial da coluna Valor (None se não mapeado) + pub pos_valor: Option, + /// Posição inicial da coluna Data (None se não mapeado) + pub pos_data: Option, +} + +impl Default for LayoutXlsx { + fn default() -> Self { + Self { + aba: String::new(), + pos_numero: String::new(), + pos_serie: String::new(), + pos_valor: None, + pos_data: None, + } + } +} + +/// Layout de configuração do usuário. +/// Cada layout é exclusivo de um tipo de arquivo (CSV ou XLSX). +#[derive(Debug, Clone)] +pub enum Layout { + Csv { + id: Option, + nome: String, + config: LayoutCsv, + }, + Xlsx { + id: Option, + nome: String, + config: LayoutXlsx, + }, +} + +impl Layout { + pub fn id(&self) -> Option { + match self { + Layout::Csv { id, .. } => *id, + Layout::Xlsx { id, .. } => *id, + } + } + + pub fn nome(&self) -> &str { + match self { + Layout::Csv { nome, .. } => nome, + Layout::Xlsx { nome, .. } => nome, + } + } + + pub fn tipo(&self) -> TipoArquivo { + match self { + Layout::Csv { .. } => TipoArquivo::Csv, + Layout::Xlsx { .. } => TipoArquivo::Xlsx, + } + } +} + +/// Representação JSON de um layout (para importação/exportação). +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(tag = "tipo", rename_all = "lowercase")] +pub enum LayoutJson { + Csv { + nome: String, + delimitador: String, + encoding: String, + linha_cabecalho: usize, + indice_numero: usize, + indice_serie: usize, + indice_valor: Option, + indice_data: Option, + }, + Xlsx { + nome: String, + aba: String, + pos_numero: String, + pos_serie: String, + pos_valor: Option, + pos_data: Option, + }, +} + +impl TryFrom for Layout { + type Error = crate::domain::errors::ErroLayout; + + fn try_from(json: LayoutJson) -> Result { + match json { + LayoutJson::Csv { + nome, + delimitador, + encoding, + linha_cabecalho, + indice_numero, + indice_serie, + indice_valor, + indice_data, + } => { + if nome.trim().is_empty() { + return Err(crate::domain::errors::ErroLayout::CampoObrigatorioAusente( + "nome".to_string(), + )); + } + let delim_char = delimitador.chars().next().ok_or_else(|| { + crate::domain::errors::ErroLayout::CampoObrigatorioAusente( + "delimitador".to_string(), + ) + })?; + Ok(Layout::Csv { + id: None, + nome, + config: LayoutCsv { + delimitador: delim_char, + encoding, + linha_cabecalho, + indice_numero, + indice_serie, + indice_valor, + indice_data, + }, + }) + } + LayoutJson::Xlsx { + nome, + aba, + pos_numero, + pos_serie, + pos_valor, + pos_data, + } => { + if nome.trim().is_empty() { + return Err(crate::domain::errors::ErroLayout::CampoObrigatorioAusente( + "nome".to_string(), + )); + } + if pos_numero.trim().is_empty() { + return Err(crate::domain::errors::ErroLayout::CampoObrigatorioAusente( + "pos_numero".to_string(), + )); + } + if pos_serie.trim().is_empty() { + return Err(crate::domain::errors::ErroLayout::CampoObrigatorioAusente( + "pos_serie".to_string(), + )); + } + Ok(Layout::Xlsx { + id: None, + nome, + config: LayoutXlsx { + aba, + pos_numero, + pos_serie, + pos_valor, + pos_data, + }, + }) + } + } + } +} + +impl From<&Layout> for LayoutJson { + fn from(layout: &Layout) -> Self { + match layout { + Layout::Csv { nome, config, .. } => LayoutJson::Csv { + nome: nome.clone(), + delimitador: config.delimitador.to_string(), + encoding: config.encoding.clone(), + linha_cabecalho: config.linha_cabecalho, + indice_numero: config.indice_numero, + indice_serie: config.indice_serie, + indice_valor: config.indice_valor, + indice_data: config.indice_data, + }, + Layout::Xlsx { nome, config, .. } => LayoutJson::Xlsx { + nome: nome.clone(), + aba: config.aba.clone(), + pos_numero: config.pos_numero.clone(), + pos_serie: config.pos_serie.clone(), + pos_valor: config.pos_valor.clone(), + pos_data: config.pos_data.clone(), + }, + } + } +} diff --git a/src/domain/entities/mod.rs b/src/domain/entities/mod.rs new file mode 100644 index 0000000..ba12ded --- /dev/null +++ b/src/domain/entities/mod.rs @@ -0,0 +1,4 @@ +pub mod layout; +pub mod nota; +pub mod resultado_analise; +pub mod serie; diff --git a/src/domain/entities/nota.rs b/src/domain/entities/nota.rs new file mode 100644 index 0000000..9937e1f --- /dev/null +++ b/src/domain/entities/nota.rs @@ -0,0 +1,32 @@ +use chrono::NaiveDate; +use rust_decimal::Decimal; + +/// Representa uma nota fiscal com seus campos lógicos. +/// `numero + serie` é o identificador único de cada nota. +#[derive(Debug, Clone)] +pub struct Nota { + /// Número incremental da nota. Armazenado como u64. + pub numero: u64, + /// Série da nota (1–3 dígitos numéricos). Ex: "001", "1". + pub serie: String, + /// Valor monetário da nota (opcional). + pub valor: Option, + /// Data de emissão da nota (opcional, exibida no PDF mas não usada em regras). + pub data: Option, +} + +impl Nota { + pub fn new( + numero: u64, + serie: String, + valor: Option, + data: Option, + ) -> Self { + Self { + numero, + serie, + valor, + data, + } + } +} diff --git a/src/domain/entities/resultado_analise.rs b/src/domain/entities/resultado_analise.rs new file mode 100644 index 0000000..93815cd --- /dev/null +++ b/src/domain/entities/resultado_analise.rs @@ -0,0 +1,64 @@ +use rust_decimal::Decimal; +use std::collections::HashMap; + +/// Resultado intermediário da análise, antes de materializar os faltantes. +/// Usado para verificar se algum intervalo excede 10.000 registros (RF04). +#[derive(Debug, Clone)] +pub struct ResultadoPreAnalise { + /// Mapa série → (minimo, maximo, contagem_faltantes) + pub intervalos_por_serie: HashMap, + /// Duplicatas já processadas (não dependem dos faltantes) + pub duplicadas_por_serie: HashMap>, + /// Somas já calculadas + pub soma_total: Decimal, + pub soma_por_serie: HashMap, + /// Total de notas processadas por série + pub total_por_serie: HashMap, +} + +/// Intervalo de sequência de uma série. +#[derive(Debug, Clone)] +pub struct IntervaloSerie { + pub minimo: u64, + pub maximo: u64, + pub contagem_faltantes: u64, +} + +impl IntervaloSerie { + pub fn excede_limite(&self, limite: u64) -> bool { + self.contagem_faltantes > limite + } +} + +/// Resultado completo da análise, com a lista materializada de faltantes. +#[derive(Debug, Clone)] +pub struct ResultadoAnalise { + /// Números faltantes por série (ordenados crescentemente) + pub faltantes_por_serie: HashMap>, + /// Duplicatas: mapa série → [(numero, contagem_ocorrencias)] + pub duplicadas_por_serie: HashMap>, + /// Soma total de todos os valores + pub soma_total: Decimal, + /// Soma por série + pub soma_por_serie: HashMap, + /// Total de notas processadas por série + pub total_por_serie: HashMap, +} + +impl ResultadoAnalise { + /// Retorna true se não houver faltantes nem duplicatas. + pub fn sem_inconsistencias(&self) -> bool { + self.faltantes_por_serie.values().all(|v| v.is_empty()) + && self.duplicadas_por_serie.values().all(|v| v.is_empty()) + } + + /// Retorna o total de notas faltantes somando todas as séries. + pub fn total_faltantes(&self) -> usize { + self.faltantes_por_serie.values().map(|v| v.len()).sum() + } + + /// Retorna o total de grupos de duplicatas somando todas as séries. + pub fn total_duplicatas(&self) -> usize { + self.duplicadas_por_serie.values().map(|v| v.len()).sum() + } +} diff --git a/src/domain/entities/serie.rs b/src/domain/entities/serie.rs new file mode 100644 index 0000000..72a5ab8 --- /dev/null +++ b/src/domain/entities/serie.rs @@ -0,0 +1,58 @@ +use crate::domain::errors::ErroSerie; +use regex::Regex; +use std::sync::OnceLock; + +static REGEX_SERIE: OnceLock = OnceLock::new(); + +fn regex_serie() -> &'static Regex { + REGEX_SERIE.get_or_init(|| Regex::new(r"^[0-9]{1,3}$").expect("Regex de série inválida")) +} + +/// Valida e normaliza uma série. +/// Retorna `Ok(serie_normalizada)` ou `Err(ErroSerie)`. +pub fn validar_serie(s: &str) -> Result { + let trimmed = s.trim(); + if trimmed.is_empty() { + return Err(ErroSerie::Vazia); + } + if regex_serie().is_match(trimmed) { + Ok(trimmed.to_string()) + } else { + Err(ErroSerie::Invalida(trimmed.to_string())) + } +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn serie_valida_simples() { + assert!(validar_serie("1").is_ok()); + assert!(validar_serie("01").is_ok()); + assert!(validar_serie("001").is_ok()); + assert!(validar_serie("999").is_ok()); + } + + #[test] + fn serie_com_espacos_e_valida() { + assert!(validar_serie(" 1 ").is_ok()); + } + + #[test] + fn serie_invalida_letras() { + assert!(validar_serie("ABC").is_err()); + assert!(validar_serie("1A").is_err()); + } + + #[test] + fn serie_invalida_quatro_digitos() { + assert!(validar_serie("1234").is_err()); + } + + #[test] + fn serie_vazia() { + assert!(matches!(validar_serie(""), Err(ErroSerie::Vazia))); + assert!(matches!(validar_serie(" "), Err(ErroSerie::Vazia))); + } +} diff --git a/src/domain/errors.rs b/src/domain/errors.rs new file mode 100644 index 0000000..1b42960 --- /dev/null +++ b/src/domain/errors.rs @@ -0,0 +1,136 @@ +use thiserror::Error; + +#[derive(Debug, Error, Clone)] +pub enum ErroNumero { + #[error("Número zero não é válido para uma nota fiscal")] + Zero, + #[error("Valor não numérico: '{0}'")] + NaoNumerico(String), +} + +#[derive(Debug, Error, Clone)] +pub enum ErroSerie { + #[error("Série inválida: '{0}' (deve conter de 1 a 3 dígitos numéricos)")] + Invalida(String), + #[error("Série vazia")] + Vazia, +} + +#[derive(Debug, Error, Clone)] +pub enum ErroValor { + #[error("Valor negativo não é permitido: '{0}'")] + Negativo(String), + #[error("Valor não numérico: '{0}'")] + NaoNumerico(String), +} + +#[derive(Debug, Error, Clone)] +pub enum ErroLayout { + #[error("Campo obrigatório ausente: '{0}'")] + CampoObrigatorioAusente(String), + #[error("JSON malformado: {0}")] + JsonMalformado(String), + #[error("Conflito de nome: layout '{0}' já existe")] + NomeConflitante(String), +} + +#[derive(Debug, Error, Clone)] +pub enum ErroArquivo { + #[error("Arquivo muito grande ({0} bytes). Limite: 50 MB")] + TamanhoExcedido(u64), + #[error("Arquivo corrompido ou ilegível: {0}")] + Corrompido(String), + #[error("Formato não suportado: {0}")] + FormatoNaoSuportado(String), + #[error("Erro de leitura: {0}")] + ErroLeitura(String), +} + +#[derive(Debug, Error)] +pub enum ErroAnalise { + #[error("Intervalo de faltantes muito grande para a série '{serie}': {intervalo} registros")] + IntervaloMuitoGrande { serie: String, intervalo: u64 }, + #[error("Campo obrigatório não mapeado: {0}")] + CampoObrigatorioNaoMapeado(String), + #[error("Índice de coluna inválido: campo '{campo}', índice {indice}")] + IndiceInvalido { campo: String, indice: usize }, + #[error("Dois campos mapeados para o mesmo índice: {0}")] + IndicesDuplicados(String), +} + +/// Aviso coletado durante a importação, para ser exibido de forma consolidada ao usuário. +#[derive(Debug, Clone)] +pub struct AvisoImportacao { + pub categoria: CategoriaAviso, + pub mensagem: String, +} + +#[derive(Debug, Clone, PartialEq, Eq)] +pub enum CategoriaAviso { + LinhaMalformada, + NumeroInvalido, + SerieInvalida, + ValorInvalido, + RegistroDescartado, +} + +impl std::fmt::Display for CategoriaAviso { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + match self { + CategoriaAviso::LinhaMalformada => write!(f, "Linhas malformadas"), + CategoriaAviso::NumeroInvalido => write!(f, "Valores de Numero inválidos"), + CategoriaAviso::SerieInvalida => write!(f, "Registros com Série inválida"), + CategoriaAviso::ValorInvalido => write!(f, "Valores monetários inválidos"), + CategoriaAviso::RegistroDescartado => write!(f, "Registros descartados"), + } + } +} + +/// Resumo consolidado de avisos para exibição em um único modal. +#[derive(Debug, Default, Clone)] +pub struct ResumoAvisos { + pub linhas_malformadas: usize, + pub numeros_invalidos: usize, + pub series_invalidas: usize, + pub valores_invalidos: usize, + pub detalhes: Vec, +} + +impl ResumoAvisos { + pub fn tem_avisos(&self) -> bool { + self.linhas_malformadas > 0 + || self.numeros_invalidos > 0 + || self.series_invalidas > 0 + || self.valores_invalidos > 0 + } + + pub fn linhas_para_exibir(&self) -> Vec { + let mut linhas = Vec::new(); + if self.linhas_malformadas > 0 { + linhas.push(format!( + "{} linhas descartadas por malformação", + self.linhas_malformadas + )); + } + if self.numeros_invalidos > 0 { + linhas.push(format!( + "{} valores de Numero inválidos convertidos ou descartados", + self.numeros_invalidos + )); + } + if self.series_invalidas > 0 { + linhas.push(format!( + "{} registros com Série inválida descartados", + self.series_invalidas + )); + } + if self.valores_invalidos > 0 { + linhas.push(format!( + "{} valores monetários inválidos descartados", + self.valores_invalidos + )); + } + linhas.extend(self.detalhes.clone()); + linhas + } +} diff --git a/src/domain/mod.rs b/src/domain/mod.rs new file mode 100644 index 0000000..0256fd8 --- /dev/null +++ b/src/domain/mod.rs @@ -0,0 +1,3 @@ +pub mod entities; +pub mod errors; +pub mod services; diff --git a/src/domain/services/detector_duplicidade.rs b/src/domain/services/detector_duplicidade.rs new file mode 100644 index 0000000..3a05893 --- /dev/null +++ b/src/domain/services/detector_duplicidade.rs @@ -0,0 +1,101 @@ +use crate::domain::entities::nota::Nota; +use std::collections::HashMap; + +/// Detecta registros duplicados em uma lista de notas. +/// +/// Retorna um mapa (numero, serie) → contagem de ocorrências, +/// contendo apenas grupos com mais de uma ocorrência. +pub fn detectar_duplicidades(notas: &[Nota]) -> HashMap<(u64, String), usize> { + let mut contagem: HashMap<(u64, String), usize> = HashMap::new(); + + for nota in notas { + *contagem + .entry((nota.numero, nota.serie.clone())) + .or_insert(0) += 1; + } + + // Manter apenas os que têm mais de uma ocorrência + contagem.retain(|_, count| *count > 1); + contagem +} + +/// Agrupa as duplicidades por série. +/// +/// Retorna HashMap>, ordenado por numero crescente. +pub fn duplicidades_por_serie(notas: &[Nota]) -> HashMap> { + let raw = detectar_duplicidades(notas); + let mut result: HashMap> = HashMap::new(); + + for ((numero, serie), contagem) in raw { + result.entry(serie).or_default().push((numero, contagem)); + } + + // Ordenar por numero dentro de cada série + for lista in result.values_mut() { + lista.sort_by_key(|(num, _)| *num); + } + + result +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::domain::entities::nota::Nota; + + fn nota(numero: u64, serie: &str) -> Nota { + Nota::new(numero, serie.to_string(), None, None) + } + + #[test] + fn sem_duplicatas() { + let notas = vec![nota(1, "001"), nota(2, "001"), nota(3, "001")]; + let dup = detectar_duplicidades(¬as); + assert!(dup.is_empty()); + } + + #[test] + fn com_duplicata_simples() { + let notas = vec![nota(1, "001"), nota(1, "001"), nota(2, "001")]; + let dup = detectar_duplicidades(¬as); + assert_eq!(dup.get(&(1, "001".to_string())), Some(&2)); + assert_eq!(dup.len(), 1); + } + + #[test] + fn duplicata_multiplas_ocorrencias() { + let notas = vec![nota(4, "001"), nota(4, "001"), nota(4, "001")]; + let dup = detectar_duplicidades(¬as); + assert_eq!(dup.get(&(4, "001".to_string())), Some(&3)); + } + + #[test] + fn mesmo_numero_series_diferentes_nao_e_duplicata() { + // Número 1 em séries diferentes não é duplicata + let notas = vec![nota(1, "001"), nota(1, "002")]; + let dup = detectar_duplicidades(¬as); + assert!(dup.is_empty()); + } + + #[test] + fn agrupamento_por_serie() { + let notas = vec![ + nota(1, "001"), + nota(1, "001"), + nota(1, "002"), + nota(1, "002"), + nota(2, "001"), + nota(2, "001"), + ]; + let por_serie = duplicidades_por_serie(¬as); + // Série 001 deve ter notas 1 e 2 duplicadas + let serie001 = por_serie.get("001").unwrap(); + assert_eq!(serie001.len(), 2); + assert_eq!(serie001[0], (1, 2)); + assert_eq!(serie001[1], (2, 2)); + // Série 002 deve ter nota 1 duplicada + let serie002 = por_serie.get("002").unwrap(); + assert_eq!(serie002.len(), 1); + assert_eq!(serie002[0], (1, 2)); + } +} diff --git a/src/domain/services/detector_sequencia.rs b/src/domain/services/detector_sequencia.rs new file mode 100644 index 0000000..ebae722 --- /dev/null +++ b/src/domain/services/detector_sequencia.rs @@ -0,0 +1,139 @@ +use crate::domain::entities::nota::Nota; +use crate::domain::entities::resultado_analise::IntervaloSerie; + +/// Limite de faltantes por série antes de solicitar confirmação do usuário (RF04). +pub const LIMITE_FALTANTES: u64 = 10_000; + +/// Calcula o intervalo de faltantes de uma lista de notas de uma mesma série, +/// sem materializar a lista completa. +/// +/// Retorna `None` se não há notas. +pub fn calcular_intervalo(notas: &[&Nota]) -> Option { + if notas.is_empty() { + return None; + } + + let mut numeros: Vec = notas.iter().map(|n| n.numero).collect(); + numeros.sort_unstable(); + numeros.dedup(); // Ignorar duplicatas no cálculo de sequência + + let minimo = *numeros.first().unwrap(); + let maximo = *numeros.last().unwrap(); + + // Contar faltantes de forma incremental + let mut faltantes: u64 = 0; + for w in numeros.windows(2) { + let a = w[0]; + let b = w[1]; + if b > a + 1 { + faltantes += b - a - 1; + } + } + + Some(IntervaloSerie { + minimo, + maximo, + contagem_faltantes: faltantes, + }) +} + +/// Materializa a lista completa de números faltantes para uma série. +/// Deve ser chamado apenas após confirmação do usuário quando o intervalo +/// excede `LIMITE_FALTANTES`. +/// +/// A lista é retornada em ordem crescente. +pub fn detectar_faltantes(notas: &[&Nota]) -> Vec { + if notas.is_empty() { + return Vec::new(); + } + + let mut numeros: Vec = notas.iter().map(|n| n.numero).collect(); + numeros.sort_unstable(); + numeros.dedup(); + + if numeros.len() <= 1 { + return Vec::new(); + } + + let mut faltantes = Vec::new(); + for w in numeros.windows(2) { + let a = w[0]; + let b = w[1]; + for faltante in (a + 1)..b { + faltantes.push(faltante); + } + } + + faltantes +} + +#[cfg(test)] +mod tests { + use super::*; + use crate::domain::entities::nota::Nota; + use rust_decimal::Decimal; + + fn nota(numero: u64) -> Nota { + Nota::new(numero, "001".to_string(), None, None) + } + + #[test] + fn sem_faltantes() { + let notas = vec![nota(1), nota(2), nota(3)]; + let refs: Vec<&Nota> = notas.iter().collect(); + assert_eq!(detectar_faltantes(&refs), Vec::::new()); + } + + #[test] + fn com_faltante_simples() { + let notas = vec![nota(1), nota(2), nota(3), nota(5)]; + let refs: Vec<&Nota> = notas.iter().collect(); + assert_eq!(detectar_faltantes(&refs), vec![4u64]); + } + + #[test] + fn com_multiplos_faltantes() { + let notas = vec![nota(1), nota(5)]; + let refs: Vec<&Nota> = notas.iter().collect(); + assert_eq!(detectar_faltantes(&refs), vec![2u64, 3, 4]); + } + + #[test] + fn serie_com_um_registro() { + let notas = vec![nota(7)]; + let refs: Vec<&Nota> = notas.iter().collect(); + assert_eq!(detectar_faltantes(&refs), Vec::::new()); + } + + #[test] + fn vazio() { + let refs: Vec<&Nota> = vec![]; + assert_eq!(detectar_faltantes(&refs), Vec::::new()); + } + + #[test] + fn intervalo_correto() { + let notas = vec![nota(1), nota(2), nota(5)]; + let refs: Vec<&Nota> = notas.iter().collect(); + let intervalo = calcular_intervalo(&refs).unwrap(); + assert_eq!(intervalo.minimo, 1); + assert_eq!(intervalo.maximo, 5); + assert_eq!(intervalo.contagem_faltantes, 2); + } + + #[test] + fn intervalo_excede_limite() { + let notas = vec![nota(1), nota(20_000)]; + let refs: Vec<&Nota> = notas.iter().collect(); + let intervalo = calcular_intervalo(&refs).unwrap(); + assert!(intervalo.excede_limite(LIMITE_FALTANTES)); + } + + #[test] + fn duplicatas_ignoradas_no_calculo() { + // Duplicados não devem gerar faltantes falsos + let notas = vec![nota(1), nota(1), nota(2), nota(3)]; + let refs: Vec<&Nota> = notas.iter().collect(); + assert_eq!(detectar_faltantes(&refs), Vec::::new()); + } +} diff --git a/src/domain/services/mod.rs b/src/domain/services/mod.rs new file mode 100644 index 0000000..784bd38 --- /dev/null +++ b/src/domain/services/mod.rs @@ -0,0 +1,3 @@ +pub mod detector_duplicidade; +pub mod detector_sequencia; +pub mod parser_monetario; diff --git a/src/domain/services/parser_monetario.rs b/src/domain/services/parser_monetario.rs new file mode 100644 index 0000000..389ee1d --- /dev/null +++ b/src/domain/services/parser_monetario.rs @@ -0,0 +1,175 @@ +use crate::domain::errors::ErroValor; +use rust_decimal::Decimal; +use std::str::FromStr; + +/// Faz o parsing de uma string de valor monetário para `Decimal`, +/// suportando formatos brasileiro (1.000,00) e americano (1,000.00). +/// +/// Algoritmo conforme RF06: +/// - Regra 1: contém ponto E vírgula → último separador é o decimal +/// - Regra 2: apenas um separador + 2 dígitos após → decimal; 3 dígitos → milhar +/// - Regra 3: sem separador → número inteiro +/// +/// Rejeita valores negativos. +pub fn parse_valor(input: &str) -> Result { + let s = input.trim(); + + // Rejeitar negativos + if s.starts_with('-') { + return Err(ErroValor::Negativo(s.to_string())); + } + + // Remover prefixos/sufixos comuns (ex: "R$", espaços internos, "BRL") + let s = s.trim_start_matches("R$").trim_start_matches("r$").trim(); + + let tem_ponto = s.contains('.'); + let tem_virgula = s.contains(','); + + let normalizado = match (tem_ponto, tem_virgula) { + // Regra 1: tem ambos — último separador é o decimal + (true, true) => { + let pos_ponto = s.rfind('.').unwrap(); + let pos_virgula = s.rfind(',').unwrap(); + if pos_ponto > pos_virgula { + // Formato americano: 1,000.00 → ponto é decimal + s.replace(',', "") + } else { + // Formato brasileiro: 1.000,00 → vírgula é decimal + s.replace('.', "").replace(',', ".") + } + } + // Regra 2: apenas ponto + (true, false) => { + let depois_do_ponto = &s[s.rfind('.').unwrap() + 1..]; + match depois_do_ponto.len() { + 3 => { + // 3 dígitos após ponto → separador de milhar (ex: 1.234) + s.replace('.', "") + } + _ => { + // 2 dígitos ou outro → decimal (ex: 1000.00) + s.to_string() + } + } + } + // Regra 2: apenas vírgula + (false, true) => { + let depois_da_virgula = &s[s.rfind(',').unwrap() + 1..]; + match depois_da_virgula.len() { + 3 => { + // 3 dígitos após vírgula → separador de milhar (ex: 1,234) + s.replace(',', "") + } + _ => { + // 2 dígitos ou outro → decimal (ex: 1000,00) + s.replace(',', ".") + } + } + } + // Regra 3: sem separador → inteiro + (false, false) => s.to_string(), + }; + + // Verificar se ainda há caracteres não numéricos (exceto ponto decimal) + if normalizado.chars().any(|c| !c.is_ascii_digit() && c != '.') { + return Err(ErroValor::NaoNumerico(input.to_string())); + } + + Decimal::from_str(&normalizado).map_err(|_| ErroValor::NaoNumerico(input.to_string())) +} + +/// Formata um `Decimal` para exibição no formato monetário brasileiro. +/// Ex: 1234.56 → "1.234,56" +pub fn formatar_valor_br(valor: &Decimal) -> String { + let s = format!("{:.2}", valor); + // Separar parte inteira e decimal + let partes: Vec<&str> = s.split('.').collect(); + let inteira = partes[0]; + let decimal = partes.get(1).copied().unwrap_or("00"); + + // Inserir pontos de milhar + let inteira_com_milhar = inserir_pontos_milhar(inteira); + format!("{},{}", inteira_com_milhar, decimal) +} + +fn inserir_pontos_milhar(s: &str) -> String { + let digits: Vec = s.chars().collect(); + let len = digits.len(); + let mut result = String::new(); + for (i, &c) in digits.iter().enumerate() { + if i > 0 && (len - i) % 3 == 0 { + result.push('.'); + } + result.push(c); + } + result +} + +#[cfg(test)] +mod tests { + use super::*; + use rust_decimal_macros::dec; + + #[test] + fn regra1_formato_br() { + assert_eq!(parse_valor("1.000,00").unwrap(), dec!(1000.00)); + } + + #[test] + fn regra1_formato_en() { + assert_eq!(parse_valor("1,000.00").unwrap(), dec!(1000.00)); + } + + #[test] + fn regra2_ponto_2_digitos() { + assert_eq!(parse_valor("1000.00").unwrap(), dec!(1000.00)); + } + + #[test] + fn regra2_virgula_2_digitos() { + assert_eq!(parse_valor("1000,00").unwrap(), dec!(1000.00)); + } + + #[test] + fn regra2_ponto_3_digitos_milhar() { + assert_eq!(parse_valor("1.234").unwrap(), dec!(1234)); + } + + #[test] + fn regra2_virgula_3_digitos_milhar() { + assert_eq!(parse_valor("1,234").unwrap(), dec!(1234)); + } + + #[test] + fn regra3_inteiro() { + assert_eq!(parse_valor("1000").unwrap(), dec!(1000)); + } + + #[test] + fn rejeitar_negativo() { + assert!(matches!( + parse_valor("-100,00"), + Err(ErroValor::Negativo(_)) + )); + } + + #[test] + fn rejeitar_nao_numerico() { + assert!(matches!(parse_valor("abc"), Err(ErroValor::NaoNumerico(_)))); + } + + #[test] + fn formatar_milhar() { + assert_eq!(formatar_valor_br(&dec!(1234.56)), "1.234,56"); + } + + #[test] + fn formatar_sem_milhar() { + assert_eq!(formatar_valor_br(&dec!(100.00)), "100,00"); + } + + #[test] + fn formatar_grande() { + assert_eq!(formatar_valor_br(&dec!(1234567.89)), "1.234.567,89"); + } +} diff --git a/src/infrastructure/csv_reader.rs b/src/infrastructure/csv_reader.rs new file mode 100644 index 0000000..ea90fa4 --- /dev/null +++ b/src/infrastructure/csv_reader.rs @@ -0,0 +1,90 @@ +use crate::domain::errors::{ErroArquivo, ResumoAvisos}; +use encoding_rs::WINDOWS_1252; +use std::path::Path; + +const LIMITE_BYTES: u64 = 50 * 1024 * 1024; + +/// Resultado da leitura de um arquivo CSV. +pub struct ResultadoCsv { + /// Linhas de dados (já sem o cabeçalho), cada linha é um vetor de strings. + pub linhas: Vec>, + /// Avisos coletados durante a leitura. + pub avisos: ResumoAvisos, +} + +/// Lê um arquivo CSV e retorna as linhas de dados (sem o cabeçalho). +/// +/// # Parâmetros +/// - `caminho`: caminho do arquivo +/// - `delimitador`: caractere delimitador (`,`, `;` ou `\t`) +/// - `encoding`: "utf-8" ou "windows-1252" +/// - `linha_cabecalho`: número da linha do cabeçalho (base 1). 0 = sem cabeçalho. +pub fn ler_csv( + caminho: &Path, + delimitador: u8, + encoding: &str, + linha_cabecalho: usize, +) -> Result { + // Verificar tamanho + let metadata = std::fs::metadata(caminho) + .map_err(|e| ErroArquivo::ErroLeitura(e.to_string()))?; + if metadata.len() > LIMITE_BYTES { + return Err(ErroArquivo::TamanhoExcedido(metadata.len())); + } + + // Ler conteúdo bruto + let bytes = std::fs::read(caminho) + .map_err(|e| ErroArquivo::ErroLeitura(e.to_string()))?; + + // Decodificar encoding + let conteudo = match encoding.to_lowercase().as_str() { + "windows-1252" | "latin-1" | "iso-8859-1" => { + let (decoded, _, _) = WINDOWS_1252.decode(&bytes); + decoded.into_owned() + } + _ => { + String::from_utf8(bytes) + .map_err(|e| ErroArquivo::ErroLeitura(format!("Encoding inválido: {}", e)))? + } + }; + + let mut avisos = ResumoAvisos::default(); + let mut linhas_dados: Vec> = Vec::new(); + let mut numero_linha_arquivo: usize = 0; + + let mut reader = csv::ReaderBuilder::new() + .delimiter(delimitador) + .has_headers(false) + .flexible(true) + .from_reader(conteudo.as_bytes()); + + for resultado in reader.records() { + numero_linha_arquivo += 1; + + // Pular linhas antes ou na linha do cabeçalho + if linha_cabecalho > 0 && numero_linha_arquivo <= linha_cabecalho { + continue; + } + + match resultado { + Ok(record) => { + let campos: Vec = record.iter().map(|s| s.to_string()).collect(); + + // Ignorar linhas completamente em branco + if campos.iter().all(|s| s.trim().is_empty()) { + continue; + } + + linhas_dados.push(campos); + } + Err(_) => { + avisos.linhas_malformadas += 1; + } + } + } + + Ok(ResultadoCsv { + linhas: linhas_dados, + avisos, + }) +} diff --git a/src/infrastructure/mod.rs b/src/infrastructure/mod.rs new file mode 100644 index 0000000..ee08c90 --- /dev/null +++ b/src/infrastructure/mod.rs @@ -0,0 +1,4 @@ +pub mod csv_reader; +pub mod pdf_generator; +pub mod sqlite; +pub mod xlsx_reader; diff --git a/src/infrastructure/pdf_generator.rs b/src/infrastructure/pdf_generator.rs new file mode 100644 index 0000000..54c46db --- /dev/null +++ b/src/infrastructure/pdf_generator.rs @@ -0,0 +1,193 @@ +use crate::domain::entities::resultado_analise::ResultadoAnalise; +use crate::domain::services::parser_monetario::formatar_valor_br; +use chrono::{DateTime, Local}; +use genpdf::{ + elements::{Break, Paragraph}, + fonts, style, Document, Element, SimplePageDecorator, +}; +use std::path::Path; + +/// Metadados do relatório. +pub struct MetadadosRelatorio { + pub nome_arquivo: String, + pub nome_layout: Option, + pub gerado_em: DateTime, +} + +/// Trait abstrata para geração de PDF. +/// Definida aqui para que o use case `exportar_pdf` dependa da abstração, +/// não da crate `genpdf` diretamente. +pub trait PdfGenerator { + fn gerar( + &self, + resultado: &ResultadoAnalise, + meta: &MetadadosRelatorio, + caminho_saida: &Path, + ) -> Result<(), String>; +} + +/// Implementação concreta usando `genpdf`. +pub struct GenpdfGenerator; + +impl PdfGenerator for GenpdfGenerator { + fn gerar( + &self, + resultado: &ResultadoAnalise, + meta: &MetadadosRelatorio, + caminho_saida: &Path, + ) -> Result<(), String> { + // Carregar fonte do sistema (DejaVu Sans) + let font_family = carregar_fonte_sistema() + .map_err(|e| format!("Erro ao carregar fontes: {}", e))?; + + let mut doc = Document::new(font_family); + doc.set_title("Relatório — Comparador de Notas"); + doc.set_minimal_conformance(); + + let mut decorator = SimplePageDecorator::new(); + decorator.set_margins(10); + doc.set_page_decorator(decorator); + + // Título + doc.push( + Paragraph::new("").styled_string( + "Relatório de Análise de Notas Fiscais", + style::Style::new().bold().with_font_size(16), + ), + ); + doc.push(Break::new(1)); + + // Metadados + doc.push(Paragraph::new(format!("Arquivo: {}", meta.nome_arquivo))); + if let Some(layout) = &meta.nome_layout { + doc.push(Paragraph::new(format!("Layout: {}", layout))); + } + doc.push(Paragraph::new(format!( + "Gerado em: {}", + meta.gerado_em.format("%d/%m/%Y %H:%M:%S") + ))); + doc.push(Break::new(1)); + + // Totais + doc.push( + Paragraph::new("").styled_string("Totais", style::Style::new().bold().with_font_size(14)), + ); + doc.push(Paragraph::new(format!( + "Total Geral: R$ {}", + formatar_valor_br(&resultado.soma_total) + ))); + + let mut series_ordenadas: Vec<&String> = resultado.soma_por_serie.keys().collect(); + series_ordenadas.sort(); + + for serie in &series_ordenadas { + let soma = &resultado.soma_por_serie[*serie]; + let total = resultado.total_por_serie.get(*serie).copied().unwrap_or(0); + doc.push(Paragraph::new(format!( + " Série {}: {} nota(s) — R$ {}", + serie, + total, + formatar_valor_br(soma) + ))); + } + + doc.push(Break::new(1)); + + // Notas Faltantes + doc.push( + Paragraph::new("").styled_string("Notas Faltantes por Série", style::Style::new().bold().with_font_size(14)), + ); + + for serie in &series_ordenadas { + let faltantes = match resultado.faltantes_por_serie.get(*serie) { + Some(f) if !f.is_empty() => f, + _ => { + doc.push(Paragraph::new(format!(" Série {}: nenhuma faltante", serie))); + continue; + } + }; + + doc.push(Paragraph::new(format!( + " Série {}: {} faltante(s)", + serie, + faltantes.len() + ))); + let numeros: Vec = faltantes.iter().map(|n| n.to_string()).collect(); + doc.push(Paragraph::new(format!(" {}", numeros.join(", ")))); + } + + doc.push(Break::new(1)); + + // Duplicatas + doc.push( + Paragraph::new("").styled_string("Duplicatas por Série", style::Style::new().bold().with_font_size(14)), + ); + + for serie in &series_ordenadas { + let duplicatas = match resultado.duplicadas_por_serie.get(*serie) { + Some(d) if !d.is_empty() => d, + _ => { + doc.push(Paragraph::new(format!(" Série {}: nenhuma duplicata", serie))); + continue; + } + }; + + doc.push(Paragraph::new(format!( + " Série {}: {} grupo(s) duplicado(s)", + serie, + duplicatas.len() + ))); + for (numero, count) in duplicatas { + doc.push(Paragraph::new(format!( + " NF {} / Série {} — {} ocorrências", + numero, serie, count + ))); + } + } + + // Renderizar PDF + doc.render_to_file(caminho_saida) + .map_err(|e| format!("Erro ao gerar PDF: {}", e))?; + + Ok(()) + } +} + +/// Tenta carregar fontes DejaVu Sans do sistema. +fn carregar_fonte_sistema() -> Result, String> { + // Caminhos comuns no Linux, Windows e macOS + let candidatos_regular = [ + "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", + "/usr/share/fonts/TTF/DejaVuSans.ttf", + "C:\\Windows\\Fonts\\arial.ttf", + "/Library/Fonts/Arial.ttf", + ]; + let candidatos_bold = [ + "/usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf", + "/usr/share/fonts/TTF/DejaVuSans-Bold.ttf", + "C:\\Windows\\Fonts\\arialbd.ttf", + "/Library/Fonts/Arial Bold.ttf", + ]; + + let regular_path = candidatos_regular + .iter() + .find(|p| std::path::Path::new(p).exists()) + .ok_or_else(|| "Fonte regular não encontrada no sistema".to_string())?; + + let bold_path = candidatos_bold + .iter() + .find(|p| std::path::Path::new(p).exists()) + .unwrap_or(regular_path); + + let regular = fonts::FontData::load(regular_path, None) + .map_err(|e| format!("Erro ao carregar fonte regular: {}", e))?; + let bold = fonts::FontData::load(bold_path, None) + .map_err(|e| format!("Erro ao carregar fonte bold: {}", e))?; + + Ok(fonts::FontFamily { + regular: regular.clone(), + bold, + italic: regular.clone(), + bold_italic: regular, + }) +} diff --git a/src/infrastructure/sqlite/connection.rs b/src/infrastructure/sqlite/connection.rs new file mode 100644 index 0000000..452d1ff --- /dev/null +++ b/src/infrastructure/sqlite/connection.rs @@ -0,0 +1,56 @@ +use rusqlite::Connection; +use std::path::{Path, PathBuf}; + +const LIMITE_50MB: u64 = 50 * 1024 * 1024; + +/// Determina o caminho do banco de dados conforme o sistema operacional. +pub fn caminho_banco() -> PathBuf { + let config_dir = dirs::config_dir().unwrap_or_else(|| PathBuf::from(".")); + config_dir.join("comparador-notas").join("config.db") +} + +/// Abre (ou cria) o banco de dados SQLite no caminho padrão. +/// +/// Retorna a conexão aberta e pronta para uso, ou um erro descritivo. +/// Em caso de banco corrompido, renomeia para `.bak` e recria. +pub fn abrir_banco() -> Result<(Connection, bool), String> { + let caminho = caminho_banco(); + abrir_banco_no_caminho(&caminho) +} + +/// Versão testável que aceita um caminho explícito. +pub fn abrir_banco_no_caminho(caminho: &Path) -> Result<(Connection, bool), String> { + // Criar diretório se não existir + if let Some(dir) = caminho.parent() { + std::fs::create_dir_all(dir) + .map_err(|e| format!("Não foi possível criar diretório do banco: {}", e))?; + } + + // Verificar se o arquivo existe e está corrompido + if caminho.exists() { + match Connection::open(caminho) { + Ok(conn) => { + // Testar se o banco funciona com uma query simples + match conn.execute_batch("SELECT 1;") { + Ok(_) => return Ok((conn, false)), + Err(e) => { + // Banco corrompido + drop(conn); + let bak = caminho.with_extension("db.bak"); + let _ = std::fs::rename(caminho, &bak); + } + } + } + Err(_) => { + let bak = caminho.with_extension("db.bak"); + let _ = std::fs::rename(caminho, &bak); + } + } + } + + // Criar banco novo + let conn = Connection::open(caminho) + .map_err(|e| format!("Não foi possível criar banco de dados: {}", e))?; + + Ok((conn, true)) // true = banco foi recriado (era corrompido) +} diff --git a/src/infrastructure/sqlite/layout_repository.rs b/src/infrastructure/sqlite/layout_repository.rs new file mode 100644 index 0000000..d260e2c --- /dev/null +++ b/src/infrastructure/sqlite/layout_repository.rs @@ -0,0 +1,211 @@ +use crate::domain::entities::layout::{Layout, LayoutCsv, LayoutXlsx}; +use rusqlite::{params, Connection, Result}; + +/// Salva um layout no banco. Retorna o id gerado. +pub fn salvar(conn: &Connection, layout: &Layout) -> Result { + match layout { + Layout::Csv { nome, config, .. } => { + conn.execute( + "INSERT INTO layouts + (nome, tipo, delimitador, encoding, linha_cabecalho, + indice_numero, indice_serie, indice_valor, indice_data) + VALUES (?1, 'csv', ?2, ?3, ?4, ?5, ?6, ?7, ?8)", + params![ + nome, + config.delimitador.to_string(), + config.encoding, + config.linha_cabecalho as i64, + config.indice_numero as i64, + config.indice_serie as i64, + config.indice_valor.map(|v| v as i64), + config.indice_data.map(|v| v as i64), + ], + )?; + Ok(conn.last_insert_rowid()) + } + Layout::Xlsx { nome, config, .. } => { + conn.execute( + "INSERT INTO layouts + (nome, tipo, aba, pos_numero, pos_serie, pos_valor, pos_data) + VALUES (?1, 'xlsx', ?2, ?3, ?4, ?5, ?6)", + params![ + nome, + config.aba, + config.pos_numero, + config.pos_serie, + config.pos_valor, + config.pos_data, + ], + )?; + Ok(conn.last_insert_rowid()) + } + } +} + +/// Atualiza um layout existente no banco. +pub fn atualizar(conn: &Connection, layout: &Layout) -> Result<()> { + let id = layout + .id() + .ok_or_else(|| rusqlite::Error::InvalidParameterName("id ausente".to_string()))?; + + match layout { + Layout::Csv { nome, config, .. } => { + conn.execute( + "UPDATE layouts SET + nome = ?1, delimitador = ?2, encoding = ?3, + linha_cabecalho = ?4, indice_numero = ?5, indice_serie = ?6, + indice_valor = ?7, indice_data = ?8 + WHERE id = ?9", + params![ + nome, + config.delimitador.to_string(), + config.encoding, + config.linha_cabecalho as i64, + config.indice_numero as i64, + config.indice_serie as i64, + config.indice_valor.map(|v| v as i64), + config.indice_data.map(|v| v as i64), + id, + ], + )?; + } + Layout::Xlsx { nome, config, .. } => { + conn.execute( + "UPDATE layouts SET + nome = ?1, aba = ?2, pos_numero = ?3, pos_serie = ?4, + pos_valor = ?5, pos_data = ?6 + WHERE id = ?7", + params![ + nome, + config.aba, + config.pos_numero, + config.pos_serie, + config.pos_valor, + config.pos_data, + id, + ], + )?; + } + } + Ok(()) +} + +/// Lista todos os layouts salvos. +pub fn listar(conn: &Connection) -> Result> { + let mut stmt = conn.prepare( + "SELECT id, nome, tipo, + delimitador, encoding, linha_cabecalho, + indice_numero, indice_serie, indice_valor, indice_data, + aba, pos_numero, pos_serie, pos_valor, pos_data + FROM layouts ORDER BY nome ASC", + )?; + + let layouts: Result> = stmt + .query_map([], |row| { + let id: i64 = row.get(0)?; + let nome: String = row.get(1)?; + let tipo: String = row.get(2)?; + + if tipo == "csv" { + let delim_str: String = row.get(3)?; + let delimitador = delim_str.chars().next().unwrap_or(';'); + Ok(Layout::Csv { + id: Some(id), + nome, + config: LayoutCsv { + delimitador, + encoding: row.get(4)?, + linha_cabecalho: row.get::<_, i64>(5)? as usize, + indice_numero: row.get::<_, i64>(6)? as usize, + indice_serie: row.get::<_, i64>(7)? as usize, + indice_valor: row + .get::<_, Option>(8)? + .map(|v| v as usize), + indice_data: row + .get::<_, Option>(9)? + .map(|v| v as usize), + }, + }) + } else { + Ok(Layout::Xlsx { + id: Some(id), + nome, + config: LayoutXlsx { + aba: row.get(10)?, + pos_numero: row.get(11)?, + pos_serie: row.get(12)?, + pos_valor: row.get(13)?, + pos_data: row.get(14)?, + }, + }) + } + })? + .collect(); + + layouts +} + +/// Busca um layout pelo id. +pub fn buscar_por_id(conn: &Connection, id: i64) -> Result> { + let mut stmt = conn.prepare( + "SELECT id, nome, tipo, + delimitador, encoding, linha_cabecalho, + indice_numero, indice_serie, indice_valor, indice_data, + aba, pos_numero, pos_serie, pos_valor, pos_data + FROM layouts WHERE id = ?1", + )?; + + let mut results = stmt.query_map([id], |row| { + let id: i64 = row.get(0)?; + let nome: String = row.get(1)?; + let tipo: String = row.get(2)?; + + if tipo == "csv" { + let delim_str: String = row.get(3)?; + let delimitador = delim_str.chars().next().unwrap_or(';'); + Ok(Layout::Csv { + id: Some(id), + nome, + config: LayoutCsv { + delimitador, + encoding: row.get(4)?, + linha_cabecalho: row.get::<_, i64>(5)? as usize, + indice_numero: row.get::<_, i64>(6)? as usize, + indice_serie: row.get::<_, i64>(7)? as usize, + indice_valor: row.get::<_, Option>(8)?.map(|v| v as usize), + indice_data: row.get::<_, Option>(9)?.map(|v| v as usize), + }, + }) + } else { + Ok(Layout::Xlsx { + id: Some(id), + nome, + config: LayoutXlsx { + aba: row.get(10)?, + pos_numero: row.get(11)?, + pos_serie: row.get(12)?, + pos_valor: row.get(13)?, + pos_data: row.get(14)?, + }, + }) + } + })?; + + results.next().transpose() +} + +/// Remove um layout pelo id. +pub fn excluir(conn: &Connection, id: i64) -> Result<()> { + conn.execute("DELETE FROM layouts WHERE id = ?1", [id])?; + Ok(()) +} + +/// Verifica se já existe um layout com o nome fornecido. +pub fn existe_nome(conn: &Connection, nome: &str) -> Result { + let count: i64 = conn.query_row( + "SELECT COUNT(*) FROM layouts WHERE nome = ?1", + [nome], + |row| row.get(0), + )?; + Ok(count > 0) +} diff --git a/src/infrastructure/sqlite/migrations.rs b/src/infrastructure/sqlite/migrations.rs new file mode 100644 index 0000000..0ba9e6d --- /dev/null +++ b/src/infrastructure/sqlite/migrations.rs @@ -0,0 +1,62 @@ +use rusqlite::{Connection, Result}; + +/// Versão atual do schema do banco de dados. +const VERSAO_SCHEMA_ATUAL: i64 = 1; + +/// Aplica todas as migrations necessárias para atualizar o banco +/// para a versão mais recente. +pub fn aplicar_migrations(conn: &Connection) -> Result<()> { + // Criar tabela de controle de versão se não existir + conn.execute_batch( + "CREATE TABLE IF NOT EXISTS schema_version ( + versao INTEGER NOT NULL + );", + )?; + + let versao_atual: i64 = conn + .query_row( + "SELECT versao FROM schema_version LIMIT 1;", + [], + |row| row.get(0), + ) + .unwrap_or(0); + + if versao_atual < 1 { + migration_v1(conn)?; + if versao_atual == 0 { + conn.execute("INSERT INTO schema_version (versao) VALUES (?1);", [1])?; + } else { + conn.execute("UPDATE schema_version SET versao = ?1;", [1])?; + } + } + + Ok(()) +} + +/// Migration v1: criar tabela de layouts. +fn migration_v1(conn: &Connection) -> Result<()> { + conn.execute_batch( + "CREATE TABLE IF NOT EXISTS layouts ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + nome TEXT NOT NULL, + tipo TEXT NOT NULL CHECK(tipo IN ('csv', 'xlsx')), + + -- Campos CSV + delimitador TEXT, + encoding TEXT, + linha_cabecalho INTEGER, + indice_numero INTEGER, + indice_serie INTEGER, + indice_valor INTEGER, + indice_data INTEGER, + + -- Campos XLSX + aba TEXT, + pos_numero TEXT, + pos_serie TEXT, + pos_valor TEXT, + pos_data TEXT + );", + )?; + Ok(()) +} diff --git a/src/infrastructure/sqlite/mod.rs b/src/infrastructure/sqlite/mod.rs new file mode 100644 index 0000000..e397e1c --- /dev/null +++ b/src/infrastructure/sqlite/mod.rs @@ -0,0 +1,3 @@ +pub mod connection; +pub mod layout_repository; +pub mod migrations; diff --git a/src/infrastructure/xlsx_reader.rs b/src/infrastructure/xlsx_reader.rs new file mode 100644 index 0000000..3b026c1 --- /dev/null +++ b/src/infrastructure/xlsx_reader.rs @@ -0,0 +1,188 @@ +use crate::domain::errors::{ErroArquivo, ResumoAvisos}; +use calamine::{open_workbook, Reader, Xlsx}; +use std::fs::File; +use std::io::BufReader; +use std::path::Path; + +const LIMITE_BYTES: u64 = 50 * 1024 * 1024; + +/// Representa uma coordenada de célula (coluna base-0, linha base-0). +#[derive(Debug, Clone, Copy)] +pub struct Coordenada { + pub coluna: u32, + pub linha: u32, +} + +/// Resultado da leitura de um arquivo XLSX. +pub struct ResultadoXlsx { + /// Linhas de dados, a partir da posição de início. + /// Cada linha é um vetor de strings (indexado pela posição da coluna de início). + pub linhas: Vec>, + /// Avisos coletados durante a leitura. + pub avisos: ResumoAvisos, +} + +/// Lista as abas disponíveis em um arquivo XLSX. +pub fn listar_abas(caminho: &Path) -> Result, ErroArquivo> { + verificar_tamanho(caminho)?; + + let workbook: Xlsx> = open_workbook::, _>(caminho) + .map_err(|e| ErroArquivo::Corrompido(e.to_string()))?; + + Ok(workbook.sheet_names().to_vec()) +} + +/// Lê os dados de uma aba XLSX a partir de uma linha de início. +/// +/// # Parâmetros +/// - `caminho`: caminho do arquivo +/// - `nome_aba`: nome da aba a ser lida +/// - `linha_inicio`: número da linha de início dos dados (base 1, ex: 3 para "B3") +pub fn ler_xlsx( + caminho: &Path, + nome_aba: &str, + linha_inicio: u32, +) -> Result { + verificar_tamanho(caminho)?; + + let mut workbook: Xlsx> = open_workbook::, _>(caminho) + .map_err(|e| ErroArquivo::Corrompido(e.to_string()))?; + + let range: calamine::Range = workbook + .worksheet_range(nome_aba) + .map_err(|e| ErroArquivo::Corrompido(e.to_string()))?; + + let mut avisos = ResumoAvisos::default(); + let mut linhas: Vec> = Vec::new(); + + let linha_inicio_base0 = (linha_inicio.saturating_sub(1)) as usize; + + for (row_idx, row) in range.rows().enumerate() { + if row_idx < linha_inicio_base0 { + continue; + } + + let campos: Vec = row + .iter() + .map(|cell| { + use calamine::Data; + match cell { + Data::Empty => String::new(), + Data::String(s) => s.clone(), + Data::Float(f) => { + if f.fract() == 0.0 { + format!("{}", *f as i64) + } else { + format!("{}", f) + } + } + Data::Int(i) => i.to_string(), + Data::Bool(b) => b.to_string(), + Data::DateTime(dt) => dt.to_string(), + Data::DateTimeIso(s) => s.clone(), + Data::DurationIso(s) => s.clone(), + Data::Error(_) => String::new(), + } + }) + .collect(); + + // Ignorar linhas completamente em branco + if campos.iter().all(|s: &String| s.trim().is_empty()) { + continue; + } + + linhas.push(campos); + } + + Ok(ResultadoXlsx { linhas, avisos }) +} + +/// Converte uma notação LetraLinha (ex: "B3") para (coluna_base0, linha_base1). +/// +/// Retorna `None` se a notação for inválida. +pub fn parsear_letra_linha(s: &str) -> Option { + let s = s.trim().to_uppercase(); + if s.is_empty() { + return None; + } + + let pos_numero = s.find(|c: char| c.is_ascii_digit())?; + let (letras, numeros) = s.split_at(pos_numero); + + if letras.is_empty() || numeros.is_empty() { + return None; + } + + // Converter letras para índice de coluna (base 0) + // A=0, B=1, ..., Z=25, AA=26, ... + let coluna = letras + .chars() + .try_fold(0u32, |acc, c| { + if c.is_ascii_uppercase() { + Some(acc * 26 + (c as u32 - 'A' as u32 + 1)) + } else { + None + } + })? + .checked_sub(1)?; + + let linha: u32 = numeros.parse().ok()?; + if linha == 0 { + return None; + } + + Some(Coordenada { coluna, linha }) +} + +fn verificar_tamanho(caminho: &Path) -> Result<(), ErroArquivo> { + let metadata = std::fs::metadata(caminho) + .map_err(|e| ErroArquivo::ErroLeitura(e.to_string()))?; + if metadata.len() > LIMITE_BYTES { + return Err(ErroArquivo::TamanhoExcedido(metadata.len())); + } + Ok(()) +} + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn parsear_b3() { + let coord = parsear_letra_linha("B3").unwrap(); + assert_eq!(coord.coluna, 1); // B = coluna 1 (base 0) + assert_eq!(coord.linha, 3); + } + + #[test] + fn parsear_a1() { + let coord = parsear_letra_linha("A1").unwrap(); + assert_eq!(coord.coluna, 0); + assert_eq!(coord.linha, 1); + } + + #[test] + fn parsear_z1() { + let coord = parsear_letra_linha("Z1").unwrap(); + assert_eq!(coord.coluna, 25); + } + + #[test] + fn parsear_aa1() { + let coord = parsear_letra_linha("AA1").unwrap(); + assert_eq!(coord.coluna, 26); + } + + #[test] + fn parsear_invalido() { + assert!(parsear_letra_linha("").is_none()); + assert!(parsear_letra_linha("3B").is_none()); + assert!(parsear_letra_linha("123").is_none()); + } + + #[test] + fn parsear_minusculo() { + let coord = parsear_letra_linha("b3").unwrap(); + assert_eq!(coord.coluna, 1); + } +} diff --git a/src/main.rs b/src/main.rs index e7a11a9..2c9c44a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,26 @@ -fn main() { - println!("Hello, world!"); +mod application; +mod domain; +mod infrastructure; +mod ui; + +use ui::app::App; + +fn main() -> eframe::Result { + let native_options = eframe::NativeOptions { + viewport: egui::ViewportBuilder::default() + .with_title("Comparador de Notas") + .with_inner_size([1024.0, 768.0]) + .with_min_inner_size([800.0, 600.0]), + ..Default::default() + }; + + eframe::run_native( + "Comparador de Notas", + native_options, + Box::new(|_cc| { + let mut app = App::default(); + app.inicializar(); + Ok(Box::new(app)) + }), + ) } diff --git a/src/ui/app.rs b/src/ui/app.rs new file mode 100644 index 0000000..e1ee63a --- /dev/null +++ b/src/ui/app.rs @@ -0,0 +1,340 @@ +use crate::application::usecases::{ + executar_analise::{expandir_analise, pre_analisar, series_com_intervalo_excessivo}, + importar_arquivo::{importar_csv, importar_xlsx, listar_abas_xlsx, ResultadoImportacao}, + layouts::{ + carregar_layout, excluir_layout, exportar_layout_json, importar_layout_json, + listar_layouts, salvar_layout, + }, +}; +use crate::domain::{ + entities::{ + layout::{Layout, LayoutCsv, LayoutXlsx, TipoArquivo}, + nota::Nota, + resultado_analise::{ResultadoAnalise, ResultadoPreAnalise}, + }, + errors::ResumoAvisos, +}; +use crate::infrastructure::{ + pdf_generator::GenpdfGenerator, + sqlite::{connection::abrir_banco, migrations::aplicar_migrations}, +}; +use egui::Context; +use rusqlite::Connection; +use std::path::PathBuf; + +/// Estado global da aplicação. +pub enum EstadoApp { + /// Tela inicial: importar arquivo. + Importando, + /// Aguardando seleção de aba de arquivo XLSX. + SelecionandoAba { abas: Vec, caminho: PathBuf }, + /// Configuração de colunas após importar arquivo. + ConfigurandoColunas, + /// Resultado pronto para exibição. + ExibindoResultado(ResultadoAnalise), + /// Aguardando confirmação do usuário para expandir faltantes. + ConfirmandoIntervalo { + pre: ResultadoPreAnalise, + series_excessivas: Vec<(String, u64)>, + }, + /// Gerenciamento de layouts. + GerenciandoLayouts, +} + +/// Modal bloqueante a ser exibido sobre qualquer tela. +#[derive(Default)] +pub struct Modal { + pub visivel: bool, + pub titulo: String, + pub mensagem: String, + pub tipo: TipoModal, + /// Para modal de confirmação, a ação ao confirmar. + pub acao_confirmacao: Option, +} + +#[derive(Default, Clone, PartialEq)] +pub enum TipoModal { + #[default] + Informacao, + Aviso, + Erro, + Confirmacao, +} + +#[derive(Clone)] +pub enum AcaoModal { + ConfirmarExpansaoFaltantes, + ConfirmarExclusaoLayout(i64), + SobrescreverLayout, +} + +/// Struct principal da aplicação egui. +pub struct App { + pub estado: EstadoApp, + pub conn: Option, + pub banco_foi_recriado: bool, + + // Dados em memória do arquivo atual + pub notas_importadas: Vec, + pub caminho_arquivo: Option, + pub nome_arquivo: String, + + // Configuração de layout atual + pub tipo_arquivo_atual: TipoArquivo, + pub layout_csv_atual: LayoutCsv, + pub layout_xlsx_atual: LayoutXlsx, + pub nome_layout_atual: String, + + // Abas XLSX disponíveis (após seleção do arquivo) + pub abas_xlsx: Vec, + + // Layouts salvos no banco + pub layouts_salvos: Vec, + + // Modal + pub modal: Modal, + + // Avisos da última importação + pub avisos_importacao: Option, + + // Paginação (para tela de resultado) + pub pagina_faltantes: usize, + pub pagina_duplicatas: usize, + pub itens_por_pagina: usize, +} + +impl Default for App { + fn default() -> Self { + Self { + estado: EstadoApp::Importando, + conn: None, + banco_foi_recriado: false, + notas_importadas: Vec::new(), + caminho_arquivo: None, + nome_arquivo: String::new(), + tipo_arquivo_atual: TipoArquivo::Csv, + layout_csv_atual: LayoutCsv::default(), + layout_xlsx_atual: LayoutXlsx::default(), + nome_layout_atual: String::new(), + abas_xlsx: Vec::new(), + layouts_salvos: Vec::new(), + modal: Modal::default(), + avisos_importacao: None, + pagina_faltantes: 0, + pagina_duplicatas: 0, + itens_por_pagina: 100, + } + } +} + +impl App { + /// Retorna um id numérico da tela atual para evitar borrow conflicts. + pub fn tela_atual(&self) -> u8 { + match &self.estado { + EstadoApp::Importando => 0, + EstadoApp::SelecionandoAba { .. } => 1, + EstadoApp::ConfigurandoColunas => 2, + EstadoApp::ExibindoResultado(_) => 3, + EstadoApp::ConfirmandoIntervalo { .. } => 4, + EstadoApp::GerenciandoLayouts => 5, + } + } + + /// Inicializa o banco de dados e carrega os layouts salvos. + pub fn inicializar(&mut self) { + match abrir_banco() { + Ok((conn, recriado)) => { + self.banco_foi_recriado = recriado; + if let Err(e) = aplicar_migrations(&conn) { + self.exibir_erro(format!("Erro ao inicializar banco: {}", e)); + return; + } + match listar_layouts(&conn) { + Ok(layouts) => self.layouts_salvos = layouts, + Err(e) => self.exibir_erro(format!("Erro ao carregar layouts: {}", e)), + } + self.conn = Some(conn); + + if recriado { + self.exibir_aviso( + "Banco de dados corrompido", + "O banco de dados estava corrompido e foi recriado. Os layouts anteriores foram arquivados em config.db.bak.", + ); + } + } + Err(e) => { + self.exibir_erro(format!("Erro crítico ao abrir banco de dados: {}", e)); + } + } + } + + pub fn exibir_erro(&mut self, msg: impl Into) { + self.modal = Modal { + visivel: true, + titulo: "Erro".to_string(), + mensagem: msg.into(), + tipo: TipoModal::Erro, + acao_confirmacao: None, + }; + } + + pub fn exibir_aviso(&mut self, titulo: impl Into, msg: impl Into) { + self.modal = Modal { + visivel: true, + titulo: titulo.into(), + mensagem: msg.into(), + tipo: TipoModal::Aviso, + acao_confirmacao: None, + }; + } + + pub fn exibir_confirmacao( + &mut self, + titulo: impl Into, + msg: impl Into, + acao: AcaoModal, + ) { + self.modal = Modal { + visivel: true, + titulo: titulo.into(), + mensagem: msg.into(), + tipo: TipoModal::Confirmacao, + acao_confirmacao: Some(acao), + }; + } + + /// Recarrega a lista de layouts do banco. + pub fn recarregar_layouts(&mut self) { + if let Some(conn) = &self.conn { + match listar_layouts(conn) { + Ok(layouts) => self.layouts_salvos = layouts, + Err(e) => self.exibir_erro(format!("Erro ao carregar layouts: {}", e)), + } + } + } + + /// Renderiza o modal bloqueante, se visível. + pub fn renderizar_modal(&mut self, ctx: &Context) { + if !self.modal.visivel { + return; + } + + let titulo = self.modal.titulo.clone(); + let mensagem = self.modal.mensagem.clone(); + let tipo = self.modal.tipo.clone(); + let acao = self.modal.acao_confirmacao.clone(); + + egui::Window::new(&titulo) + .collapsible(false) + .resizable(false) + .anchor(egui::Align2::CENTER_CENTER, [0.0, 0.0]) + .show(ctx, |ui| { + ui.add_space(8.0); + ui.label(&mensagem); + ui.add_space(12.0); + + ui.horizontal(|ui| { + if tipo == TipoModal::Confirmacao { + if ui.button("✔ Confirmar").clicked() { + self.modal.visivel = false; + if let Some(acao) = acao.clone() { + self.executar_acao_modal(acao); + } + } + if ui.button("✖ Cancelar").clicked() { + self.modal.visivel = false; + } + } else { + if ui.button("OK").clicked() { + self.modal.visivel = false; + } + } + }); + }); + } + + fn executar_acao_modal(&mut self, acao: AcaoModal) { + match acao { + AcaoModal::ConfirmarExpansaoFaltantes => { + // Retirar pre-análise do estado e expandir + if let EstadoApp::ConfirmandoIntervalo { pre, .. } = + std::mem::replace(&mut self.estado, EstadoApp::Importando) + { + let resultado = expandir_analise(pre, &self.notas_importadas); + self.estado = EstadoApp::ExibindoResultado(resultado); + } + } + AcaoModal::ConfirmarExclusaoLayout(id) => { + if let Some(conn) = &self.conn { + if let Err(e) = excluir_layout(conn, id) { + self.exibir_erro(e); + } else { + self.recarregar_layouts(); + } + } + } + AcaoModal::SobrescreverLayout => {} // Handled inline in layouts screen + } + } + + /// Executa a análise com as notas importadas. + pub fn executar_analise(&mut self) { + if self.notas_importadas.is_empty() { + self.exibir_aviso("Aviso", "Nenhuma nota importada para analisar."); + return; + } + + let pre = pre_analisar(&self.notas_importadas); + let excessivos = series_com_intervalo_excessivo(&pre); + + if !excessivos.is_empty() { + let msg = excessivos + .iter() + .map(|(serie, count)| { + format!("Série {}: intervalo de {} faltantes detectado", serie, count) + }) + .collect::>() + .join("\n"); + + let acao = AcaoModal::ConfirmarExpansaoFaltantes; + self.estado = EstadoApp::ConfirmandoIntervalo { + pre, + series_excessivas: excessivos, + }; + self.exibir_confirmacao( + "Intervalo muito grande", + format!( + "As seguintes séries têm um número muito alto de faltantes:\n\n{}\n\nDeseja continuar mesmo assim?", + msg + ), + acao, + ); + } else { + let resultado = expandir_analise(pre, &self.notas_importadas); + self.estado = EstadoApp::ExibindoResultado(resultado); + } + } +} + +impl eframe::App for App { + fn update(&mut self, ctx: &Context, _frame: &mut eframe::Frame) { + // Sempre renderizar modal por cima de tudo + self.renderizar_modal(ctx); + + // Determinar qual tela exibir sem borrar self.estado + let tela_id = self.tela_atual(); + + // Renderizar a tela atual + egui::CentralPanel::default().show(ctx, |ui| { + match tela_id { + 0 => crate::ui::screens::import::renderizar(ui, ctx, self), + 1 => crate::ui::screens::import::renderizar_selecao_aba(ui, ctx, self), + 2 => crate::ui::screens::configuracao_colunas::renderizar(ui, ctx, self), + 3 => crate::ui::screens::resultado::renderizar(ui, ctx, self), + 4 => crate::ui::screens::configuracao_colunas::renderizar(ui, ctx, self), + 5 => crate::ui::screens::layouts::renderizar(ui, ctx, self), + _ => {} + } + }); + } +} diff --git a/src/ui/mod.rs b/src/ui/mod.rs new file mode 100644 index 0000000..028e0f2 --- /dev/null +++ b/src/ui/mod.rs @@ -0,0 +1,2 @@ +pub mod app; +pub mod screens; diff --git a/src/ui/screens/configuracao_colunas.rs b/src/ui/screens/configuracao_colunas.rs new file mode 100644 index 0000000..5bf63b9 --- /dev/null +++ b/src/ui/screens/configuracao_colunas.rs @@ -0,0 +1,295 @@ +use crate::application::usecases::importar_arquivo::{importar_csv, importar_xlsx}; +use crate::domain::entities::layout::TipoArquivo; +use crate::ui::app::{App, EstadoApp}; +use egui::{Context, Ui}; + +/// Renderiza a tela de configuração de colunas. +pub fn renderizar(ui: &mut Ui, ctx: &Context, app: &mut App) { + ui.heading("Configuração de Colunas"); + ui.add_space(8.0); + + if let Some(caminho) = &app.caminho_arquivo.clone() { + ui.label(format!("Arquivo: {}", caminho.display())); + } + + ui.add_space(12.0); + + match app.tipo_arquivo_atual.clone() { + TipoArquivo::Csv => renderizar_csv(ui, app), + TipoArquivo::Xlsx => renderizar_xlsx(ui, app), + } + + ui.add_space(16.0); + ui.separator(); + ui.add_space(8.0); + + // Validação e botões de ação + let (valido, erros) = validar_config(app); + + if !erros.is_empty() { + for erro in &erros { + ui.colored_label(egui::Color32::RED, format!("⚠ {}", erro)); + } + ui.add_space(8.0); + } + + ui.horizontal(|ui| { + if ui.button("← Voltar").clicked() { + app.estado = EstadoApp::Importando; + } + + ui.add_enabled_ui(valido && app.caminho_arquivo.is_some(), |ui| { + if ui.button("▶ Importar e Analisar").clicked() { + executar_importacao(app); + } + }); + }); +} + +fn renderizar_csv(ui: &mut Ui, app: &mut App) { + ui.group(|ui| { + ui.label("Configurações CSV"); + ui.add_space(4.0); + + // Delimitador + ui.horizontal(|ui| { + ui.label("Delimitador:"); + let delim_str = match app.layout_csv_atual.delimitador { + ',' => "Vírgula (,)", + ';' => "Ponto e vírgula (;)", + '\t' => "Tabulação (Tab)", + _ => "Outro", + }; + egui::ComboBox::from_id_salt("combo_delimitador") + .selected_text(delim_str) + .show_ui(ui, |ui| { + if ui.selectable_label(app.layout_csv_atual.delimitador == ',', "Vírgula (,)").clicked() { + app.layout_csv_atual.delimitador = ','; + } + if ui.selectable_label(app.layout_csv_atual.delimitador == ';', "Ponto e vírgula (;)").clicked() { + app.layout_csv_atual.delimitador = ';'; + } + if ui.selectable_label(app.layout_csv_atual.delimitador == '\t', "Tabulação (Tab)").clicked() { + app.layout_csv_atual.delimitador = '\t'; + } + }); + }); + + // Encoding + ui.horizontal(|ui| { + ui.label("Encoding:"); + egui::ComboBox::from_id_salt("combo_encoding") + .selected_text(&app.layout_csv_atual.encoding) + .show_ui(ui, |ui| { + if ui.selectable_label(app.layout_csv_atual.encoding == "utf-8", "UTF-8").clicked() { + app.layout_csv_atual.encoding = "utf-8".to_string(); + } + if ui.selectable_label(app.layout_csv_atual.encoding == "windows-1252", "Windows-1252 (Latin-1)").clicked() { + app.layout_csv_atual.encoding = "windows-1252".to_string(); + } + }); + }); + + // Linha cabeçalho + ui.horizontal(|ui| { + ui.label("Linha do cabeçalho (0 = sem cabeçalho):"); + let mut val = app.layout_csv_atual.linha_cabecalho; + ui.add(egui::DragValue::new(&mut val).range(0..=100)); + app.layout_csv_atual.linha_cabecalho = val; + }); + }); + + ui.add_space(8.0); + ui.group(|ui| { + ui.label("Mapeamento de Colunas (índice base 0)"); + ui.add_space(4.0); + + campo_indice(ui, "Número (obrigatório):", &mut app.layout_csv_atual.indice_numero); + campo_indice(ui, "Série (obrigatório):", &mut app.layout_csv_atual.indice_serie); + + campo_indice_opcional(ui, "Valor (opcional):", &mut app.layout_csv_atual.indice_valor); + campo_indice_opcional(ui, "Data (opcional):", &mut app.layout_csv_atual.indice_data); + }); +} + +fn renderizar_xlsx(ui: &mut Ui, app: &mut App) { + ui.group(|ui| { + ui.label("Configurações XLSX"); + ui.add_space(4.0); + + ui.horizontal(|ui| { + ui.label("Aba:"); + if app.abas_xlsx.is_empty() { + ui.text_edit_singleline(&mut app.layout_xlsx_atual.aba); + } else { + let aba_atual = app.layout_xlsx_atual.aba.clone(); + egui::ComboBox::from_id_salt("combo_aba") + .selected_text(&aba_atual) + .show_ui(ui, |ui| { + for aba in &app.abas_xlsx.clone() { + if ui.selectable_label(aba_atual == *aba, aba).clicked() { + app.layout_xlsx_atual.aba = aba.clone(); + } + } + }); + } + }); + }); + + ui.add_space(8.0); + ui.group(|ui| { + ui.label("Mapeamento de Colunas (formato LetraLinha, ex: B3)"); + ui.add_space(4.0); + + campo_letra_linha(ui, "Número (obrigatório):", &mut app.layout_xlsx_atual.pos_numero); + campo_letra_linha(ui, "Série (obrigatório):", &mut app.layout_xlsx_atual.pos_serie); + campo_letra_linha_opcional(ui, "Valor (opcional):", &mut app.layout_xlsx_atual.pos_valor); + campo_letra_linha_opcional(ui, "Data (opcional):", &mut app.layout_xlsx_atual.pos_data); + }); +} + +fn campo_indice(ui: &mut Ui, label: &str, valor: &mut usize) { + ui.horizontal(|ui| { + ui.label(label); + ui.add(egui::DragValue::new(valor).range(0..=999usize)); + }); +} + +fn campo_indice_opcional(ui: &mut Ui, label: &str, valor: &mut Option) { + ui.horizontal(|ui| { + let mut ativo = valor.is_some(); + if ui.checkbox(&mut ativo, label).changed() { + *valor = if ativo { Some(0) } else { None }; + } + if let Some(v) = valor { + ui.add(egui::DragValue::new(v).range(0..=999usize)); + } + }); +} + +fn campo_letra_linha(ui: &mut Ui, label: &str, valor: &mut String) { + ui.horizontal(|ui| { + ui.label(label); + ui.text_edit_singleline(valor); + }); +} + +fn campo_letra_linha_opcional(ui: &mut Ui, label: &str, valor: &mut Option) { + ui.horizontal(|ui| { + let mut ativo = valor.is_some(); + if ui.checkbox(&mut ativo, label).changed() { + *valor = if ativo { Some(String::new()) } else { None }; + } + if let Some(v) = valor { + ui.text_edit_singleline(v); + } + }); +} + +/// Valida a configuração atual. Retorna (é_válido, lista_de_erros). +fn validar_config(app: &App) -> (bool, Vec) { + let mut erros = Vec::new(); + + match &app.tipo_arquivo_atual { + TipoArquivo::Csv => { + let c = &app.layout_csv_atual; + // Verificar índices duplicados + let mut indices: Vec<(String, usize)> = vec![ + ("Numero".to_string(), c.indice_numero), + ("Serie".to_string(), c.indice_serie), + ]; + if let Some(v) = c.indice_valor { + indices.push(("Valor".to_string(), v)); + } + if let Some(d) = c.indice_data { + indices.push(("Data".to_string(), d)); + } + verificar_duplicados(&indices, &mut erros); + } + TipoArquivo::Xlsx => { + let c = &app.layout_xlsx_atual; + if c.aba.trim().is_empty() { + erros.push("Selecione uma aba".to_string()); + } + if c.pos_numero.trim().is_empty() { + erros.push("Posição do campo Numero é obrigatória".to_string()); + } else if crate::infrastructure::xlsx_reader::parsear_letra_linha(&c.pos_numero) + .is_none() + { + erros.push(format!("Posição Numero inválida: '{}'", c.pos_numero)); + } + if c.pos_serie.trim().is_empty() { + erros.push("Posição do campo Serie é obrigatória".to_string()); + } else if crate::infrastructure::xlsx_reader::parsear_letra_linha(&c.pos_serie) + .is_none() + { + erros.push(format!("Posição Serie inválida: '{}'", c.pos_serie)); + } + } + } + + let valido = erros.is_empty(); + (valido, erros) +} + +fn verificar_duplicados(indices: &[(String, usize)], erros: &mut Vec) { + for i in 0..indices.len() { + for j in (i + 1)..indices.len() { + if indices[i].1 == indices[j].1 { + erros.push(format!( + "Campos '{}' e '{}' mapeados para o mesmo índice {}", + indices[i].0, indices[j].0, indices[i].1 + )); + } + } + } +} + +fn executar_importacao(app: &mut App) { + let caminho = match &app.caminho_arquivo { + Some(p) => p.clone(), + None => return, + }; + + let resultado = match app.tipo_arquivo_atual.clone() { + TipoArquivo::Csv => { + importar_csv(&caminho, &app.layout_csv_atual) + .map_err(|e| e.to_string()) + } + TipoArquivo::Xlsx => { + importar_xlsx(&caminho, &app.layout_xlsx_atual) + .map_err(|e| e.to_string()) + } + }; + + match resultado { + Ok(res) => { + if res.notas.is_empty() { + app.exibir_aviso("Aviso", "Nenhuma nota válida encontrada no arquivo."); + return; + } + + let avisos = res.avisos.clone(); + app.notas_importadas = res.notas; + app.avisos_importacao = if avisos.tem_avisos() { + Some(avisos.clone()) + } else { + None + }; + + // Executar análise + app.executar_analise(); + + // Exibir avisos consolidados após análise + if let Some(av) = &app.avisos_importacao { + if av.tem_avisos() { + let linhas = av.linhas_para_exibir().join("\n"); + app.exibir_aviso("Avisos de Importação", linhas); + } + } + } + Err(e) => { + app.exibir_erro(format!("Erro ao importar arquivo: {}", e)); + } + } +} diff --git a/src/ui/screens/import.rs b/src/ui/screens/import.rs new file mode 100644 index 0000000..d278778 --- /dev/null +++ b/src/ui/screens/import.rs @@ -0,0 +1,169 @@ +use crate::application::usecases::importar_arquivo::{importar_csv, importar_xlsx, listar_abas_xlsx}; +use crate::domain::entities::layout::TipoArquivo; +use crate::ui::app::{App, EstadoApp}; +use egui::{Context, Ui}; +use std::path::PathBuf; + +/// Renderiza a tela de importação de arquivos. +pub fn renderizar(ui: &mut Ui, _ctx: &Context, app: &mut App) { + ui.heading("Comparador de Notas — Importar Arquivo"); + ui.add_space(16.0); + + // --- Seleção de arquivo --- + ui.group(|ui| { + ui.label("Arquivo:"); + ui.horizontal(|ui| { + let nome = if app.nome_arquivo.is_empty() { + "Nenhum arquivo selecionado".to_string() + } else { + app.nome_arquivo.clone() + }; + ui.label(nome); + + if ui.button("📂 Selecionar arquivo...").clicked() { + if let Some(caminho) = rfd::FileDialog::new() + .add_filter("Planilhas", &["csv", "xlsx"]) + .pick_file() + { + on_arquivo_selecionado(app, caminho); + } + } + }); + }); + + ui.add_space(8.0); + + // Coletar infos dos layouts antecipadamente para evitar borrow duplo + let tipo_atual = app.tipo_arquivo_atual.clone(); + let opcoes_layout: Vec<(i64, String)> = app + .layouts_salvos + .iter() + .filter(|l| l.tipo() == tipo_atual) + .filter_map(|l| l.id().map(|id| (id, l.nome().to_string()))) + .collect(); + let nome_layout_atual = app.nome_layout_atual.clone(); + + ui.horizontal(|ui| { + ui.label("Layout:"); + egui::ComboBox::from_id_salt("combo_layouts_import") + .selected_text(if nome_layout_atual.is_empty() { + "— Selecionar layout —" + } else { + &nome_layout_atual + }) + .show_ui(ui, |ui| { + for (id, nome) in &opcoes_layout { + if ui.selectable_label(nome_layout_atual == *nome, nome.as_str()).clicked() { + app.nome_layout_atual = nome.clone(); + if let Some(layout) = app.layouts_salvos.iter().find(|l| l.id() == Some(*id)) { + let layout = layout.clone(); + aplicar_layout(app, &layout); + } + } + } + }); + + if ui.button("⚙ Gerenciar Layouts").clicked() { + app.estado = EstadoApp::GerenciandoLayouts; + } + }); + + ui.add_space(16.0); + + if app.caminho_arquivo.is_some() { + if ui.button("▶ Configurar Colunas").clicked() { + app.estado = EstadoApp::ConfigurandoColunas; + } + } +} + +/// Renderiza a tela de seleção de aba (XLSX). +pub fn renderizar_selecao_aba(ui: &mut Ui, _ctx: &Context, app: &mut App) { + ui.heading("Selecionar Aba da Planilha"); + ui.add_space(16.0); + + let (abas, caminho) = match &app.estado { + EstadoApp::SelecionandoAba { abas, caminho } => (abas.clone(), caminho.clone()), + _ => return, + }; + + ui.label(format!("Arquivo: {}", caminho.display())); + ui.add_space(8.0); + ui.label("Selecione a aba a processar:"); + + let aba_atual = app.layout_xlsx_atual.aba.clone(); + for aba in &abas { + if ui.selectable_label(aba_atual == *aba, aba).clicked() { + app.layout_xlsx_atual.aba = aba.clone(); + } + } + + ui.add_space(12.0); + if !app.layout_xlsx_atual.aba.is_empty() { + if ui.button("▶ Configurar Colunas").clicked() { + app.nome_arquivo = caminho + .file_name() + .map(|n| n.to_string_lossy().to_string()) + .unwrap_or_default(); + app.caminho_arquivo = Some(caminho); + app.estado = EstadoApp::ConfigurandoColunas; + } + } + + if ui.button("← Voltar").clicked() { + app.estado = EstadoApp::Importando; + } +} + +fn on_arquivo_selecionado(app: &mut App, caminho: PathBuf) { + let extensao = caminho + .extension() + .and_then(|e| e.to_str()) + .unwrap_or("") + .to_lowercase(); + + app.nome_arquivo = caminho + .file_name() + .map(|n| n.to_string_lossy().to_string()) + .unwrap_or_default(); + + match extensao.as_str() { + "csv" => { + app.tipo_arquivo_atual = TipoArquivo::Csv; + app.caminho_arquivo = Some(caminho); + app.notas_importadas.clear(); + } + "xlsx" => { + app.tipo_arquivo_atual = TipoArquivo::Xlsx; + match listar_abas_xlsx(&caminho) { + Ok(info) => { + app.abas_xlsx = info.abas.clone(); + app.estado = EstadoApp::SelecionandoAba { + abas: info.abas, + caminho: caminho.clone(), + }; + app.notas_importadas.clear(); + } + Err(e) => { + app.exibir_erro(format!("Erro ao ler abas do arquivo: {}", e)); + } + } + } + _ => { + app.exibir_erro("Formato de arquivo não suportado. Use CSV ou XLSX."); + } + } +} + +fn aplicar_layout(app: &mut App, layout: &crate::domain::entities::layout::Layout) { + match layout { + crate::domain::entities::layout::Layout::Csv { config, .. } => { + app.layout_csv_atual = config.clone(); + app.tipo_arquivo_atual = TipoArquivo::Csv; + } + crate::domain::entities::layout::Layout::Xlsx { config, .. } => { + app.layout_xlsx_atual = config.clone(); + app.tipo_arquivo_atual = TipoArquivo::Xlsx; + } + } +} diff --git a/src/ui/screens/layouts.rs b/src/ui/screens/layouts.rs new file mode 100644 index 0000000..e4c3f97 --- /dev/null +++ b/src/ui/screens/layouts.rs @@ -0,0 +1,213 @@ +use crate::application::usecases::layouts::{ + exportar_layout_json, importar_layout_json, salvar_layout, +}; +use crate::domain::entities::layout::{Layout, LayoutCsv, LayoutXlsx, TipoArquivo}; +use crate::domain::errors::ErroLayout; +use crate::ui::app::{AcaoModal, App, EstadoApp}; +use egui::{Context, Ui}; + +/// Renderiza a tela de gerenciamento de layouts. +pub fn renderizar(ui: &mut Ui, ctx: &Context, app: &mut App) { + ui.heading("Gerenciar Layouts"); + ui.add_space(8.0); + + ui.horizontal(|ui| { + if ui.button("← Voltar").clicked() { + app.estado = EstadoApp::Importando; + } + }); + + ui.add_space(12.0); + ui.separator(); + + // Salvar layout atual + ui.add_space(8.0); + ui.group(|ui| { + ui.label("Salvar Layout Atual"); + ui.horizontal(|ui| { + ui.label("Nome:"); + ui.text_edit_singleline(&mut app.nome_layout_atual); + if ui.button("💾 Salvar").clicked() { + salvar_layout_atual(app); + } + }); + }); + + ui.add_space(12.0); + ui.separator(); + ui.add_space(8.0); + + // Layouts CSV + let layouts_csv: Vec<_> = app + .layouts_salvos + .iter() + .filter(|l| l.tipo() == TipoArquivo::Csv) + .cloned() + .collect(); + + let layouts_xlsx: Vec<_> = app + .layouts_salvos + .iter() + .filter(|l| l.tipo() == TipoArquivo::Xlsx) + .cloned() + .collect(); + + egui::ScrollArea::vertical().show(ui, |ui| { + renderizar_secao_layouts(ui, ctx, app, "Layouts CSV", &layouts_csv); + ui.add_space(12.0); + renderizar_secao_layouts(ui, ctx, app, "Layouts XLSX", &layouts_xlsx); + + ui.add_space(16.0); + ui.separator(); + ui.add_space(8.0); + + // Importar de JSON + ui.horizontal(|ui| { + ui.label("Importar layout de arquivo JSON:"); + if ui.button("📥 Importar JSON").clicked() { + if let Some(caminho) = rfd::FileDialog::new() + .add_filter("JSON", &["json"]) + .pick_file() + { + match std::fs::read_to_string(&caminho) { + Ok(conteudo) => importar_json(app, &conteudo), + Err(e) => { + app.exibir_erro(format!("Erro ao ler arquivo JSON: {}", e)); + } + } + } + } + }); + }); +} + +fn renderizar_secao_layouts( + ui: &mut Ui, + ctx: &Context, + app: &mut App, + titulo: &str, + layouts: &[Layout], +) { + ui.label(egui::RichText::new(titulo).strong()); + ui.add_space(4.0); + + if layouts.is_empty() { + ui.label("(nenhum layout salvo)"); + return; + } + + for layout in layouts { + ui.horizontal(|ui| { + ui.label(layout.nome()); + ui.with_layout(egui::Layout::right_to_left(egui::Align::Center), |ui| { + // Excluir + if let Some(id) = layout.id() { + if ui.button("🗑 Excluir").clicked() { + app.exibir_confirmacao( + "Confirmar exclusão", + format!("Deseja excluir o layout '{}'?", layout.nome()), + AcaoModal::ConfirmarExclusaoLayout(id), + ); + } + + // Exportar + if ui.button("📤 Exportar JSON").clicked() { + match exportar_layout_json(layout) { + Ok((conteudo, nome_sugerido)) => { + if let Some(caminho) = rfd::FileDialog::new() + .set_file_name(&nome_sugerido) + .add_filter("JSON", &["json"]) + .save_file() + { + if let Err(e) = std::fs::write(&caminho, &conteudo) { + app.exibir_erro(format!("Erro ao salvar JSON: {}", e)); + } + } + } + Err(e) => { + app.exibir_erro(format!("Erro ao exportar layout: {}", e)); + } + } + } + + // Carregar + if ui.button("📂 Carregar").clicked() { + aplicar_layout(app, layout); + app.nome_layout_atual = layout.nome().to_string(); + app.estado = EstadoApp::ConfigurandoColunas; + } + } + }); + }); + } +} + +fn salvar_layout_atual(app: &mut App) { + if app.nome_layout_atual.trim().is_empty() { + app.exibir_aviso("Nome inválido", "Informe um nome para o layout."); + return; + } + + let layout = match app.tipo_arquivo_atual.clone() { + TipoArquivo::Csv => Layout::Csv { + id: None, + nome: app.nome_layout_atual.trim().to_string(), + config: app.layout_csv_atual.clone(), + }, + TipoArquivo::Xlsx => Layout::Xlsx { + id: None, + nome: app.nome_layout_atual.trim().to_string(), + config: app.layout_xlsx_atual.clone(), + }, + }; + + if let Some(conn) = &app.conn { + match salvar_layout(conn, &layout) { + Ok(_) => { + app.recarregar_layouts(); + app.exibir_aviso("Sucesso", "Layout salvo com sucesso."); + } + Err(e) => { + app.exibir_erro(format!("Erro ao salvar layout: {}", e)); + } + } + } +} + +fn importar_json(app: &mut App, conteudo: &str) { + if let Some(conn) = &app.conn { + match importar_layout_json(conn, conteudo, false, None) { + Ok(_) => { + app.recarregar_layouts(); + app.exibir_aviso("Sucesso", "Layout importado com sucesso."); + } + Err(ErroLayout::NomeConflitante(nome)) => { + // Exibir opções: sobrescrever ou cancelar + app.exibir_aviso( + "Conflito de nome", + format!( + "Já existe um layout com o nome '{}'. Use 'Salvar com novo nome' ou cancele a importação.", + nome + ), + ); + // TODO: implementar fluxo completo de sobrescrever com entrada de novo nome + } + Err(e) => { + app.exibir_erro(format!("Erro ao importar layout: {}", e)); + } + } + } +} + +fn aplicar_layout(app: &mut App, layout: &Layout) { + match layout { + Layout::Csv { config, .. } => { + app.layout_csv_atual = config.clone(); + app.tipo_arquivo_atual = TipoArquivo::Csv; + } + Layout::Xlsx { config, .. } => { + app.layout_xlsx_atual = config.clone(); + app.tipo_arquivo_atual = TipoArquivo::Xlsx; + } + } +} diff --git a/src/ui/screens/mod.rs b/src/ui/screens/mod.rs new file mode 100644 index 0000000..0cbff0b --- /dev/null +++ b/src/ui/screens/mod.rs @@ -0,0 +1,4 @@ +pub mod configuracao_colunas; +pub mod import; +pub mod layouts; +pub mod resultado; diff --git a/src/ui/screens/resultado.rs b/src/ui/screens/resultado.rs new file mode 100644 index 0000000..fd006f8 --- /dev/null +++ b/src/ui/screens/resultado.rs @@ -0,0 +1,259 @@ +use crate::application::usecases::exportar_pdf::exportar_pdf; +use crate::domain::{ + entities::resultado_analise::ResultadoAnalise, + services::parser_monetario::formatar_valor_br, +}; +use crate::infrastructure::pdf_generator::GenpdfGenerator; +use crate::ui::app::{App, EstadoApp}; +use egui::{Context, Ui}; + +const OPCOES_PAGINA: &[usize] = &[50, 100, 200, 1000]; + +/// Renderiza a tela de resultados. +pub fn renderizar(ui: &mut Ui, ctx: &Context, app: &mut App) { + // Extrair resultado do estado (sem mover) + let resultado = match &app.estado { + EstadoApp::ExibindoResultado(r) => r.clone(), + _ => return, + }; + + ui.heading("Resultado da Análise"); + ui.add_space(8.0); + + ui.horizontal(|ui| { + if ui.button("← Nova Análise").clicked() { + app.estado = EstadoApp::Importando; + app.notas_importadas.clear(); + return; + } + + if ui.button("⚙ Reconfigurar Colunas").clicked() { + app.estado = EstadoApp::ConfigurandoColunas; + return; + } + + if ui.button("📄 Exportar PDF").clicked() { + exportar_para_pdf(app, &resultado); + } + }); + + ui.add_space(8.0); + + // Controle de itens por página + ui.horizontal(|ui| { + ui.label("Itens por página:"); + for &opcao in OPCOES_PAGINA { + if ui + .selectable_label(app.itens_por_pagina == opcao, opcao.to_string()) + .clicked() + { + app.itens_por_pagina = opcao; + app.pagina_faltantes = 0; + app.pagina_duplicatas = 0; + } + } + }); + + ui.add_space(12.0); + ui.separator(); + + egui::ScrollArea::vertical().show(ui, |ui| { + // Totais + renderizar_totais(ui, &resultado); + + ui.add_space(12.0); + ui.separator(); + + // Faltantes + renderizar_faltantes(ui, app, &resultado); + + ui.add_space(12.0); + ui.separator(); + + // Duplicatas + renderizar_duplicatas(ui, app, &resultado); + }); +} + +fn renderizar_totais(ui: &mut Ui, resultado: &ResultadoAnalise) { + ui.label(egui::RichText::new("Totais").heading().strong()); + ui.add_space(4.0); + + ui.label(format!( + "Total Geral: R$ {}", + formatar_valor_br(&resultado.soma_total) + )); + + let mut series: Vec<&String> = resultado.soma_por_serie.keys().collect(); + series.sort(); + + for serie in series { + let soma = &resultado.soma_por_serie[serie]; + let total_notas = resultado.total_por_serie.get(serie).copied().unwrap_or(0); + ui.label(format!( + " Série {}: {} nota(s) — R$ {}", + serie, + total_notas, + formatar_valor_br(soma) + )); + } +} + +fn renderizar_faltantes(ui: &mut Ui, app: &mut App, resultado: &ResultadoAnalise) { + let total_faltantes = resultado.total_faltantes(); + ui.label( + egui::RichText::new(format!( + "Notas Faltantes ({} total)", + total_faltantes + )) + .heading() + .strong(), + ); + ui.add_space(4.0); + + if total_faltantes == 0 { + ui.label("✔ Nenhuma nota faltante."); + return; + } + + let mut series: Vec<&String> = resultado.faltantes_por_serie.keys().collect(); + series.sort(); + + for serie in series { + let faltantes = &resultado.faltantes_por_serie[serie]; + if faltantes.is_empty() { + continue; + } + + ui.label(format!( + "Série {} — {} faltante(s):", + serie, + faltantes.len() + )); + + // Paginação + let total_paginas = (faltantes.len() + app.itens_por_pagina - 1) / app.itens_por_pagina; + if app.pagina_faltantes >= total_paginas { + app.pagina_faltantes = 0; + } + + let inicio = app.pagina_faltantes * app.itens_por_pagina; + let fim = (inicio + app.itens_por_pagina).min(faltantes.len()); + + for numero in &faltantes[inicio..fim] { + ui.label(format!(" • {}", numero)); + } + + if total_paginas > 1 { + ui.horizontal(|ui| { + if ui.button("◀").clicked() && app.pagina_faltantes > 0 { + app.pagina_faltantes -= 1; + } + ui.label(format!( + "Página {} / {}", + app.pagina_faltantes + 1, + total_paginas + )); + if ui.button("▶").clicked() && app.pagina_faltantes + 1 < total_paginas { + app.pagina_faltantes += 1; + } + }); + } + } +} + +fn renderizar_duplicatas(ui: &mut Ui, app: &mut App, resultado: &ResultadoAnalise) { + let total_dup = resultado.total_duplicatas(); + ui.label( + egui::RichText::new(format!( + "Notas Duplicadas ({} grupo(s))", + total_dup + )) + .heading() + .strong(), + ); + ui.add_space(4.0); + + if total_dup == 0 { + ui.label("✔ Nenhuma nota duplicada."); + return; + } + + let mut series: Vec<&String> = resultado.duplicadas_por_serie.keys().collect(); + series.sort(); + + for serie in series { + let duplicatas = &resultado.duplicadas_por_serie[serie]; + if duplicatas.is_empty() { + continue; + } + + ui.label(format!( + "Série {} — {} grupo(s) duplicado(s):", + serie, + duplicatas.len() + )); + + let total_paginas = + (duplicatas.len() + app.itens_por_pagina - 1) / app.itens_por_pagina; + if app.pagina_duplicatas >= total_paginas { + app.pagina_duplicatas = 0; + } + + let inicio = app.pagina_duplicatas * app.itens_por_pagina; + let fim = (inicio + app.itens_por_pagina).min(duplicatas.len()); + + for (numero, count) in &duplicatas[inicio..fim] { + ui.label(format!( + " • NF {} / Série {} — {} ocorrências", + numero, serie, count + )); + } + + if total_paginas > 1 { + ui.horizontal(|ui| { + if ui.button("◀").clicked() && app.pagina_duplicatas > 0 { + app.pagina_duplicatas -= 1; + } + ui.label(format!( + "Página {} / {}", + app.pagina_duplicatas + 1, + total_paginas + )); + if ui.button("▶").clicked() && app.pagina_duplicatas + 1 < total_paginas { + app.pagina_duplicatas += 1; + } + }); + } + } +} + +fn exportar_para_pdf(app: &mut App, resultado: &ResultadoAnalise) { + if let Some(caminho) = rfd::FileDialog::new() + .set_file_name("relatorio.pdf") + .add_filter("PDF", &["pdf"]) + .save_file() + { + let gerador = GenpdfGenerator; + let nome_layout = if app.nome_layout_atual.is_empty() { + None + } else { + Some(app.nome_layout_atual.as_str()) + }; + + match exportar_pdf( + &gerador, + resultado, + &app.nome_arquivo, + nome_layout, + &caminho, + ) { + Ok(_) => { + app.exibir_aviso("Sucesso", format!("PDF exportado para: {}", caminho.display())); + } + Err(e) => { + app.exibir_erro(format!("Erro ao exportar PDF: {}", e)); + } + } + } +}