diff --git a/.gitignore b/.gitignore index 773eefe..70f8020 100644 --- a/.gitignore +++ b/.gitignore @@ -1,25 +1,9 @@ -# Python -__pycache__/ -*.pyc -*.pyo - -# Virtual environment -.venv/ - -# Tooling caches -.mypy_cache/ -.ruff_cache/ -.pytest_cache/ +# Rust build output +/target/ # Environment and secrets .env -# Logs (loguru file sink) -logs/ - -# PyInstaller build artifacts (dist/ is committed — see DESIGN_DOCUMENT §13) -build/ - # Curator runtime metadata (user/machine-specific, regenerated) .Curator.!gtag *.!gtag @@ -35,4 +19,3 @@ AGENTS.md CLAUDE.md DESIGN_DOCUMENT.md .claude/ - diff --git a/CHANGELOG.md b/CHANGELOG.md index 6fa7f38..33218a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,9 +16,54 @@ Each version entry uses these sections (include only those that apply): - Follow semantic versioning: `MAJOR.MINOR.PATCH` - Newest version goes at the top -- Always update this file before bumping the version in `pyproject.toml` +- Always update this file before bumping the version in `Cargo.toml` - Document changes as they are made, not all at once at release time +## 2.0.0 — 2026-10-17 + +### Changed +- **Curator is now a Rust application.** The whole app — core and GUI — was + rewritten in Rust; the GUI is egui/eframe instead of PySide6. Behaviour and + on-disk formats are unchanged: the pool index (v2), tag schema, file naming, + versions/parts, series layout and miniDLNA output are the same, so an + existing pool opens as-is. Every menu action and dialog of the Python version + is there. +- Long operations (import, TMDb refresh, integrity scan, bulk renames, miniDLNA + generation) run in the background with a progress bar and a cancel button; + TMDb / ČSFD / Jellyfin lookups no longer freeze the window. +- **The global config moved** from `.Curator.!gtag` next to the script to the + platform config directory (`~/.config/curator/.Curator.!gtag` on Linux); + `CURATOR_CONFIG` overrides the location. An old `.Curator.!gtag` in the + working directory is read on first run, so the pool and output paths carry + over. +- **`tipy-dne` is a Rust binary** (built next to `curator`) replacing + `scripts/tipy_dne.py`; `scripts/tipy-dne.service` now runs it. Tips links are + named by the clean movie title, the same as the app's own tips folder. +- The status-bar paths are truncated (full path on hover) instead of + overlapping the status text. + +### Fixed +- **"Tipy dne" from the systemd timer found no movies** since the pool index + moved to v2 — the script read index keys as file paths. `tipy-dne` reads the + media files of each movie record. + +### Removed +- The Python sources, PyInstaller spec, `prebuild.py` and the committed + `dist/Curator` binary (a release build is `target/release/curator`). +- The one-off Python migration scripts for old ČSFD-era tag formats + (`migrate_tag_category`, `split_country_tags`, `strip_rating_bands`, + `strip_tag_categories`); they remain in the history of `devel`. +- The detailed per-function pages in `docs/modules/`; `cargo doc` generates the + API reference from the source. + +### Dependencies +- Rust crates replace the Python stack: `eframe`/`egui`/`egui_extras` (GUI), + `rfd` (file dialogs), `reqwest` (HTTP, OS certificate store), `scraper` + + `ego-tree` (ČSFD), `sha2` (Anubis proof-of-work), `roxmltree` (NFO), + `serde`/`serde_json`, `regex`, `unicode-normalization`, `chrono`, `rand`, + `dirs`, `dotenvy`, `tracing`, `thiserror`/`anyhow`, `file-id`, `indexmap`; + dev: `tempfile`, `egui_kittest`. + ## 1.14.0 — 2026-10-17 ### Changed diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..bb0d519 --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,6242 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 4 + +[[package]] +name = "ab_glyph" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2" +dependencies = [ + "ab_glyph_rasterizer", + "owned_ttf_parser", +] + +[[package]] +name = "ab_glyph_rasterizer" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618" + +[[package]] +name = "accesskit" +version = "0.25.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad442f58ee04714aaa0ba0a2768c1ea1935b29507bb22ddece8cbbc76db02932" +dependencies = [ + "uuid", +] + +[[package]] +name = "accesskit_atspi_common" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52c182f9c282ac9c5638d876d551d15e5f7d397ec263349a0c6a2b61595dd5e4" +dependencies = [ + "accesskit", + "accesskit_consumer", + "atspi-common", + "phf 0.14.0", + "serde", + "zvariant", +] + +[[package]] +name = "accesskit_consumer" +version = "0.39.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a45e2bb300bea6d5f33a82c3e051c3ddc6f41c209750f68a0acbe991a284344" +dependencies = [ + "accesskit", + "hashbrown 0.17.1", +] + +[[package]] +name = "accesskit_ios" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "28e539d64b27fd4c14de8f78ada8f7c944c092f52f7e49fb63316507a57f6937" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.17.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-ui-kit 0.2.2", +] + +[[package]] +name = "accesskit_macos" +version = "0.27.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5701624bf6a11efb6d4c8e922bf44126ed96250e5faa9a7a0468c979635839a4" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.17.1", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "accesskit_unix" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "202f24df034a7476d07b7f74284de84f6d62aabd858dbe7ee9cad3b7ad6f8f9d" +dependencies = [ + "accesskit", + "accesskit_atspi_common", + "async-channel", + "async-executor", + "async-task", + "atspi", + "futures-lite", + "futures-util", + "serde", + "zbus", +] + +[[package]] +name = "accesskit_windows" +version = "0.35.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce63f35d6bdcf59f26b76b3379063f738e6412cef46999cc772d46aa3de35adb" +dependencies = [ + "accesskit", + "accesskit_consumer", + "hashbrown 0.17.1", + "static_assertions", + "windows", + "windows-core", +] + +[[package]] +name = "accesskit_winit" +version = "0.34.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee96dd150375c05912d8a473f98c2fb155fb3234fac88292d396548a2460fa77" +dependencies = [ + "accesskit", + "accesskit_ios", + "accesskit_macos", + "accesskit_unix", + "accesskit_windows", + "raw-window-handle", + "winit", +] + +[[package]] +name = "adler2" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa" + +[[package]] +name = "ahash" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75" +dependencies = [ + "cfg-if", + "getrandom 0.3.4", + "once_cell", + "version_check", + "zerocopy", +] + +[[package]] +name = "aho-corasick" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba" +dependencies = [ + "memchr", +] + +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" + +[[package]] +name = "android-activity" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f2a1bb052857d5dd49572219344a7332b31b76405648eabac5bc68978251bcd" +dependencies = [ + "android-properties", + "bitflags 2.13.2", + "cc", + "jni", + "libc", + "log", + "ndk", + "ndk-context", + "ndk-sys", + "num_enum", + "thiserror 2.0.21", +] + +[[package]] +name = "android-properties" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04" + +[[package]] +name = "android_system_properties" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc" +dependencies = [ + "libc", +] + +[[package]] +name = "anyhow" +version = "1.0.104" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470" + +[[package]] +name = "arboard" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb9553e62312c8756a5979254fc6d7da8bbeb5986a1e17037fab932f7037917" +dependencies = [ + "clipboard-win", + "image", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "parking_lot", + "percent-encoding", + "windows-sys 0.61.2", + "wl-clipboard-rs", + "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.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56" + +[[package]] +name = "as-raw-xcb-connection" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b" + +[[package]] +name = "ash" +version = "0.38.0+1.3.281" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f" +dependencies = [ + "libloading", +] + +[[package]] +name = "async-broadcast" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532" +dependencies = [ + "event-listener", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-channel" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "924ed96dd52d1b75e9c1a3e6275715fd320f5f9439fb5a4a11fa51f4221158d2" +dependencies = [ + "concurrent-queue", + "event-listener-strategy", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-executor" +version = "1.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96bf972d85afc50bf5ab8fe2d54d1586b4e0b46c97c50a0c9e71e2f7bcd812a" +dependencies = [ + "async-task", + "concurrent-queue", + "fastrand", + "futures-lite", + "pin-project-lite", + "slab", +] + +[[package]] +name = "async-io" +version = "2.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "456b8a8feb6f42d237746d4b3e9a178494627745c3c56c6ea55d92ba50d026fc" +dependencies = [ + "autocfg", + "cfg-if", + "concurrent-queue", + "futures-io", + "futures-lite", + "parking", + "polling", + "rustix 1.1.5", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-lock" +version = "3.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311" +dependencies = [ + "event-listener", + "event-listener-strategy", + "pin-project-lite", +] + +[[package]] +name = "async-process" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75" +dependencies = [ + "async-channel", + "async-io", + "async-lock", + "async-signal", + "async-task", + "blocking", + "cfg-if", + "event-listener", + "futures-lite", + "rustix 1.1.5", +] + +[[package]] +name = "async-recursion" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4f8abc12baad266b1c8cec146854c195b5864b4221d4b2ca7296a7ae82d9e451" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "async-signal" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52b5aaafa020cf5053a01f2a60e8ff5dccf550f0f77ec54a4e47285ac2bab485" +dependencies = [ + "async-io", + "async-lock", + "atomic-waker", + "cfg-if", + "futures-core", + "futures-io", + "rustix 1.1.5", + "signal-hook-registry", + "slab", + "windows-sys 0.61.2", +] + +[[package]] +name = "async-task" +version = "4.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" + +[[package]] +name = "async-trait" +version = "0.1.92" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "82f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[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.29.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c77886257be21c9cd89a4ae7e64860c6f0eefca799bb79127913052bd0eefb3d" +dependencies = [ + "atspi-common", + "atspi-proxies", +] + +[[package]] +name = "atspi-common" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20c5617155740c98003016429ad13fe43ce7a77b007479350a9f8bf95a29f63d" +dependencies = [ + "enumflags2", + "serde", + "static_assertions", + "zbus", + "zbus-lockstep", + "zbus-lockstep-macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "atspi-proxies" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2230e48787ed3eb4088996eab66a32ca20c0b67bbd4fd6cdfe79f04f1f04c9fc" +dependencies = [ + "atspi-common", + "serde", + "zbus", +] + +[[package]] +name = "autocfg" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53" + +[[package]] +name = "aws-lc-rs" +version = "1.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faac5829c2b74c28f830747e7818ccfb684261b5f48a1118b1e2a13d36dfab13" +dependencies = [ + "aws-lc-sys", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.46.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1622d8446a2d4b2ce0c7eefc73dd43a99779028d5ee5c2dd8073a658ba8a2bc" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", + "pkg-config", +] + +[[package]] +name = "base64" +version = "0.23.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5" + +[[package]] +name = "bit-set" +version = "0.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09ec2f926cc3060f09db9ebc5b52823d85268d24bb917e472c0c4bea35780a7d" +dependencies = [ + "bit-vec", +] + +[[package]] +name = "bit-vec" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b71798fca2c1fe1086445a7258a4bc81e6e49dcd24c8d0dd9a1e57395b603f51" + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "bitflags" +version = "2.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06" + +[[package]] +name = "block-buffer" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "block2" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f" +dependencies = [ + "objc2 0.5.3", +] + +[[package]] +name = "block2" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5" +dependencies = [ + "objc2 0.6.5", +] + +[[package]] +name = "blocking" +version = "1.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a70e4329df6cb94385eed412ec92375c3cdd8a6e502493d1229b6414e4036dfa" +dependencies = [ + "async-channel", + "async-task", + "futures-io", + "futures-lite", + "piper", +] + +[[package]] +name = "bumpalo" +version = "3.20.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649" + +[[package]] +name = "bytemuck" +version = "1.25.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797" +dependencies = [ + "bytemuck_derive", +] + +[[package]] +name = "bytemuck_derive" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a1f896587b6f2c069c73d2f0913e2d590c3990285cd2f0b6aa02b786b4c679c" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "byteorder-lite" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495" + +[[package]] +name = "bytes" +version = "1.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04" + +[[package]] +name = "calloop" +version = "0.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec" +dependencies = [ + "bitflags 2.13.2", + "log", + "polling", + "rustix 0.38.44", + "slab", + "thiserror 1.0.69", +] + +[[package]] +name = "calloop" +version = "0.14.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "43b32313e937c8721c9d17ee9bf60699a6402b4b7c2cb6ac1bee0ffcaa4b4e5e" +dependencies = [ + "bitflags 2.13.2", + "polling", + "rustix 1.1.5", + "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.5", + "rustix 1.1.5", + "wayland-backend", + "wayland-client", +] + +[[package]] +name = "cc" +version = "1.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6651c9ed80effdc7db0ff72512157f901af5e3549e341e24b1dd4887d836d838" +dependencies = [ + "find-msvc-tools", + "jobserver", + "libc", + "shlex", +] + +[[package]] +name = "cfg-if" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600" + +[[package]] +name = "cfg_aliases" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527" + +[[package]] +name = "cgl" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff" +dependencies = [ + "libc", +] + +[[package]] +name = "chacha20" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06" +dependencies = [ + "cfg-if", + "cpufeatures", + "rand_core 0.10.1", +] + +[[package]] +name = "chrono" +version = "0.4.45" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327" +dependencies = [ + "iana-time-zone", + "js-sys", + "num-traits", + "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 = "cmake" +version = "0.1.58" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678" +dependencies = [ + "cc", +] + +[[package]] +name = "codespan-reporting" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681" +dependencies = [ + "serde", + "termcolor", + "unicode-width", +] + +[[package]] +name = "color" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ec7c5eb7a16992b1904d76c517d170ab353b0e0b3d5a0c81a8a0cd1037893cf" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "colored" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c" +dependencies = [ + "lazy_static", + "windows-sys 0.59.0", +] + +[[package]] +name = "combine" +version = "4.6.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4356eba6976435498d05a311ee9fc486da3bc81c200d3f0d7dd9703b41913f92" +dependencies = [ + "bytes", + "memchr", +] + +[[package]] +name = "concurrent-queue" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "const-oid" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c" + +[[package]] +name = "cookie" +version = "0.18.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a373e3602691c3cdea496d2f0ee5935151e6168fe87739483c463db1b2f2f87" +dependencies = [ + "percent-encoding", + "time", + "version_check", +] + +[[package]] +name = "cookie_store" +version = "0.22.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15b2c103cf610ec6cae3da84a766285b42fd16aad564758459e6ecf128c75206" +dependencies = [ + "cookie", + "document-features", + "idna", + "log", + "publicsuffix", + "serde", + "serde_derive", + "serde_json", + "time", + "url", +] + +[[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 = "core_detect" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f8f80099a98041a3d1622845c271458a2d73e688351bf3cb999266764b81d48" + +[[package]] +name = "cpufeatures" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566" +dependencies = [ + "libc", +] + +[[package]] +name = "crc32fast" +version = "1.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01a7799fd6b852db0e61728dde9a204c423b44d689dbd432522543614b490e78" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a" +dependencies = [ + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d" +dependencies = [ + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6" + +[[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.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453" +dependencies = [ + "hybrid-array", +] + +[[package]] +name = "cssparser" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c9cdaae01d5ed7882b04d795e7f752f46ff52d2fa3b50a20d28c464510bba98" +dependencies = [ + "cssparser-macros", + "dtoa-short", + "itoa", + "phf 0.13.1", + "smallvec", +] + +[[package]] +name = "cssparser-macros" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d045de693cb712d0b22c6a64be5b953f67b3ce00ab5ad3dd5d8b441886ab8e1a" +dependencies = [ + "quote", + "syn 3.0.9", +] + +[[package]] +name = "curator" +version = "2.0.0" +dependencies = [ + "anyhow", + "chrono", + "dirs", + "dotenvy", + "eframe", + "ego-tree", + "egui", + "egui_extras", + "egui_kittest", + "file-id", + "indexmap", + "rand 0.10.3", + "regex", + "reqwest", + "rfd", + "roxmltree", + "scraper", + "serde", + "serde_json", + "sha2", + "tempfile", + "thiserror 2.0.21", + "tracing", + "tracing-subscriber", + "unicode-normalization", + "url", +] + +[[package]] +name = "cursor-icon" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f" + +[[package]] +name = "deranged" +version = "0.5.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e" + +[[package]] +name = "derive_more" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d751e9e49156b02b44f9c1815bcb94b984cdcc4396ecc32521c739452808b134" +dependencies = [ + "derive_more-impl", +] + +[[package]] +name = "derive_more-impl" +version = "2.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "799a97264921d8623a957f6c3b9011f3b5492f557bbb7a5a19b7fa6d06ba8dcb" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "syn 2.0.119", +] + +[[package]] +name = "dify" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90ce0fb972943b4e88cd03b8f92953df0c71bb05e0bde8e5b684895d808013cc" +dependencies = [ + "anyhow", + "colored", + "getopts", + "image", + "rayon", +] + +[[package]] +name = "digest" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2" +dependencies = [ + "block-buffer", + "const-oid", + "crypto-common", +] + +[[package]] +name = "dirs" +version = "7.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d57d423b3c82e89b9a24ca3091fee61f456a26edbd28d26c65906f4bc1dcd8f" +dependencies = [ + "dirs-sys", +] + +[[package]] +name = "dirs-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab" +dependencies = [ + "libc", + "option-ext", + "redox_users", + "windows-sys 0.61.2", +] + +[[package]] +name = "dispatch" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b" + +[[package]] +name = "dispatch2" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0e367e4e7da84520dedcac1901e4da967309406d1e51017ae1abfb97adbd38" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "libc", + "objc2 0.6.5", +] + +[[package]] +name = "displaydoc" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[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 = "dotenvy" +version = "0.15.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1aaf95b3e5c8f23aa320147307562d361db0ae0d51242340f558153b4eb2439b" + +[[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 = "1.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4c3cf4824e2d5f025c7b531afcb2325364084a16806f6d47fbc1f5fbd9960590" + +[[package]] +name = "dtoa-short" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd1511a7b6a56299bd043a9c167a6d2bfb37bf84a6dfceaba651168adfb43c87" +dependencies = [ + "dtoa", +] + +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + +[[package]] +name = "ecolor" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "31bcbef0d4263a63eb32c4834e5d711613035ce1333468e107d928923e21e6e2" +dependencies = [ + "bytemuck", + "emath", +] + +[[package]] +name = "eframe" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c5642501a65ca657d05f00c643a5c14ff2346cb3818032bfe23d58e1f8e5f84" +dependencies = [ + "ahash", + "bytemuck", + "document-features", + "egui", + "egui-wgpu", + "egui-winit", + "egui_glow", + "egui_system_font_provider", + "glutin", + "glutin-winit", + "image", + "js-sys", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "parking_lot", + "percent-encoding", + "pollster 1.0.1", + "profiling", + "raw-window-handle", + "send_wrapper", + "static_assertions", + "wasm-bindgen", + "web-sys", + "web-time", + "wgpu", + "windows-sys 0.61.2", + "winit", +] + +[[package]] +name = "ego-tree" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b04dc5a38e4f151a79d9f2451ae6037fb6eaf5cba34771f44781f80e508498e3" + +[[package]] +name = "egui" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bec9144f49b7a28b5f395d3147e325b4fe3e77ba686eac11d1bdf0a7da3f375f" +dependencies = [ + "accesskit", + "ahash", + "bitflags 2.13.2", + "emath", + "epaint", + "itertools", + "log", + "nohash-hasher", + "profiling", + "smallvec", + "unicode-segmentation", + "web-sys", +] + +[[package]] +name = "egui-wgpu" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0309cbe1febed48af5b974e4bcc424b35e9664863a4d402697147b57a488c864" +dependencies = [ + "ahash", + "bytemuck", + "document-features", + "egui", + "epaint", + "log", + "profiling", + "thiserror 2.0.21", + "type-map", + "web-time", + "wgpu", + "winit", +] + +[[package]] +name = "egui-winit" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4e449f4c4a2a60c7ccb4ba7fa4078417bfe1f9ddc03b5e05ce75748e33a70de" +dependencies = [ + "accesskit_winit", + "arboard", + "block2 0.6.2", + "bytemuck", + "egui", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "objc2-ui-kit 0.3.2", + "profiling", + "raw-window-handle", + "smithay-clipboard", + "web-time", + "webbrowser", + "windows-sys 0.61.2", + "winit", +] + +[[package]] +name = "egui_extras" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "def286cf47194f3fe45b8e37c503ada7a20a64b59a903b4bc704baec943b1827" +dependencies = [ + "ahash", + "egui", + "enum-map", + "itertools", + "log", + "mime_guess2", + "profiling", +] + +[[package]] +name = "egui_glow" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9275ca5cc35a6b7c94e0e8cedf22542f66cb0cf45ed8ab2657c78ff49fec7268" +dependencies = [ + "bytemuck", + "egui", + "glow", + "log", + "profiling", + "winit", +] + +[[package]] +name = "egui_kittest" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0979c2e37860fcf13a2bea77508607f067a9a6a84ba9bd47b5e298582fb59b86" +dependencies = [ + "dify", + "eframe", + "egui", + "egui-wgpu", + "image", + "kittest", + "log", + "open", + "pollster 1.0.1", + "serde", + "tempfile", + "toml", + "wgpu", +] + +[[package]] +name = "egui_system_font_provider" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f2a2fdfe3c05dd9f691d2b1388b2312d6dce1af502f217c22136d22d9bd76f6" +dependencies = [ + "epaint", + "fontique", + "log", + "poll-promise", + "skrifa", + "sys-locale", + "unicode-script", +] + +[[package]] +name = "either" +version = "1.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be" + +[[package]] +name = "emath" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e73ce90f54750be8672c02be0743fe47530e6f251e066f0ee2869b59eb297af5" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "encoding_rs" +version = "0.8.42" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e985e0451871ad22fb8d2b6b076e2028a502a0d3950998c2c5c0a4f9b5d9679" +dependencies = [ + "cfg-if", + "core_detect", + "multiversion_no_op", + "rustversion", + "scopeguard", + "simdutf8", +] + +[[package]] +name = "endi" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099" + +[[package]] +name = "enum-map" +version = "3.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4532960034c15ba2f55e9eee631040ecc473c32e6c4b200828c759840f13a06" +dependencies = [ + "enum-map-derive", +] + +[[package]] +name = "enum-map-derive" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7127272f64b3e098f7d81f350d672081b879bff896d219c42370dc858b1af9ff" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[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.119", +] + +[[package]] +name = "epaint" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97bac86ae3dde93fc3951e790951caea739ff39a6c89d909cdaf1d9278dbb1bd" +dependencies = [ + "ahash", + "bytemuck", + "ecolor", + "emath", + "epaint_default_fonts", + "font-types", + "harfrust", + "log", + "nohash-hasher", + "parking_lot", + "profiling", + "self_cell", + "skrifa", + "smallvec", + "unicode-general-category", + "unicode-properties", + "unicode-segmentation", + "vello_cpu", +] + +[[package]] +name = "epaint_default_fonts" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfc1cc505827f4c23eedc297975a0fd038268d41293f389dd8ff3b574aefab19" + +[[package]] +name = "equivalent" +version = "1.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826" + +[[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.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b5343afd4a8365a643ac588dab4cf234a190c7f6c88c9f6dd6ffe00837661b7" + +[[package]] +name = "euclid" +version = "0.22.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1a05365e3b1c6d1650318537c7460c6923f1abdd272ad6842baa2b509957a06" +dependencies = [ + "num-traits", +] + +[[package]] +name = "event-listener" +version = "5.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a23add41df1562121a9393cb065eab5146a1242410f23a644851e90cfd669d2" +dependencies = [ + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93" +dependencies = [ + "event-listener", + "pin-project-lite", +] + +[[package]] +name = "fastrand" +version = "2.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223" + +[[package]] +name = "fax" +version = "0.2.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caf1079563223d5d59d83c85886a56e586cfd5c1a26292e971a0fa266531ac5a" + +[[package]] +name = "fdeflate" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c" +dependencies = [ + "simd-adler32", +] + +[[package]] +name = "fearless_simd" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97b65636e5b9ef369943878ac74335ba1c55c1cb6adbf1e2c293c624248d693" + +[[package]] +name = "file-id" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1fc6a637b6dc58414714eddd9170ff187ecb0933d4c7024d1abbd23a3cc26e9" +dependencies = [ + "windows-sys 0.60.2", +] + +[[package]] +name = "find-msvc-tools" +version = "0.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484" + +[[package]] +name = "fixedbitset" +version = "0.5.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d674e81391d1e1ab681a28d99df07927c6d4aa5b027d7da16ba32d1d21ecd99" + +[[package]] +name = "flate2" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb" +dependencies = [ + "crc32fast", + "miniz_oxide 0.9.1", + "zlib-rs", +] + +[[package]] +name = "fnv" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" + +[[package]] +name = "foldhash" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2" + +[[package]] +name = "foldhash" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb" + +[[package]] +name = "font-types" +version = "0.12.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "835ae9d781464a79026cde387f9cbc650c9a4909d7cf7e658b127e3c35d2f35d" +dependencies = [ + "bytemuck", +] + +[[package]] +name = "fontique" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6688bc1294fe7117d788937b6c53480169b29c566954af490830d4c09da9516a" +dependencies = [ + "hashbrown 0.17.1", + "linebender_resource_handle", + "memmap2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-text", + "objc2-foundation 0.3.2", + "parlance", + "read-fonts", + "roxmltree", + "smallvec", + "windows", + "windows-core", + "yeslogic-fontconfig-sys", +] + +[[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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea5190182e6915eb873ddbc16e23b711b6eb1f9c00a0d0a3a91b5f6228475225" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[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 = "fs_extra" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" + +[[package]] +name = "futures-channel" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4" +dependencies = [ + "futures-core", + "futures-sink", +] + +[[package]] +name = "futures-core" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e" + +[[package]] +name = "futures-io" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed" + +[[package]] +name = "futures-lite" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad" +dependencies = [ + "fastrand", + "futures-core", + "futures-io", + "parking", + "pin-project-lite", +] + +[[package]] +name = "futures-macro" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "futures-sink" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d" + +[[package]] +name = "futures-task" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd" + +[[package]] +name = "futures-util" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc" +dependencies = [ + "futures-core", + "futures-io", + "futures-macro", + "futures-sink", + "futures-task", + "memchr", + "pin-project-lite", + "slab", +] + +[[package]] +name = "gethostname" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8" +dependencies = [ + "rustix 1.1.5", + "windows-link", +] + +[[package]] +name = "getopts" +version = "0.2.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfe4fbac503b8d1f88e6676011885f34b7174f46e59956bba534ba83abded4df" +dependencies = [ + "unicode-width", +] + +[[package]] +name = "getrandom" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "wasi", + "wasm-bindgen", +] + +[[package]] +name = "getrandom" +version = "0.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" +dependencies = [ + "cfg-if", + "libc", + "r-efi 5.3.0", + "wasip2", +] + +[[package]] +name = "getrandom" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099" +dependencies = [ + "cfg-if", + "js-sys", + "libc", + "r-efi 6.0.0", + "rand_core 0.10.1", + "wasm-bindgen", +] + +[[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 = "glifo" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282a26c1e23de04bdab3e34a21b6f877a479b96737792516b9b8b8f69b6661be" +dependencies = [ + "bytemuck", + "foldhash 0.2.0", + "hashbrown 0.17.1", + "log", + "peniko", + "png", + "skrifa", + "smallvec", + "vello_common", +] + +[[package]] +name = "glow" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29038e1c483364cc6bb3cf78feee1816002e127c331a1eec55a4d202b9e1adb5" +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.13.2", + "cfg_aliases", + "cgl", + "dispatch2", + "glutin_egl_sys", + "glutin_glx_sys", + "glutin_wgl_sys", + "libloading", + "objc2 0.6.5", + "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-allocator" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "51255ea7cfaadb6c5f1528d43e92a82acb2b96c43365989a28b2d44ee38f8795" +dependencies = [ + "ash", + "hashbrown 0.16.1", + "log", + "presser", + "thiserror 2.0.21", + "windows", +] + +[[package]] +name = "guillotiere" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b17e70c989c36bad147b27a58d148c0741c51448aa5653436547323e524d0ab" +dependencies = [ + "euclid", +] + +[[package]] +name = "h2" +version = "0.4.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d29020232d6aa3fb1daca64c1127cf662cf97f254ae16c18c05b8ab635fc118" +dependencies = [ + "atomic-waker", + "bytes", + "fnv", + "futures-core", + "futures-sink", + "http", + "indexmap", + "slab", + "tokio", + "tokio-util", + "tracing", +] + +[[package]] +name = "half" +version = "2.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b" +dependencies = [ + "cfg-if", + "crunchy", + "num-traits", + "zerocopy", +] + +[[package]] +name = "harfrust" +version = "0.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c03d949a14aa089bbb282f7dd76a498a7f684428e4257202efc119ec010376f9" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "read-fonts", + "smallvec", +] + +[[package]] +name = "hashbrown" +version = "0.15.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1" +dependencies = [ + "foldhash 0.1.5", +] + +[[package]] +name = "hashbrown" +version = "0.16.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100" +dependencies = [ + "allocator-api2", + "equivalent", + "foldhash 0.2.0", +] + +[[package]] +name = "hashbrown" +version = "0.17.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a" +dependencies = [ + "foldhash 0.2.0", +] + +[[package]] +name = "hermit-abi" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e17592d60ebacc7d5e169f4663c5f84f9161cc90328abcfe8456f41e4dfcb284" + +[[package]] +name = "hex" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" + +[[package]] +name = "html5ever" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "46a1761807faccc9a19e86944bbf40610014066306f96edcdedc2fb714bcb7b8" +dependencies = [ + "log", + "markup5ever", +] + +[[package]] +name = "http" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0" +dependencies = [ + "bytes", + "itoa", +] + +[[package]] +name = "http-body" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c" +dependencies = [ + "bytes", + "futures-core", + "http", + "http-body", + "pin-project-lite", +] + +[[package]] +name = "httparse" +version = "1.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87" + +[[package]] +name = "hybrid-array" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27f864f10dfb56725ce5ce5472bc52252c8f93a4ab86327122cebf62c5f59a17" +dependencies = [ + "typenum", +] + +[[package]] +name = "hyper" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c" +dependencies = [ + "atomic-waker", + "bytes", + "futures-channel", + "futures-core", + "h2", + "http", + "http-body", + "httparse", + "itoa", + "pin-project-lite", + "smallvec", + "tokio", + "want", +] + +[[package]] +name = "hyper-rustls" +version = "0.27.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53" +dependencies = [ + "http", + "hyper", + "hyper-util", + "rustls", + "tokio", + "tokio-rustls", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff" +dependencies = [ + "base64", + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "httparse", + "hyper", + "ipnet", + "libc", + "percent-encoding", + "pin-project-lite", + "socket2", + "system-configuration", + "tokio", + "tower-service", + "tracing", + "windows-registry", +] + +[[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", +] + +[[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.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa68d21081c4a05d5a901a1c62add574c77048b6a1c67be3b50ce0b60d4ca513" +dependencies = [ + "displaydoc", + "potential_utf", + "utf8_iter", + "yoke", + "zerofrom", + "zerovec", +] + +[[package]] +name = "icu_locale_core" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56e28588da92eee5c3201a6eff33fabdd49b62269c8938d4ff050ce4d900deb" +dependencies = [ + "displaydoc", + "litemap", + "tinystr", + "writeable", + "zerovec", +] + +[[package]] +name = "icu_normalizer" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f9cf5f235641ed274641dd81c3f28d870e276763d0797aeeab72317b1c646f" +dependencies = [ + "icu_collections", + "icu_normalizer_data", + "icu_properties", + "icu_provider", + "smallvec", + "zerovec", +] + +[[package]] +name = "icu_normalizer_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1563da1ed3e0b3bf3d74c9b85917ac9c56464d2f57242270c09c9e752f8021a0" + +[[package]] +name = "icu_properties" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e7ca276ad3145661a65914e6daf131ca5120cd3dcee8f8f3214b8875184a148" +dependencies = [ + "displaydoc", + "icu_collections", + "icu_locale_core", + "icu_properties_data", + "icu_provider", + "zerotrie", + "zerovec", +] + +[[package]] +name = "icu_properties_data" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e590f038c1464a96894fd6d10127e90a8be4509f56ff7ecef851b15cee0b7caa" + +[[package]] +name = "icu_provider" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d27bbb9d3abbefac45d55f647c9de1d44aafcd1186eb91879afef17c396c3e73" +dependencies = [ + "displaydoc", + "icu_locale_core", + "writeable", + "yoke", + "zerofrom", + "zerotrie", + "zerovec", +] + +[[package]] +name = "idna" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de" +dependencies = [ + "idna_adapter", + "smallvec", + "utf8_iter", +] + +[[package]] +name = "idna_adapter" +version = "1.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714" +dependencies = [ + "icu_normalizer", + "icu_properties", +] + +[[package]] +name = "image" +version = "0.25.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104" +dependencies = [ + "bytemuck", + "byteorder-lite", + "moxcms", + "num-traits", + "png", + "tiff", +] + +[[package]] +name = "indexmap" +version = "2.14.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855" +dependencies = [ + "equivalent", + "hashbrown 0.17.1", +] + +[[package]] +name = "ipnet" +version = "2.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0" + +[[package]] +name = "is-docker" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "928bae27f42bc99b60d9ac7334e3a21d10ad8f1835a4e12ec3ec0464765ed1b3" +dependencies = [ + "once_cell", +] + +[[package]] +name = "is-wsl" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "173609498df190136aa7dea1a91db051746d339e18476eed5ca40521f02d7aa5" +dependencies = [ + "is-docker", + "once_cell", +] + +[[package]] +name = "itertools" +version = "0.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8b4baf93f58d4425749ca49a51c50ebab072c5df6994d08fed93541c331481dc" +dependencies = [ + "either", +] + +[[package]] +name = "itoa" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682" + +[[package]] +name = "jni" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5efd9a482cf3a427f00d6b35f14332adc7902ce91efb778580e180ff90fa3498" +dependencies = [ + "cfg-if", + "combine", + "jni-macros", + "jni-sys 0.4.1", + "log", + "simd_cesu8", + "thiserror 2.0.21", + "walkdir", + "windows-link", +] + +[[package]] +name = "jni-macros" +version = "0.22.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a00109accc170f0bdb141fed3e393c565b6f5e072365c3bd58f5b062591560a3" +dependencies = [ + "proc-macro2", + "quote", + "rustc_version", + "simd_cesu8", + "syn 2.0.119", +] + +[[package]] +name = "jni-sys" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41a652e1f9b6e0275df1f15b32661cf0d4b78d4d87ddec5e0c3c20f097433258" +dependencies = [ + "jni-sys 0.4.1", +] + +[[package]] +name = "jni-sys" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6377a88cb3910bee9b0fa88d4f42e1d2da8e79915598f65fb0c7ee14c878af2" +dependencies = [ + "jni-sys-macros", +] + +[[package]] +name = "jni-sys-macros" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38c0b942f458fe50cdac086d2f946512305e5631e720728f2a61aabcd47a6264" +dependencies = [ + "quote", + "syn 2.0.119", +] + +[[package]] +name = "jobserver" +version = "0.1.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3" +dependencies = [ + "getrandom 0.4.3", + "libc", +] + +[[package]] +name = "js-sys" +version = "0.3.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7883d941dae510fb2d978fc3fe018c71c9e2892fd38854de3e8b92c2e5ad9cc5" +dependencies = [ + "cfg-if", + "futures-util", + "wasm-bindgen", +] + +[[package]] +name = "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 = "kittest" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bb81a721ba76aa095b7f45deb180504f786904e56ca4b8e141f66eb89a78b75" +dependencies = [ + "accesskit", + "accesskit_consumer", +] + +[[package]] +name = "kurbo" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b60dfc32f652b926df6192e55525b16d186c69d47876c3ead4da5cc9f8450e2" +dependencies = [ + "arrayvec", + "euclid", + "polycool", + "smallvec", +] + +[[package]] +name = "lazy_static" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb" + +[[package]] +name = "libc" +version = "0.2.191" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a" + +[[package]] +name = "libloading" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +dependencies = [ + "cfg-if", + "windows-link", +] + +[[package]] +name = "libm" +version = "0.2.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" + +[[package]] +name = "libredox" +version = "0.1.25" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d" +dependencies = [ + "bitflags 2.13.2", + "libc", + "plain", + "redox_syscall 0.9.4", +] + +[[package]] +name = "linebender_resource_handle" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4" + +[[package]] +name = "linux-raw-sys" +version = "0.4.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab" + +[[package]] +name = "linux-raw-sys" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53" + +[[package]] +name = "litemap" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae" + +[[package]] +name = "litrs" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4744e383959f0db86ede514b809b1c53251889093803c05267acc7d4e7030d70" + +[[package]] +name = "lock_api" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" +dependencies = [ + "scopeguard", +] + +[[package]] +name = "log" +version = "0.4.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6" + +[[package]] +name = "lru-slab" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f" + +[[package]] +name = "markup5ever" +version = "0.39.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7122d987ec5f704ee56f6e5b41a7d93722e9aae27ae07cafa4036c4d3f9757de" +dependencies = [ + "log", + "tendril", + "web_atoms", +] + +[[package]] +name = "matchers" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9" +dependencies = [ + "regex-automata", +] + +[[package]] +name = "memchr" +version = "2.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98" + +[[package]] +name = "memmap2" +version = "0.9.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1219ed1b7f229ee7104d281dd01d6802fe28bb6e95d292942c4daacdeb798c0" +dependencies = [ + "libc", +] + +[[package]] +name = "memoffset" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a" +dependencies = [ + "autocfg", +] + +[[package]] +name = "mime" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a" + +[[package]] +name = "mime_guess2" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1706dc14a2e140dec0a7a07109d9a3d5890b81e85bd6c60b906b249a77adf0ca" +dependencies = [ + "mime", + "phf 0.11.3", + "phf_shared 0.11.3", + "unicase", +] + +[[package]] +name = "miniz_oxide" +version = "0.8.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "miniz_oxide" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c" +dependencies = [ + "adler2", + "simd-adler32", +] + +[[package]] +name = "mio" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee" +dependencies = [ + "libc", + "wasi", + "windows-sys 0.61.2", +] + +[[package]] +name = "moxcms" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b" +dependencies = [ + "num-traits", + "pxfm", +] + +[[package]] +name = "multiversion_no_op" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "743fb55ba31b18fb1ecef6bdc9aa2743314978ac084044301a7eee33fb99a20d" + +[[package]] +name = "naga" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a616d2fb8c89516ac2723a581f69d6c18576046bed761bd6b305e5618e6ae130" +dependencies = [ + "arrayvec", + "bit-set", + "bitflags 2.13.2", + "cfg-if", + "cfg_aliases", + "codespan-reporting", + "half", + "hashbrown 0.17.1", + "indexmap", + "libm", + "log", + "naga-types", + "num-traits", + "once_cell", + "rustc-hash 1.1.0", + "spirv", + "thiserror 2.0.21", + "unicode-ident", +] + +[[package]] +name = "naga-types" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "590afbf58a6f4f62873cd5cff4468061844bafa1cdf399cc954537c22d768d49" +dependencies = [ + "hashbrown 0.17.1", + "indexmap", + "rustc-hash 1.1.0", + "thiserror 2.0.21", +] + +[[package]] +name = "ndk" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4" +dependencies = [ + "bitflags 2.13.2", + "jni-sys 0.3.1", + "log", + "ndk-sys", + "num_enum", + "raw-window-handle", + "thiserror 1.0.69", +] + +[[package]] +name = "ndk-context" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b" + +[[package]] +name = "ndk-sys" +version = "0.6.0+11769913" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873" +dependencies = [ + "jni-sys 0.3.1", +] + +[[package]] +name = "new_debug_unreachable" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086" + +[[package]] +name = "nohash-hasher" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451" + +[[package]] +name = "nom" +version = "8.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405" +dependencies = [ + "memchr", +] + +[[package]] +name = "nu-ansi-term" +version = "0.50.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[package]] +name = "num-conv" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441" + +[[package]] +name = "num-traits" +version = "0.2.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841" +dependencies = [ + "autocfg", + "libm", +] + +[[package]] +name = "num_enum" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0bca838442ec211fa11de3a8b0e0e8f3a4522575b5c4c06ed722e005036f26" +dependencies = [ + "num_enum_derive", + "rustversion", +] + +[[package]] +name = "num_enum_derive" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "680998035259dcfcafe653688bf2aa6d3e2dc05e98be6ab46afb089dc84f1df8" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "objc-sys" +version = "0.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310" + +[[package]] +name = "objc2" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19d5490aaf8f1d7cf7688dfa9b0ce07900e168852c45cd2c03f534dfd27cfd0b" +dependencies = [ + "objc-sys", + "objc2-encode", +] + +[[package]] +name = "objc2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08849bbd4767dfae9457696856ae1c84fe4e0281bbe4a7abff2d0e06fb7981f8" +dependencies = [ + "objc2-encode", +] + +[[package]] +name = "objc2-app-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "libc", + "objc2 0.5.3", + "objc2-core-data", + "objc2-core-image", + "objc2-foundation 0.2.2", + "objc2-quartz-core 0.2.2", +] + +[[package]] +name = "objc2-app-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "objc2 0.6.5", + "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.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "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.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-data" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", +] + +[[package]] +name = "objc2-core-graphics" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807" +dependencies = [ + "bitflags 2.13.2", + "dispatch2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-io-surface", +] + +[[package]] +name = "objc2-core-image" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal 0.2.2", +] + +[[package]] +name = "objc2-core-location" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-contacts", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-core-text" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0cde0dfb48d25d2b4862161a4d5fcc0e3c24367869ad306b0c9ec0073bfed92d" +dependencies = [ + "bitflags 2.13.2", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-encode" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33" + +[[package]] +name = "objc2-foundation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "dispatch", + "libc", + "objc2 0.5.3", +] + +[[package]] +name = "objc2-foundation" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-io-surface" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180788110936d59bab6bd83b6060ffdfffb3b922ba1396b312ae795e1de9d81d" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", +] + +[[package]] +name = "objc2-link-presentation" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-metal" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-metal" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0125f776a10d00af4152d74616409f0d4a2053a6f57fa5b7d6aa2854ac04794" +dependencies = [ + "bitflags 2.13.2", + "block2 0.6.2", + "objc2 0.6.5", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", + "objc2-metal 0.2.2", +] + +[[package]] +name = "objc2-quartz-core" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "objc2-metal 0.3.2", +] + +[[package]] +name = "objc2-symbols" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc" +dependencies = [ + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-cloud-kit", + "objc2-core-data", + "objc2-core-image", + "objc2-core-location", + "objc2-foundation 0.2.2", + "objc2-link-presentation", + "objc2-quartz-core 0.2.2", + "objc2-symbols", + "objc2-uniform-type-identifiers", + "objc2-user-notifications", +] + +[[package]] +name = "objc2-ui-kit" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d87d638e33c06f577498cbcc50491496a3ed4246998a7fbba7ccb98b1e7eab22" +dependencies = [ + "bitflags 2.13.2", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-foundation 0.3.2", +] + +[[package]] +name = "objc2-uniform-type-identifiers" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe" +dependencies = [ + "block2 0.5.1", + "objc2 0.5.3", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "objc2-user-notifications" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3" +dependencies = [ + "bitflags 2.13.2", + "block2 0.5.1", + "objc2 0.5.3", + "objc2-core-location", + "objc2-foundation 0.2.2", +] + +[[package]] +name = "once_cell" +version = "1.21.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50" + +[[package]] +name = "open" +version = "5.4.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa576c76302b7b808eecc68061e67336c47833ef9d22caa74dda10fa9675eebc" +dependencies = [ + "is-wsl", + "libc", +] + +[[package]] +name = "openssl-probe" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" + +[[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.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5df339f526ea9a60e371768d50efc2f2508c7203290731565d1f7a6f71d21747" +dependencies = [ + "libc", + "libredox", +] + +[[package]] +name = "ordered-float" +version = "5.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8c7c9e0d9b23589f26070720bac724174bfec1083e82f7854cdd0267518343c0" +dependencies = [ + "num-traits", +] + +[[package]] +name = "ordered-stream" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50" +dependencies = [ + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "os_pipe" +version = "1.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[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 = "parlance" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "73072a9470554c8e794778acece2312661218aaabb635600957d952cf01c716e" + +[[package]] +name = "peniko" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "839c8299360d2e998bdb106dc0a6cd71dcc5f4df51df1b620361bf50e283cca6" +dependencies = [ + "bytemuck", + "color", + "kurbo", + "linebender_resource_handle", + "smallvec", +] + +[[package]] +name = "percent-encoding" +version = "2.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220" + +[[package]] +name = "petgraph" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8701b58ea97060d5e5b155d383a69952a60943f0e6dfe30b04c287beb0b27455" +dependencies = [ + "fixedbitset", + "hashbrown 0.15.5", + "indexmap", +] + +[[package]] +name = "phf" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fd6780a80ae0c52cc120a26a1a42c1ae51b247a253e4e06113d23d2c2edd078" +dependencies = [ + "phf_macros 0.11.3", + "phf_shared 0.11.3", +] + +[[package]] +name = "phf" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf" +dependencies = [ + "phf_macros 0.13.1", + "phf_shared 0.13.1", + "serde", +] + +[[package]] +name = "phf" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "010378780309880b08997fae13be7834dba947d36393bd372f2b1556deb2a2f6" +dependencies = [ + "phf_macros 0.14.0", + "phf_shared 0.14.0", + "serde", +] + +[[package]] +name = "phf_codegen" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1" +dependencies = [ + "phf_generator 0.13.1", + "phf_shared 0.13.1", +] + +[[package]] +name = "phf_generator" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c80231409c20246a13fddb31776fb942c38553c51e871f8cbd687a4cfb5843d" +dependencies = [ + "phf_shared 0.11.3", + "rand 0.8.8", +] + +[[package]] +name = "phf_generator" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737" +dependencies = [ + "fastrand", + "phf_shared 0.13.1", +] + +[[package]] +name = "phf_generator" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aeb62e0959d5a1bebc965f4d15d9e2b7cea002b6b0f5ba8cde6cc26738467100" +dependencies = [ + "fastrand", + "phf_shared 0.14.0", +] + +[[package]] +name = "phf_macros" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f84ac04429c13a7ff43785d75ad27569f2951ce0ffd30a3321230db2fc727216" +dependencies = [ + "phf_generator 0.11.3", + "phf_shared 0.11.3", + "proc-macro2", + "quote", + "syn 2.0.119", + "unicase", +] + +[[package]] +name = "phf_macros" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812f032b54b1e759ccd5f8b6677695d5268c588701effba24601f6932f8269ef" +dependencies = [ + "phf_generator 0.13.1", + "phf_shared 0.13.1", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_macros" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fa8d0ca26d424d27630da600c6624696e7dec8bf7b3b492b383c5dc49e5e085" +dependencies = [ + "phf_generator 0.14.0", + "phf_shared 0.14.0", + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "phf_shared" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67eabc2ef2a60eb7faa00097bd1ffdb5bd28e62bf39990626a582201b7a754e5" +dependencies = [ + "siphasher", + "unicase", +] + +[[package]] +name = "phf_shared" +version = "0.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266" +dependencies = [ + "siphasher", +] + +[[package]] +name = "phf_shared" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6fd9027e2d9319be6349febd1db4e8d02aa544921200c9b777720ac34a3aa89" +dependencies = [ + "siphasher", +] + +[[package]] +name = "pin-project" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "pin-project-lite" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd" + +[[package]] +name = "piper" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c835479a4443ded371d6c535cbfd8d31ad92c5d23ae9770a61bc155e4992a3c1" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + +[[package]] +name = "pkg-config" +version = "0.3.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548" + +[[package]] +name = "plain" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6" + +[[package]] +name = "png" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61" +dependencies = [ + "bitflags 2.13.2", + "crc32fast", + "fdeflate", + "flate2", + "miniz_oxide 0.8.9", +] + +[[package]] +name = "poll-promise" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5f6a58fecbf9da8965bcdb20ce4fd29788d1acee68ddbb64f0ba1b81bccdb7df" +dependencies = [ + "document-features", + "static_assertions", +] + +[[package]] +name = "polling" +version = "3.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218" +dependencies = [ + "cfg-if", + "concurrent-queue", + "hermit-abi", + "pin-project-lite", + "rustix 1.1.5", + "windows-sys 0.61.2", +] + +[[package]] +name = "pollster" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3" + +[[package]] +name = "pollster" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bc6355899e1c9462875b6757c79f3caa011a1fdae12bbb1a2e72dd1f234f8336" + +[[package]] +name = "polycool" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "50596ddc09eb5ad5f75cacd40209568e66df71baf86e1499a0e99c4cff12a5a6" +dependencies = [ + "arrayvec", +] + +[[package]] +name = "portable-atomic" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85" + +[[package]] +name = "portable-atomic-util" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715" +dependencies = [ + "portable-atomic", +] + +[[package]] +name = "potential_utf" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661" +dependencies = [ + "zerovec", +] + +[[package]] +name = "powerfmt" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958" + +[[package]] +name = "precomputed-hash" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c" + +[[package]] +name = "presser" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa" + +[[package]] +name = "proc-macro-crate" +version = "3.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e67ba7e9b2b56446f1d419b1d807906278ffa1a658a8a5d8a39dcb1f5a78614f" +dependencies = [ + "toml_edit", +] + +[[package]] +name = "proc-macro2" +version = "1.0.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "profiling" +version = "1.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3d595e54a326bc53c1c197b32d295e14b169e3cfeaa8dc82b529f947fba6bcf5" + +[[package]] +name = "psl-types" +version = "2.0.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33cb294fe86a74cbcf50d4445b37da762029549ebeea341421c7c70370f86cac" + +[[package]] +name = "publicsuffix" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f42ea446cab60335f76979ec15e12619a2165b5ae2c12166bef27d283a9fadf" +dependencies = [ + "idna", + "psl-types", +] + +[[package]] +name = "pxfm" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea" + +[[package]] +name = "quick-error" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3" + +[[package]] +name = "quick-xml" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e660451e55124f798a69a5af3f49ccfbefbd41910eefd25caf2393e1f3473ec1" +dependencies = [ + "memchr", +] + +[[package]] +name = "quinn" +version = "0.11.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4051e23e9185c255a7e33ef59cdbca87a22d359052eecd22fc6b901fb37d9d11" +dependencies = [ + "bytes", + "cfg_aliases", + "pin-project-lite", + "quinn-proto", + "quinn-udp", + "rustc-hash 2.1.3", + "rustls", + "socket2", + "thiserror 2.0.21", + "tokio", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-proto" +version = "0.11.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe" +dependencies = [ + "aws-lc-rs", + "bytes", + "getrandom 0.4.3", + "lru-slab", + "rand 0.10.3", + "rand_pcg", + "ring", + "rustc-hash 2.1.3", + "rustls", + "rustls-pki-types", + "slab", + "thiserror 2.0.21", + "tinyvec", + "tracing", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.61.2", +] + +[[package]] +name = "quote" +version = "1.0.47" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "r-efi" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f" + +[[package]] +name = "r-efi" +version = "6.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf" + +[[package]] +name = "rand" +version = "0.8.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c" +dependencies = [ + "rand_core 0.6.4", +] + +[[package]] +name = "rand" +version = "0.10.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af" +dependencies = [ + "chacha20", + "getrandom 0.4.3", + "rand_core 0.10.1", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" + +[[package]] +name = "rand_core" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69" + +[[package]] +name = "rand_pcg" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a" +dependencies = [ + "rand_core 0.10.1", +] + +[[package]] +name = "range-alloc" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca45419789ae5a7899559e9512e58ca889e41f04f1f2445e9f4b290ceccd1d08" + +[[package]] +name = "raw-window-handle" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539" + +[[package]] +name = "raw-window-metal" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40d213455a5f1dc59214213c7330e074ddf8114c9a42411eb890c767357ce135" +dependencies = [ + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "objc2-quartz-core 0.3.2", +] + +[[package]] +name = "rayon" +version = "1.12.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d" +dependencies = [ + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.13.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91" +dependencies = [ + "crossbeam-deque", + "crossbeam-utils", +] + +[[package]] +name = "read-fonts" +version = "0.41.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "046a7d674daf459825b32f5062056d6882db0d2f5a479fbd76ccfc870ac18709" +dependencies = [ + "bytemuck", + "font-types", + "once_cell", +] + +[[package]] +name = "redox_syscall" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4722d768eff46b75989dd134e5c353f0d6296e5aaa3132e776cbdb56be7731aa" +dependencies = [ + "bitflags 1.3.2", +] + +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "redox_syscall" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "737970939a87c6fa31e7acad13307bccbb017a073b695b6089a2c484f929e20e" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "redox_users" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "60dc65c0ff1a7ae1294b0c67b9f14baf70b644404010370171787bfac1038fc0" +dependencies = [ + "libredox", + "thiserror 2.0.21", +] + +[[package]] +name = "regex" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", +] + +[[package]] +name = "regex-syntax" +version = "0.8.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4" + +[[package]] +name = "renderdoc-sys" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832" + +[[package]] +name = "reqwest" +version = "0.13.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029" +dependencies = [ + "base64", + "bytes", + "cookie", + "cookie_store", + "encoding_rs", + "futures-channel", + "futures-core", + "futures-util", + "h2", + "http", + "http-body", + "http-body-util", + "hyper", + "hyper-rustls", + "hyper-util", + "js-sys", + "log", + "mime", + "percent-encoding", + "pin-project-lite", + "quinn", + "rustls", + "rustls-pki-types", + "rustls-platform-verifier", + "serde", + "serde_json", + "serde_urlencoded", + "sync_wrapper", + "tokio", + "tokio-rustls", + "tower", + "tower-http", + "tower-service", + "url", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", +] + +[[package]] +name = "rfd" +version = "0.17.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20dafead71c16a34e1ff357ddefc8afc11e7d51d6d2b9fbd07eaa48e3e540220" +dependencies = [ + "block2 0.6.2", + "dispatch2", + "js-sys", + "libc", + "log", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-core-foundation", + "objc2-foundation 0.3.2", + "percent-encoding", + "pollster 0.4.0", + "raw-window-handle", + "wasm-bindgen", + "wasm-bindgen-futures", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "web-sys", + "windows-sys 0.61.2", +] + +[[package]] +name = "ring" +version = "0.17.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" +dependencies = [ + "cc", + "cfg-if", + "getrandom 0.2.17", + "libc", + "untrusted", + "windows-sys 0.52.0", +] + +[[package]] +name = "roxmltree" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1964b10c76125c36f8afe190065a4bf9a87bf324842c05701330bba9f1cacbb" +dependencies = [ + "memchr", +] + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc-hash" +version = "2.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d" + +[[package]] +name = "rustc_version" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92" +dependencies = [ + "semver", +] + +[[package]] +name = "rustix" +version = "0.38.44" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.4.15", + "windows-sys 0.59.0", +] + +[[package]] +name = "rustix" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "891efababe418670775f199f0d233d84843c227a0949a883ce15b37c78d6629d" +dependencies = [ + "bitflags 2.13.2", + "errno", + "libc", + "linux-raw-sys 0.12.1", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls" +version = "0.23.46" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf" +dependencies = [ + "aws-lc-rs", + "once_cell", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", +] + +[[package]] +name = "rustls-native-certs" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4" +dependencies = [ + "openssl-probe", + "rustls-pki-types", + "schannel", + "security-framework", +] + +[[package]] +name = "rustls-pki-types" +version = "1.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1167586491e2b18b8bfbb293e8180ec17c201c4f076d7cb3070ca964e7598f98" +dependencies = [ + "core-foundation 0.10.1", + "core-foundation-sys", + "jni", + "log", + "once_cell", + "rustls", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eec689c0bc40ff2458a5977b6619cb718087084a18e02a131c599b62d05e1a5f" + +[[package]] +name = "rustls-webpki" +version = "0.103.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3c3cf1d8b1e7d4927e2d154c3fcb02979afb9939629c62cd9048d4f07b60ac2" +dependencies = [ + "aws-lc-rs", + "ring", + "rustls-pki-types", + "untrusted", +] + +[[package]] +name = "rustversion" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f" + +[[package]] +name = "ryu" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f" + +[[package]] +name = "same-file" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "schannel" +version = "0.1.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5" +dependencies = [ + "windows-sys 0.61.2", +] + +[[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 = "scraper" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd0be4d296f048bfb06dd01bbc80ef789ddd2e55583e8d2e6b804942abfabc2" +dependencies = [ + "cssparser", + "ego-tree", + "getopts", + "html5ever", + "precomputed-hash", + "selectors", + "tendril", +] + +[[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 = "security-framework" +version = "3.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.10.1", + "core-foundation-sys", + "libc", + "security-framework-sys", +] + +[[package]] +name = "security-framework-sys" +version = "2.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "selectors" +version = "0.38.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8adfa1c298912827b8a28b223b3b874357397ae706e6190acd9bf28cee99114d" +dependencies = [ + "bitflags 2.13.2", + "cssparser", + "derive_more", + "log", + "new_debug_unreachable", + "phf 0.13.1", + "phf_codegen", + "precomputed-hash", + "rustc-hash 2.1.3", + "servo_arc", + "smallvec", +] + +[[package]] +name = "self_cell" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2ab42ca02749e120097e328d91d415325bdf43b1c72c4c8badf37375fe40a813" + +[[package]] +name = "semver" +version = "1.0.28" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd" + +[[package]] +name = "send_wrapper" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cd0b0ec5f1c1ca621c432a25813d8d60c88abe6d3e08a3eb9cf37d97a0fe3d73" + +[[package]] +name = "serde" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba" +dependencies = [ + "serde_core", + "serde_derive", +] + +[[package]] +name = "serde_core" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.229" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serde_json" +version = "1.0.154" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6" +dependencies = [ + "foldhash 0.2.0", + "indexmap", + "itoa", + "memchr", + "serde", + "serde_core", + "zmij", +] + +[[package]] +name = "serde_repr" +version = "0.1.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b1629de253c70a0508c3899572da79ca359fdab27c7920ff00406df418906" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "serde_spanned" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c" +dependencies = [ + "serde_core", +] + +[[package]] +name = "serde_urlencoded" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd" +dependencies = [ + "form_urlencoded", + "itoa", + "ryu", + "serde", +] + +[[package]] +name = "servo_arc" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "170fb83ab34de17dc69aa7c67482b22218ddb85da56546f9bd6b929e32a05930" +dependencies = [ + "stable_deref_trait", +] + +[[package]] +name = "sha2" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "47d7069beb7d6ac7b9acd1039986e73443f24234f41074da099d6f994ac9ad19" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest", +] + +[[package]] +name = "sharded-slab" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "shlex" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" + +[[package]] +name = "signal-hook-registry" +version = "1.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" +dependencies = [ + "errno", + "libc", +] + +[[package]] +name = "simd-adler32" +version = "0.3.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" + +[[package]] +name = "simd_cesu8" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "11031e251abf8611c80f460e19dbdeb54a66db918e49c65a7065b46ac7aec520" +dependencies = [ + "rustc_version", + "simdutf8", +] + +[[package]] +name = "simdutf8" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3a9fe34e3e7a50316060351f37187a3f546bce95496156754b601a5fa71b76e" + +[[package]] +name = "siphasher" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33f4fe9184a62d842c9ef383018f3306d8ba224fd9d836f56d7288308847c256" + +[[package]] +name = "skrifa" +version = "0.44.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819ab7d62b1d3e72d9d9dea5650bac30424f9111364bb94928dbf5ecad1baa68" +dependencies = [ + "bytemuck", + "read-fonts", +] + +[[package]] +name = "slab" +version = "0.4.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5" + +[[package]] +name = "slotmap" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" +dependencies = [ + "version_check", +] + +[[package]] +name = "smallvec" +version = "1.16.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b3dc8af474f516a851ff4bd12db780f948b9250ad37211e4eec0bccea54e01b" + +[[package]] +name = "smithay-client-toolkit" +version = "0.19.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.13.0", + "calloop-wayland-source 0.3.0", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 0.38.44", + "thiserror 1.0.69", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-client-toolkit" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0512da38f5e2b31201a93524adb8d3136276fa4fe4aafab4e1f727a82b534cc0" +dependencies = [ + "bitflags 2.13.2", + "calloop 0.14.5", + "calloop-wayland-source 0.4.1", + "cursor-icon", + "libc", + "log", + "memmap2", + "rustix 1.1.5", + "thiserror 2.0.21", + "wayland-backend", + "wayland-client", + "wayland-csd-frame", + "wayland-cursor", + "wayland-protocols", + "wayland-protocols-experimental", + "wayland-protocols-misc", + "wayland-protocols-wlr", + "wayland-scanner", + "xkeysym", +] + +[[package]] +name = "smithay-clipboard" +version = "0.7.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226" +dependencies = [ + "libc", + "smithay-client-toolkit 0.20.0", + "wayland-backend", +] + +[[package]] +name = "smol_str" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd538fb6910ac1099850255cf94a94df6551fbdd602454387d0adb2d1ca6dead" +dependencies = [ + "serde", +] + +[[package]] +name = "socket2" +version = "0.6.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "spirv" +version = "0.4.0+sdk-1.4.341.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9571ea910ebd84c86af4b3ed27f9dbdc6ad06f17c5f96146b2b671e2976744f" +dependencies = [ + "bitflags 2.13.2", +] + +[[package]] +name = "stable_deref_trait" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596" + +[[package]] +name = "static_assertions" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f" + +[[package]] +name = "strict-num" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731" + +[[package]] +name = "string_cache" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901" +dependencies = [ + "new_debug_unreachable", + "parking_lot", + "phf_shared 0.13.1", + "precomputed-hash", +] + +[[package]] +name = "string_cache_codegen" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69" +dependencies = [ + "phf_generator 0.13.1", + "phf_shared 0.13.1", + "proc-macro2", + "quote", +] + +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + +[[package]] +name = "syn" +version = "2.0.119" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "syn" +version = "3.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-ident", +] + +[[package]] +name = "sync_wrapper" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263" +dependencies = [ + "futures-core", +] + +[[package]] +name = "synstructure" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "sys-locale" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4" +dependencies = [ + "libc", +] + +[[package]] +name = "system-configuration" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a13f3d0daba03132c0aa9767f98351b3488edc2c100cda2d2ec2b04f3d8d3c8b" +dependencies = [ + "bitflags 2.13.2", + "core-foundation 0.9.4", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "tempfile" +version = "3.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" +dependencies = [ + "fastrand", + "getrandom 0.4.3", + "once_cell", + "rustix 1.1.5", + "windows-sys 0.61.2", +] + +[[package]] +name = "tendril" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5fed54709c5b3a53d09bb1c113ea4f5ceafd1e772ddcb0030a82e1d56c087b08" +dependencies = [ + "new_debug_unreachable", +] + +[[package]] +name = "termcolor" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" +dependencies = [ + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e" +dependencies = [ + "thiserror-impl 2.0.21", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.69" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "thread_local" +version = "1.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070" +dependencies = [ + "cfg-if", +] + +[[package]] +name = "tiff" +version = "0.11.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b63feaf3343d35b6ca4d50483f94843803b0f51634937cc2ec519fc32232bc52" +dependencies = [ + "fax", + "flate2", + "half", + "quick-error", + "weezl", + "zune-jpeg", +] + +[[package]] +name = "time" +version = "0.3.55" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134" +dependencies = [ + "deranged", + "num-conv", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109" + +[[package]] +name = "time-macros" +version = "0.2.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85" +dependencies = [ + "num-conv", + "time-core", +] + +[[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.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b1e27c91459209c2986af3dcf603a5a74a4368754ce37414f59acc971167f643" +dependencies = [ + "displaydoc", + "zerovec", +] + +[[package]] +name = "tinyvec" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee" + +[[package]] +name = "tokio" +version = "1.53.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ce3335fa71841cda333a58d7615b03901380ecf09d59b3296d21f8bbac0dde4e" +dependencies = [ + "bytes", + "libc", + "mio", + "pin-project-lite", + "socket2", + "windows-sys 0.61.2", +] + +[[package]] +name = "tokio-rustls" +version = "0.26.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db" +dependencies = [ + "rustls", + "tokio", +] + +[[package]] +name = "tokio-util" +version = "0.7.20" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b" +dependencies = [ + "bytes", + "futures-core", + "futures-sink", + "libc", + "pin-project-lite", + "tokio", +] + +[[package]] +name = "toml" +version = "1.1.8+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "20489e00e4d8741d6be680764cc12e270655e375a20d1011e844a9c3379e678d" +dependencies = [ + "serde_core", + "serde_spanned", + "toml_datetime", + "toml_parser", + "winnow", +] + +[[package]] +name = "toml_datetime" +version = "1.1.2+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053" +dependencies = [ + "serde_core", +] + +[[package]] +name = "toml_edit" +version = "0.25.17+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3641d5bbb5349a79e1020a242d251efbc546ad8048d133958323ce9c40a9c9c" +dependencies = [ + "indexmap", + "toml_datetime", + "toml_parser", + "winnow", +] + +[[package]] +name = "toml_parser" +version = "1.1.5+spec-1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c" +dependencies = [ + "winnow", +] + +[[package]] +name = "tower" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4" +dependencies = [ + "futures-core", + "futures-util", + "pin-project-lite", + "sync_wrapper", + "tokio", + "tower-layer", + "tower-service", +] + +[[package]] +name = "tower-http" +version = "0.6.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840" +dependencies = [ + "bitflags 2.13.2", + "bytes", + "futures-util", + "http", + "http-body", + "pin-project-lite", + "tower", + "tower-layer", + "tower-service", + "url", +] + +[[package]] +name = "tower-layer" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e" + +[[package]] +name = "tower-service" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3" + +[[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.119", +] + +[[package]] +name = "tracing-core" +version = "0.1.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" +dependencies = [ + "once_cell", + "valuable", +] + +[[package]] +name = "tracing-log" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3" +dependencies = [ + "log", + "once_cell", + "tracing-core", +] + +[[package]] +name = "tracing-subscriber" +version = "0.3.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319" +dependencies = [ + "matchers", + "nu-ansi-term", + "once_cell", + "regex-automata", + "sharded-slab", + "smallvec", + "thread_local", + "tracing", + "tracing-core", + "tracing-log", +] + +[[package]] +name = "tree_magic_mini" +version = "3.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8765b90061cba6c22b5831f675da109ae5561588290f9fa2317adab2714d5a6" +dependencies = [ + "memchr", + "nom", + "petgraph", +] + +[[package]] +name = "try-lock" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" + +[[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.3", +] + +[[package]] +name = "typenum" +version = "1.20.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20" + +[[package]] +name = "uds_windows" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e" +dependencies = [ + "memoffset", + "tempfile", + "windows-sys 0.61.2", +] + +[[package]] +name = "unicase" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "357cc3acc6a036009fd6c973ed009037c732d60d0b4f6c673e9041497482a28f" + +[[package]] +name = "unicode-general-category" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b993bddc193ae5bd0d623b49ec06ac3e9312875fdae725a975c51db1cc1677f" + +[[package]] +name = "unicode-ident" +version = "1.0.27" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563" + +[[package]] +name = "unicode-normalization" +version = "0.1.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "75cd3fb03d5288b3ba9a1ee103ac7e9cbb59f0b03d64f8ddfcc04dd42758a85d" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "unicode-properties" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d" + +[[package]] +name = "unicode-script" +version = "0.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "383ad40bb927465ec0ce7720e033cb4ca06912855fc35db31b5755d0de75b1ee" + +[[package]] +name = "unicode-segmentation" +version = "1.13.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8" + +[[package]] +name = "unicode-width" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254" + +[[package]] +name = "untrusted" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" + +[[package]] +name = "url" +version = "2.5.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", + "serde", +] + +[[package]] +name = "utf8_iter" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be" + +[[package]] +name = "uuid" +version = "1.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cc1186384beb7dd8eedea376413fd654937285ea6c9cfbb928dc3043ea4b606" +dependencies = [ + "js-sys", + "serde_core", + "wasm-bindgen", +] + +[[package]] +name = "valuable" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65" + +[[package]] +name = "vello_common" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bbb2141a2bca6e6d598e471fd4d1d7eed8e020aad6a28187edda07f091a325dd" +dependencies = [ + "bytemuck", + "fearless_simd", + "guillotiere", + "log", + "peniko", + "png", + "smallvec", + "thiserror 2.0.21", +] + +[[package]] +name = "vello_cpu" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ace506ca414548966fcf3c283be94eb1cad8254de488791ee698bf438b0890a9" +dependencies = [ + "bytemuck", + "glifo", + "hashbrown 0.17.1", + "png", + "vello_common", +] + +[[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 = "want" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b" +dependencies = [ + "try-lock", +] + +[[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.4+wasi-0.2.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487" +dependencies = [ + "wit-bindgen", +] + +[[package]] +name = "wasm-bindgen" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb54f33acc68fd454578d9820b0bde1a1a3d17aa17bb7b6595806d02886d409" +dependencies = [ + "cfg-if", + "once_cell", + "rustversion", + "wasm-bindgen-macro", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-futures" +version = "0.4.79" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3cbab34de2d982e9b48e18d216d04c4a6f641066ff19ffb699980f591ee3610e" +dependencies = [ + "js-sys", + "tokio", + "wasm-bindgen", +] + +[[package]] +name = "wasm-bindgen-macro" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2e29d0c35b16e224a7eeb5cd2d25e3e1968fbd65604117b44d3b789d00ee8535" +dependencies = [ + "quote", + "wasm-bindgen-macro-support", +] + +[[package]] +name = "wasm-bindgen-macro-support" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6f501a8bc3719dba86ef8ae4728879c08001bea749eb1333ac5b91e040e2a6b7" +dependencies = [ + "bumpalo", + "proc-macro2", + "quote", + "syn 3.0.9", + "wasm-bindgen-shared", +] + +[[package]] +name = "wasm-bindgen-shared" +version = "0.2.129" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23f0c9c52aa7cd7d77769a4cfe2a9adb1b331f489a41d912ce14513d5ab995c6" +dependencies = [ + "unicode-ident", +] + +[[package]] +name = "wayland-backend" +version = "0.3.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38a91b4eaddff87b1cd1074985e3713da4af2c49742d1b356b2c01670a67a078" +dependencies = [ + "cc", + "downcast-rs", + "rustix 1.1.5", + "scoped-tls", + "smallvec", + "wayland-sys", +] + +[[package]] +name = "wayland-client" +version = "0.31.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c36a0f861ad76d0901f2800b46321410d9f73f2ea88aac0650d86c32688073" +dependencies = [ + "bitflags 2.13.2", + "rustix 1.1.5", + "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.13.2", + "cursor-icon", + "wayland-backend", +] + +[[package]] +name = "wayland-cursor" +version = "0.31.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4a52d18780be9b1314328a3de5f930b73d2200112e3849ca6cb11822793fb34d" +dependencies = [ + "rustix 1.1.5", + "wayland-client", + "xcursor", +] + +[[package]] +name = "wayland-protocols" +version = "0.32.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23d0c813de3daa2ed6520af85a3bd49b0e722a3078506899aa9686fea58dc4b6" +dependencies = [ + "bitflags 2.13.2", + "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.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-misc" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e9567599ef23e09b8dad6e429e5738d4509dfc46b3b21f32841a304d16b29c8" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-plasma" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b6d8cf1eb2c1c31ed1f5643c88a6e53538129d4af80030c8cabd1f9fa884d91" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-protocols-wlr" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb04e52f7836d7c7976c78ca0250d61e33873c34156a2a1fc9474828ec268234" +dependencies = [ + "bitflags 2.13.2", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-scanner", +] + +[[package]] +name = "wayland-scanner" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "338e30461b3a2b67d70eb30a6d89f8e0c93a833e07d2ae89085cd070c4a00ac0" +dependencies = [ + "proc-macro2", + "quick-xml", + "quote", +] + +[[package]] +name = "wayland-sys" +version = "0.31.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8eab23fefc9e41f8e841df4a9c707e8a8c4ed26e944ef69297184de2785e3be" +dependencies = [ + "dlib", + "log", + "once_cell", + "pkg-config", +] + +[[package]] +name = "web-sys" +version = "0.3.106" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "88261b9deccee56594c11a3460c462c41f58d148598fe70ad77070126a68aba4" +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 = "web_atoms" +version = "0.2.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba8b815c1b593dc0baf78dd0f4fc8fdb2de53198fb1163738093e9a311c33fb3" +dependencies = [ + "phf 0.13.1", + "phf_codegen", + "string_cache", + "string_cache_codegen", +] + +[[package]] +name = "webbrowser" +version = "1.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62c35be770821a214dbc362fc26908c853e776c0004294d0b10b8a6bad582f94" +dependencies = [ + "jni", + "log", + "ndk-context", + "objc2 0.6.5", + "objc2-app-kit 0.3.2", + "objc2-foundation 0.3.2", + "url", + "web-sys", +] + +[[package]] +name = "webpki-root-certs" +version = "1.0.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b96554aa2acc8ccdb7e1c9a58a7a68dd5d13bccc69cd124cb09406db612a1c9b" +dependencies = [ + "rustls-pki-types", +] + +[[package]] +name = "weezl" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88" + +[[package]] +name = "wgpu" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527ccdf43dd5b2e8676eed9984ce00e2bbb0a1b85b70c1969dcb6cd2eb55ab9e" +dependencies = [ + "arrayvec", + "bitflags 2.13.2", + "bytemuck", + "cfg-if", + "cfg_aliases", + "document-features", + "hashbrown 0.17.1", + "js-sys", + "log", + "naga", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "smallvec", + "static_assertions", + "wasm-bindgen", + "wasm-bindgen-futures", + "web-sys", + "wgpu-core", + "wgpu-hal", + "wgpu-types", +] + +[[package]] +name = "wgpu-core" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14c018fce9b6270aa203c2fdd56f3cce996713534bd757e4ea58c8560b121f14" +dependencies = [ + "arrayvec", + "bit-set", + "bit-vec", + "bitflags 2.13.2", + "bytemuck", + "cfg_aliases", + "document-features", + "hashbrown 0.17.1", + "indexmap", + "log", + "naga", + "naga-types", + "once_cell", + "parking_lot", + "portable-atomic", + "profiling", + "raw-window-handle", + "rustc-hash 1.1.0", + "smallvec", + "thiserror 2.0.21", + "wgpu-core-deps-apple", + "wgpu-core-deps-emscripten", + "wgpu-core-deps-wasm", + "wgpu-core-deps-windows-linux-android", + "wgpu-hal", + "wgpu-naga-bridge", + "wgpu-types", +] + +[[package]] +name = "wgpu-core-deps-apple" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "061f3d319a40d39d00b1ecc2c33b89fe21d4e6fe01859df3500a3a8ecccd6b68" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-emscripten" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d98b86cf4abf524a902dd35f18ca6a3f08fc2ae9847c8f10b48e30491b1f0b86" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-wasm" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d260ca2ca8adc654f513a869bf3cac0b47f5b8d3f87803d6942015f8de597aae" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-core-deps-windows-linux-android" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7586165fd5f6d881cb9ce4bb71f40d6caab2c0f1837e3fc1d9788a197fb6004f" +dependencies = [ + "wgpu-hal", +] + +[[package]] +name = "wgpu-hal" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6b7fb58561a792bc237628ba0792e332de418fefe145f13b5ed8201e6d52f58" +dependencies = [ + "android_system_properties", + "arrayvec", + "ash", + "bit-set", + "bitflags 2.13.2", + "block2 0.6.2", + "bytemuck", + "cfg-if", + "cfg_aliases", + "glow", + "glutin_wgl_sys", + "gpu-allocator", + "hashbrown 0.17.1", + "js-sys", + "khronos-egl", + "libc", + "libloading", + "log", + "naga", + "naga-types", + "ndk-sys", + "objc2 0.6.5", + "objc2-core-foundation", + "objc2-core-graphics", + "objc2-foundation 0.3.2", + "objc2-metal 0.3.2", + "objc2-quartz-core 0.3.2", + "once_cell", + "ordered-float", + "parking_lot", + "portable-atomic", + "portable-atomic-util", + "profiling", + "range-alloc", + "raw-window-handle", + "raw-window-metal", + "renderdoc-sys", + "smallvec", + "static_assertions", + "thiserror 2.0.21", + "wasm-bindgen", + "wayland-sys", + "web-sys", + "wgpu-naga-bridge", + "wgpu-types", + "windows", + "windows-core", + "windows-result", +] + +[[package]] +name = "wgpu-naga-bridge" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d2f62e73117bb7a62bfd9c5a5841438a823f6566c6442a808ee269d2d055c081" +dependencies = [ + "naga", + "wgpu-types", +] + +[[package]] +name = "wgpu-types" +version = "30.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99dad6f1fbdbbdb4c278a6508b059d44688f5cebddf78d005a46a31340269286" +dependencies = [ + "bitflags 2.13.2", + "bytemuck", + "js-sys", + "log", + "naga-types", + "raw-window-handle", + "static_assertions", + "web-sys", +] + +[[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 = "windows" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580" +dependencies = [ + "windows-collections", + "windows-core", + "windows-future", + "windows-numerics", +] + +[[package]] +name = "windows-collections" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b2d95af1a8a14a3c7367e1ed4fc9c20e0a26e79551b1454d72583c97cc6610" +dependencies = [ + "windows-core", +] + +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-future" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb" +dependencies = [ + "windows-core", + "windows-link", + "windows-threading", +] + +[[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.119", +] + +[[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.119", +] + +[[package]] +name = "windows-link" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" + +[[package]] +name = "windows-numerics" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26" +dependencies = [ + "windows-core", + "windows-link", +] + +[[package]] +name = "windows-registry" +version = "0.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "02752bf7fbdcce7f2a27a742f798510f3e5ad88dbe84871e5168e2120c3d5720" +dependencies = [ + "windows-link", + "windows-result", + "windows-strings", +] + +[[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.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + +[[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.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-threading" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3949bd5b99cafdf1c7ca86b43ca564028dfe27d66958f2470940f73d86d75b37" +dependencies = [ + "windows-link", +] + +[[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.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.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.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.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.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.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + +[[package]] +name = "winit" +version = "0.30.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a6755fa58a9f8350bd1e472d4c3fcc25f824ec358933bba33306d0b63df5978d" +dependencies = [ + "ahash", + "android-activity", + "atomic-waker", + "bitflags 2.13.2", + "block2 0.5.1", + "bytemuck", + "calloop 0.13.0", + "cfg_aliases", + "concurrent-queue", + "core-foundation 0.9.4", + "core-graphics", + "cursor-icon", + "dpi", + "js-sys", + "libc", + "memmap2", + "ndk", + "objc2 0.5.3", + "objc2-app-kit 0.2.2", + "objc2-foundation 0.2.2", + "objc2-ui-kit 0.2.2", + "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 = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81" +dependencies = [ + "memchr", +] + +[[package]] +name = "wit-bindgen" +version = "0.57.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e" + +[[package]] +name = "wl-clipboard-rs" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d7888ccd4896447b2d14d3a9350a85df2aeb6f181e2e7a31349d104ac46cac1" +dependencies = [ + "libc", + "log", + "os_pipe", + "rustix 1.1.5", + "thiserror 2.0.21", + "tree_magic_mini", + "wayland-backend", + "wayland-client", + "wayland-protocols", + "wayland-protocols-wlr", +] + +[[package]] +name = "writeable" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc" + +[[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.5", + "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.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "163b33ed8786455e2fa5d72f554057ce3f3182425434f756cd39c99839d88e23" + +[[package]] +name = "xkbcommon-dl" +version = "0.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5" +dependencies = [ + "bitflags 2.13.2", + "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.29" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7" + +[[package]] +name = "yeslogic-fontconfig-sys" +version = "6.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d8b8abf912b9a29ff112e1671c97c33636903d13a69712037190e6805af4f76" +dependencies = [ + "dlib", + "once_cell", + "pkg-config", +] + +[[package]] +name = "yoke" +version = "0.8.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5" +dependencies = [ + "stable_deref_trait", + "yoke-derive", + "zerofrom", +] + +[[package]] +name = "yoke-derive" +version = "0.8.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", + "synstructure", +] + +[[package]] +name = "zbus" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5db4be7c075cb421e4b7ee645541604239bd243ba7c357511f4ff3a74b555907" +dependencies = [ + "async-broadcast", + "async-executor", + "async-io", + "async-lock", + "async-process", + "async-recursion", + "async-task", + "async-trait", + "blocking", + "enumflags2", + "event-listener", + "futures-core", + "futures-lite", + "hex", + "libc", + "ordered-stream", + "rustix 1.1.5", + "serde", + "serde_repr", + "tracing", + "uds_windows", + "uuid", + "windows-sys 0.61.2", + "winnow", + "zbus_macros", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zbus-lockstep" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6998de05217a084b7578728a9443d04ea4cd80f2a0839b8d78770b76ccd45863" +dependencies = [ + "zbus_xml", + "zvariant", +] + +[[package]] +name = "zbus-lockstep-macros" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "10da05367f3a7b7553c8cdf8fa91aee6b64afebe32b51c95177957efc47ca3a0" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", + "zbus-lockstep", + "zbus_xml", + "zvariant", +] + +[[package]] +name = "zbus_macros" +version = "5.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2990635d09ade6df1868f72f8cac69a876a90981e8bd3c40b1be413f8dc88f40" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.9", + "zbus_names", + "zvariant", + "zvariant_utils", +] + +[[package]] +name = "zbus_names" +version = "4.3.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "812a12be4ead7a59e18ea8f047d08add0066b73bc62fc1467066a2472ae088dd" +dependencies = [ + "serde", + "winnow", + "zvariant", +] + +[[package]] +name = "zbus_xml" +version = "5.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1586c021a01ca0a9216dcd874e546382e156a5cbab5fab6cb5f10087e22682a" +dependencies = [ + "serde", + "winnow", + "zbus_names", + "zvariant", +] + +[[package]] +name = "zcheapstr" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d1afec51604565183aeb5c54c20aeab286120d4e4460f7f76e3e8bb8c0d99473" +dependencies = [ + "serde", +] + +[[package]] +name = "zerocopy" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.8.63" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f" +dependencies = [ + "proc-macro2", + "quote", + "syn 2.0.119", +] + +[[package]] +name = "zerofrom" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272" +dependencies = [ + "zerofrom-derive", +] + +[[package]] +name = "zerofrom-derive" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", + "synstructure", +] + +[[package]] +name = "zeroize" +version = "1.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879" + +[[package]] +name = "zerotrie" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f" +dependencies = [ + "displaydoc", + "yoke", + "zerofrom", +] + +[[package]] +name = "zerovec" +version = "0.11.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb0464e17806c1d976d5cba29399c7f08e516e279e2ba493f63123b5fca67dd8" +dependencies = [ + "yoke", + "zerofrom", + "zerovec-derive", +] + +[[package]] +name = "zerovec-derive" +version = "0.11.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34df6fc39dbd26ddc9c10e6a2984476e13acce22e64e4487636ef494369225da" +dependencies = [ + "proc-macro2", + "quote", + "syn 3.0.9", +] + +[[package]] +name = "zlib-rs" +version = "0.6.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112" + +[[package]] +name = "zmij" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b" + +[[package]] +name = "zune-core" +version = "0.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b" + +[[package]] +name = "zune-jpeg" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296" +dependencies = [ + "zune-core", +] + +[[package]] +name = "zvariant" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "80bf6d6cd6a4b601acb64cfb8284cdc643fcfa75ef26ae3c46ec8aa4e8a1fbb7" +dependencies = [ + "endi", + "enumflags2", + "serde", + "winnow", + "zcheapstr", + "zvariant_derive", + "zvariant_utils", +] + +[[package]] +name = "zvariant_derive" +version = "5.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2672456ba1cb54b5eaec136e63135b3c7495fb938e53b28a62e633496d486d" +dependencies = [ + "proc-macro-crate", + "proc-macro2", + "quote", + "syn 3.0.9", + "zvariant_utils", +] + +[[package]] +name = "zvariant_utils" +version = "4.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bad0294361a320b694a328460dc73add56c306150f5cb6bfafc44446120008a3" +dependencies = [ + "proc-macro2", + "quote", + "serde", + "syn 3.0.9", + "winnow", +] diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..c089c8a --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,37 @@ +[package] +name = "curator" +version = "2.0.0" +edition = "2024" +description = "Jellyfin-first movie and series library manager" +authors = ["Jan Doubravský "] +default-run = "curator" + +[dependencies] +anyhow = "1.0.104" +chrono = "0.4.45" +dirs = "7.0.0" +dotenvy = "0.15.7" +eframe = "0.37.0" +ego-tree = "0.11.0" +egui = "0.37.0" +egui_extras = "0.37.0" +file-id = "0.2.3" +indexmap = "2.14.2" +rand = "0.10.3" +regex = "1.13.1" +reqwest = { version = "0.13.5", features = ["blocking", "cookies", "json", "query"] } +rfd = "0.17.2" +roxmltree = "0.21.1" +scraper = "0.27.0" +serde = { version = "1.0.229", features = ["derive"] } +serde_json = { version = "1.0.154", features = ["preserve_order"] } +sha2 = "0.11.1" +thiserror = "2.0.21" +tracing = "0.1.44" +tracing-subscriber = { version = "0.3.23", features = ["env-filter"] } +unicode-normalization = "0.1.26" +url = "2.5.8" + +[dev-dependencies] +egui_kittest = { version = "0.37.0", features = ["eframe", "wgpu", "snapshot"] } +tempfile = "3.27.0" diff --git a/Curator.py b/Curator.py deleted file mode 100644 index 963ef5c..0000000 --- a/Curator.py +++ /dev/null @@ -1,35 +0,0 @@ -# Imports -import contextlib - -from src.core.file_manager import FileManager -from src.core.tag_manager import TagManager -from src.ui.qt_app import run - - -def _use_system_certificates() -> None: - """Make HTTPS (ČSFD fetching) use the OS certificate store. - - Required behind corporate SSL inspection, where the proxy's root CA is in the - Windows trust store but not in certifi's bundle. Best-effort; ignored if the - optional `truststore` package is unavailable. - """ - with contextlib.suppress(Exception): - import truststore - - truststore.inject_into_ssl() - - -class State: - def __init__(self) -> None: - self.tagmanager = TagManager() - self.filehandler = FileManager(self.tagmanager) - - -def main() -> None: - _use_system_certificates() - state = State() - run(state.filehandler, state.tagmanager) - - -if __name__ == "__main__": - main() diff --git a/Curator.spec b/Curator.spec deleted file mode 100644 index 48bff83..0000000 --- a/Curator.spec +++ /dev/null @@ -1,38 +0,0 @@ -# -*- mode: python ; coding: utf-8 -*- - - -a = Analysis( - ['Curator.py'], - pathex=[], - binaries=[], - datas=[], - hiddenimports=[], - hookspath=[], - hooksconfig={}, - runtime_hooks=[], - excludes=[], - noarchive=False, - optimize=0, -) -pyz = PYZ(a.pure) - -exe = EXE( - pyz, - a.scripts, - a.binaries, - a.datas, - [], - name='Curator', - debug=False, - bootloader_ignore_signals=False, - strip=False, - upx=True, - upx_exclude=[], - runtime_tmpdir=None, - console=False, - disable_windowed_traceback=False, - argv_emulation=False, - target_arch=None, - codesign_identity=None, - entitlements_file=None, -) diff --git a/DESIGN_DOCUMENT_PYTHON.md b/DESIGN_DOCUMENT_PYTHON.md deleted file mode 100644 index cdbf6c9..0000000 --- a/DESIGN_DOCUMENT_PYTHON.md +++ /dev/null @@ -1,235 +0,0 @@ -# Python Development Guidelines - -**Document Version:** v12 - -> **Note on Versioning:** -> - This document version is independent — reused across projects -> - **Project version** source of truth: `pyproject.toml` -> - Version propagates: `pyproject.toml` → `constants.py` → code -> - `CHANGELOG.md` uses project version from `pyproject.toml` - -## Related Documents - -- **README.md** — Project overview, tool descriptions, build instructions -- **AGENTS.md** — Rules for AI assistants -- **PROJECT.md** — Project goals and current state -- **CHANGELOG.md** — Version history - -### Documentation Organization - -All detailed documentation of features and systems belongs in the `docs/` folder, not in the project root. - -The root directory contains only the core documents: `README.md`, `CLAUDE.md`, `AGENTS.md`, `DESIGN_DOCUMENT_PYTHON.md`, `PROJECT.md`, `CHANGELOG.md`. - ---- - -## 1. Code Style - -- **PEP8** with 120-character lines (Ruff) -- **4 spaces** indentation -- **snake_case** functions/variables, **PascalCase** classes, **SCREAMING_SNAKE_CASE** constants -- **Type hints** required on all functions -- **Import order**: stdlib → third-party → local - ---- - -## 2. SOLID Principles - -- **SRP** — One class = one responsibility -- **OCP** — Open for extension, closed for modification -- **LSP** — Subclasses substitutable for parents -- **ISP** — Small interfaces over large ones -- **DIP** — Depend on abstractions - ---- - -## 3. Dependency Injection - -Pass dependencies via constructor. Never instantiate dependencies inside a class. - ---- - -## 4. Protocols Over Inheritance - -Prefer `typing.Protocol` and composition over class inheritance. - ---- - -## 5. Data Classes - -Use `@dataclass` for internal data structures, `pydantic.BaseModel` for data that requires validation. - ---- - -## 6. Logging and Console Output - -### Logging — loguru - -Use **loguru** for all internal logging. Never log secrets, passwords, tokens, or API keys. - -#### Log sinks - -| Sink | Level | Format | -|------|-------|--------| -| File `logs/{AppName}_{time}.log` | `DEBUG` | full (timestamp + level + message) | -| stdout | `INFO` | full | - -File sink retains **max 10 log files** (`retention=10`). No rotation by size — each run creates a new file via `{time}` in the filename. - -The `DEBUG` sink is only active when `constants.DEFAULT_DEBUG` is `True` (controlled by `ENV_DEBUG=true` in `.env`). - -Additional sinks (e.g. GUI log panels) may be added per project as needed. - -#### Log levels - -| Level | When to use | -|-------|-------------| -| `DEBUG` | Per-item detail: individual file reads/writes, cache hits, per-row operations | -| `INFO` | User-visible milestones: file loaded, process started/finished, file saved | -| `WARNING` | Recoverable issues: fallback used, unexpected but non-fatal state | -| `ERROR` | Failures the user must know about: missing file, failed save, missing config — operation cannot continue | - -### Console output — print() - -`print()` is **allowed** for direct user-facing console communication: input prompts, progress lines, and result summaries. This applies to console tools that interact with the user through stdin/stdout. - -`print()` is **not** a substitute for loguru. It must not be used for debugging or internal event tracking. - ---- - -## 7. Environment and Secrets - -- Secrets in `.env` file; controlled by `ENV_DEBUG=true/false` -- Load via `python-dotenv` and `os.getenv()` -- Never commit `.env` - ---- - -## 8. Error Handling - -Define specific exception types. Use a fail-fast approach — surface errors early rather than silently continuing. - ---- - -## 9. Testing - -- **pytest** only — no `unittest`, no `TestCase` classes, no `self.assert*` -- Arrange-Act-Assert pattern -- Test naming: `test__` - ---- - -## 10. Tooling - -| Tool | Purpose | -|------|---------| -| **Ruff** | Formatting and linting | -| **mypy** | Static type checking | -| **pytest** | Testing | - -Run before every commit: -```bash -uv run ruff check -uv run mypy -uv run pytest -``` - ---- - -## 11. uv - -```bash -uv sync # Install all dependencies -uv add # Add runtime dependency -uv add --dev # Add dev dependency -uv remove # Remove dependency -uv run # Run command in virtualenv -uv python install # Install a uv-managed Python -``` - -Never edit `pyproject.toml` directly to add or remove dependencies. - -The interpreter is a uv-managed Python — no pyenv, no system Python. - -### uv.lock - -`uv.lock` **is committed** for applications — it pins the exact dependency graph and keeps builds reproducible. - ---- - -## 12. Project Structure - -``` -project/ -├── entry_point.py # Entry point(s) — named by purpose or tool name -├── src/ # All application modules -├── tests/ # Tests -├── docs/ # Detailed documentation -├── .venv/ # Virtual environment (managed by uv) -└── pyproject.toml # Project config and dependencies -``` - -A project may have multiple entry points (e.g. `cli.py`, `gui.py`, or per-tool scripts). - ---- - -## 13. Distribution and Deployment - -When a project is distributed as a standalone executable (no Python required on target machine): - -- Use **PyInstaller** to compile each entry point into a single `.exe` -- Each tool has its own `.spec` file in the project root -- **Console tools use `console=True`** in the `.spec` — they rely on `input()` and `print()` for user interaction. GUI applications turn the console off with `ENV_BUILD_CONSOLE=false`; that flag is independent of `ENV_DEBUG` -- Compiled executables are stored in `dist/` and **committed to the repository** — the repository serves as the distribution channel for internal teams -- `.gitignore` must **not** exclude `dist/` in projects that use this deployment model - -### prebuild.py - -`prebuild.py` runs before PyInstaller. It verifies that the active interpreter is the project `.venv`, prints the resolved version, and rewrites the `console=` line in the `.spec` to match `.env`. - -| Variable | Default | Effect | -|----------|---------|--------| -| `ENV_BUILD_CONSOLE` | `true` | Value written into `console=` in the `.spec` | -| `ENV_BUILD_SPEC` | `.spec` | Which `.spec` file to update | - -`prebuild.py` touches one `.spec` per run — with several entry points, set `ENV_BUILD_SPEC` for each build. - -Build commands: -```bash -uv run python prebuild.py -uv run pyinstaller ToolName.spec -``` - -> This section applies only to projects that produce standalone executables. Skip for libraries or web services. - ---- - -## 14. Versioning - -- Follow **semantic versioning**: `MAJOR.MINOR.PATCH` -- Version is defined in `pyproject.toml` under `[project]` -- Always ask before bumping the version — never increment automatically -- Update `CHANGELOG.md` before bumping the version - ---- - -## 15. Documentation and Task Management - -- Keep `PROJECT.md` and `CHANGELOG.md` up to date when making changes -- Document architectural changes in this file or in `docs/` - -### Task notation - -Tasks are written as single-line comments directly in code, using the **Todo Tree** tags defined in `AGENTS.md` (`TODO`, `FIXME`, `BUG`, `HACK`, `NOTE`). `PROJECT.md` carries only cross-cutting tasks that have no single place in the code. - -```python -# TODO: extract this into a separate loader -# FIXME: crashes on an empty file -# BUG: rounding is off by one cent on negative amounts -# HACK: temporary workaround until the API adds paging -# NOTE: order matters here, the parser is stateful -``` - -No other task format is used — **no checkboxes, no numbered lists in documentation**. - -If a tag already exists at a specific location in code, do not repeat it in `PROJECT.md`. diff --git a/DESIGN_DOCUMENT_RUST.md b/DESIGN_DOCUMENT_RUST.md new file mode 100644 index 0000000..bc5955c --- /dev/null +++ b/DESIGN_DOCUMENT_RUST.md @@ -0,0 +1,223 @@ +# Rust Application Development Guidelines + +**Document Version:** v4 + +> **Note on Versioning:** +> - This document version is independent — reused across projects +> - **Project version** source of truth: `Cargo.toml` under `[package]` +> - `CHANGELOG.md` uses project version from `Cargo.toml` + +## Related Documents + +- **README.md** — Project overview, build instructions, usage +- **AGENTS.md** — Rules for AI assistants +- **PROJECT.md** — Project goals and current state +- **CHANGELOG.md** — Version history + +### Documentation Organization + +All detailed documentation of features and systems belongs in the `docs/` folder, not in the project root. + +The root directory contains only the core documents: `README.md`, `CLAUDE.md`, `AGENTS.md`, `DESIGN_DOCUMENT_RUST.md`, `PROJECT.md`, `CHANGELOG.md`. + +--- + +## 1. Code Style + +- **Rust edition:** 2024 (requires Rust 1.85 or newer) +- **100-character lines** (rustfmt default `max_width`) +- Format with **rustfmt** — run `cargo fmt` before every commit +- Lint with **clippy** — run `cargo clippy -- -D warnings` before every commit +- **snake_case** functions/variables/modules, **PascalCase** types/traits, **SCREAMING_SNAKE_CASE** constants +- Keep functions short and focused — one responsibility per function + +--- + +## 2. Cargo + +```bash +cargo add # Add runtime dependency +cargo add --dev # Add dev dependency +cargo remove # Remove dependency +cargo build # Debug build +cargo build --release # Release build +cargo run # Run debug build +cargo run --release # Run release build +cargo test # Run all tests +cargo fmt # Format code +cargo clippy -- -D warnings # Lint (treat warnings as errors) +``` + +Never edit `Cargo.toml` dependency versions by hand — use `cargo add`. + +--- + +## 3. Project Structure + +``` +project/ +├── src/ +│ ├── main.rs # Entry point +│ ├── lib.rs # Optional: shared library code +│ └── / +│ └── mod.rs +├── tests/ # Integration tests +├── docs/ # Detailed documentation +├── Cargo.toml +└── Cargo.lock # Commit for applications, not for libraries +``` + +A project may have multiple binaries under `src/bin/`. + +--- + +## 4. Error Handling + +- Use **thiserror** for defining typed errors in library/domain code +- Use **anyhow** for application-level error propagation (`main`, CLI handlers) +- Never use `.unwrap()` in production code — use `?` or explicit handling +- `.expect("reason")` is acceptable only when the invariant is guaranteed and documented + +--- + +## 5. Logging + +Use **tracing** for structured logging. + +```toml +[dependencies] +tracing = "0.1" +tracing-subscriber = { version = "0.3", features = ["env-filter"] } +``` + +```rust +use tracing::{debug, info, warn, error}; + +fn main() { + tracing_subscriber::fmt() + .with_env_filter(tracing_subscriber::EnvFilter::from_default_env()) + .init(); +} +``` + +Control log level via `RUST_LOG` environment variable: + +```bash +RUST_LOG=debug cargo run +RUST_LOG=my_app=info,warn cargo run +``` + +#### Log levels + +| Level | When to use | +|-------|-------------| +| `debug` | Per-item detail: internal state, cache hits, per-item operations | +| `info` | User-visible milestones: process started/finished, file saved | +| `warn` | Recoverable issues: fallback used, unexpected but non-fatal state | +| `error` | Failures the user must know about — operation cannot continue | + +Never use `println!` for debugging or internal logging. + +--- + +## 6. Environment and Secrets + +- Store secrets in `.env` file +- Load via **dotenvy** crate and `std::env::var()` +- Never commit `.env` + +```rust +dotenvy::dotenv().ok(); +let api_key = std::env::var("API_KEY").expect("API_KEY must be set"); +``` + +--- + +## 7. Testing + +- Use Rust's built-in test framework — `#[test]` and `#[cfg(test)]` +- Unit tests live in the same file as the code, in a `mod tests` block +- Integration tests live in `tests/` +- Use `assert_eq!`, `assert!`, `assert_ne!` — no external test frameworks needed +- Test naming: `test__` + +```rust +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_parse_valid_input() { + assert_eq!(parse("42"), Ok(42)); + } +} +``` + +--- + +## 8. Tooling + +| Tool | Purpose | +|------|---------| +| **rustfmt** | Code formatting | +| **clippy** | Linting | +| **cargo test** | Testing | +| **cargo build --release** | Production build | + +Run before every commit: +```bash +cargo fmt +cargo clippy -- -D warnings +cargo test +``` + +--- + +## 9. Distribution + +For standalone executables: + +```bash +cargo build --release +# Binary is at: target/release/ +``` + +For cross-compilation (e.g. Windows from Linux): +```bash +cargo install cross +cross build --release --target x86_64-pc-windows-gnu +``` + +`Cargo.lock` **is committed** for applications — it ensures reproducible builds. + +--- + +## 10. Versioning + +- Follow **semantic versioning**: `MAJOR.MINOR.PATCH` +- Version is defined in `Cargo.toml` under `[package]` +- Always ask before bumping the version — never increment automatically +- Update `CHANGELOG.md` before bumping the version + +--- + +## 11. Documentation and Task Management + +- Keep `PROJECT.md` and `CHANGELOG.md` up to date when making changes +- Document architectural changes in this file or in `docs/` + +### Task notation + +Tasks are written as single-line comments directly in code, using the **Todo Tree** tags defined in `AGENTS.md` (`TODO`, `FIXME`, `BUG`, `HACK`, `NOTE`). `PROJECT.md` carries only cross-cutting tasks that have no single place in the code. + +```rust +// TODO: extract this into a separate module +// FIXME: panics on an empty slice +// BUG: off-by-one when the buffer is exactly full +// HACK: temporary workaround until the crate adds paging +// NOTE: order matters here, the parser is stateful +``` + +No other task format is used — **no checkboxes, no numbered lists in documentation**. + +If a tag already exists at a specific location in code, do not repeat it in `PROJECT.md`. diff --git a/PROJECT.md b/PROJECT.md index 586ceb9..e684ca2 100644 --- a/PROJECT.md +++ b/PROJECT.md @@ -39,27 +39,27 @@ Curator manages a personal movie library based on two folders: ## Current state -- Inherited from Tagger: `Tag`, `TagManager`, `File` (sidecar metadata), - `FileManager` (folder scan, filtering, ignore patterns), 3-level config, - `HardlinkManager` (create/sync/cleanup), pytest suite. -- Rename Tagger → Curator done across code, spec, config filenames - (`.Curator.!gtag` / `.Curator.!ftag`) and tests. -- **PySide6 GUI** (`src/ui/qt_app.py`) reframed around the Filmotéka workflow is - the entry point; the old tkinter `src/ui/gui.py` is retained for reference. -- **Pool + Filmotéka wired up:** global config holds `pool_dir` / `filmoteka_dir`; - `FileManager` creates `Filmy`/`Seriály`, imports movies (copy → `Title.ext`), - loads the pool, and the GUI generates the Filmotéka tree via `HardlinkManager`. -- `File` carries `title` + `csfd_link`. **Pool metadata lives in a unified index** - (`/.Curator.!index`, see `pool_index.py`); `File` writes there when an - index is injected. Without an index a `File` is an in-memory object only — the - old per-file `.!tag` sidecars and the per-folder `.!ftag` config have been - removed. +- **Rust rewrite (branch `rust`).** Curator is a Rust application: the core + (`src/core/`) is a library with the same behaviour and on-disk formats as the + Python version (pool index v2, tag schema, naming, global config keys), and + the GUI is egui/eframe (`src/ui/`). An existing pool opens unchanged. The + Python sources live on in the history of `devel` as the reference. +- `FileManager` is the service layer; `File` is a view on one media entry of an + identity-keyed movie record in `/.Curator.!index`; series are scanned + live from disk. +- The standalone `tipy-dne` binary replaces `scripts/tipy_dne.py` (which had + stopped finding movies after the index moved to v2). The one-off Python + migration scripts for old ČSFD tag formats were not ported. +- Global config moved from `.Curator.!gtag` next to the script to the platform + config directory (`CURATOR_CONFIG` overrides it); an old `.Curator.!gtag` in + the working directory is picked up on first run. ### GUI decision -The GUI was **reframed around the Filmotéka** (not kept as a generic tagger) and -**rewritten in PySide6**: Pool/Filmotéka setup, Import movie, tag-filter sidebar, -movie table, and one-click Filmotéka generation. +The GUI is **egui** (eframe): pure Rust, one static binary, straightforward +Windows builds. It mirrors the PySide6 layout — menu, tag-filter sidebar, movie +and series table, detail panel, status bar — and every dialog of the Python +version. Long operations run in background tasks with progress and cancel. ## Design decisions diff --git a/README.md b/README.md index e3b125c..2d598fa 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # Curator -Curator is a PySide6 desktop app for managing a **Jellyfin-first movie and series -library**. You import video files into a managed **pool**; Curator identifies them -through **TMDb**, names and lays them out the way Jellyfin expects, and can -generate a genre-split **miniDLNA / Filmotéka** tree of hardlinks for dumb DLNA -players — without ever duplicating the video data on disk. +Curator is a desktop app for managing a **Jellyfin-first movie and series +library**. You import video files into a managed **pool**; Curator identifies +them through **TMDb**, names and lays them out the way Jellyfin expects, and can +generate a genre-split **miniDLNA** tree of hardlinks for simple DLNA players — +without ever duplicating the video data on disk. -Metadata (posters, plots, `.nfo` files) is Jellyfin's job; Curator owns the files, -their names and the library structure. +Metadata (posters, plots, `.nfo` files) is Jellyfin's job; Curator owns the +files, their names and the library structure. Written in Rust with an egui GUI. ## Concepts @@ -17,72 +17,75 @@ their names and the library structure. | Kind | Holds | Layout | |------|-------|--------| - | `movie` | movies | `Title (rok) [tmdbid].ext`, or a folder once a film has several versions | - | `series` | series | `Series (rok) [tmdbid]/Season NN/SxxEyy - Series.ext` | + | `movie` | movies | `Title (rok) [tmdbid-N].ext`, or a folder once a film has several versions | + | `series` | series | `Series (rok) [tmdbid-N]/Season NN/SxxEyy - Series.ext` | | `mixed` | movies and series together | as above, side by side | | `homevideo` | files without a TMDb id | mirrored as-is | - **Pool index** — Curator's own metadata (TMDb id, ČSFD link, versions, tags, library settings) lives in one `.Curator.!index` JSON file at the pool root. - **miniDLNA output** — a generated tree of **hardlinks** into the pool, built - from the genres/years/ratings in Jellyfin's NFO files. It is disposable: delete - it and regenerate it at any time. + from genres / years / countries / ratings. It is disposable: delete it and + regenerate it at any time. ## Features -- Import movies and episodes with a mandatory **TMDb id**; Czech titles come from - TMDb, with **ČSFD** as a fallback and as a bridge for finding the right TMDb id. -- **Multiple versions** of one film (2D/3D, 4K, director's cut) and **multi-part** - films and episodes, named so Jellyfin groups them. +- Import movies and episodes with a **TMDb id**; Czech titles come from TMDb, + with **ČSFD** as a fallback and as a bridge for finding the right TMDb id. +- **Multiple versions** of one film (2D/3D, 4K, director's cut) and + **multi-part** films and episodes, named so Jellyfin groups them. - Subtitle sidecars follow their video through renames. -- Duplicate check, video integrity check (FFmpeg), library statistics. -- Jellyfin integration: trigger a library scan, read what Jellyfin has. +- Duplicate check, video integrity check (FFmpeg), library statistics, + index/disk consistency check. +- Jellyfin integration: trigger a library scan, verify the pool against it. - miniDLNA tree scoped per library, with "Tipy dne" and "Nově přidané" folders. ## Requirements -- [uv](https://docs.astral.sh/uv/) — manages Python 3.14 and all dependencies +- Rust 1.85+ (`rustup`), for building - `ffmpeg` / `ffprobe` on `PATH` — optional, for the integrity check ## Configuration -Secrets and settings are read from a `.env` file in the project root (never -committed): +Secrets and settings are read from a `.env` file in the working directory +(never committed): | Variable | Purpose | |----------|---------| -| `TMDB_API_KEY` | TMDb API key — required for identifying movies and series | +| `TMDB_API_KEY` | TMDb API key — needed to identify movies and series | | `TMDB_LANGUAGE` | TMDb language, default `cs-CZ` | | `JELLYFIN_URL` | Jellyfin server URL — optional, for the Jellyfin menu | | `JELLYFIN_API_KEY` | Jellyfin API key — optional | -| `ENV_DEBUG` | `true` enables debug mode | +| `ENV_DEBUG` | `true` enables debug logging and the `-DEV` title | -The pool and output folders are chosen in the app (*Pool* menu). +The pool and output folders are chosen in the app (*Pool* menu) and stored in +the global config (`~/.config/curator/.Curator.!gtag` on Linux, overridable with +`CURATOR_CONFIG`). ## Running ```bash -uv sync -uv run python Curator.py +cargo run --release ``` ## Development ```bash -uv run pytest # tests -uv run ruff check # lint -uv run ruff format # format -uv run mypy # type checking +cargo fmt # format +cargo clippy -- -D warnings # lint +cargo test # unit tests + headless UI tests +cargo doc --open # API reference ``` -Detailed documentation — architecture and a per-module reference — is in -[`docs/`](docs/README.md). +`cargo run --example screenshot -- out.png [--action edit]` renders the window +offscreen to a PNG. Architecture and module overview: [`docs/`](docs/README.md). -## Building a standalone executable +## Building ```bash -uv run python prebuild.py -uv run pyinstaller Curator.spec --noconfirm +cargo build --release ``` -The result is a single self-contained `dist/Curator` executable. +The result is `target/release/curator`, plus `target/release/tipy-dne` — a +standalone "Tipy dne" refresher meant for a systemd timer (see +`scripts/tipy-dne.service` / `.timer`). diff --git a/dist/Curator b/dist/Curator deleted file mode 100755 index 882081a..0000000 Binary files a/dist/Curator and /dev/null differ diff --git a/docs/README.md b/docs/README.md index 03cb322..e0f7547 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,41 +1,44 @@ # Curator documentation -Curator is a PySide6 desktop application that manages a Jellyfin-first movie and -series pool: it imports files, identifies them through TMDb, groups multiple -versions of a film, keeps series in Jellyfin's layout and generates a miniDLNA / -Filmotéka tree. +Curator is a Rust desktop application (egui) that manages a Jellyfin-first movie +and series pool: it imports files, identifies them through TMDb, groups multiple +versions of a film, keeps series in Jellyfin's layout and generates a miniDLNA +tree of hardlinks. - [Architecture](architecture.md) — layers, on-disk layout, the pool index and the rules about versions, series and subtitles. Read this first. -- [Module reference](#module-reference) — one document per source module, with a - description of the module and of every class and function. +- **API reference** — every public type and function is documented in the source; + `cargo doc --open` renders it. -## Module reference +## Module overview | Source | Purpose | |--------|---------| -| [`Curator.py`](modules/entry-point.md) | Application entry point. | -| [`src/_version.py`](modules/_version.md) | Auto-generated — do not edit manually. | -| [`src/constants.py`](modules/constants.md) | Application-level constants for Curator (build/runtime metadata). | -| [`src/core/config.py`](modules/core.config.md) | Configuration for Curator. | -| [`src/core/csfd.py`](modules/core.csfd.md) | ČSFD.cz scraper — a *title bridge* to TMDb. | -| [`src/core/file.py`](modules/core.file.md) | The `File` class: one playable movie file as the UI sees it. | -| [`src/core/file_manager.py`](modules/core.file_manager.md) | `FileManager`: the application's service layer. | -| [`src/core/hardlink_manager.py`](modules/core.hardlink_manager.md) | Hardlink Manager for Curator | -| [`src/core/integrity.py`](modules/core.integrity.md) | Video integrity checking via FFmpeg. | -| [`src/core/jellyfin.py`](modules/core.jellyfin.md) | Jellyfin server API client — thin, hybrid integration. | -| [`src/core/legacy_meta.py`](modules/core.legacy_meta.md) | Readers for Curator's *pre-index* metadata layouts. | -| [`src/core/list_manager.py`](modules/core.list_manager.md) | Sorting of file lists by name or by date added. | -| [`src/core/migrate.py`](modules/core.migrate.md) | One-off migration of an existing pool to the Jellyfin naming convention. | -| [`src/core/movie.py`](modules/core.movie.md) | The movie object — metadata first, files second. | -| [`src/core/naming.py`](modules/core.naming.md) | Pool file naming convention. | -| [`src/core/nfo.py`](modules/core.nfo.md) | NFO reader — Curator's metadata source after ČSFD. | -| [`src/core/pool_index.py`](modules/core.pool_index.md) | Unified metadata index for the Curator pool. | -| [`src/core/series.py`](modules/core.series.md) | Series naming + scanning for the Jellyfin TV layout. | -| [`src/core/subtitles.py`](modules/core.subtitles.md) | External subtitle sidecars — attach, discover, keep in sync on rename. | -| [`src/core/tag.py`](modules/core.tag.md) | The `Tag` value object: a `(category, name)` pair identified by its `full_path` (`Category/Name`). | -| [`src/core/tag_manager.py`](modules/core.tag_manager.md) | `TagManager`: the registry of all tag categories and their tags. | -| [`src/core/tmdb.py`](modules/core.tmdb.md) | TMDb (The Movie Database) client — Curator's identity source. | -| [`src/core/transforms.py`](modules/core.transforms.md) | Tag-schema value transforms for miniDLNA folder names. | -| [`src/core/utils.py`](modules/core.utils.md) | Small filesystem helpers shared across the core modules. | -| [`src/ui/qt_app.py`](modules/ui.qt_app.md) | PySide6 GUI for Curator — reframed around the Filmotéka (movie-library) workflow. | +| [`src/main.rs`](../src/main.rs) | Entry point: `.env`, logging, opens the window. | +| [`src/bin/tipy-dne.rs`](../src/bin/tipy-dne.rs) | Standalone "Tipy dne" generator for a systemd timer. | +| [`src/constants.rs`](../src/constants.rs) | App name, version (from `Cargo.toml`), debug flag, window title. | +| [`src/core/config.rs`](../src/core/config.rs) | Global config (window, pool and output paths) and the default tag schema. | +| [`src/core/error.rs`](../src/core/error.rs) | `CoreError`, the error type of every core operation. | +| [`src/core/paths.rs`](../src/core/paths.rs) | `pathlib`-style helpers: suffix/stem, POSIX-relative paths, recursive walk, moves. | +| [`src/core/naming.rs`](../src/core/naming.rs) | The `Title (YYYY) [tmdbid-N].3D.FMT` naming convention: build, parse, guess from filenames. | +| [`src/core/movie.rs`](../src/core/movie.rs) | The movie record (`Movie`, `MediaFile`), identity keys, version/part labels. | +| [`src/core/file.rs`](../src/core/file.rs) | `File`: one pooled video, a view on one media entry of a movie record. | +| [`src/core/pool_index.rs`](../src/core/pool_index.rs) | `PoolIndex`: the `.Curator.!index` JSON store (v1 → v2 migration). | +| [`src/core/series.rs`](../src/core/series.rs) | Series naming (`SxxEyy`, `Season NN`, `.ptN`) and scanning. | +| [`src/core/subtitles.rs`](../src/core/subtitles.rs) | Subtitle sidecars: find, attach, follow their video on rename. | +| [`src/core/tag.rs`](../src/core/tag.rs), [`tag_manager.rs`](../src/core/tag_manager.rs) | Tags (`Category/Name`) and the registry of known tags. | +| [`src/core/transforms.rs`](../src/core/transforms.rs) | Folder-name transforms (rating → ten-point band). | +| [`src/core/nfo.rs`](../src/core/nfo.rs) | Read-only NFO reader (genres, year, countries, rating, ids). | +| [`src/core/legacy_meta.rs`](../src/core/legacy_meta.rs) | Recovery of ČSFD link / title / year from pre-index layouts. | +| [`src/core/tmdb.rs`](../src/core/tmdb.rs) | TMDb client: lookups, searches, details for tags. | +| [`src/core/csfd.rs`](../src/core/csfd.rs) | ČSFD scraper with the Anubis proof-of-work solver — the title bridge to TMDb. | +| [`src/core/jellyfin.rs`](../src/core/jellyfin.rs) | Jellyfin client: library scan, read back movies. | +| [`src/core/http.rs`](../src/core/http.rs) | Shared blocking HTTP client (OS certificate store). | +| [`src/core/integrity.rs`](../src/core/integrity.rs) | Video integrity check via ffmpeg / ffprobe. | +| [`src/core/migrate.rs`](../src/core/migrate.rs) | Classification of TMDb match proposals for an old pool. | +| [`src/core/hardlink_manager.rs`](../src/core/hardlink_manager.rs) | The miniDLNA hardlink tree, mirrors, special folders, obsolete-link sweep. | +| [`src/core/file_manager/`](../src/core/file_manager/) | `FileManager`, the service layer: libraries and settings (`mod.rs`), movies (`movies.rs`), versions and parts (`versions.rs`), series (`series_ops.rs`), tools (`tools.rs`), miniDLNA generation (`minidlna.rs`). | +| [`src/ui/app.rs`](../src/ui/app.rs) | The main window: menu, tag filter, table, detail panel, status bar, actions. | +| [`src/ui/dialogs/`](../src/ui/dialogs/) | One file per dialog (import, edit, series, duplicates, libraries, migration, tags, schema, stats). | +| [`src/ui/common.rs`](../src/ui/common.rs), [`task.rs`](../src/ui/task.rs) | Message boxes, prompts, background jobs and tasks with progress. | +| [`examples/screenshot.rs`](../examples/screenshot.rs) | Developer tool: render the window offscreen to a PNG. | diff --git a/docs/architecture.md b/docs/architecture.md index 978d145..be79c49 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -1,57 +1,75 @@ # Architecture This document describes how Curator is put together: the layers, what owns what -on disk, and the handful of rules the rest of the code relies on. The per-module -API reference is in [`modules/`](README.md). +on disk, and the handful of rules the rest of the code relies on. The API +reference is generated from the source with `cargo doc --open`. ## Layers ``` -Curator.py entry point — certificates, State, run() +src/main.rs entry point — .env, logging, ui::run() │ ▼ -src/ui/qt_app.py PySide6 GUI: QtApp (main window) + dialogs +src/ui/ egui GUI: CuratorApp (main window) + dialogs/ │ never touches the filesystem directly ▼ -src/core/file_manager.py FileManager — the service layer - │ owns: filelist, pool index, library config, global config +src/core/file_manager/ FileManager — the service layer + │ owns: filelist, tag manager, pool index, global config │ - ├── domain model file.py (File), movie.py (Movie, MediaFile), - │ series.py (Series, Episode), tag.py, tag_manager.py - ├── persistence pool_index.py (.Curator.!index), config.py - │ legacy_meta.py (reads pre-index layouts) - ├── naming naming.py (movie stems, 3D), series.py (SxxEyy), - │ subtitles.py (sidecar names), movie.identity_key - ├── external services tmdb.py, csfd.py, jellyfin.py, nfo.py (read-only) - └── output and checks hardlink_manager.py (miniDLNA / Filmotéka), - transforms.py, integrity.py (ffmpeg), migrate.py + ├── domain model file.rs (File), movie.rs (Movie, MediaFile), + │ series.rs (Series, Episode), tag.rs, tag_manager.rs + ├── persistence pool_index.rs (.Curator.!index), config.rs + │ legacy_meta.rs (reads pre-index layouts) + ├── naming naming.rs (movie stems, 3D), series.rs (SxxEyy), + │ subtitles.rs (sidecar names), movie::identity_key + ├── external services tmdb.rs, csfd.rs, jellyfin.rs (over http.rs), + │ nfo.rs (read-only) + └── output and checks hardlink_manager.rs (miniDLNA tree), + transforms.rs, integrity.rs (ffmpeg), migrate.rs ``` -Dependencies only point downwards. The GUI calls `FileManager` methods and -receives plain objects back; the core modules never import Qt. +Dependencies only point downwards. The GUI calls `FileManager` methods and gets +plain values back; `core` never depends on egui. Files are addressed by their +current path: methods take a `&Path` and return the new path when they move it. ### Entry point -`Curator.py` builds a `State` (one `TagManager` and one `FileManager`) and hands -both to `src.ui.qt_app.run`. Before that it asks the OS certificate store for -HTTPS, because ČSFD and TMDb are reached from behind corporate proxies. +`main.rs` loads `.env`, sets up `tracing` (`RUST_LOG`, or debug when `ENV_DEBUG` +is set), builds a `FileManager` and hands it to `ui::run`. HTTPS uses the OS +certificate store (reqwest + rustls platform verifier), which matters behind +corporate SSL inspection. ### GUI -`QtApp` is the main window: the menu bar, a tag sidebar (an AND filter over the -movie list), the movie and series table, a detail panel and the status bar. Each -menu action is a method on `QtApp`; most of them open a dialog and then call one -`FileManager` method. The dialogs are separate classes in the same module — -import, edit, duplicate check, series overview, library organiser and so on. +`CuratorApp` (`ui/app.rs`) is the main window: the menu bar, a tag sidebar (an +AND filter over the movie list), the movie and series table, a detail panel and +the status bar. It keeps a small view model (rows, sidebar counts) recomputed +after every change. Each menu action is a method on the app; most open a dialog +from `ui/dialogs/` or ask a `Prompt`, then call one `FileManager` method. + +Dialogs own their form state and talk back through `Env` (the manager, the +message queue and `Event`s such as *refresh*, *reload series* or *open another +dialog*). Questions inside a dialog (version popisek, confirmations, choices) +are `common::Prompt`s stacked on top of it. + +Long operations run off the UI thread so the window keeps repainting: + +- **Tasks** (`ui/task.rs`) need the manager — import, TMDb refresh, integrity + scan, bulk renames, miniDLNA generation. The `FileManager` is moved into a + worker thread and handed back with the result; a modal shows progress and a + cancel button meanwhile. +- **Jobs** (`common::Job`) are network calls that don't — TMDb / ČSFD lookups in + dialogs, Jellyfin checks. ### Service layer `FileManager` is the only object that changes the pool. Everything the user can do maps onto one of its public methods, for example `import_movie`, `add_movie_version`, `remove_movie_version`, `merge_as_version`, -`apply_movie_edits`, `import_episodes`, the miniDLNA scope methods (`minidlna_scope`, -`minidlna_prune_targets`) and `find_duplicates`. Methods that change files also keep the pool index and the -in-memory `filelist` in step. +`apply_movie_edits`, `import_episodes`, `generate_minidlna` and +`find_duplicates`. Methods that change files also keep the pool index and the +in-memory `filelist` in step (`with_file` runs an operation on the loaded file, +or on a freshly loaded one when it isn't in the list). ## What lives where on disk @@ -79,7 +97,7 @@ Outside the pool, the Filmotéka / miniDLNA output is a tree of hardlinks made b ## The pool index -`pool_index.py` keeps one JSON document per pool: +`pool_index.rs` keeps one JSON document per pool: ```json { @@ -103,14 +121,14 @@ The key of a movie record is its **identity**: - `tmdb-` when the TMDb id is known; - otherwise `name-` built from the title and year, with diacritics folded - (`identity_key` in `movie.py`). + (`identity_key` in `movie.rs`). Everything about a film — title, tags, ČSFD link, attributes, date added — is on that one record. Its `media` list holds every playable file of the film. A version therefore never carries metadata of its own, and removing one version never loses the metadata of the others. -Version 1 of the index was keyed by file path. `PoolIndex.load` migrates it on +Version 1 of the index was keyed by file path. `PoolIndex::open` migrates it on first open: metadata only, no file is moved, and the old file is kept as `.Curator.!index.v1.bak`. @@ -146,51 +164,65 @@ Rules that the code depends on: - **Mixed libraries.** A movie's folder and a series folder have the same outer name. They are told apart by content: a series always nests episodes in a `Season NN` or `Specials` subfolder, a movie folder never does - (`series.looks_like_series_folder`). + (`series::looks_like_series_folder`). ## Series A series is a folder with `Season NN` (and `Specials` for season 0) subfolders. Episodes are named `SxxEyy - Series.ext`; an episode split across several physical files gets Jellyfin's stacking suffix `.ptN`. Series carry no index record: they are -scanned from disk each time (`series.scan_series`), so deleting an episode file is +scanned from disk each time (`series::scan_series`), so deleting an episode file is the whole of removing it. ## Subtitles Subtitles are sidecar files that share the video's stem, with an optional language and flag: `Name.cs.srt`, `Name.cs.forced.srt`. They are not index entries. Every -operation that renames or moves a video calls `subtitles.rename_subtitles_with`, +operation that renames or moves a video calls `subtitles::rename_subtitles_with`, so the sidecars keep their match. ## Output and external services -- **miniDLNA / Filmotéka** — `FileManager.minidlna_scope` decides which libraries - take part; `HardlinkManager` builds the genre tree and mirrors the copy-as-is - libraries. Libraries left out of scope have their old links swept on the next run. -- **TMDb** (`tmdb.py`) — the identity source. Turns a TMDb id or a title/year search - into a canonical title and year, and supplies genres and years for tags. -- **ČSFD** (`csfd.py`) — a bridge for Czech titles: filename → ČSFD film → original - title and year → TMDb. -- **Jellyfin** (`jellyfin.py`) — library scan trigger and a read-back of what +- **miniDLNA** — `FileManager::minidlna_scope` decides which libraries take part; + `FileManager::generate_minidlna` builds the genre tree through + `HardlinkManager`, mirrors the series / homevideo libraries, prunes mirrors + that fell out of scope and refills "- Tipy dne" and "- Nově přidané". Libraries + left out of scope have their old links swept on the next run. The standalone + `tipy-dne` binary refreshes only the tips folder (for a systemd timer). +- **TMDb** (`tmdb.rs`) — the identity source. Turns a TMDb id or a title/year + search into a canonical title and year, and supplies genres, countries, year + and rating for tags. +- **ČSFD** (`csfd.rs`) — a bridge for Czech titles: filename → ČSFD film → + original title and year → TMDb. Solves ČSFD's Anubis proof-of-work wall. +- **Jellyfin** (`jellyfin.rs`) — library scan trigger and a read-back of what Jellyfin sees, used to verify the pool. -- **NFO** (`nfo.py`) — read-only metadata written by Jellyfin, used to fill fields - of files imported without them. +- **NFO** (`nfo.rs`) — read-only metadata written by Jellyfin, used for tags and + to pre-fill imports. ## Configuration -Two stores, by responsibility (see `config.py`): +Two stores, by responsibility (see `config.rs`): -- the **global config** (`.Curator.!gtag`, next to `Curator.py`) holds application - state only — window geometry, recent folders and the pool and output paths; -- the **pool index** holds everything that describes a pool — libraries, tag schema, - miniDLNA selection and all movie records. +- the **global config** holds application state only — window size and the pool + and output paths. It lives in the platform config directory + (`~/.config/curator/.Curator.!gtag` on Linux), or wherever `CURATOR_CONFIG` + points. On first run a `.Curator.!gtag` left by the Python version in the + working directory is picked up, so the paths carry over; +- the **pool index** holds everything that describes a pool — libraries, tag + schema, miniDLNA selection and all movie records. Its format is unchanged from + the Python version, so an existing pool opens as-is. -Secrets come from `.env`: `TMDB_API_KEY`, `JELLYFIN_URL`, `JELLYFIN_API_KEY`, -and an optional debug flag read by `constants.py`. +Secrets come from `.env`: `TMDB_API_KEY`, `TMDB_LANGUAGE`, `JELLYFIN_URL`, +`JELLYFIN_API_KEY`, and `ENV_DEBUG`. ## Testing -Tests live in `tests/` and run with pytest. The core modules are tested directly -against temporary pools; the Qt dialogs are exercised headless -(`QT_QPA_PLATFORM=offscreen`) through their methods. +`cargo test` runs: + +- unit tests next to the code (`#[cfg(test)] mod tests`), core modules tested + against temporary pools; +- `tests/ui.rs` — the GUI driven headlessly with `egui_kittest`: open a dialog, + type, click, then check the pool on disk. + +`examples/screenshot.rs` renders the window (optionally with a dialog open) to a +PNG without showing it, for checking layout. diff --git a/docs/modules/_version.md b/docs/modules/_version.md deleted file mode 100644 index 790b452..0000000 --- a/docs/modules/_version.md +++ /dev/null @@ -1,5 +0,0 @@ -# `src/_version.py` - -Auto-generated — do not edit manually. - -Source: [`src/_version.py`](../../src/_version.py) diff --git a/docs/modules/constants.md b/docs/modules/constants.md deleted file mode 100644 index c0800a5..0000000 --- a/docs/modules/constants.md +++ /dev/null @@ -1,34 +0,0 @@ -# `src/constants.py` - -Application-level constants for Curator (build/runtime metadata). - -This module derives the app version and debug flag. The version is loaded from -`pyproject.toml` (preferred) with a generated `src/_version.py` fallback for -frozen/PyInstaller builds. Debug mode is controlled via `.env` (`ENV_DEBUG`). - -It is the single source of truth for app metadata used across the GUI and build -tooling (`APP_NAME`, `APP_VERSION`/`VERSION`, `APP_TITLE`, `APP_VIEWPORT`). - -Source: [`src/constants.py`](../../src/constants.py) - -## Functions - -### `get_version` - -*function · line 26* - -```python -get_version() -> str -``` - -Return the project version (pyproject → _version.py → unknown). - -### `get_debug_mode` - -*function · line 55* - -```python -get_debug_mode() -> bool -``` - -Return True when ENV_DEBUG is set to a truthy value in the environment. diff --git a/docs/modules/core.config.md b/docs/modules/core.config.md deleted file mode 100644 index c4e8d2e..0000000 --- a/docs/modules/core.config.md +++ /dev/null @@ -1,57 +0,0 @@ -# `src/core/config.py` - -Configuration for Curator. - -Two stores, by responsibility: - -1. Global config (`.Curator.!gtag` next to Curator.py) — **application data - only**: window state, MRU folders, and the pointers to where the pool and the - Filmotéka output live (`pool_dir` / `filmoteka_dir`). Those pointers must - stay here because the pool index is found *through* them. -2. Pool index (`/.Curator.!index`, see `pool_index.py`) — everything - describing a particular library: per-movie metadata **and** library-level - settings (`tag_schema`, `copyasis_folders`). It travels with the pool. - -Source: [`src/core/config.py`](../../src/core/config.py) - -## Functions - -### `load_global_config` - -*function · line 68* - -```python -load_global_config() -> dict -``` - -Load global application config - -### `save_global_config` - -*function · line 84* - -```python -save_global_config(cfg: dict) -``` - -Save global application config - -### `load_config` - -*function · line 94* - -```python -load_config() -``` - -Legacy function - returns global config - -### `save_config` - -*function · line 99* - -```python -save_config(cfg: dict) -``` - -Legacy function - saves global config diff --git a/docs/modules/core.csfd.md b/docs/modules/core.csfd.md deleted file mode 100644 index 6fdd6d1..0000000 --- a/docs/modules/core.csfd.md +++ /dev/null @@ -1,251 +0,0 @@ -# `src/core/csfd.py` - -ČSFD.cz scraper — a *title bridge* to TMDb. - -Curator identifies movies by **TMDb id**. A direct TMDb search on a Czech -distribution title is unreliable (remakes, localized names, "weird" hits). -ČSFD, on the other hand, indexes Czech release names well **and** lists a -film's *original* title. So the bridge is:: - - filename → ČSFD search → ČSFD film page → original title + year - → TMDb search → tmdbid - -This module only scrapes ČSFD; the TMDb half lives in -`src.core.file_manager` (`FileManager.resolve_via_csfd`). Nothing -here feeds tags/genres — those still come from TMDb via Jellyfin/NFO. - -ČSFD serves an **Anubis** proof-of-work wall in front of every page: a plain -request gets a 200 with a JS challenge instead of the movie. We detect it, -solve the SHA-256 PoW the way the bundled worker JS does, and replay the -request through a shared `requests.Session` (so a batch pays the PoW -cost only once). - -Source: [`src/core/csfd.py`](../../src/core/csfd.py) - -## Classes - -### `CsfdError` - -*class · line 62* - -```python -class CsfdError(RuntimeError): -``` - -A ČSFD lookup could not be completed (deps missing, network, anti-bot). - -### `CsfdFilm` - -*class · line 67* - -```python -class CsfdFilm: -``` - -The slice of a ČSFD film page Curator needs to reach a TMDb id. - -#### `CsfdFilm.tmdb_query` - -*property · line 77* - -```python -tmdb_query -> tuple[str, Optional[str]] -``` - -`(title, year)` best suited for a TMDb search — original title first. - -## Functions - -### `dependencies_available` - -*function · line 82* - -```python -dependencies_available() -> bool -``` - -True when `requests` + `beautifulsoup4` are importable. - -### `_check_dependencies` - -*function · line 87* - -```python -_check_dependencies() -> None -``` - -Raise `CsfdError` when the optional `requests` / `beautifulsoup4` packages are missing (they are needed only for ČSFD scraping). - -### `_extract_csfd_id` - -*function · line 95* - -```python -_extract_csfd_id(url: str) -> Optional[int] -``` - -Pull the numeric film id out of a ČSFD URL, or `None`. - -### `_extract_json_blob` - -*function · line 105* - -```python -_extract_json_blob(html: str, element_id: str) -``` - -Return the parsed JSON from an Anubis `', - html, - re.DOTALL, - ) - if not match: - return None - try: - return json.loads(match.group(1)) - except json.JSONDecodeError: - return None - - -def _solve_anubis_pow(random_data: str, difficulty: int) -> tuple[str, int, int]: - """Brute-force the Anubis proof-of-work. - - Mirrors the bundled ``sha256-purejs`` worker: find the smallest ``nonce`` - such that ``sha256(random_data + str(nonce))`` has ``difficulty`` leading - zero nibbles. Returns ``(hash_hex, nonce, elapsed_ms)``. - """ - full_zero_bytes = difficulty // 2 - needs_half_byte = difficulty % 2 != 0 - start = time.monotonic() - for nonce in range(ANUBIS_MAX_NONCE): - digest = hashlib.sha256(f"{random_data}{nonce}".encode()).digest() - if any(digest[i] != 0 for i in range(full_zero_bytes)): - continue - if needs_half_byte and digest[full_zero_bytes] >> 4 != 0: - continue - elapsed_ms = int((time.monotonic() - start) * 1000) - return digest.hex(), nonce, elapsed_ms - raise CsfdError( - f"Anubis PoW nevyřešen do {ANUBIS_MAX_NONCE} pokusů (obtížnost {difficulty})" - ) - - -def _solve_anubis_challenge(session, html: str, url: str): - """Solve the Anubis challenge in ``html`` and return the real page response.""" - payload = _extract_json_blob(html, "anubis_challenge") - if not payload: - raise CsfdError("ČSFD anti-bot stránka bez čitelné Anubis challenge.") - - rules = payload.get("rules", {}) - challenge = payload.get("challenge", {}) - random_data = challenge.get("randomData") - difficulty = int(rules.get("difficulty", 1)) - if not random_data: - raise CsfdError("Anubis challenge neobsahuje randomData.") - - base_prefix = _extract_json_blob(html, "anubis_base_prefix") or "" - logger.debug(f"Solving Anubis challenge (difficulty {difficulty}) for {url}") - hash_hex, nonce, elapsed_ms = _solve_anubis_pow(random_data, difficulty) - logger.debug(f"Anubis solved: nonce={nonce}, elapsed={elapsed_ms}ms") - - pass_url = urljoin(CSFD_BASE_URL, f"{base_prefix}{ANUBIS_PASS_PATH}") - response = session.get( - pass_url, - params={ - "id": challenge.get("id"), - "response": hash_hex, - "nonce": nonce, - "redir": url, - "elapsedTime": elapsed_ms, - }, - headers=HEADERS, - timeout=10, - ) - response.raise_for_status() - if ANUBIS_CHALLENGE_MARKER in response.text: - raise CsfdError("ČSFD Anubis challenge se nepodařilo vyřešit (odmítnuto).") - return response - - -def _get_page(session, url: str): - """GET ``url`` through ``session``, transparently clearing an Anubis wall.""" - response = session.get(url, headers=HEADERS, timeout=10) - response.raise_for_status() - if ANUBIS_CHALLENGE_MARKER in response.text: - response = _solve_anubis_challenge(session, response.text, url) - return response - - -# --------------------------------------------------------------------------- -# Page parsing -# --------------------------------------------------------------------------- - - -def _parse_json_ld(soup) -> tuple[str, str | None]: - """``(name, year)`` from the film page's JSON-LD (name is the Czech title).""" - for script in soup.find_all("script", type="application/ld+json"): - try: - data = json.loads(script.string or "") - except json.JSONDecodeError, TypeError: - continue - if isinstance(data, list): - data = next((d for d in data if d.get("@type") == "Movie"), None) - if not isinstance(data, dict) or data.get("@type") != "Movie": - continue - name = (data.get("name") or "").strip() - year: str | None = None - for key in ("dateCreated", "datePublished"): - match = re.search(r"(19|20)\d{2}", str(data.get(key) or "")) - if match: - year = match.group(0) - break - return name, year - return "", None - - -def _parse_origin(soup) -> tuple[str | None, str | None]: - """``(origin_country, year)`` from the ``.origin`` line. - - ČSFD separates values with inline bullet ```` elements (no commas), - e.g. ``USA • 1999 • 136 min``. For a co-production only the first country - is returned — enough to match it against a name's flag. - """ - elem = soup.select_one(".origin") - if not elem: - return None, None - raw = elem.get_text(separator="|", strip=True) - tokens = [t.strip() for part in raw.split("|") for t in part.split(",")] - country: str | None = None - year: str | None = None - for token in tokens: - if not token: - continue - if year is None and re.fullmatch(r"(19|20)\d{2}", token): - year = token - continue - if country is None and not token[0].isdigit() and re.search(r"[^\W\d_]", token): - country = token.split("/")[0].strip() - return country, year - - -# ČSFD flags older Czech films "Československo" while ``.origin`` may read "Česko". -_CZ_ORIGIN_ALIASES = {"česko", "československo"} - - -def _parse_original_title(soup, origin_country: str | None) -> str | None: - """The film's original title from ``.film-names`` — or ``None`` to use the CZ title. - - Each ``
  • `` carries a country/language flag (``img.flag`` ``title``) and a - title. The original title is the entry whose flag matches the **country of - origin** (USA → "The Shawshank Redemption"). ČSFD does **not** repeat the - Czech title here when it equals the ``

    ``, so a Czech film has only - foreign/festival alt-titles in this list (``[angličtina] Cosy Dens``, - ``[Slovinsko] Samotarji``) — picking one of those would be wrong, so we - return ``None`` and let the caller fall back to the Czech ``

    `` title. - """ - names: list[tuple[str, str]] = [] - for li in soup.select(".film-names li"): - flag = li.select_one("img.flag") - country = str(flag.get("title") or "").strip() if flag else "" - for junk in li.select("span, img"): - junk.extract() - text = " ".join(li.get_text(" ").split()).strip(" ·") - if text: - names.append((country, text)) - if not names or not origin_country: - return None - wanted = origin_country.casefold() - for country, text in names: - here = country.casefold() - if here == wanted or ( - wanted in _CZ_ORIGIN_ALIASES and here in _CZ_ORIGIN_ALIASES - ): - return text - return None - - -def fetch_film(url: str, session=None) -> CsfdFilm: - """Fetch a ČSFD film page → :class:`CsfdFilm` (Czech + original title, year). - - Pass a shared ``requests.Session`` to reuse the Anubis auth cookie across a - batch. Raises :class:`CsfdError` on a network / anti-bot / parse failure. - """ - _check_dependencies() - own_session = session is None - if own_session: - session = requests.Session() - try: - html = _get_page(session, url).text - except requests.RequestException as exc: - raise CsfdError(f"Nelze načíst ČSFD stránku: {exc}") from exc - finally: - if own_session: - session.close() - - soup = BeautifulSoup(html, "html.parser") - czech_title, year = _parse_json_ld(soup) - origin_country, origin_year = _parse_origin(soup) - year = year or origin_year - if not czech_title: - header = soup.select_one(".film-header-name h1") - czech_title = header.get_text(strip=True) if header else "" - original_title = _parse_original_title(soup, origin_country) or czech_title - return CsfdFilm( - url=url, - csfd_id=_extract_csfd_id(url), - czech_title=czech_title, - original_title=original_title, - year=str(year) if year else None, - ) - - -def _films_section(soup): - """The ``
    `` holding the *Filmy* results, or the whole document. - - ČSFD's search page groups hits into ``Filmy`` / ``Seriály`` / ``Tvůrci`` / - ``Uživatelé`` sections; ``a.film-title-name`` matches in all of them, so - without scoping a bare-title search happily returns a series episode. - """ - for section in soup.find_all("section"): - header = section.select_one(".box-header h2") or section.find("h2") - if header and header.get_text(strip=True).casefold() == "filmy": - return section - return soup - - -def _is_film_href(href: str) -> bool: - """True for a film URL ``/film/-slug/`` — a series episode has two segments - (``/film///``) and is rejected.""" - parts = [p for p in href.split("/") if p and p != "prehled"] - return len(parts) == 2 and parts[0] == "film" - - -def search_films(query: str, limit: int = 5, session=None) -> list[CsfdFilm]: - """Search ČSFD for ``query``; film hits only (no series/episodes), best first.""" - _check_dependencies() - if not query.strip(): - return [] - search_url = f"{CSFD_SEARCH_URL}?{urlencode({'q': query.strip()})}" - own_session = session is None - if own_session: - session = requests.Session() - try: - html = _get_page(session, search_url).text - except requests.RequestException as exc: - raise CsfdError(f"ČSFD hledání selhalo: {exc}") from exc - finally: - if own_session: - session.close() - - soup = BeautifulSoup(html, "html.parser") - films: list[CsfdFilm] = [] - for anchor in _films_section(soup).select("a.film-title-name"): - href = str(anchor.get("href") or "") - if not _is_film_href(href): - continue - films.append( - CsfdFilm( - url=urljoin(CSFD_BASE_URL, href), - csfd_id=_extract_csfd_id(href), - czech_title=anchor.get_text(strip=True), - ) - ) - if len(films) >= limit: - break - return films - - -def find_csfd_url(query: str, session=None) -> str | None: - """Return the first ČSFD film URL matching ``query``, or ``None``. - - ČSFD's full-text search treats a trailing year as a search term (not a - filter) and can miss on ``"Title 2006"`` while ``"Title"`` hits — so a - yearful query with no result is retried without the year. - """ - if not query or not query.strip(): - return None - query = query.strip() - films = search_films(query, limit=1, session=session) - if not films: - without_year = re.sub(r"\s+(?:19|20)\d{2}$", "", query) - if without_year != query: - films = search_films(without_year, limit=1, session=session) - return films[0].url if films else None - - -# Release-name tokens that mark the end of the actual title in a filename. -_RELEASE_MARKERS = { - "bluray", - "blu-ray", - "brrip", - "bdrip", - "bdremux", - "remux", - "webrip", - "web", - "web-dl", - "webdl", - "hdtv", - "dvdrip", - "dvd", - "dvd5", - "dvd9", - "hdrip", - "cam", - "ts", - "tc", - "x264", - "x265", - "h264", - "h265", - "hevc", - "avc", - "xvid", - "divx", - "aac", - "ac3", - "eac3", - "dts", - "dd5", - "ddp5", - "truehd", - "atmos", - "flac", - "10bit", - "8bit", - "hdr", - "hdr10", - "dolby", - "sdr", - "proper", - "repack", - "extended", - "unrated", - "remastered", - "imax", - "multi", - "dual", - "complete", - "internal", - "limited", - "uncut", -} -_YEAR_RE = re.compile(r"^(19|20)\d{2}$") -_RESOLUTION_RE = re.compile(r"^\d{3,4}p$|^[24]k$", re.IGNORECASE) - - -def clean_filename_to_query(filename: str) -> str: - """Turn a (possibly release-named) filename into a ČSFD search query. - - Strips the path/extension, splits on common separators and keeps the words - before the first release marker (year, resolution, codec, source, …). The - detected year is appended back as a disambiguator:: - - "Matrix.1999.1080p.BluRay.x264-GROUP.mkv" -> "Matrix 1999" - """ - stem = Path(filename).stem - tokens = [t for t in re.split(r"[.\s_]+", stem) if t] - - title_words: list[str] = [] - year: str | None = None - for token in tokens: - bare = token.strip("()[]{}") - if _YEAR_RE.match(bare): - year = bare - break - if _RESOLUTION_RE.match(bare) or bare.lower() in _RELEASE_MARKERS: - break - title_words.append(token) - - title = " ".join(title_words).strip() or re.sub(r"[.\s_]+", " ", stem).strip() - return f"{title} {year}".strip() if year else title diff --git a/src/core/csfd.rs b/src/core/csfd.rs new file mode 100644 index 0000000..e49c8e6 --- /dev/null +++ b/src/core/csfd.rs @@ -0,0 +1,694 @@ +//! ČSFD.cz scraper — a *title bridge* to TMDb. +//! +//! A direct TMDb search on a Czech distribution title is unreliable. ČSFD indexes +//! Czech release names well **and** lists a film's *original* title, so: +//! +//! ```text +//! filename → ČSFD search → ČSFD film page → original title + year +//! → TMDb search → tmdbid +//! ``` +//! +//! ČSFD serves an **Anubis** proof-of-work wall in front of every page. We detect +//! it, solve the SHA-256 PoW the way the bundled worker JS does, and replay the +//! request through a shared session (so a batch pays the PoW cost only once). + +use std::path::Path; +use std::sync::LazyLock; +use std::time::{Duration, Instant}; + +use ego_tree::NodeRef; +use regex::Regex; +use reqwest::blocking::{Client, Response}; +use scraper::{ElementRef, Html, Node, Selector}; +use serde_json::Value; +use sha2::{Digest, Sha256}; +use tracing::debug; +use url::Url; + +use super::error::CoreError; +use super::http::new_session; + +pub const CSFD_BASE_URL: &str = "https://www.csfd.cz"; +pub const CSFD_SEARCH_URL: &str = "https://www.csfd.cz/hledat/"; + +const ANUBIS_CHALLENGE_MARKER: &str = r#"id="anubis_challenge""#; +const ANUBIS_PASS_PATH: &str = "/.within.website/x/cmd/anubis/api/pass-challenge"; +/// Safety cap so a difficulty bump can never spin forever. +const ANUBIS_MAX_NONCE: u64 = 50_000_000; +const TIMEOUT: Duration = Duration::from_secs(10); + +/// ČSFD flags older Czech films "Československo" while `.origin` may read "Česko". +const CZ_ORIGIN_ALIASES: &[&str] = &["česko", "československo"]; + +/// Release-name tokens that mark the end of the actual title in a filename. +const RELEASE_MARKERS: &[&str] = &[ + "bluray", + "blu-ray", + "brrip", + "bdrip", + "bdremux", + "remux", + "webrip", + "web", + "web-dl", + "webdl", + "hdtv", + "dvdrip", + "dvd", + "dvd5", + "dvd9", + "hdrip", + "cam", + "ts", + "tc", + "x264", + "x265", + "h264", + "h265", + "hevc", + "avc", + "xvid", + "divx", + "aac", + "ac3", + "eac3", + "dts", + "dd5", + "ddp5", + "truehd", + "atmos", + "flac", + "10bit", + "8bit", + "hdr", + "hdr10", + "dolby", + "sdr", + "proper", + "repack", + "extended", + "unrated", + "remastered", + "imax", + "multi", + "dual", + "complete", + "internal", + "limited", + "uncut", +]; + +macro_rules! re { + ($name:ident, $pat:expr) => { + static $name: LazyLock = LazyLock::new(|| Regex::new($pat).expect("valid regex")); + }; +} +re!(CSFD_ID_RE, r"/film/(\d+)"); +re!(YEAR_ANY_RE, r"(19|20)\d{2}"); +re!(YEAR_FULL_RE, r"^(19|20)\d{2}$"); +re!(LETTER_RE, r"[^\W\d_]"); +re!(RESOLUTION_RE, r"(?i)^\d{3,4}p$|^[24]k$"); +re!(SPLIT_RE, r"[.\s_]+"); +re!(TRAILING_YEAR_RE, r"\s+(?:19|20)\d{2}$"); + +fn sel(css: &str) -> Selector { + Selector::parse(css).expect("valid selector") +} + +/// The slice of a ČSFD film page Curator needs to reach a TMDb id. +#[derive(Debug, Clone, Default, PartialEq)] +pub struct CsfdFilm { + pub url: String, + pub csfd_id: Option, + pub czech_title: String, + pub original_title: String, + pub year: Option, +} + +impl CsfdFilm { + /// `(title, year)` best suited for a TMDb search — original title first. + pub fn tmdb_query(&self) -> (String, Option) { + let title = if self.original_title.is_empty() { + &self.czech_title + } else { + &self.original_title + }; + (title.clone(), self.year.clone()) + } +} + +fn err(msg: impl Into) -> CoreError { + CoreError::Remote(msg.into()) +} + +/// Pull the numeric film id out of a ČSFD URL. +pub fn extract_csfd_id(url: &str) -> Option { + CSFD_ID_RE.captures(url)?[1].parse().ok() +} + +// --------------------------------------------------------------------------- +// Anubis proof-of-work +// --------------------------------------------------------------------------- + +/// The parsed JSON of an Anubis `"#, + regex::escape(element_id) + ); + let caps = Regex::new(&pattern).ok()?.captures(html)?; + serde_json::from_str(&caps[1]).ok() +} + +fn hex(bytes: &[u8]) -> String { + bytes.iter().map(|b| format!("{b:02x}")).collect() +} + +/// Find the smallest `nonce` such that `sha256(random_data + nonce)` has +/// `difficulty` leading zero nibbles. Returns `(hash_hex, nonce, elapsed_ms)`. +pub fn solve_anubis_pow( + random_data: &str, + difficulty: usize, +) -> Result<(String, u64, u128), CoreError> { + let full_zero_bytes = difficulty / 2; + let needs_half_byte = !difficulty.is_multiple_of(2); + let start = Instant::now(); + for nonce in 0..ANUBIS_MAX_NONCE { + let digest = Sha256::digest(format!("{random_data}{nonce}").as_bytes()); + if digest[..full_zero_bytes].iter().any(|b| *b != 0) { + continue; + } + if needs_half_byte && digest[full_zero_bytes] >> 4 != 0 { + continue; + } + return Ok((hex(&digest), nonce, start.elapsed().as_millis())); + } + Err(err(format!( + "Anubis PoW nevyřešen do {ANUBIS_MAX_NONCE} pokusů (obtížnost {difficulty})" + ))) +} + +fn http_get(session: &Client, url: &str, query: &[(&str, String)]) -> Result { + let resp: Response = session + .get(url) + .header("Accept-Language", "cs,en;q=0.9") + .query(query) + .timeout(TIMEOUT) + .send() + .map_err(|e| err(format!("Nelze načíst ČSFD stránku: {e}")))? + .error_for_status() + .map_err(|e| err(format!("Nelze načíst ČSFD stránku: {e}")))?; + resp.text() + .map_err(|e| err(format!("Nelze načíst ČSFD stránku: {e}"))) +} + +/// Solve the Anubis challenge in `html` and return the real page. +fn solve_anubis_challenge(session: &Client, html: &str, url: &str) -> Result { + let payload = extract_json_blob(html, "anubis_challenge") + .ok_or_else(|| err("ČSFD anti-bot stránka bez čitelné Anubis challenge."))?; + let challenge = payload.get("challenge").cloned().unwrap_or(Value::Null); + let random_data = challenge + .get("randomData") + .and_then(Value::as_str) + .filter(|s| !s.is_empty()) + .ok_or_else(|| err("Anubis challenge neobsahuje randomData."))?; + let difficulty = payload + .get("rules") + .and_then(|r| r.get("difficulty")) + .and_then(|d| { + d.as_u64() + .or_else(|| d.as_str().and_then(|s| s.parse().ok())) + }) + .unwrap_or(1) as usize; + let base_prefix = extract_json_blob(html, "anubis_base_prefix") + .and_then(|v| v.as_str().map(String::from)) + .unwrap_or_default(); + debug!("Solving Anubis challenge (difficulty {difficulty}) for {url}"); + let (hash_hex, nonce, elapsed_ms) = solve_anubis_pow(random_data, difficulty)?; + debug!("Anubis solved: nonce={nonce}, elapsed={elapsed_ms}ms"); + + let pass_url = Url::parse(CSFD_BASE_URL) + .and_then(|b| b.join(&format!("{base_prefix}{ANUBIS_PASS_PATH}"))) + .map_err(|e| err(format!("Neplatná Anubis adresa: {e}")))?; + let id = challenge + .get("id") + .map(|v| v.as_str().map_or_else(|| v.to_string(), String::from)) + .unwrap_or_default(); + let text = http_get( + session, + pass_url.as_str(), + &[ + ("id", id), + ("response", hash_hex), + ("nonce", nonce.to_string()), + ("redir", url.to_string()), + ("elapsedTime", elapsed_ms.to_string()), + ], + )?; + if text.contains(ANUBIS_CHALLENGE_MARKER) { + return Err(err( + "ČSFD Anubis challenge se nepodařilo vyřešit (odmítnuto).", + )); + } + Ok(text) +} + +/// GET `url` through `session`, transparently clearing an Anubis wall. +fn get_page(session: &Client, url: &str) -> Result { + let text = http_get(session, url, &[])?; + if text.contains(ANUBIS_CHALLENGE_MARKER) { + return solve_anubis_challenge(session, &text, url); + } + Ok(text) +} + +// --------------------------------------------------------------------------- +// Page parsing +// --------------------------------------------------------------------------- + +/// Text nodes of `el` stripped and joined with `sep`, skipping empty ones +/// (BeautifulSoup's `get_text(separator, strip=True)`). +fn joined_text(el: ElementRef<'_>, sep: &str) -> String { + el.text() + .map(str::trim) + .filter(|t| !t.is_empty()) + .collect::>() + .join(sep) +} + +/// `(name, year)` from the film page's JSON-LD (name is the Czech title). +fn parse_json_ld(doc: &Html) -> (String, Option) { + for script in doc.select(&sel(r#"script[type="application/ld+json"]"#)) { + let Ok(mut data) = serde_json::from_str::(&script.text().collect::()) else { + continue; + }; + if let Value::Array(items) = &data { + data = items + .iter() + .find(|d| d.get("@type").and_then(Value::as_str) == Some("Movie")) + .cloned() + .unwrap_or(Value::Null); + } + if data.get("@type").and_then(Value::as_str) != Some("Movie") { + continue; + } + let name = data + .get("name") + .and_then(Value::as_str) + .unwrap_or("") + .trim() + .to_string(); + let year = ["dateCreated", "datePublished"].iter().find_map(|k| { + let raw = data + .get(*k) + .map(|v| v.as_str().map_or_else(|| v.to_string(), String::from)) + .unwrap_or_default(); + YEAR_ANY_RE.find(&raw).map(|m| m.as_str().to_string()) + }); + return (name, year); + } + (String::new(), None) +} + +/// `(origin_country, year)` from the `.origin` line (`USA • 1999 • 136 min`). +/// For a co-production only the first country is returned. +fn parse_origin(doc: &Html) -> (Option, Option) { + let Some(elem) = doc.select(&sel(".origin")).next() else { + return (None, None); + }; + let raw = joined_text(elem, "|"); + let mut country = None; + let mut year = None; + for token in raw.split('|').flat_map(|p| p.split(',')).map(str::trim) { + if token.is_empty() { + continue; + } + if year.is_none() && YEAR_FULL_RE.is_match(token) { + year = Some(token.to_string()); + continue; + } + let starts_digit = token.chars().next().is_some_and(|c| c.is_numeric()); + if country.is_none() && !starts_digit && LETTER_RE.is_match(token) { + country = Some(token.split('/').next().unwrap_or("").trim().to_string()); + } + } + (country, year) +} + +/// Text of `node`'s descendants, skipping anything inside `` / ``. +fn text_without_spans(node: NodeRef<'_, Node>, out: &mut Vec) { + for child in node.children() { + match child.value() { + Node::Text(t) => out.push(t.to_string()), + Node::Element(e) if matches!(e.name(), "span" | "img") => {} + Node::Element(_) => text_without_spans(child, out), + _ => {} + } + } +} + +/// The film's original title from `.film-names` — the entry whose flag matches +/// the country of origin — or `None` to fall back to the Czech title. +fn parse_original_title(doc: &Html, origin_country: Option<&str>) -> Option { + let flag_sel = sel("img.flag"); + let mut names: Vec<(String, String)> = Vec::new(); + for li in doc.select(&sel(".film-names li")) { + let country = li + .select(&flag_sel) + .next() + .and_then(|f| f.value().attr("title")) + .unwrap_or("") + .trim() + .to_string(); + let mut parts = Vec::new(); + text_without_spans(*li, &mut parts); + let text = parts + .join(" ") + .split_whitespace() + .collect::>() + .join(" "); + let text = text.trim_matches(|c| c == ' ' || c == '·').to_string(); + if !text.is_empty() { + names.push((country, text)); + } + } + let wanted = origin_country?.to_lowercase(); + if names.is_empty() { + return None; + } + names.into_iter().find_map(|(country, text)| { + let here = country.to_lowercase(); + let both_cz = CZ_ORIGIN_ALIASES.contains(&wanted.as_str()) + && CZ_ORIGIN_ALIASES.contains(&here.as_str()); + (here == wanted || both_cz).then_some(text) + }) +} + +/// Parse a film page's HTML. +pub fn parse_film_page(html: &str, url: &str) -> CsfdFilm { + let doc = Html::parse_document(html); + let (mut czech_title, year) = parse_json_ld(&doc); + let (origin_country, origin_year) = parse_origin(&doc); + let year = year.or(origin_year); + if czech_title.is_empty() { + czech_title = doc + .select(&sel(".film-header-name h1")) + .next() + .map(|h| joined_text(h, "")) + .unwrap_or_default(); + } + let original_title = parse_original_title(&doc, origin_country.as_deref()) + .unwrap_or_else(|| czech_title.clone()); + CsfdFilm { + url: url.into(), + csfd_id: extract_csfd_id(url), + czech_title, + original_title, + year, + } +} + +/// Fetch a ČSFD film page. Pass a shared session to reuse the Anubis cookie. +pub fn fetch_film(url: &str, session: Option<&Client>) -> Result { + let own; + let session = match session { + Some(s) => s, + None => { + own = new_session(); + &own + } + }; + Ok(parse_film_page(&get_page(session, url)?, url)) +} + +/// True for a film URL `/film/-slug/` — a series episode has two segments. +pub fn is_film_href(href: &str) -> bool { + let parts: Vec<&str> = href + .split('/') + .filter(|p| !p.is_empty() && *p != "prehled") + .collect(); + parts.len() == 2 && parts[0] == "film" +} + +/// Parse a search page's HTML — film hits only, scoped to the *Filmy* section. +pub fn parse_search_page(html: &str, limit: usize) -> Vec { + let doc = Html::parse_document(html); + let header_sel = sel(".box-header h2"); + let h2_sel = sel("h2"); + let anchor_sel = sel("a.film-title-name"); + let films_section = doc.select(&sel("section")).find(|section| { + let header = section + .select(&header_sel) + .next() + .or_else(|| section.select(&h2_sel).next()); + header.is_some_and(|h| joined_text(h, "").to_lowercase() == "filmy") + }); + let anchors: Vec> = match films_section { + Some(section) => section.select(&anchor_sel).collect(), + None => doc.select(&anchor_sel).collect(), + }; + let base = Url::parse(CSFD_BASE_URL).expect("valid base url"); + anchors + .into_iter() + .filter_map(|a| { + let href = a.value().attr("href").unwrap_or(""); + if !is_film_href(href) { + return None; + } + Some(CsfdFilm { + url: base + .join(href) + .map(String::from) + .unwrap_or_else(|_| href.to_string()), + csfd_id: extract_csfd_id(href), + czech_title: joined_text(a, ""), + ..Default::default() + }) + }) + .take(limit) + .collect() +} + +/// Search ČSFD for `query`; film hits only, best first. +pub fn search_films( + query: &str, + limit: usize, + session: Option<&Client>, +) -> Result, CoreError> { + let query = query.trim(); + if query.is_empty() { + return Ok(Vec::new()); + } + let mut url = Url::parse(CSFD_SEARCH_URL).expect("valid search url"); + url.query_pairs_mut().append_pair("q", query); + let own; + let session = match session { + Some(s) => s, + None => { + own = new_session(); + &own + } + }; + let html = + get_page(session, url.as_str()).map_err(|e| err(format!("ČSFD hledání selhalo: {e}")))?; + Ok(parse_search_page(&html, limit)) +} + +/// The first ČSFD film URL matching `query`. A trailing year that makes the +/// search miss is retried without it. +pub fn find_csfd_url(query: &str, session: Option<&Client>) -> Result, CoreError> { + let query = query.trim(); + if query.is_empty() { + return Ok(None); + } + let mut films = search_films(query, 1, session)?; + if films.is_empty() { + let without_year = TRAILING_YEAR_RE.replace(query, "").to_string(); + if without_year != query { + films = search_films(&without_year, 1, session)?; + } + } + Ok(films.into_iter().next().map(|f| f.url)) +} + +/// Turn a (possibly release-named) filename into a ČSFD search query: +/// `"Matrix.1999.1080p.BluRay.x264-GROUP.mkv"` → `"Matrix 1999"`. +pub fn clean_filename_to_query(filename: &str) -> String { + let stem = super::paths::stem(Path::new(filename)); + let mut title_words = Vec::new(); + let mut year = None; + for token in SPLIT_RE.split(&stem).filter(|t| !t.is_empty()) { + let bare = token.trim_matches(|c| "()[]{}".contains(c)); + if YEAR_FULL_RE.is_match(bare) { + year = Some(bare.to_string()); + break; + } + if RESOLUTION_RE.is_match(bare) || RELEASE_MARKERS.contains(&bare.to_lowercase().as_str()) { + break; + } + title_words.push(token); + } + let mut title = title_words.join(" ").trim().to_string(); + if title.is_empty() { + title = SPLIT_RE.replace_all(&stem, " ").trim().to_string(); + } + match year { + Some(y) => format!("{title} {y}").trim().to_string(), + None => title, + } +} + +#[cfg(test)] +mod tests { + use super::*; + + const FILM_HTML: &str = r#" + + + +
    +

    Vykoupení z věznice Shawshank

    +
      +
    • USA The Shawshank Redemption + více
    • + +
    +
    +
    USA + 1994 142 min
    + +"#; + + const CZECH_FILM_HTML: &str = r#" + + + +

    Pelíšky

    +
      +
    • Cosy Dens
    • +
    • Pelíšky
    • +
    +
    Česko 1999
    + +"#; + + const SEARCH_HTML: &str = r#" + +

    Filmy

    + Vykoupení z věznice Shawshank + Film o filmu +
    +

    Seriály

    + Arrow - Vykoupení +
    + +"#; + + #[test] + fn test_clean_filename_to_query_cases() { + assert_eq!( + clean_filename_to_query("Matrix.1999.1080p.BluRay.x264-GROUP.mkv"), + "Matrix 1999" + ); + assert_eq!( + clean_filename_to_query("Forrest Gump (1994) 2160p HDR.mkv"), + "Forrest Gump 1994" + ); + assert_eq!(clean_filename_to_query("Amelie.mkv"), "Amelie"); + assert_eq!(clean_filename_to_query("Sam_doma_720p.mkv"), "Sam doma"); + assert_eq!(clean_filename_to_query("1080p.mkv"), "1080p"); + } + + #[test] + fn test_extract_csfd_id_cases() { + assert_eq!( + extract_csfd_id("https://www.csfd.cz/film/2294-vykoupeni/prehled/"), + Some(2294) + ); + assert_eq!(extract_csfd_id("/film/999/"), Some(999)); + assert_eq!(extract_csfd_id("https://www.csfd.cz/"), None); + } + + #[test] + fn test_solve_anubis_pow_difficulty() { + let (hash_hex, nonce, _) = solve_anubis_pow("abc123", 1).unwrap(); + assert!(hash_hex.starts_with('0')); + assert_eq!( + hex(&Sha256::digest(format!("abc123{nonce}").as_bytes())), + hash_hex + ); + let (hash_hex, _, _) = solve_anubis_pow("seed", 2).unwrap(); + assert!(hash_hex.starts_with("00")); + } + + #[test] + fn test_parse_origin_cases() { + assert_eq!( + parse_origin(&Html::parse_document(FILM_HTML)), + (Some("USA".into()), Some("1994".into())) + ); + let html = r#"
    Francie / Německo 2001 120 min
    "#; + assert_eq!( + parse_origin(&Html::parse_document(html)), + (Some("Francie".into()), Some("2001".into())) + ); + } + + #[test] + fn test_parse_film_page_foreign_film() { + let film = parse_film_page(FILM_HTML, "https://www.csfd.cz/film/2294-vykoupeni/"); + assert_eq!(film.czech_title, "Vykoupení z věznice Shawshank"); + assert_eq!(film.original_title, "The Shawshank Redemption"); + assert_eq!(film.year.as_deref(), Some("1994")); + assert_eq!(film.csfd_id, Some(2294)); + assert_eq!( + film.tmdb_query(), + ("The Shawshank Redemption".into(), Some("1994".into())) + ); + } + + #[test] + fn test_parse_film_page_czech_film_falls_back_to_h1() { + let film = parse_film_page(CZECH_FILM_HTML, "https://www.csfd.cz/film/1/"); + assert_eq!(film.original_title, "Pelíšky"); + assert_eq!(film.year.as_deref(), Some("1999")); + } + + #[test] + fn test_parse_search_page_scopes_to_films() { + let films = parse_search_page(SEARCH_HTML, 5); + let urls: Vec<&str> = films.iter().map(|f| f.url.as_str()).collect(); + assert_eq!( + urls, + vec![ + "https://www.csfd.cz/film/2294-vykoupeni-z-veznice-shawshank/prehled/", + "https://www.csfd.cz/film/248803-film-o-filmu/prehled/", + ] + ); + assert_eq!(films[0].czech_title, "Vykoupení z věznice Shawshank"); + assert_eq!(parse_search_page(SEARCH_HTML, 1).len(), 1); + } + + #[test] + fn test_is_film_href_cases() { + assert!(is_film_href("/film/2294-vykoupeni/prehled/")); + assert!(!is_film_href("/film/318290-arrow/620181-x/prehled/")); + assert!(!is_film_href("/tvurce/1/")); + } + + #[test] + fn test_extract_json_blob() { + let html = r#""#; + assert_eq!( + extract_json_blob(html, "anubis_challenge").unwrap()["rules"]["difficulty"], + 2 + ); + assert!(extract_json_blob(html, "other").is_none()); + } +} diff --git a/src/core/error.rs b/src/core/error.rs new file mode 100644 index 0000000..62d871c --- /dev/null +++ b/src/core/error.rs @@ -0,0 +1,33 @@ +//! The error type shared by the core modules. + +use std::io; + +/// Everything a core operation can fail with. The `Display` text is shown to the +/// user as-is, so validation messages are written in Czech like the rest of the UI. +#[derive(Debug, thiserror::Error)] +pub enum CoreError { + /// Invalid input (bad year, empty title, unknown 3D format, …). + #[error("{0}")] + Invalid(String), + /// The target already exists and the caller asked not to overwrite it. + #[error("{0}")] + Exists(String), + /// Something expected on disk is missing. + #[error("{0}")] + NotFound(String), + /// A remote service (TMDb, ČSFD, Jellyfin) failed. + #[error("{0}")] + Remote(String), + #[error(transparent)] + Io(#[from] io::Error), + #[error(transparent)] + Json(#[from] serde_json::Error), +} + +impl CoreError { + pub fn invalid(msg: impl Into) -> Self { + Self::Invalid(msg.into()) + } +} + +pub type CoreResult = Result; diff --git a/src/core/file.py b/src/core/file.py deleted file mode 100644 index 47fedb6..0000000 --- a/src/core/file.py +++ /dev/null @@ -1,422 +0,0 @@ -import re -from pathlib import Path - -from .tag import Tag - - -class File: - def __init__(self, file_path: Path, tagmanager=None, index=None) -> None: - self.file_path = file_path - self.filename = file_path.name - # Unified pool index; when set, metadata is persisted there (see - # PoolIndex). Without an index a File is an in-memory object only — no - # metadata is written to disk (there are no per-file sidecars anymore). - self.index = index - self.new = True - self.ignored = False - self.tags: list[Tag] = [] - self.tagmanager = tagmanager - # new: optional date string "YYYY-MM-DD" (assigned manually) - self.date: str | None = None - # movie-library fields - self.title: str | None = None - # Optional ČSFD film URL — a second database pointer kept alongside the - # TMDb id (which lives in the filename). Stored only, not fetched. - self.csfd_url: str | None = None - # ISO timestamp of when the movie was added to the pool (set on import); - # None for older/unknown → falls back to the file's ctime. - self.added: str | None = None - # Cached metadata used for folder grouping (year, rating) — filled from - # the movie's NFO (which Jellyfin writes). - self.meta: dict | None = None - # full_paths of tags derived automatically from the NFO (vs. user-added); - # only these are regenerated on refresh — user tags are preserved. - self.auto_tag_paths: set[str] = set() - # free-form per-movie attributes (e.g. "collection_sort"); usable in - # miniDLNA filename templates via name_context. - self.attributes: dict[str, str] = {} - # Identity key of the movie record this file belongs to (set on load / - # first save); ``None`` only for an index-less, in-memory File. - self._movie_key: str | None = None - self.get_metadata() - - def _identity_from_path(self) -> tuple[str, str, str | None, int | None, str]: - """``(key, title, year, tmdb_id, label)`` implied by this file's location. - - A file inside its own ``Title (rok) [tmdbid]`` folder is one version of - that movie — identity comes from the **folder**, and the rest of its own - stem is the version label. A flat file carries both in its own name. - """ - from .movie import identity_key - from .naming import ( - is_canonical_pool_stem, - parse_3d_format, - parse_pool_stem, - parse_tmdb_id, - ) - - parent = self.file_path.parent.name - grouped = is_canonical_pool_stem(parent) - identity_stem = parent if grouped else self.file_path.stem - parsed = parse_pool_stem(identity_stem) - year = str(parsed[1]) if parsed else None - tmdb_id = parse_tmdb_id(identity_stem) - title = self.title or (parsed[0] if parsed else self.file_path.stem) - - label = "" - part = ( - re.fullmatch( - rf"{re.escape(parent)}[\s._-]*(?:part|pt|cd|dvd|disc|disk)[\s._-]*(\d{{1,2}})", - self.file_path.stem, - re.IGNORECASE, - ) - if grouped - else None - ) - if part: - # one part of a film split across files: "-part2" - label = f"part{int(part.group(1))}" - elif grouped and self.file_path.stem.startswith(f"{parent} - "): - label = self.file_path.stem[len(parent) + 3 :] - elif parse_3d_format(self.file_path.stem): - label = parse_3d_format(self.file_path.stem) or "" - return identity_key(tmdb_id, title, year), title, year, tmdb_id, label - - def get_metadata(self) -> None: - """Load this file's metadata from the movie record that owns it. - - Since the pool index became identity-keyed (see :mod:`src.core.movie`), - a File is a *view* on one media entry of a movie record — every version - of the same film therefore reads the same title/tags/ČSFD/… A file the - index doesn't know yet joins the movie of the same identity when there - is one (that's how a newly added version inherits the shared metadata - instead of blanking it), otherwise it starts a new record. - """ - if self.index is None: - self._init_new_metadata() - return - - found = self.index.find_movie_by_media(self.file_path) - if found is not None: - self._movie_key, record = found - self._apply_record(record) - return - - self._init_new_metadata() - key, *_ = self._identity_from_path() - existing = self.index.get_movie(key) - if existing is not None: - self._movie_key = key - self._apply_record(existing) - self.save_metadata() - - def _init_new_metadata(self) -> None: - self.new = True - self.ignored = False - self.tags = [] - self.date = None - self.title = None - self.csfd_url = None - self.meta = None - self.auto_tag_paths = set() - self.attributes = {} - self.added = None - - def _build_record(self) -> dict: - data = { - "new": self.new, - "ignored": self.ignored, - # ukládáme full_path tagů - "tags": [ - tag.full_path if isinstance(tag, Tag) else tag for tag in self.tags - ], - # which of the tags were derived automatically (from the NFO) - "auto_tags": sorted(self.auto_tag_paths), - # date může být None - "date": self.date, - "title": self.title, - "csfd_url": self.csfd_url, - "attributes": self.attributes, - "added": self.added, - } - if self.meta is not None: - data["meta"] = dict(self.meta) - return data - - def _apply_record(self, data: dict) -> None: - self.new = data.get("new", True) - self.ignored = data.get("ignored", False) - self.tags = [] - self.date = data.get("date", None) - self.title = data.get("title", None) - self.csfd_url = data.get("csfd_url", None) - # provenance of auto (NFO-derived) tags; legacy key "csfd_tags" honored - self.auto_tag_paths = set(data.get("auto_tags", data.get("csfd_tags", []))) - self.attributes = dict(data.get("attributes", {})) - self.added = data.get("added", None) - raw_meta = data.get("meta") - if raw_meta is None: # legacy: pull year/rating out of the old csfd cache - old = data.get("csfd_cache") or {} - raw_meta = ( - {"year": old.get("year"), "rating": old.get("rating")} if old else None - ) - self.meta = dict(raw_meta) if raw_meta else None - - if not self.tagmanager: - return - - for tag_str in data.get("tags", []): - if "/" in tag_str: - category, name = tag_str.split("/", 1) - tag = self.tagmanager.add_tag(category, name) - self.tags.append(tag) - - def save_metadata(self): - """Persist metadata into this file's movie record (no-op without index). - - Writes the shared fields onto the movie record and makes sure the - record lists this file among its media. A file the index has never seen - starts a new record under its own identity key. - """ - if self.index is None: - return - from .movie import ROLE_VIDEO - - derived_key, title, year, tmdb_id, label = self._identity_from_path() - key = self._movie_key or derived_key - record = self.index.get_movie(key) or {} - record.update(self._build_record()) - # The file's actual location is the truth — a move must update this. - record["library"] = self._library_name() - record["title"] = title - record["year"] = year - record["tmdb_id"] = tmdb_id - - # Keep this file listed exactly once, with the label its name implies. - rel = self.index._key(self.file_path) - media = [m for m in record.get("media", []) if m.get("file") != rel] - media.append({"role": ROLE_VIDEO, "label": label, "file": rel}) - record["media"] = media - - self.index.set_movie(key, record) - self._movie_key = key - - def _library_name(self) -> str: - """Top-level pool folder this file sits in (its library), or ``""``.""" - if self.index is None: - return "" - rel = self.index._key(self.file_path) - parts = Path(rel).parts - return parts[0] if len(parts) > 1 else "" - - def added_timestamp(self) -> float: - """Epoch seconds for 'date added' — the stored ``added`` or the file mtime. - - Used to order the "recently added" folder (newer = larger). The fallback - is **mtime**, not ctime: creating the Filmotéka hardlinks bumps the source - inode's ctime, which would make ctime-based ordering meaningless, whereas - mtime (preserved from the source on import) stays stable. - """ - if self.added: - try: - from datetime import datetime - - return datetime.fromisoformat(self.added).timestamp() - except ValueError: - pass - try: - return self.file_path.stat().st_mtime - except OSError: - return 0.0 - - def name_context(self) -> dict: - """Fields for a miniDLNA filename template (see config tag schema). - - Provides title / year / rating / ext / stem / filename from the movie's - metadata (year & rating come from the NFO cache, year falling back to a - ``Rok`` tag, then the canonical filename). Missing values render empty. - """ - cache = self.meta or {} - year = cache.get("year") - if year is None: - for t in self.tags: - if isinstance(t, Tag) and t.category == "Rok" and t.name.isdigit(): - year = t.name - break - if year is None: - # Last resort: recover it from a canonical "Title (YYYY)" filename. - from .naming import parse_pool_stem - - parsed = parse_pool_stem(self.file_path.stem) - if parsed is not None: - year = parsed[1] - rating = cache.get("rating") - # user attributes first; core fields take precedence over same-named keys - context = dict(self.attributes) - context.update( - { - "title": self.title or self.file_path.stem, - "year": "" if year is None else str(year), - "rating": "" if rating is None else rating, - "ext": self.file_path.suffix, - "stem": self.file_path.stem, - "filename": self.filename, - } - ) - return context - - def set_attribute(self, key: str, value: str | None) -> None: - """Set a free-form attribute (e.g. 'collection_sort'); None/'' removes it.""" - key = key.strip() - if not key: - return - if value: - self.attributes[key] = value - else: - self.attributes.pop(key, None) - self.save_metadata() - - def save_location(self) -> None: - """Persist a rename/move of this file without touching shared metadata. - - Every version of a film holds its own in-memory copy of the movie - record's shared fields (title, tags, ČSFD, …). A sibling loaded before - someone changed those fields would write its stale copy back on a plain - :meth:`save_metadata`. Re-reading the record first means only this - file's own media entry — path and popisek — actually changes. - """ - if self.index is not None and self.index.find_movie_by_media(self.file_path): - self.get_metadata() - self.save_metadata() - - def delete_metadata(self) -> None: - """Drop this file from its movie record; the last one takes the record. - - Removing one version of a multi-version movie leaves the movie (and its - metadata) in place — only when its last media entry goes does the whole - record go with it. - """ - if self.index is None: - return - found = self.index.find_movie_by_media(self.file_path) - if found is None: - return - key, record = found - rel = self.index._key(self.file_path) - record["media"] = [m for m in record.get("media", []) if m.get("file") != rel] - if record["media"]: - self.index.set_movie(key, record) - else: - self.index.delete_movie(key) - - def relocate(self, new_path: Path) -> None: - """Point this File at a new path, moving its media entry along. - - The physical file must already have been moved/renamed by the caller; - this only repoints the movie record's media entry (and the File), so a - rename never detaches a file from its movie. - """ - if self.index is not None: - found = self.index.find_movie_by_media(self.file_path) - if found is not None: - key, record = found - old_rel = self.index._key(self.file_path) - new_rel = self.index._key(Path(new_path)) - for media in record.get("media", []): - if media.get("file") == old_rel: - media["file"] = new_rel - self.index.set_movie(key, record) - self._movie_key = key - self.file_path = Path(new_path) - self.filename = self.file_path.name - - def set_date(self, date_str: str | None): - """Nastaví datum (např. '2025-09-25') nebo None pro smazání.""" - if date_str is None or date_str == "": - self.date = None - else: - # neprvádíme složitou validaci zde; očekáváme 'YYYY-MM-DD' - self.date = date_str - self.save_metadata() - - def apply_nfo(self, nfo, schema: list[dict] | None = None) -> dict: - """Regenerate the auto (NFO-derived) tags from the movie's NFO. - - Reads genres/year/countries/rating from ``nfo`` (``nfo.NfoData``) per the - tag schema's source fields and (re)creates those tags; user-added tags are - kept. Also caches year/rating (for folder grouping) and fills the title - when missing. ``nfo`` of ``None`` (no NFO yet) is a no-op. - - Returns: - dict with 'success' and 'tags_added'. - """ - if nfo is None: - return {"success": False, "error": "NFO nenalezeno", "tags_added": []} - - if schema is None: - from .config import DEFAULT_TAG_SCHEMA - - schema = DEFAULT_TAG_SCHEMA - - self.meta = {"year": nfo.year, "rating": nfo.rating} - - # Drop previous auto (NFO) tags; keep user-added ones. - self.tags = [t for t in self.tags if t.full_path not in self.auto_tag_paths] - self.auto_tag_paths = set() - - tags_added: list[str] = [] - for entry in schema: - field = entry.get("csfd_field") # schema key = source field name - if not field: - continue # user-only category - category = entry["category"] - for value in nfo.field_values(field): - tag_obj = ( - self.tagmanager.add_tag(category, value) - if self.tagmanager - else Tag(category, value) - ) - if tag_obj not in self.tags: - self.tags.append(tag_obj) - tags_added.append(tag_obj.full_path) - self.auto_tag_paths.add(tag_obj.full_path) - - if nfo.title and not self.title: - self.title = nfo.title - - self.save_metadata() - return {"success": True, "tags_added": tags_added} - - def add_tag(self, tag): - # tag může být Tag nebo string - from .tag import Tag as TagClass - - if isinstance(tag, str): - if "/" in tag and self.tagmanager: - category, name = tag.split("/", 1) - tag_obj = self.tagmanager.add_tag(category, name) - else: - tag_obj = TagClass("default", tag) - elif isinstance(tag, TagClass): - tag_obj = tag - else: - return - if tag_obj not in self.tags: - self.tags.append(tag_obj) - self.save_metadata() - - def remove_tag(self, tag): - # tag může být Tag nebo string (full_path) - if isinstance(tag, str): - if "/" in tag: - category, name = tag.split("/", 1) - tag_obj = Tag(category, name) - else: - tag_obj = Tag("default", tag) - elif isinstance(tag, Tag): - tag_obj = tag - else: - return - if tag_obj in self.tags: - self.tags.remove(tag_obj) - self.save_metadata() diff --git a/src/core/file.rs b/src/core/file.rs new file mode 100644 index 0000000..80a78c9 --- /dev/null +++ b/src/core/file.rs @@ -0,0 +1,736 @@ +//! One pooled video file — a *view* on one media entry of a movie record. +//! +//! The pool index is identity-keyed (see `movie`), so every version of the same +//! film reads the same title/tags/ČSFD/… A file the index doesn't know yet joins +//! the movie of the same identity when there is one (that's how a newly added +//! version inherits the shared metadata), otherwise it starts a new record. +//! +//! Without an index a `File` is an in-memory object only. + +use std::collections::{BTreeMap, BTreeSet}; +use std::path::{Path, PathBuf}; + +use chrono::{Local, NaiveDate, NaiveDateTime, TimeZone}; +use regex::Regex; +use serde_json::{Map, Value, json}; + +use super::config::TagSchemaEntry; +use super::error::CoreResult; +use super::movie::{ROLE_VIDEO, identity_key_for}; +use super::naming::{is_canonical_pool_stem, parse_3d_format, parse_pool_stem, parse_tmdb_id}; +use super::nfo::NfoData; +use super::paths; +use super::pool_index::{PoolIndex, truthy}; +use super::tag::Tag; +use super::tag_manager::TagManager; +use super::tmdb::TmdbDetails; + +/// Where auto tags come from — an NFO or TMDb details. +pub trait TagSource { + fn year(&self) -> Option; + fn rating(&self) -> Option; + fn title(&self) -> Option; + fn field_values(&self, name: &str) -> Vec; +} + +impl TagSource for NfoData { + fn year(&self) -> Option { + self.year.clone() + } + fn rating(&self) -> Option { + self.rating + } + fn title(&self) -> Option { + self.title.clone() + } + fn field_values(&self, name: &str) -> Vec { + NfoData::field_values(self, name) + } +} + +impl TagSource for TmdbDetails { + fn year(&self) -> Option { + self.year.clone() + } + fn rating(&self) -> Option { + self.rating + } + fn title(&self) -> Option { + Some(self.title.clone()).filter(|t| !t.is_empty()) + } + fn field_values(&self, name: &str) -> Vec { + TmdbDetails::field_values(self, name) + } +} + +/// What a file's location implies about the movie it belongs to. +#[derive(Debug, Clone, PartialEq)] +pub struct PathIdentity { + pub key: String, + pub title: String, + pub year: Option, + pub tmdb_id: Option, + /// Version label implied by the filename (`""` for a plain file). + pub label: String, +} + +#[derive(Debug, Clone, PartialEq)] +pub struct File { + pub file_path: PathBuf, + pub filename: String, + pub new: bool, + pub ignored: bool, + pub tags: Vec, + /// Optional date string "YYYY-MM-DD" (assigned manually). + pub date: Option, + pub title: Option, + /// ČSFD film URL — a second database pointer kept alongside the TMDb id. + pub csfd_url: Option, + /// ISO timestamp of when the movie was added to the pool. + pub added: Option, + /// Cached `year` / `rating` used for folder grouping (from the NFO). + pub meta: Option>, + /// Tags derived automatically (vs. user-added); only these are regenerated. + pub auto_tag_paths: BTreeSet, + /// Free-form per-movie attributes usable in miniDLNA filename templates. + pub attributes: BTreeMap, + /// Identity key of the movie record this file belongs to. + pub movie_key: Option, +} + +fn opt_str(v: Option<&Value>) -> Option { + match v? { + Value::String(s) if !s.is_empty() => Some(s.clone()), + Value::Number(n) => Some(n.to_string()), + _ => None, + } +} + +impl File { + /// A bare in-memory file (no metadata loaded). + pub fn bare(path: &Path) -> Self { + Self { + file_path: path.to_path_buf(), + filename: paths::name(path), + new: true, + ignored: false, + tags: Vec::new(), + date: None, + title: None, + csfd_url: None, + added: None, + meta: None, + auto_tag_paths: BTreeSet::new(), + attributes: BTreeMap::new(), + movie_key: None, + } + } + + /// Load a file's metadata from the movie record that owns it. + pub fn load( + path: &Path, + tm: &mut TagManager, + index: Option<&mut PoolIndex>, + ) -> CoreResult { + let mut f = Self::bare(path); + if let Some(index) = index { + f.get_metadata(tm, index)?; + } + Ok(f) + } + + /// (Re)read this file's metadata from the index; an unknown file joins the + /// movie of the same identity (or starts a new record) and is saved. + pub fn get_metadata(&mut self, tm: &mut TagManager, index: &mut PoolIndex) -> CoreResult<()> { + if let Some((key, record)) = index.find_movie_by_media(&self.file_path) { + let record = record.clone(); + self.movie_key = Some(key); + self.apply_record(&record, tm); + return Ok(()); + } + self.init_new_metadata(); + let key = self.identity_from_path().key; + if let Some(existing) = index.get_movie(&key).cloned() { + self.movie_key = Some(key); + self.apply_record(&existing, tm); + } + self.save_metadata(index) + } + + fn init_new_metadata(&mut self) { + let path = self.file_path.clone(); + *self = Self::bare(&path); + } + + /// Identity implied by this file's location. A file inside its own + /// `Title (rok) [tmdbid]` folder is one version of that movie — identity + /// comes from the folder, and the rest of its own stem is the label. + pub fn identity_from_path(&self) -> PathIdentity { + let parent = self.file_path.parent().map(paths::name).unwrap_or_default(); + let stem = paths::stem(&self.file_path); + let grouped = is_canonical_pool_stem(&parent); + let identity_stem = if grouped { + parent.clone() + } else { + stem.clone() + }; + let parsed = parse_pool_stem(&identity_stem); + let year = parsed.as_ref().map(|p| p.1.to_string()); + let tmdb_id = parse_tmdb_id(&identity_stem); + let title = self + .title + .clone() + .filter(|t| !t.is_empty()) + .unwrap_or_else(|| { + parsed + .as_ref() + .map_or_else(|| stem.clone(), |p| p.0.clone()) + }); + + let part = if grouped { + Regex::new(&format!( + r"(?i)^{}[\s._-]*(?:part|pt|cd|dvd|disc|disk)[\s._-]*(\d{{1,2}})$", + regex::escape(&parent) + )) + .ok() + .and_then(|re| re.captures(&stem).and_then(|c| c[1].parse::().ok())) + } else { + None + }; + let label = if let Some(n) = part { + format!("part{n}") + } else if let Some(rest) = grouped + .then(|| stem.strip_prefix(&format!("{parent} - "))) + .flatten() + { + rest.to_string() + } else { + parse_3d_format(&stem).unwrap_or_default() + }; + PathIdentity { + key: identity_key_for(tmdb_id, &title, year.as_deref()), + title, + year, + tmdb_id, + label, + } + } + + fn build_record(&self) -> Map { + let mut data = json!({ + "new": self.new, + "ignored": self.ignored, + "tags": self.tags.iter().map(Tag::full_path).collect::>(), + "auto_tags": self.auto_tag_paths.iter().collect::>(), + "date": self.date, + "title": self.title, + "csfd_url": self.csfd_url, + "attributes": self.attributes, + "added": self.added, + }); + if let (Some(meta), Some(obj)) = (&self.meta, data.as_object_mut()) { + obj.insert("meta".into(), Value::Object(meta.clone())); + } + match data { + Value::Object(m) => m, + _ => Map::new(), + } + } + + fn apply_record(&mut self, data: &Value, tm: &mut TagManager) { + self.new = data.get("new").and_then(Value::as_bool).unwrap_or(true); + self.ignored = data + .get("ignored") + .and_then(Value::as_bool) + .unwrap_or(false); + self.tags.clear(); + self.date = opt_str(data.get("date")); + self.title = opt_str(data.get("title")); + self.csfd_url = opt_str(data.get("csfd_url")); + let auto = data.get("auto_tags").or_else(|| data.get("csfd_tags")); + self.auto_tag_paths = auto + .and_then(Value::as_array) + .map(|a| { + a.iter() + .filter_map(|v| v.as_str().map(String::from)) + .collect() + }) + .unwrap_or_default(); + self.attributes = data + .get("attributes") + .and_then(Value::as_object) + .map(|o| { + o.iter() + .map(|(k, v)| { + ( + k.clone(), + v.as_str().map_or_else(|| v.to_string(), String::from), + ) + }) + .collect() + }) + .unwrap_or_default(); + self.added = opt_str(data.get("added")); + let raw_meta = match data.get("meta") { + None | Some(Value::Null) => data + .get("csfd_cache") + .and_then(Value::as_object) + .filter(|o| !o.is_empty()) + .map(|old| { + let mut m = Map::new(); + m.insert( + "year".into(), + old.get("year").cloned().unwrap_or(Value::Null), + ); + m.insert( + "rating".into(), + old.get("rating").cloned().unwrap_or(Value::Null), + ); + m + }), + Some(v) => v.as_object().cloned(), + }; + self.meta = raw_meta.filter(|m| !m.is_empty()); + for full in data + .get("tags") + .and_then(Value::as_array) + .into_iter() + .flatten() + { + if let Some(tag) = full.as_str().and_then(Tag::from_full_path) { + self.tags.push(tm.add_tag(&tag.category, &tag.name)); + } + } + } + + /// Top-level pool folder this file sits in (its library), or `""`. + fn library_name(&self, index: &PoolIndex) -> String { + let rel = index.rel_key(&self.file_path); + let parts: Vec<&str> = rel.split('/').filter(|p| !p.is_empty()).collect(); + if parts.len() > 1 { + parts[0].to_string() + } else { + String::new() + } + } + + /// Persist metadata into this file's movie record, listing the file among + /// its media exactly once with the label its name implies. + pub fn save_metadata(&mut self, index: &mut PoolIndex) -> CoreResult<()> { + let identity = self.identity_from_path(); + let key = self + .movie_key + .clone() + .unwrap_or_else(|| identity.key.clone()); + let mut record = index + .get_movie(&key) + .and_then(Value::as_object) + .cloned() + .unwrap_or_default(); + for (k, v) in self.build_record() { + record.insert(k, v); + } + record.insert("library".into(), Value::from(self.library_name(index))); + record.insert("title".into(), Value::from(identity.title)); + record.insert("year".into(), json!(identity.year)); + record.insert("tmdb_id".into(), json!(identity.tmdb_id)); + + let rel = index.rel_key(&self.file_path); + let mut media: Vec = record + .get("media") + .and_then(Value::as_array) + .map(|a| { + a.iter() + .filter(|m| m.get("file").and_then(Value::as_str) != Some(rel.as_str())) + .cloned() + .collect() + }) + .unwrap_or_default(); + media.push(json!({"role": ROLE_VIDEO, "label": identity.label, "file": rel})); + record.insert("media".into(), Value::Array(media)); + + index.set_movie(&key, Value::Object(record))?; + self.movie_key = Some(key); + Ok(()) + } + + /// Persist a rename/move without touching shared metadata: re-read the + /// record first so a stale in-memory copy can't overwrite newer fields. + pub fn save_location(&mut self, tm: &mut TagManager, index: &mut PoolIndex) -> CoreResult<()> { + if index.find_movie_by_media(&self.file_path).is_some() { + self.get_metadata(tm, index)?; + } + self.save_metadata(index) + } + + /// Drop this file from its movie record; the last one takes the record. + pub fn delete_metadata(&self, index: &mut PoolIndex) -> CoreResult<()> { + let Some((key, record)) = index.find_movie_by_media(&self.file_path) else { + return Ok(()); + }; + let mut record = record.clone(); + let rel = index.rel_key(&self.file_path); + let remaining: Vec = record + .get("media") + .and_then(Value::as_array) + .map(|a| { + a.iter() + .filter(|m| m.get("file").and_then(Value::as_str) != Some(rel.as_str())) + .cloned() + .collect() + }) + .unwrap_or_default(); + if remaining.is_empty() { + index.delete_movie(&key) + } else { + if let Some(obj) = record.as_object_mut() { + obj.insert("media".into(), Value::Array(remaining)); + } + index.set_movie(&key, record) + } + } + + /// Point this file at a new path, moving its media entry along. The physical + /// file must already have been moved by the caller. + pub fn relocate(&mut self, new_path: &Path, index: Option<&mut PoolIndex>) -> CoreResult<()> { + if let Some(index) = index + && let Some((key, record)) = index.find_movie_by_media(&self.file_path) + { + let mut record = record.clone(); + let old_rel = index.rel_key(&self.file_path); + let new_rel = index.rel_key(new_path); + if let Some(media) = record.get_mut("media").and_then(Value::as_array_mut) { + for m in media.iter_mut() { + if m.get("file").and_then(Value::as_str) == Some(old_rel.as_str()) { + m["file"] = Value::from(new_rel.clone()); + } + } + } + index.set_movie(&key, record)?; + self.movie_key = Some(key); + } + self.file_path = new_path.to_path_buf(); + self.filename = paths::name(new_path); + Ok(()) + } + + /// Epoch seconds for "date added" — the stored `added` or the file mtime + /// (not ctime: creating hardlinks bumps the source's ctime). + pub fn added_timestamp(&self) -> f64 { + if let Some(ts) = self.added.as_deref().and_then(parse_iso_local) { + return ts; + } + std::fs::metadata(&self.file_path) + .and_then(|m| m.modified()) + .ok() + .and_then(|t| t.duration_since(std::time::UNIX_EPOCH).ok()) + .map_or(0.0, |d| d.as_secs_f64()) + } + + /// The movie's year: NFO cache → a `Rok` tag → the canonical filename. + pub fn year(&self) -> Option { + let cached = self + .meta + .as_ref() + .and_then(|m| m.get("year")) + .filter(|v| !v.is_null()); + if let Some(v) = cached { + return Some(v.as_str().map_or_else(|| v.to_string(), String::from)); + } + if let Some(t) = self.tags.iter().find(|t| { + t.category == "Rok" && !t.name.is_empty() && t.name.chars().all(|c| c.is_ascii_digit()) + }) { + return Some(t.name.clone()); + } + parse_pool_stem(&paths::stem(&self.file_path)).map(|p| p.1.to_string()) + } + + /// The cached 0–100 rating, if any. + pub fn rating(&self) -> Option { + self.meta.as_ref()?.get("rating")?.as_f64() + } + + /// Fields for a miniDLNA filename template: title / year / rating / ext / + /// stem / filename (+ user attributes, which core fields override). + pub fn name_context(&self) -> BTreeMap { + let mut ctx = self.attributes.clone(); + let stem = paths::stem(&self.file_path); + let rating = self + .meta + .as_ref() + .and_then(|m| m.get("rating")) + .filter(|v| !v.is_null()) + .map(|v| v.as_str().map_or_else(|| v.to_string(), String::from)) + .unwrap_or_default(); + ctx.insert( + "title".into(), + self.title + .clone() + .filter(|t| !t.is_empty()) + .unwrap_or_else(|| stem.clone()), + ); + ctx.insert("year".into(), self.year().unwrap_or_default()); + ctx.insert("rating".into(), rating); + ctx.insert("ext".into(), paths::suffix(&self.file_path)); + ctx.insert("stem".into(), stem); + ctx.insert("filename".into(), self.filename.clone()); + ctx + } + + /// Regenerate the auto tags from an NFO / TMDb source per the tag schema; + /// user-added tags are kept. Returns the newly added tag paths. + pub fn apply_tags_from( + &mut self, + source: &dyn TagSource, + schema: &[TagSchemaEntry], + tm: &mut TagManager, + index: Option<&mut PoolIndex>, + ) -> CoreResult> { + let mut meta = Map::new(); + meta.insert("year".into(), json!(source.year())); + meta.insert("rating".into(), json!(source.rating())); + self.meta = Some(meta); + + let old_auto = std::mem::take(&mut self.auto_tag_paths); + self.tags.retain(|t| !old_auto.contains(&t.full_path())); + + let mut added = Vec::new(); + for entry in schema { + let Some(field) = entry.csfd_field.as_deref().filter(|f| !f.is_empty()) else { + continue; + }; + for value in source.field_values(field) { + let tag = tm.add_tag(&entry.category, &value); + if !self.tags.contains(&tag) { + added.push(tag.full_path()); + self.tags.push(tag.clone()); + } + self.auto_tag_paths.insert(tag.full_path()); + } + } + if let Some(t) = source + .title() + .filter(|_| self.title.as_deref().is_none_or(str::is_empty)) + { + self.title = Some(t); + } + if let Some(index) = index { + self.save_metadata(index)?; + } + Ok(added) + } + + pub fn has_tag(&self, tag: &Tag) -> bool { + self.tags.contains(tag) + } + + pub fn tag_paths(&self) -> BTreeSet { + self.tags.iter().map(Tag::full_path).collect() + } +} + +/// Parse a Python-style ISO timestamp (naive = local time) to epoch seconds. +fn parse_iso_local(s: &str) -> Option { + let naive = NaiveDateTime::parse_from_str(s, "%Y-%m-%dT%H:%M:%S%.f") + .or_else(|_| NaiveDateTime::parse_from_str(s, "%Y-%m-%d %H:%M:%S%.f")) + .or_else(|_| NaiveDateTime::parse_from_str(s, "%Y-%m-%dT%H:%M")) + .ok() + .or_else(|| { + NaiveDate::parse_from_str(s, "%Y-%m-%d") + .ok() + .and_then(|d| d.and_hms_opt(0, 0, 0)) + })?; + Local + .from_local_datetime(&naive) + .earliest() + .map(|dt| dt.timestamp() as f64) +} + +/// Current local time as `YYYY-MM-DDTHH:MM:SS` (what `added` stores). +pub fn now_iso() -> String { + Local::now().format("%Y-%m-%dT%H:%M:%S").to_string() +} + +/// Is a tag value considered set (Python truthiness on JSON)? +pub fn json_truthy(v: &Value) -> bool { + truthy(v) +} + +#[cfg(test)] +mod tests { + use super::*; + use std::fs; + + fn touch(p: &Path) { + fs::create_dir_all(p.parent().unwrap()).unwrap(); + fs::write(p, "x").unwrap(); + } + + #[test] + fn test_identity_flat_and_grouped() { + let f = File::bare(Path::new( + "/pool/Filmy/Matrix (1999) [tmdbid-603].3D.HSBS.mkv", + )); + let id = f.identity_from_path(); + assert_eq!( + (id.key.as_str(), id.title.as_str(), id.label.as_str()), + ("tmdb-603", "Matrix", "HSBS") + ); + let g = File::bare(Path::new( + "/pool/Filmy/Avatar (2009) [tmdbid-19995]/Avatar (2009) [tmdbid-19995] - 4K.mkv", + )); + assert_eq!(g.identity_from_path().label, "4K"); + let p = File::bare(Path::new( + "/pool/Filmy/Avatar (2009) [tmdbid-19995]/Avatar (2009) [tmdbid-19995]-part2.mkv", + )); + assert_eq!(p.identity_from_path().label, "part2"); + let plain = File::bare(Path::new( + "/pool/Filmy/Avatar (2009) [tmdbid-19995]/Avatar (2009) [tmdbid-19995].mkv", + )); + assert_eq!(plain.identity_from_path().label, ""); + } + + #[test] + fn test_save_and_reload_metadata_through_index() { + let dir = tempfile::tempdir().unwrap(); + let video = dir.path().join("Filmy/Matrix (1999) [tmdbid-603].mkv"); + touch(&video); + let mut index = PoolIndex::open(dir.path()); + let mut tm = TagManager::new(); + let mut f = File::load(&video, &mut tm, Some(&mut index)).unwrap(); + f.title = Some("Matrix".into()); + f.csfd_url = Some("https://www.csfd.cz/film/9499/".into()); + f.tags.push(tm.add_tag("Žánr", "Sci-Fi")); + f.save_metadata(&mut index).unwrap(); + + let mut index2 = PoolIndex::open(dir.path()); + let mut tm2 = TagManager::new(); + let back = File::load(&video, &mut tm2, Some(&mut index2)).unwrap(); + assert_eq!( + back.csfd_url.as_deref(), + Some("https://www.csfd.cz/film/9499/") + ); + assert_eq!( + back.tag_paths(), + ["Žánr/Sci-Fi".to_string()].into_iter().collect() + ); + let rec = index2.get_movie("tmdb-603").unwrap(); + assert_eq!(rec["library"], "Filmy"); + assert_eq!(rec["year"], "1999"); + assert_eq!( + rec["media"][0]["file"], + "Filmy/Matrix (1999) [tmdbid-603].mkv" + ); + } + + #[test] + fn test_two_versions_share_one_record() { + let dir = tempfile::tempdir().unwrap(); + let folder = dir.path().join("Filmy/Avatar (2009) [tmdbid-19995]"); + let a = folder.join("Avatar (2009) [tmdbid-19995].mkv"); + let b = folder.join("Avatar (2009) [tmdbid-19995].3D.HSBS.mkv"); + touch(&a); + touch(&b); + let mut index = PoolIndex::open(dir.path()); + let mut tm = TagManager::new(); + let mut fa = File::load(&a, &mut tm, Some(&mut index)).unwrap(); + fa.csfd_url = Some("u".into()); + fa.save_metadata(&mut index).unwrap(); + let fb = File::load(&b, &mut tm, Some(&mut index)).unwrap(); + assert_eq!(fb.csfd_url.as_deref(), Some("u")); + assert_eq!(index.records.len(), 1); + assert_eq!( + index.get_movie("tmdb-19995").unwrap()["media"] + .as_array() + .unwrap() + .len(), + 2 + ); + + fb.delete_metadata(&mut index).unwrap(); + assert_eq!( + index.get_movie("tmdb-19995").unwrap()["media"] + .as_array() + .unwrap() + .len(), + 1 + ); + fa.delete_metadata(&mut index).unwrap(); + assert!(index.records.is_empty()); + } + + #[test] + fn test_relocate_moves_media_entry() { + let dir = tempfile::tempdir().unwrap(); + let old = dir.path().join("Filmy/Old (1999).mkv"); + touch(&old); + let mut index = PoolIndex::open(dir.path()); + let mut tm = TagManager::new(); + let mut f = File::load(&old, &mut tm, Some(&mut index)).unwrap(); + let new = dir.path().join("Kids/Old (1999).mkv"); + f.relocate(&new, Some(&mut index)).unwrap(); + assert!(index.find_movie_by_media(&new).is_some()); + assert_eq!(f.filename, "Old (1999).mkv"); + } + + #[test] + fn test_name_context_and_year_fallbacks() { + let mut f = File::bare(Path::new("/p/Filmy/Matrix (1999).mkv")); + f.attributes.insert("collection_sort".into(), "01".into()); + let ctx = f.name_context(); + assert_eq!(ctx["year"], "1999"); + assert_eq!(ctx["title"], "Matrix (1999)"); + assert_eq!(ctx["ext"], ".mkv"); + assert_eq!(ctx["collection_sort"], "01"); + f.tags.push(Tag::new("Rok", "2001")); + assert_eq!(f.year().as_deref(), Some("2001")); + let mut meta = Map::new(); + meta.insert("year".into(), Value::from("1998")); + meta.insert("rating".into(), Value::from(87)); + f.meta = Some(meta); + assert_eq!(f.name_context()["year"], "1998"); + assert_eq!(f.name_context()["rating"], "87"); + } + + #[test] + fn test_apply_tags_from_nfo_keeps_user_tags() { + let mut tm = TagManager::new(); + let mut f = File::bare(Path::new("/p/Filmy/Matrix (1999).mkv")); + f.tags.push(tm.add_tag("Vlastní", "Oblíbené")); + f.tags.push(tm.add_tag("Žánr", "Starý")); + f.auto_tag_paths.insert("Žánr/Starý".into()); + let nfo = NfoData { + title: Some("Matrix".into()), + year: Some("1999".into()), + genres: vec!["Akční".into(), "Sci-Fi".into()], + countries: vec!["USA".into()], + rating: Some(87), + ..Default::default() + }; + let schema = crate::core::config::default_tag_schema(); + f.apply_tags_from(&nfo, &schema, &mut tm, None).unwrap(); + let paths = f.tag_paths(); + for p in [ + "Vlastní/Oblíbené", + "Žánr/Akční", + "Žánr/Sci-Fi", + "Rok/1999", + "Země původu/USA", + "Hodnocení/87", + ] { + assert!(paths.contains(p), "{p}"); + } + assert!(!paths.contains("Žánr/Starý")); + assert!(!f.auto_tag_paths.contains("Vlastní/Oblíbené")); + assert_eq!(f.title.as_deref(), Some("Matrix")); + assert_eq!(f.meta.as_ref().unwrap()["rating"], 87); + } + + #[test] + fn test_added_timestamp_parses_iso() { + let mut f = File::bare(Path::new("/nonexistent.mkv")); + assert_eq!(f.added_timestamp(), 0.0); + f.added = Some("2026-01-02T03:04:05".into()); + assert!(f.added_timestamp() > 1.7e9); + } +} diff --git a/src/core/file_manager.py b/src/core/file_manager.py deleted file mode 100644 index 3b1d489..0000000 --- a/src/core/file_manager.py +++ /dev/null @@ -1,2507 +0,0 @@ -import re -import shutil -from collections import Counter -from collections.abc import Callable, Iterable, Mapping -from datetime import datetime -from pathlib import Path - -from src.core.config import DEFAULT_TAG_SCHEMA, load_global_config, save_global_config - -from . import subtitles -from .file import File -from .integrity import IntegrityResult, check_video_integrity, ffmpeg_available -from .naming import ( - canonical_pool_stem, - is_canonical_pool_stem, - is_valid_year, - parse_3d_format, - parse_pool_stem, - parse_tmdb_id, -) -from .pool_index import PoolIndex -from .tag_manager import TagManager -from .utils import list_files - -# Top-level folders inside the managed pool -POOL_MOVIES = "Filmy" -POOL_SERIES = "Seriály" - -# A pool library (top-level folder) has one of these kinds: -# movie — single-file movies, TMDb naming (Title (rok) [tmdbid].ext) -# series — series/season/episode tree, mirrored as-is (Jellyfin Shows) -# mixed — both movies and series in one folder (Jellyfin "Mixed"; wiring TBD) -# homevideo — files without TMDb (home videos; Jellyfin "Home videos"; wiring TBD) -LIBRARY_KINDS = ("movie", "series", "mixed", "homevideo") -_DEFAULT_LIBRARIES = [ - {"name": POOL_MOVIES, "kind": "movie"}, - {"name": POOL_SERIES, "kind": "series"}, -] - -# Library-level settings that live in the pool index (not the global config). -# ``libraries`` is the source of truth; the legacy ``movie_libraries`` / -# ``copyasis_folders`` are kept only to synthesise ``libraries`` for old pools. -_LIBRARY_SETTINGS_DEFAULTS = { - "tag_schema": DEFAULT_TAG_SCHEMA, - "copyasis_folders": [POOL_SERIES], - "movie_libraries": [POOL_MOVIES], -} - -# Curator metadata files that must never be treated as content. The legacy -# per-file (.!tag) and per-folder (.!ftag) sidecars are no longer written, but -# stray ones are still skipped so they never leak into the Filmotéka. -METADATA_SUFFIXES = (".!tag", ".!ftag", ".!gtag", ".!index") - -# Sidecars Jellyfin writes next to a movie (NFO + artwork/subtitles). These are -# not movies and must be skipped when scanning a library. -SIDECAR_SUFFIXES = ( - ".nfo", - ".jpg", - ".jpeg", - ".png", - ".webp", - ".bmp", - ".gif", - ".tbn", - ".srt", - ".ass", - ".ssa", - ".sub", - ".idx", - ".vtt", -) - - -def _version_filename(stem: str, label: str, suffix: str) -> str: - """Filename of one version of a movie folder. - - The default version ("Výchozí", or no label at all) carries no label — - it's just ````, the same name the movie had flat. A part - label (``part2``, ``CD2``, … see :func:`movie.normalize_part_label`) is - ``-part``. Any other version is `` -