-# w1nst0n
-# 0x192
-# “Frigyes06”
-# Frigyes
-# Frigyes06
-# Frigyes Erdosi-Szucs
-# Frigyes Erdosi Szucs
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..a470fd6
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,223 @@
+# Changelog
+
+**THIS IS AN UNOFFICIAL FORK**
+
+All notable changes to this project will be documented in this file.
+
+The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
+and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+
+The sections should follow the order `Apps`, `Added`, `Changed`, `Fixed`, `Packaging`
+and `Removed`.
+
+## [0.6.2] - Released
+
+### Apps
+
+- [[#65](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/65)] improved package descriptions
+- [[#61](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/61)] pkg(`com.samsung.android.providers.contacts`): improve description
+- [[#59](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/59)] pkg(`com.qualcomm.qcrilmsgtunnel`): change removal and description
+- [[#58](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/58)] pkg(`com.google.android.googlequicksearchbox`): improve description
+- [[#39](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/39)] Added new Wi-Fi related packages, custom Bluetooth overlay package, Google system packages, and systemui package
+- [[#40](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/40)] Added new package for MediaTek devices and the POCO Launcher resources, IMS Service Entitlement feature, UWB communication feature, Mediatek Duraspeed, and Mediatek Soc Package.
+- [[#44](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/44)] Added a lot of new packages
+- [[#46](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/46)] Added more packages and updated descriptions
+
+### Fixed
+
+- [[#72](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/72)] Reduced startup window size
+
+### Changed
+
+- [[#71](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/71)] Reversed #18 to only list system packages
+
+## [0.6.1] - Released
+
+### Apps
+- [[#21](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/21)] Added android.autoinstalls.config.Xiaomi.model package
+- [[#23](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/23)] Modified the description for ASOP camera app.
+- [[#25](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/25)] Added and edited packages
+- [[#27](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/27)] Added com.android.cellbroadcastreceiver.module
+
+### Fixed
+- [[#35](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/35)] OpenGL Drivers
+
+### Changed
+- [[#34](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/34)] Updated links to new repo
+- [[#26](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/26)] Updated GUI libraries.
+
+## [0.6.0] - Released
+
+### Apps
+- [[#13](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/13)] Addedcom.telus.myaccount package.
+- [[#15](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/15)] Added More Wiko oem packages.
+
+### Fixed
+- [[#14](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/14)] Fixed typos in uad_list.json
+- [[#18](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/18)] Fixed ADB command to include all packages, not just system packages. Also fixed uad_list update url.
+- TikTok app description.
+
+## [0.5.2] - Released
+
+**WARNING: Settings specification has changed. Previous user settings will be erased**.
+
+### Added
+- [[#11](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/pull/11)] All of AnonymousWP's patches. This release notes will probably be restarted as issue counter is reset on fork.
+
+- [[#374](https://github.com/0x192/universal-android-debloater/pull/374)] **Device-specific persistent configuration:** Some settings are now device-specific which means you can maintain different settings across several devices.
+
+- [[#447](https://github.com/0x192/universal-android-debloater/pull/447)] **Backup/Restore the state of a device:** Quick and easy way to save the state of all the system apps on a device and restore it.
+
+- [[#450](https://github.com/0x192/universal-android-debloater/pull/450)] **Warn the user when a work profile is detected:** Displays a warning message when switching to a work profile user and displays unavailable work profile users in the settings.
+
+### Changed
+- [[#374](https://github.com/0x192/universal-android-debloater/pull/374)] ALL settings are now persistent.
+
+### Fixed
+- [[#448](https://github.com/0x192/universal-android-debloater/pull/448)] UAD crash when interacting with work profiles on recent phones.
+
+### Removed
+- The `Export current selection` button and the unintuitive auto import selection (see https://github.com/0x192/universal-android-debloater/issues/192) have been replaced by the new backup/restore system.
+
+## [0.5.1] - 2022-07-03
+
+Since `0.5.0`, all changes related to apps are available to users without downloading a new version of UAD as the software directly download the json debloat list from Github. These changes can be tracked in commits with `[Pkg]` in their name. [See the commits](https://github.com/0x192/universal-android-debloater/commits/main)
+
+### Added
+- [[#209](https://github.com/0x192/universal-android-debloater/issues/209)] Persistent highlighting when you click on a package
+
+### Changed
+- `neededBy` and `dependencies` field can now list multiple packages (feature not visible in the UI yet)
+
+### Fixed
+- [[#286](https://github.com/0x192/universal-android-debloater/issues/286)] UAD stuck on "Downloading UAD lists. Please wait" screen
+
+## Packaging
+- [[#256](https://github.com/0x192/universal-android-debloater/issues/256)] Fixed typo in the release name of the noseflupdate variation
+- Bump dependencies
+
+## [0.5.0] - 2022-04-03
+
+### Apps
+
+- [[#115](https://github.com/0x192/universal-android-debloater/issues/115)] Added `com.tblenovo.lenovotips` to the recommended list.
+- [[#120](https://github.com/0x192/universal-android-debloater/pull/120)] Move Google keyboard to `Advanced` list (Default keyboards should not be in the `Recommended` list)
+- [[#169](https://github.com/0x192/universal-android-debloater/issues/154) Move `com.android.htmlviewer` to the `Expert` list. Removing it bootloop the device on MIUI 12.5.4+.
+
+Huge thanks to [@KarlRamstedt](https://github.com/KarlRamstedt) for their help in this major debloat list update:
+- [[#122](https://github.com/0x192/universal-android-debloater/pull/122)] Added a bunch of new packages
+- [[#122](https://github.com/0x192/universal-android-debloater/pull/122)] A lot of description updates and fixes
+- [[#122](https://github.com/0x192/universal-android-debloater/pull/122) | [#138](https://github.com/0x192/universal-android-debloater/pull/138)] Big revision of the recommendations according to more consistent criteria ([see the wiki](https://github.com/0x192/universal-android-debloater/wiki/FAQ#how-are-the-recommendations-chosen))
+
+### Added
+- [[#68](https://github.com/0x192/universal-android-debloater/issue/68)] **Unselect all button**: Let's you unselect all the packages you see on screen (i.e in the current filtered list).
+- [[#119](https://github.com/0x192/universal-android-debloater/issue/119)] **Reboot button**: Let's you quickly reboot the currently selected device.
+- [[#110](https://github.com/0x192/universal-android-debloater/pull/110)] **Remote `uad_lists.json` download**: The debloat list is now directly fetched from the main branch of this repo when you launch UAD. This means there is no longer the need to release a new version of UAD for updating the debloat lists! :rocket:
+- [[#121](https://github.com/0x192/universal-android-debloater/pull/121)] :arrows_counterclockwise: **UAD self-update**: UAD will now check at launch if there is a new version of itself and enable you to perform the update directly from the app! :rocket:
+
+### Changed
+- [[#165](https://github.com/0x192/universal-android-debloater/issues/165)] UAD now tries every 500ms (for 1min) to initiate an ADB connection until a device is found during the `FindingPhones` loading state.
+- All the init process was reworked and a status message is displayed at each stage (`DownloadingList`, `FindingPhones`,`LoadingPackages`,`UpdatingUad` `Ready`) so you know what is happening.
+- Minor UI changes
+
+### Packaging
+- Add a `no-self-update` build for MacOS and Linux. Useful if UAD is distributed into repositories. The update process will then be managed by a package manager.
+- MacOS builds are now also be released as a compressed tarball (like for Linux). You won't need to manually add the executable permission anymore. ([more info](https://github.com/actions/upload-artifact/issues/38))
+- Bump dependencies
+
+
+## [0.4.1] - 2022-01-31
+
+### Fixed
+- Selection counter never decreasing.
+
+## [0.4] - 2022-01-30
+
+### Apps
+- [[#92](https://github.com/0x192/universal-android-debloater/pull/92)] Added 3 Fairphone packages + 7 Qualcomm packages (thanks [@VeH-c](https://github.com/VeH-c))
+- [[#87](https://github.com/0x192/universal-android-debloater/pull/87)] Added 2 Unihertz packages (thanks [@rar0ch](https://github.com/rar0ch))
+- [[#52](https://github.com/0x192/universal-android-debloater/issues/52)] Added `uk.co.ee.myee` to the debloat lists (thanks [@lawson58](https://github.com/lawson85)).
+- [[#58](https://github.com/0x192/universal-android-debloater/issues/52)] Added `android` to the debloat lists with the tag `Unsafe`.
+- Added 2 new Xiaomi packages to the `Recommended` list.
+- Multiple package description improvement (thanks [@jonas-ott](https://github.com/jonas-ott) and [@felurx](https://github.com/felurx) for the help)
+- Review of the package lists recommendations. The `Recommended` debloat list is now safer (less likely to remove something you'd want to keep).
+
+### Added
+- [[#49](https://github.com/0x192/universal-android-debloater/issues/49)] Multi-device support: You are now able to select a device among the list of all ADB connected devices/emulators.
+- [[#44](https://github.com/0x192/universal-android-debloater/issues/44)] Persistent settings: Settings (only `theme` for now) are saved to a config file. Its location follows [the standards of the different OS](https://github.com/dirs-dev/dirs-rs#example).
+- Links to the Github page, wiki, github issues and logfiles in the `About` page.
+
+### Changed
+- [[#65](https://github.com/0x192/universal-android-debloater/issues/65)] ADB commands now run in parallel and asynchronously! This means no more UI freeze when performing long/many actions! :rocket:
+- UI now updates itself in real time when performing ADB actions (thanks to async & multithreading). Before, it waited for the end of all actions.
+- Logfiles are now located in a more conventional place: [cache_dir](https://docs.rs/dirs/latest/dirs/).
+- Previous logs are no longer overwritten. The logger now only appends to the current logfile of the day (UAD_%Y%m%d.log).
+- Each new day the logger will create a new file on UAD launch.
+- [[#78](https://github.com/0x192/universal-android-debloater/issues/78)] Disable mode is now only available on Android 6+ because the disable ADB commands do not work without root on older devices. The setting will be greyed-out for those devices.
+- Minor light theme update
+
+
+### Fixed
+- [[#50](https://github.com/0x192/universal-android-debloater/issues/50)] Resync button flipping theme back to `Lupin`.
+- [Regression ([048e7f](https://github.com/0x192/universal-android-debloater/commit/048e7fc8fd6d44b0e8ba933c289249366254a9cc))] Weird disabled/greyed action button with older devices (< Android 8.0). Package could be selected but no action was performed.
+- [[#78](https://github.com/0x192/universal-android-debloater/issues/78)] Packages not being actually uninstalled on older devices (< Android 6.0). Without root we can only use `pm block`/`pm unblock` for Android KitKit (4.4) and `pm hide`/`pm unhide` on Android Lollipop (5.x).
+
+### Packaging
+- For Arch-based users, UAD is now available in the AUR: `universal-android-debloater-bin` (binary) and `universal-android-debloater` (from source)
+- Bump dependencies
+
+
+## [0.3] - 2021-10-10
+
+### Added
+- [[#16](https://github.com/0x192/universal-android-debloater/issues/16)] Multi-user support: You can now debloat/restore apps for any user of the phone (not only the primary user 0).
+ - `Multi user mode` setting (default to `on` for Android 5+) allowing to remove packages for all users ([a work profile is another user](https://developer.android.com/work/managed-profiles)) instead of only the selected user.
+ - User switcher (picklist).
+- [[#11](https://github.com/0x192/universal-android-debloater/issues/11)] New themes: light, dark and lupin. Lupin theme is now the new default theme. Themes can be changed from the settings.
+- [[#40](https://github.com/0x192/universal-android-debloater/issues/40)] Description field scrollbar: you can now scroll long descriptions.
+
+### Fixed
+- [Regression] Unsafe packages can be deleted without enabling `expert mode`.
+- The refresh button doesn't update settings when a (new) phone is connected.
+- [Regression] Restore buttons are disabled when connecting an Android 8.0 phone.
+- [[#17](https://github.com/0x192/universal-android-debloater/issues/17)] Refresh icon does not appear.
+
+## [0.2.2] - 2021-09-30
+
+### Fixed
+- Crash when connecting a LG device (#33)
+
+## [0.2.1] - 2021-09-28
+
+### Added
+- Software version in the navigation panel
+
+### Packaging
+- `wgpu` renderer is not the default renderer (you don't need to add `--features wgpu` if you want to build UAD with `wgpu`)
+
+### Fixed
+- [[#35](https://github.com/0x192/universal-android-debloater/issues/35)] Exported selection not found
+
+## [0.2] - 2021-09-26
+
+### Added
+- [[#2](https://github.com/0x192/universal-android-debloater/issues/2)] UAD now comes with a logger. Debug information will be written to a `uad.log` file (Warning level log in *stdout*)
+- [[#15](https://github.com/0x192/universal-android-debloater/issues/15)] Support for older phone (< Android 8.0):
+- Disable mode in settings: clear and disable packages instead of uninstalling them (default for old phones because you can't restore uninstalled packages)
+- [[#8](https://github.com/0x192/universal-android-debloater/issues/8)] Export your selection in the `uad_exported_selection.txt` file. Packages from this file (if found in the current directory) will be automatically selected upon the start of UAD (or after a refresh).
+
+### Changed
+- [[#25](https://github.com/0x192/universal-android-debloater/issues/25)] UAD will no longer crash at start if it doesn't find ADB but will display a useful error message
+- [[#3](https://github.com/0x192/universal-android-debloater/issues/3)] Better handling of ADB errors
+- Updated dependencies (compatibility with [Iced](https://github.com/iced-rs/iced) main branch latest commit)
+- Cleanup and refactoring of the code
+- Performance improvement
+- Various UI/UX improvement
+- The `Debloat/Restore selection` button has been split in 2 buttons: `removing` and `restoring`
+
+### Packaging
+- Added an alternative build that uses [OpenGL](https://fr.wikipedia.org/wiki/OpenGL) (instead of [Vulkan](https://fr.wikipedia.org/wiki/Vulkan_(API))) for compatibility with older computers. If you encouter some visual glitches with the default Vulkan build you should try the OpenGL build.
+
+### Fixed
+- Spelling mistake
+- Failed build with MSVC toolchain
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
deleted file mode 100644
index 1df3b89..0000000
--- a/CONTRIBUTING.md
+++ /dev/null
@@ -1,92 +0,0 @@
-# Contributors Guide
-
-## For who is this guide?
-
-This guide is meant for users who want to contribute to the codebase of Universal Android Debloater Next Generation, whether that is the application code or [the "database"-file for adding packages](https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/wiki/How-to-contribute). To keep all processes streamlined and consistent, we're asking you to stick to this guide whenever contributing.
-
-Even though the guide is made for contributors, it's also strongly recommended that the UAD-ng team sticks to these guidelines. After all, we're a prime example.
-
-## What are the guidelines?
-
-### Mass edits
-
-If you've performed massive edits via automation, you must specify what automation you used. For example, if you ran the command:
-
-```sh
-sed -i 's/a/b/' resources/assets/uad_lists.json
-```
-
-You should copy-paste that cmd to the pull-request description. This rule applies even if you use "proper" cmds such as `jq`, which safely edit structured data. And it also applies to AI, *especially* LLMs.
-
-This is required so that we can review your big patch without reading it. This improves [transparency](https://en.wikipedia.org/wiki/Transparency_(behavior)), which makes you more trust-worthy! Bonus points if you can provide a sequence of cmds that proves your patch contains exactly what you said it does. For the simple `sed` case, something like:
-
-```sh
-# alt: `gh pr checkout 0000 && git checkout main`
-git remote add fork https://github.com/user/uadng
-git fetch fork
-# example commit hash from upstream (not fork);
-# more reproducible than branch-name
-git checkout beefcafe
-sed -i 's/a/b/' resources/assets/uad_lists.json
-# compare unstaged change with commit from fork
-git diff cafebeef
-```
-
-Should be enough.
-
-You should be careful with mass-editing anyways. Even if the verification is successful, the effects [might not be what you expect](https://en.wikipedia.org/wiki/Scunthorpe_problem).
-
-Since AI is non-deterministic, the version number is optional, but it's helpful to know how "intelligent" it is. AI edits are non-reproducible, so "verification scripts" are useless.
-
-### Branching strategy
-
-As for our branching strategy, we're using [Trunk-Based Development](https://trunkbaseddevelopment.com/#one-line-summary).
-
-In short, there's one trunk branch named `main` (`master`). Apart from `main`/`master` there can be different short-lived branches, such as:
-
-- Features (`feature/*`)
-- Fixes (`hotfix/*` or simply `fix/*`)
-- Dependency updates (`deps/*`)
-- Etc.
-
-Do mind that these branch names do only not apply to the addition of packages; for that, we use the following scheme: `[issue number][issue title]`. This can be done [automatically](https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-a-branch-for-an-issue) too.
-
-This is how it looks like and works:
-
-
-### Syncing branches
-
-If you want to [back-port](https://en.wikipedia.org/wiki/Backporting) (GitHub's "Update" and "Sync" buttons) from upstream `main` to any other branch (for testing purposes, or any other reasonable case), it's recommended that you `rebase` rather than `merge` the changes.
-
-**Don't apply changes to/from arbitrary branches**, that's a recipe for chaos! If you encounter a situation where it's absolutely necessary to sync non-`main` branches, whether to `merge` or `rebase` should be decided by the UAD-ng team (with some contributor feedback) on a case-by-case basis.
-
-### Commit messages
-
-As for commits, we prefer using [Conventional Commit Messages](https://gist.github.com/qoomon/5dfcdf8eec66a051ecd85625518cfd13). When working in any of the branches listed above (if there's an existing issue for it), close it using a [closing keyword](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword). For more information regarding Conventional Commit Messages, see as well.
-
-### Issue labels
-
-When creating issues, they are automatically labeled based on the [issue template](.github/ISSUE_TEMPLATE/) you choose. These labels help categorize work and generate release notes.
-
-| Label | Purpose | Issue template |
-| ----- | ------- | -------------- |
-| `bug` | Software bugs in UAD-ng | Bug Report |
-| `enhancement` | New feature requests | Feature Request |
-| `package::addition` | Adding new packages to the debloat list | Add new package(s) |
-| `package::breakage` | Issues caused by debloating | Debloat issue report |
-| `package::documentation` | Updating package descriptions or recommendations | Update apps description or recommendation |
-| `documentation` | Improvements to docs/wiki | UAD-ng documentation |
-| `ci` | CI/CD related issues | CI/CD |
-| `refactor` | Code refactoring | — (maintainer-assigned) |
-| `dependencies` | Dependency updates | — (maintainer-assigned) |
-
-Labels are also used to automatically generate categorized [release notes](.github/release.yml). Each label maps to a changelog section:
-
-| Label(s) | Changelog category |
-| -------- | ------------------ |
-| `enhancement` | Features |
-| `bug` | Fixed |
-| `refactor` | Refactors |
-| `package::addition`, `package::breakage`, `package::documentation` | Packages/apps |
-| `ci`, `dependencies` | Development |
-| `documentation` | Documentation |
diff --git a/Cargo.lock b/Cargo.lock
index e40c813..f8b6df5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,12 +1,12 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-version = 4
+version = 3
[[package]]
name = "ab_glyph"
-version = "0.2.32"
+version = "0.2.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "01c0457472c38ea5bd1c3b5ada5e368271cb550be7a4ca4a0b4634e9913f6cc2"
+checksum = "80179d7dd5d7e8c285d67c4a1e652972a92de7475beddfb92028c76463b13225"
dependencies = [
"ab_glyph_rasterizer",
"owned_ttf_parser",
@@ -14,82 +14,57 @@ dependencies = [
[[package]]
name = "ab_glyph_rasterizer"
-version = "0.1.10"
+version = "0.1.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
+checksum = "c71b1793ee61086797f5c80b6efa2b8ffa6d5dd703f118545808a7f2e27f7046"
[[package]]
-name = "adler2"
-version = "2.0.1"
+name = "addr2line"
+version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
+checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb"
+dependencies = [
+ "gimli",
+]
+
+[[package]]
+name = "adler"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "ahash"
-version = "0.8.12"
+version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
+checksum = "91429305e9f0a25f6205c5b8e0d2db09e0708a7a6df0f42212bb56c32c8ac97a"
dependencies = [
"cfg-if",
- "getrandom 0.3.4",
"once_cell",
"version_check",
"zerocopy",
]
[[package]]
-name = "aligned"
-version = "0.4.3"
+name = "aho-corasick"
+version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ee4508988c62edf04abd8d92897fca0c2995d907ce1dfeaf369dac3716a40685"
+checksum = "b2969dcb958b36655471fc61f7e416fa76033bdd4bfed0678d8fee1e2d07a1f0"
dependencies = [
- "as-slice",
+ "memchr",
]
[[package]]
-name = "aligned-vec"
-version = "0.6.4"
+name = "allocator-api2"
+version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dc890384c8602f339876ded803c97ad529f3842aba97f6392b3dba0dd171769b"
-dependencies = [
- "equator",
-]
+checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5"
[[package]]
-name = "android-activity"
-version = "0.6.0"
+name = "android-tzdata"
+version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef6978589202a00cd7e118380c448a08b6ed394c3a8df3a430d0898e3a42d046"
-dependencies = [
- "android-properties",
- "bitflags 2.10.0",
- "cc",
- "cesu8",
- "jni",
- "jni-sys",
- "libc",
- "log",
- "ndk",
- "ndk-context",
- "ndk-sys",
- "num_enum",
- "thiserror 1.0.69",
-]
-
-[[package]]
-name = "android-build"
-version = "0.1.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8cac4c64175d504608cf239756339c07f6384a476f97f20a7043f92920b0b8fd"
-dependencies = [
- "windows-sys 0.52.0",
-]
-
-[[package]]
-name = "android-properties"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc7eb209b1518d6bb87b283c20095f5228ecda460da70b44f0802523dea6da04"
+checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
[[package]]
name = "android_system_properties"
@@ -101,418 +76,82 @@ dependencies = [
]
[[package]]
-name = "anstream"
-version = "1.0.0"
+name = "approx"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
+checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
dependencies = [
- "anstyle",
- "anstyle-parse",
- "anstyle-query",
- "anstyle-wincon",
- "colorchoice",
- "is_terminal_polyfill",
- "utf8parse",
-]
-
-[[package]]
-name = "anstyle"
-version = "1.0.13"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5192cca8006f1fd4f7237516f40fa183bb07f8fbdfedaa0036de5ea9b0b45e78"
-
-[[package]]
-name = "anstyle-parse"
-version = "1.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
-dependencies = [
- "utf8parse",
-]
-
-[[package]]
-name = "anstyle-query"
-version = "1.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
-dependencies = [
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "anstyle-wincon"
-version = "3.0.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
-dependencies = [
- "anstyle",
- "once_cell_polyfill",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "anyhow"
-version = "1.0.101"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f0e0fee31ef5ed1ba1316088939cea399010ed7731dba877ed44aeb407a75ea"
-
-[[package]]
-name = "arbitrary"
-version = "1.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
-
-[[package]]
-name = "arg_enum_proc_macro"
-version = "0.3.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ae92a5119aa49cdbcf6b9f893fe4e1d98b04ccbf82ee0584ad948a44a734dea"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
+ "num-traits",
]
[[package]]
name = "arrayref"
-version = "0.3.9"
+version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "76a2e8124351fda1ef8aaaa3bbd7ebbcb486bbcd4225aca0aa0d84bb2db8fecb"
+checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545"
[[package]]
name = "arrayvec"
-version = "0.7.6"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
+checksum = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b"
[[package]]
-name = "as-raw-xcb-connection"
-version = "1.0.1"
+name = "arrayvec"
+version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "175571dd1d178ced59193a6fc02dde1b972eb0bc56c892cde9beeceac5bf0f6b"
-
-[[package]]
-name = "as-slice"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "516b6b4f0e40d50dcda9365d53964ec74560ad4284da2e7fc97122cd83174516"
-dependencies = [
- "stable_deref_trait",
-]
+checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
[[package]]
name = "ash"
-version = "0.38.0+1.3.281"
+version = "0.37.3+1.3.251"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0bb44936d800fea8f016d7f2311c6a4f97aebd5dc86f09906139ec848cf3a46f"
+checksum = "39e9c3835d686b0a6084ab4234fcd1b07dbf6e4767dce60874b12356a25ecd4a"
dependencies = [
- "libloading",
+ "libloading 0.7.4",
]
-[[package]]
-name = "ashpd"
-version = "0.10.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de3d60bee1a1d38c2077030f4788e1b4e31058d2e79a8cfc8f2b440bd44db290"
-dependencies = [
- "async-fs",
- "async-net",
- "enumflags2",
- "futures-channel",
- "futures-util",
- "rand 0.8.6",
- "serde",
- "serde_repr",
- "url",
- "zbus",
-]
-
-[[package]]
-name = "async-broadcast"
-version = "0.7.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "435a87a52755b8f27fcf321ac4f04b2802e337c8c4872923137471ec39c37532"
-dependencies = [
- "event-listener 5.4.1",
- "event-listener-strategy",
- "futures-core",
- "pin-project-lite",
-]
-
-[[package]]
-name = "async-channel"
-version = "1.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81953c529336010edd6d8e358f886d9581267795c61b19475b71314bffa46d35"
-dependencies = [
- "concurrent-queue",
- "event-listener 2.5.3",
- "futures-core",
-]
-
-[[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.13.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "497c00e0fd83a72a79a39fcbd8e3e2f055d6f6c7e025f3b3d91f4f8e76527fb8"
-dependencies = [
- "async-task",
- "concurrent-queue",
- "fastrand",
- "futures-lite",
- "pin-project-lite",
- "slab",
-]
-
-[[package]]
-name = "async-fs"
-version = "2.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8034a681df4aed8b8edbd7fbe472401ecf009251c8b40556b304567052e294c5"
-dependencies = [
- "async-lock",
- "blocking",
- "futures-lite",
-]
-
-[[package]]
-name = "async-global-executor"
-version = "2.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05b1b633a2115cd122d73b955eadd9916c18c8f510ec9cd1686404c60ad1c29c"
-dependencies = [
- "async-channel 2.5.0",
- "async-executor",
- "async-io",
- "async-lock",
- "blocking",
- "futures-lite",
- "once_cell",
-]
-
-[[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.3",
- "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 5.4.1",
- "event-listener-strategy",
- "pin-project-lite",
-]
-
-[[package]]
-name = "async-net"
-version = "2.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b948000fad4873c1c9339d60f2623323a0cfd3816e5181033c6a5cb68b2accf7"
-dependencies = [
- "async-io",
- "blocking",
- "futures-lite",
-]
-
-[[package]]
-name = "async-process"
-version = "2.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc50921ec0055cdd8a16de48773bfeec5c972598674347252c0399676be7da75"
-dependencies = [
- "async-channel 2.5.0",
- "async-io",
- "async-lock",
- "async-signal",
- "async-task",
- "blocking",
- "cfg-if",
- "event-listener 5.4.1",
- "futures-lite",
- "rustix 1.1.3",
-]
-
-[[package]]
-name = "async-recursion"
-version = "1.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b43422f69d8ff38f95f1b2bb76517c91589a924d1559a0e935d7c8ce0274c11"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "async-signal"
-version = "0.2.13"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "43c070bbf59cd3570b6b2dd54cd772527c7c3620fce8be898406dd3ed6adc64c"
-dependencies = [
- "async-io",
- "async-lock",
- "atomic-waker",
- "cfg-if",
- "futures-core",
- "futures-io",
- "rustix 1.1.3",
- "signal-hook-registry",
- "slab",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "async-std"
-version = "1.13.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c8e079a4ab67ae52b7403632e4618815d6db36d2a010cfe41b02c1b1578f93b"
-dependencies = [
- "async-channel 1.9.0",
- "async-global-executor",
- "async-io",
- "async-lock",
- "crossbeam-utils",
- "futures-channel",
- "futures-core",
- "futures-io",
- "futures-lite",
- "gloo-timers",
- "kv-log-macro",
- "log",
- "memchr",
- "once_cell",
- "pin-project-lite",
- "pin-utils",
- "slab",
- "wasm-bindgen-futures",
-]
-
-[[package]]
-name = "async-task"
-version = "4.7.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de"
-
-[[package]]
-name = "async-trait"
-version = "0.1.89"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "atomic-waker"
-version = "1.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
-
[[package]]
name = "autocfg"
-version = "1.5.0"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
+checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
[[package]]
-name = "av-scenechange"
-version = "0.14.1"
+name = "backtrace"
+version = "0.3.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0f321d77c20e19b92c39e7471cf986812cbb46659d2af674adc4331ef3f18394"
+checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837"
dependencies = [
- "aligned",
- "anyhow",
- "arg_enum_proc_macro",
- "arrayvec",
- "log",
- "num-rational",
- "num-traits",
- "pastey",
- "rayon",
- "thiserror 2.0.18",
- "v_frame",
- "y4m",
-]
-
-[[package]]
-name = "av1-grain"
-version = "0.2.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8cfddb07216410377231960af4fcab838eaa12e013417781b78bd95ee22077f8"
-dependencies = [
- "anyhow",
- "arrayvec",
- "log",
- "nom",
- "num-rational",
- "v_frame",
-]
-
-[[package]]
-name = "avif-serialize"
-version = "0.8.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "375082f007bd67184fb9c0374614b29f9aaa604ec301635f72338bb65386a53d"
-dependencies = [
- "arrayvec",
+ "addr2line",
+ "cc",
+ "cfg-if",
+ "libc",
+ "miniz_oxide",
+ "object",
+ "rustc-demangle",
]
[[package]]
name = "base64"
-version = "0.22.1"
+version = "0.21.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
+checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9"
[[package]]
name = "bit-set"
-version = "0.8.0"
+version = "0.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
+checksum = "0700ddab506f33b20a03b13996eccd309a48e5ff77d0d95926aa0210fb4e95f1"
dependencies = [
"bit-vec",
]
[[package]]
name = "bit-vec"
-version = "0.8.0"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
-
-[[package]]
-name = "bit_field"
-version = "0.10.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6"
+checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
[[package]]
name = "bitflags"
@@ -522,18 +161,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
[[package]]
name = "bitflags"
-version = "2.10.0"
+version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
-
-[[package]]
-name = "bitstream-io"
-version = "4.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "60d4bd9d1db2c6bdf285e223a7fa369d5ce98ec767dec949c6ca62863ce61757"
-dependencies = [
- "core2",
-]
+checksum = "327762f6e5a765692301e5bb513e0d9fef63be86bbc14528052b1cd3e6f03e07"
[[package]]
name = "block"
@@ -541,155 +171,66 @@ version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0d8c1fef690941d3e7788d328517591fecc684c084084702d6ff1641e993699a"
-[[package]]
-name = "block2"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c132eebf10f5cad5289222520a4a058514204aed6d791f1cf4fe8088b82d15f"
-dependencies = [
- "objc2 0.5.2",
-]
-
-[[package]]
-name = "block2"
-version = "0.6.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdeb9d870516001442e364c5220d3574d2da8dc765554b4a617230d33fa58ef5"
-dependencies = [
- "objc2 0.6.3",
-]
-
-[[package]]
-name = "blocking"
-version = "1.6.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e83f8d02be6967315521be875afa792a316e28d57b5a2d401897e2a7921b7f21"
-dependencies = [
- "async-channel 2.5.0",
- "async-task",
- "futures-io",
- "futures-lite",
- "piper",
-]
-
-[[package]]
-name = "built"
-version = "0.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f4ad8f11f288f48ca24471bbd51ac257aaeaaa07adae295591266b792902ae64"
-
[[package]]
name = "bumpalo"
-version = "3.19.1"
+version = "3.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510"
+checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec"
[[package]]
name = "bytemuck"
-version = "1.25.0"
+version = "1.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec"
+checksum = "374d28ec25809ee0e23827c2ab573d729e293f281dfe393500e7ad618baa61c6"
dependencies = [
"bytemuck_derive",
]
[[package]]
name = "bytemuck_derive"
-version = "1.10.2"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f9abbd1bc6865053c427f7198e6af43bfdedc55ab791faed4fbd361d789575ff"
+checksum = "965ab7eb5f8f97d2a083c799f3a1b994fc397b2fe2da5d1da1626ce15a39f2b1"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.39",
]
[[package]]
-name = "byteorder-lite"
-version = "0.1.0"
+name = "byteorder"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
-
-[[package]]
-name = "bytes"
-version = "1.11.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
[[package]]
name = "calloop"
-version = "0.13.0"
+version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b99da2f8558ca23c71f4fd15dc57c906239752dd27ff3c00a1d56b685b7cbfec"
+checksum = "52e0d00eb1ea24371a97d2da6201c6747a633dc6dc1988ef503403b4c59504a8"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 1.3.2",
"log",
- "polling",
- "rustix 0.38.44",
- "slab",
- "thiserror 1.0.69",
-]
-
-[[package]]
-name = "calloop"
-version = "0.14.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb9f6e1368bd4621d2c86baa7e37de77a938adf5221e5dd3d6133340101b309e"
-dependencies = [
- "bitflags 2.10.0",
- "polling",
- "rustix 1.1.3",
- "slab",
- "tracing",
-]
-
-[[package]]
-name = "calloop-wayland-source"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "95a66a987056935f7efce4ab5668920b5d0dac4a7c99991a67395f13702ddd20"
-dependencies = [
- "calloop 0.13.0",
- "rustix 0.38.44",
- "wayland-backend",
- "wayland-client",
-]
-
-[[package]]
-name = "calloop-wayland-source"
-version = "0.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "138efcf0940a02ebf0cc8d1eff41a1682a46b431630f4c52450d6265876021fa"
-dependencies = [
- "calloop 0.14.3",
- "rustix 1.1.3",
- "wayland-backend",
- "wayland-client",
+ "nix 0.25.1",
+ "slotmap",
+ "thiserror",
+ "vec_map",
]
[[package]]
name = "cc"
-version = "1.2.55"
+version = "1.0.83"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "47b26a0954ae34af09b50f0de26458fa95369a0d478d8236d3f93082b219bd29"
+checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0"
dependencies = [
- "find-msvc-tools",
- "jobserver",
"libc",
- "shlex",
]
-[[package]]
-name = "cesu8"
-version = "1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6d43a04d8753f35258c91f8ec639f792891f748a1edbd759cf1dcea3382ad83c"
-
[[package]]
name = "cfg-if"
-version = "1.0.4"
+version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
+checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cfg_aliases"
@@ -698,206 +239,144 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fd16c4719339c4530435d38e511904438d07cce7950afa3718a84ac36c10e89e"
[[package]]
-name = "cfg_aliases"
-version = "0.2.1"
+name = "cgl"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
+checksum = "0ced0551234e87afee12411d535648dd89d2e7f34c78b753395567aff3d447ff"
+dependencies = [
+ "libc",
+]
[[package]]
name = "chrono"
-version = "0.4.43"
+version = "0.4.31"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118"
+checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38"
dependencies = [
+ "android-tzdata",
"iana-time-zone",
"num-traits",
- "windows-link",
+ "windows-targets 0.48.5",
]
-[[package]]
-name = "clap"
-version = "4.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51"
-dependencies = [
- "clap_builder",
- "clap_derive",
-]
-
-[[package]]
-name = "clap_builder"
-version = "4.6.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f"
-dependencies = [
- "anstream",
- "anstyle",
- "clap_lex",
- "strsim",
-]
-
-[[package]]
-name = "clap_complete"
-version = "4.5.66"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c757a3b7e39161a4e56f9365141ada2a6c915a8622c408ab6bb4b5d047371031"
-dependencies = [
- "clap",
-]
-
-[[package]]
-name = "clap_derive"
-version = "4.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9"
-dependencies = [
- "heck",
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "clap_lex"
-version = "1.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831"
-
[[package]]
name = "clipboard-win"
-version = "5.4.1"
+version = "4.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bde03770d3df201d4fb868f2c9c59e66a3e4e2bd06692a0fe701e7103c7e84d4"
+checksum = "7191c27c2357d9b7ef96baac1773290d4ca63b24205b82a3fd8a0637afcf0362"
dependencies = [
"error-code",
+ "str-buf",
+ "winapi",
]
[[package]]
name = "clipboard_macos"
-version = "0.1.1"
+version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9b7f4aaa047ba3c3630b080bb9860894732ff23e2aee290a418909aa6d5df38f"
+checksum = "145a7f9e9b89453bc0a5e32d166456405d389cea5b578f57f1274b1397588a95"
dependencies = [
- "objc2 0.5.2",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
+ "objc",
+ "objc-foundation",
+ "objc_id",
]
[[package]]
name = "clipboard_wayland"
-version = "0.2.2"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "003f886bc4e2987729d10c1db3424e7f80809f3fc22dbc16c685738887cb37b8"
+checksum = "6f6364a9f7a66f2ac1a1a098aa1c7f6b686f2496c6ac5e5c0d773445df912747"
dependencies = [
"smithay-clipboard",
]
[[package]]
name = "clipboard_x11"
-version = "0.4.3"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bd63e33452ffdafd39924c4f05a5dd1e94db646c779c6bd59148a3d95fff5ad4"
+checksum = "983a7010836ecd04dde2c6d27a0cb56ec5d21572177e782bdcb24a600124e921"
dependencies = [
- "thiserror 2.0.18",
+ "thiserror",
"x11rb",
]
[[package]]
-name = "codespan-reporting"
-version = "0.12.0"
+name = "cmake"
+version = "0.1.50"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fe6d2e5af09e8c8ad56c969f2157a3d4238cebc7c55f0a517728c38f7b200f81"
+checksum = "a31c789563b815f77f4250caee12365734369f942439b7defd71e18a48197130"
dependencies = [
- "serde",
- "termcolor",
- "unicode-width 0.2.2",
+ "cc",
]
[[package]]
-name = "color_quant"
-version = "1.1.0"
+name = "cocoa"
+version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
+checksum = "f425db7937052c684daec3bd6375c8abe2d146dca4b8b143d6db777c39138f3a"
+dependencies = [
+ "bitflags 1.3.2",
+ "block",
+ "cocoa-foundation",
+ "core-foundation",
+ "core-graphics",
+ "foreign-types 0.3.2",
+ "libc",
+ "objc",
+]
[[package]]
-name = "colorchoice"
-version = "1.0.4"
+name = "cocoa-foundation"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b05b61dc5112cbb17e4b6cd61790d9845d13888356391624cbe7e41efeac1e75"
+checksum = "8c6234cbb2e4c785b456c0644748b1ac416dd045799740356f8363dfe00c93f7"
+dependencies = [
+ "bitflags 1.3.2",
+ "block",
+ "core-foundation",
+ "core-graphics-types",
+ "libc",
+ "objc",
+]
+
+[[package]]
+name = "codespan-reporting"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3538270d33cc669650c4b093848450d380def10c331d38c768e34cac80576e6e"
+dependencies = [
+ "termcolor",
+ "unicode-width",
+]
[[package]]
name = "colored"
-version = "2.2.0"
+version = "1.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "117725a109d387c937a1533ce01b450cbde6b88abceea8473c4d7a85853cda3c"
+checksum = "5a5f741c91823341bebf717d4c71bda820630ce065443b58bd1b7451af008355"
dependencies = [
+ "is-terminal",
"lazy_static",
- "windows-sys 0.59.0",
+ "winapi",
]
[[package]]
-name = "combine"
-version = "4.6.7"
+name = "com-rs"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"
-dependencies = [
- "bytes",
- "memchr",
-]
+checksum = "bf43edc576402991846b093a7ca18a3477e0ef9c588cde84964b5d3e43016642"
[[package]]
-name = "concurrent-queue"
-version = "2.5.0"
+name = "const_panic"
+version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
-dependencies = [
- "crossbeam-utils",
-]
-
-[[package]]
-name = "cookie"
-version = "0.18.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4ddef33a339a91ea89fb53151bd0a4689cfce27055c291dfa69945475d22c747"
-dependencies = [
- "percent-encoding",
- "time",
- "version_check",
-]
-
-[[package]]
-name = "cookie_store"
-version = "0.22.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3fc4bff745c9b4c7fb1e97b25d13153da2bc7796260141df62378998d070207f"
-dependencies = [
- "cookie",
- "document-features",
- "idna",
- "indexmap",
- "log",
- "serde",
- "serde_derive",
- "serde_json",
- "time",
- "url",
-]
+checksum = "6051f239ecec86fde3410901ab7860d458d160371533842974fc61f96d15879b"
[[package]]
name = "core-foundation"
-version = "0.9.4"
+version = "0.9.3"
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"
+checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146"
dependencies = [
"core-foundation-sys",
"libc",
@@ -905,215 +384,192 @@ dependencies = [
[[package]]
name = "core-foundation-sys"
-version = "0.8.7"
+version = "0.8.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
[[package]]
name = "core-graphics"
-version = "0.23.2"
+version = "0.22.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c07782be35f9e1140080c6b96f0d44b739e2278479f64e02fdab4e32dfd8b081"
+checksum = "2581bbab3b8ffc6fcbd550bf46c355135d16e9ff2a6ea032ad6b9bf1d7efe4fb"
dependencies = [
"bitflags 1.3.2",
- "core-foundation 0.9.4",
- "core-graphics-types 0.1.3",
- "foreign-types",
+ "core-foundation",
+ "core-graphics-types",
+ "foreign-types 0.3.2",
"libc",
]
[[package]]
name = "core-graphics-types"
-version = "0.1.3"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "45390e6114f68f718cc7a830514a96f903cccd70d02a8f6d9f643ac4ba45afaf"
+checksum = "2bb142d41022986c1d8ff29103a1411c8a3dfad3552f87a4f8dc50d61d4f4e33"
dependencies = [
"bitflags 1.3.2",
- "core-foundation 0.9.4",
+ "core-foundation",
"libc",
]
[[package]]
-name = "core-graphics-types"
-version = "0.2.0"
+name = "core-text"
+version = "19.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d44a101f213f6c4cdc1853d4b78aef6db6bdfa3468798cc1d9912f4735013eb"
+checksum = "99d74ada66e07c1cefa18f8abfba765b486f250de2e4a999e5727fc0dd4b4a25"
dependencies = [
- "bitflags 2.10.0",
- "core-foundation 0.10.1",
+ "core-foundation",
+ "core-graphics",
+ "foreign-types 0.3.2",
"libc",
]
-[[package]]
-name = "core2"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b49ba7ef1ad6107f8824dbe97de947cbaac53c44e7f9756a1fba0d37c1eec505"
-dependencies = [
- "memchr",
-]
-
-[[package]]
-name = "core_maths"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77745e017f5edba1a9c1d854f6f3a52dac8a12dd5af5d2f54aecf61e43d80d30"
-dependencies = [
- "libm",
-]
-
-[[package]]
-name = "cosmic-text"
-version = "0.15.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "173852283a9a57a3cbe365d86e74dc428a09c50421477d5ad6fe9d9509e37737"
-dependencies = [
- "bitflags 2.10.0",
- "fontdb",
- "harfrust",
- "linebender_resource_handle",
- "log",
- "rangemap",
- "rustc-hash 1.1.0",
- "self_cell",
- "skrifa",
- "smol_str",
- "swash",
- "sys-locale",
- "unicode-bidi",
- "unicode-linebreak",
- "unicode-script",
- "unicode-segmentation",
-]
-
[[package]]
name = "crc32fast"
-version = "1.5.0"
+version = "1.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
+checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"
dependencies = [
"cfg-if",
]
[[package]]
-name = "crossbeam-deque"
-version = "0.8.6"
+name = "crossbeam-channel"
+version = "0.5.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
+checksum = "a33c2bf77f2df06183c3aa30d1e96c0695a313d4f9c453cc3762a6db39f99200"
dependencies = [
+ "cfg-if",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-deque"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce6fd6f855243022dcecf8702fef0c297d4338e226845fe067f6341ad9fa0cef"
+dependencies = [
+ "cfg-if",
"crossbeam-epoch",
"crossbeam-utils",
]
[[package]]
name = "crossbeam-epoch"
-version = "0.9.18"
+version = "0.9.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
+checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7"
dependencies = [
+ "autocfg",
+ "cfg-if",
"crossbeam-utils",
+ "memoffset 0.9.0",
+ "scopeguard",
]
[[package]]
name = "crossbeam-utils"
-version = "0.8.21"
+version = "0.8.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
-
-[[package]]
-name = "crunchy"
-version = "0.2.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
-
-[[package]]
-name = "cryoglyph"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08bc795bdbccdbd461736fb163930a009da6597b226d6f6fce33e7a8eb6ec519"
+checksum = "5a22b2d63d4d1dc0b7f1b6b2747dd0088008a9be28b6ddf0b1e7d335e3037294"
dependencies = [
- "cosmic-text",
- "etagere",
- "lru",
- "rustc-hash 2.1.1",
- "wgpu",
+ "cfg-if",
]
[[package]]
-name = "csv"
-version = "1.4.0"
+name = "crossfont"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52cd9d68cf7efc6ddfaaee42e7288d3a99d613d4b50f76ce9827ae0c6e14f938"
+checksum = "21fd3add36ea31aba1520aa5288714dd63be506106753226d0eb387a93bc9c45"
dependencies = [
- "csv-core",
- "itoa",
- "ryu",
- "serde_core",
+ "cocoa",
+ "core-foundation",
+ "core-foundation-sys",
+ "core-graphics",
+ "core-text",
+ "dwrote",
+ "foreign-types 0.5.0",
+ "freetype-rs",
+ "libc",
+ "log",
+ "objc",
+ "once_cell",
+ "pkg-config",
+ "servo-fontconfig",
+ "winapi",
]
[[package]]
-name = "csv-core"
-version = "0.1.13"
+name = "cty"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "704a3c26996a80471189265814dbc2c257598b96b8a7feae2d31ace646bb9782"
+checksum = "b365fabc795046672053e29c954733ec3b05e4be654ab130fe8f1f94d7051f35"
+
+[[package]]
+name = "d3d12"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d8f0de2f5a8e7bd4a9eec0e3c781992a4ce1724f68aec7d7a3715344de8b39da"
dependencies = [
- "memchr",
+ "bitflags 1.3.2",
+ "libloading 0.7.4",
+ "winapi",
]
[[package]]
-name = "ctor-lite"
-version = "0.1.1"
+name = "darling"
+version = "0.13.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b29fccfdaeb0f9bd90da5759b1d0eaa2f6cfcfe90960124cfc83141ed4e111fd"
-
-[[package]]
-name = "cursor-icon"
-version = "1.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f27ae1dd37df86211c42e150270f82743308803d90a6f6e6651cd730d5e1732f"
-
-[[package]]
-name = "dark-light"
-version = "2.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18e1a09f280e29a8b00bc7e81eca5ac87dca0575639c9422a5fa25a07bb884b8"
+checksum = "a01d95850c592940db9b8194bc39f4bc0e89dee5c4265e4b1807c34a9aba453c"
dependencies = [
- "ashpd",
- "async-std",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
- "web-sys",
- "winreg 0.52.0",
+ "darling_core",
+ "darling_macro",
]
[[package]]
-name = "deranged"
-version = "0.5.6"
+name = "darling_core"
+version = "0.13.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc3dc5ad92c2e2d1c193bbbbdf2ea477cb81331de4f3103f267ca18368b988c4"
+checksum = "859d65a907b6852c9361e3185c862aae7fafd2887876799fa55f5f99dc40d610"
dependencies = [
- "powerfmt",
+ "fnv",
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn 1.0.109",
+]
+
+[[package]]
+name = "darling_macro"
+version = "0.13.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835"
+dependencies = [
+ "darling_core",
+ "quote",
+ "syn 1.0.109",
]
[[package]]
name = "dirs"
-version = "6.0.0"
+version = "5.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3e8aa94d75141228480295a7d0e7feb620b1a5ad9f12bc40be62411e38cce4e"
+checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225"
dependencies = [
"dirs-sys",
]
[[package]]
name = "dirs-sys"
-version = "0.5.0"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e01a3366d27ee9890022452ee61b2b63a67e6f13f58900b651ff5665f0bb1fab"
+checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c"
dependencies = [
"libc",
"option-ext",
"redox_users",
- "windows-sys 0.61.2",
+ "windows-sys 0.48.0",
]
[[package]]
@@ -1122,266 +578,132 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd0c93bb4b0c6d9b77f4435b0ae98c24d17f1c45b2ff844c6151a07256ca923b"
-[[package]]
-name = "dispatch2"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "89a09f22a6c6069a18470eb92d2298acf25463f14256d24778e1230d789a2aec"
-dependencies = [
- "bitflags 2.10.0",
- "block2 0.6.2",
- "libc",
- "objc2 0.6.3",
-]
-
-[[package]]
-name = "displaydoc"
-version = "0.2.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
[[package]]
name = "dlib"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "330c60081dcc4c72131f8eb70510f1ac07223e5d4163db481a04a0befcffa412"
dependencies = [
- "libloading",
-]
-
-[[package]]
-name = "document-features"
-version = "0.2.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4b8a88685455ed29a21542a33abd9cb6510b6b129abadabdcef0f4c55bc8f61"
-dependencies = [
- "litrs",
+ "libloading 0.8.1",
]
[[package]]
name = "downcast-rs"
-version = "1.2.1"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75b325c5dbd37f80359721ad39aca5a29fb04c89279657cffdda8736d0c0b9d2"
+checksum = "9ea835d29036a4087793836fa931b08837ad5e957da9e23886b29586fb9b6650"
[[package]]
-name = "dpi"
-version = "0.1.2"
+name = "dwrote"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d8b14ccef22fc6f5a8f4d7d768562a182c04ce9a3b3157b91390b52ddfdf1a76"
+checksum = "439a1c2ba5611ad3ed731280541d36d2e9c4ac5e7fb818a27b604bdc5a6aa65b"
+dependencies = [
+ "lazy_static",
+ "libc",
+ "serde",
+ "serde_derive",
+ "winapi",
+ "wio",
+]
[[package]]
name = "either"
-version = "1.15.0"
+version = "1.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
+checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07"
[[package]]
-name = "embed-resource"
-version = "3.0.6"
+name = "encase"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55a075fc573c64510038d7ee9abc7990635863992f83ebc52c8b433b8411a02e"
+checksum = "0a516181e9a36e8982cb37933c5e7dba638c42938cacde46ee4e5b4156f881b9"
dependencies = [
- "cc",
- "memchr",
- "rustc_version",
- "toml",
- "vswhom",
- "winreg 0.55.0",
+ "const_panic",
+ "encase_derive",
+ "glam",
+ "thiserror",
]
[[package]]
-name = "endi"
-version = "1.1.1"
+name = "encase_derive"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "66b7e2430c6dff6a955451e2cfc438f09cea1965a9d6f87f7e3b90decc014099"
-
-[[package]]
-name = "endian-type"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c34f04666d835ff5d62e058c3995147c06f42fe86ff053337632bca83e42702d"
-
-[[package]]
-name = "enumflags2"
-version = "0.7.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1027f7680c853e056ebcec683615fb6fbbc07dbaa13b4d5d9442b146ded4ecef"
+checksum = "f5b802412eea315f29f2bb2da3a5963cd6121f56eaa06aebcdc0c54eea578f22"
dependencies = [
- "enumflags2_derive",
- "serde",
+ "encase_derive_impl",
]
[[package]]
-name = "enumflags2_derive"
-version = "0.7.12"
+name = "encase_derive_impl"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67c78a4d8fdf9953a5c9d458f9efe940fd97a0cab0941c075a813ac594733827"
+checksum = "0f2f4de457d974f548d2c2a16f709ebd81013579e543bd1a9b19ced88132c2cf"
dependencies = [
"proc-macro2",
"quote",
- "syn",
-]
-
-[[package]]
-name = "equator"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4711b213838dfee0117e3be6ac926007d7f433d7bbe33595975d4190cb07e6fc"
-dependencies = [
- "equator-macro",
-]
-
-[[package]]
-name = "equator-macro"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "44f23cf4b44bfce11a86ace86f8a73ffdec849c9fd00a386a53d278bd9e81fb3"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
+ "syn 1.0.109",
]
[[package]]
name = "equivalent"
-version = "1.0.2"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
+checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
[[package]]
name = "errno"
-version = "0.3.14"
+version = "0.3.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
+checksum = "ac3e13f66a2f95e32a39eaa81f6b95d42878ca0e1db0c7543723dfe12557e860"
dependencies = [
"libc",
- "windows-sys 0.61.2",
+ "windows-sys 0.48.0",
]
[[package]]
name = "error-code"
-version = "3.3.2"
+version = "2.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dea2df4cf52843e0452895c455a1a2cfbb842a1e7329671acf418fdc53ed4c59"
-
-[[package]]
-name = "etagere"
-version = "0.2.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc89bf99e5dc15954a60f707c1e09d7540e5cd9af85fa75caa0b510bc08c5342"
+checksum = "64f18991e7bf11e7ffee451b5318b5c1a73c52d0d0ada6e5a3017c8c1ced6a21"
dependencies = [
- "euclid",
- "svg_fmt",
+ "libc",
+ "str-buf",
]
[[package]]
name = "euclid"
-version = "0.22.13"
+version = "0.22.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df61bf483e837f88d5c2291dcf55c67be7e676b3a51acc48db3a7b163b91ed63"
+checksum = "87f253bc5c813ca05792837a0ff4b3a580336b224512d48f7eda1d7dd9210787"
dependencies = [
"num-traits",
]
[[package]]
-name = "event-listener"
-version = "2.5.3"
+name = "expat-sys"
+version = "2.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0206175f82b8d6bf6652ff7d71a1e27fd2e4efde587fd368662814d6ec1d9ce0"
-
-[[package]]
-name = "event-listener"
-version = "5.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab"
+checksum = "658f19728920138342f68408b7cf7644d90d4784353d8ebc32e7e8663dbe45fa"
dependencies = [
- "concurrent-queue",
- "parking",
- "pin-project-lite",
-]
-
-[[package]]
-name = "event-listener-strategy"
-version = "0.5.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
-dependencies = [
- "event-listener 5.4.1",
- "pin-project-lite",
-]
-
-[[package]]
-name = "exr"
-version = "1.74.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4300e043a56aa2cb633c01af81ca8f699a321879a7854d3896a0ba89056363be"
-dependencies = [
- "bit_field",
- "half",
- "lebe",
- "miniz_oxide",
- "rayon-core",
- "smallvec",
- "zune-inflate",
-]
-
-[[package]]
-name = "fastrand"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
-
-[[package]]
-name = "fax"
-version = "0.2.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f05de7d48f37cd6730705cbca900770cab77a89f413d23e100ad7fad7795a0ab"
-dependencies = [
- "fax_derive",
-]
-
-[[package]]
-name = "fax_derive"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a0aca10fb742cb43f9e7bb8467c91aa9bcb8e3ffbc6a6f7389bb93ffc920577d"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "fd-lock"
-version = "4.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ce92ff622d6dadf7349484f42c93271a0d49b7cc4d466a936405bacbe10aa78"
-dependencies = [
- "cfg-if",
- "rustix 1.1.3",
- "windows-sys 0.59.0",
+ "cmake",
+ "pkg-config",
]
[[package]]
name = "fdeflate"
-version = "0.3.7"
+version = "0.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
+checksum = "64d6dafc854908ff5da46ff3f8f473c6984119a2876a383a860246dd7841a868"
dependencies = [
"simd-adler32",
]
[[package]]
name = "fern"
-version = "0.7.1"
+version = "0.6.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4316185f709b23713e41e3195f90edef7fb00c3ed4adc79769cf09cc762a3b29"
+checksum = "d9f0c14694cbd524c8720dd69b0e3179344f04ebb5f90f2e4a440c6ea3b2f1ee"
dependencies = [
"colored",
"log",
@@ -1389,73 +711,48 @@ dependencies = [
[[package]]
name = "filetime"
-version = "0.2.27"
+version = "0.2.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f98844151eee8917efc50bd9e8318cb963ae8b297431495d3f758616ea5c57db"
+checksum = "d4029edd3e734da6fe05b6cd7bd2960760a616bd2ddd0d59a0124746d6272af0"
dependencies = [
"cfg-if",
"libc",
- "libredox",
+ "redox_syscall 0.3.5",
+ "windows-sys 0.48.0",
]
[[package]]
-name = "find-msvc-tools"
-version = "0.1.9"
+name = "find-crate"
+version = "0.6.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
+checksum = "59a98bbaacea1c0eb6a0876280051b892eb73594fd90cf3b20e9c817029c57d2"
+dependencies = [
+ "toml",
+]
[[package]]
name = "flate2"
-version = "1.1.9"
+version = "1.0.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
+checksum = "46303f565772937ffe1d394a4fac6f411c6013172fadde9dcdb1e147a086940e"
dependencies = [
"crc32fast",
"miniz_oxide",
]
[[package]]
-name = "foldhash"
-version = "0.1.5"
+name = "fnv"
+version = "1.0.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
[[package]]
-name = "foldhash"
-version = "0.2.0"
+name = "foreign-types"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77ce24cb58228fbb8aa041425bb1050850ac19177686ea6e0f41a70416f56fdb"
-
-[[package]]
-name = "font-types"
-version = "0.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "39a654f404bbcbd48ea58c617c2993ee91d1cb63727a37bf2323a4edeed1b8c5"
+checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
dependencies = [
- "bytemuck",
-]
-
-[[package]]
-name = "fontconfig-parser"
-version = "0.5.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bbc773e24e02d4ddd8395fd30dc147524273a83e54e0f312d986ea30de5f5646"
-dependencies = [
- "roxmltree",
-]
-
-[[package]]
-name = "fontdb"
-version = "0.23.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "457e789b3d1202543297a350643cf459f836cade38934e7a4cf6a39e7cde2905"
-dependencies = [
- "fontconfig-parser",
- "log",
- "memmap2",
- "slotmap",
- "tinyvec",
- "ttf-parser",
+ "foreign-types-shared 0.1.1",
]
[[package]]
@@ -1465,7 +762,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d737d9aa519fb7b749cbc3b962edcf310a8dd1f4b67c91c4f83975dbdd17d965"
dependencies = [
"foreign-types-macros",
- "foreign-types-shared",
+ "foreign-types-shared 0.3.1",
]
[[package]]
@@ -1476,9 +773,15 @@ checksum = "1a5c6c585bc94aaf2c7b51dd4c2ba22680844aba4c687be581871a6f518c5742"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.39",
]
+[[package]]
+name = "foreign-types-shared"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
+
[[package]]
name = "foreign-types-shared"
version = "0.3.1"
@@ -1487,18 +790,40 @@ checksum = "aa9a19cbb55df58761df49b23516a86d432839add4af60fc256da840f66ed35b"
[[package]]
name = "form_urlencoded"
-version = "1.2.2"
+version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
+checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652"
dependencies = [
"percent-encoding",
]
[[package]]
-name = "futures"
-version = "0.3.31"
+name = "freetype-rs"
+version = "0.26.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876"
+checksum = "74eadec9d0a5c28c54bb9882e54787275152a4e36ce206b45d7451384e5bf5fb"
+dependencies = [
+ "bitflags 1.3.2",
+ "freetype-sys",
+ "libc",
+]
+
+[[package]]
+name = "freetype-sys"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a37d4011c0cc628dfa766fcc195454f4b068d7afdc2adfd28861191d866e731a"
+dependencies = [
+ "cmake",
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
+name = "futures"
+version = "0.3.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da0290714b38af9b4a7b094b8a37086d1b4e61f2df9122c3cad2577669145335"
dependencies = [
"futures-channel",
"futures-core",
@@ -1511,9 +836,9 @@ dependencies = [
[[package]]
name = "futures-channel"
-version = "0.3.31"
+version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
+checksum = "ff4dd66668b557604244583e3e1e1eada8c5c2e96a6d0d6653ede395b78bbacb"
dependencies = [
"futures-core",
"futures-sink",
@@ -1521,15 +846,15 @@ dependencies = [
[[package]]
name = "futures-core"
-version = "0.3.31"
+version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
+checksum = "eb1d22c66e66d9d72e1758f0bd7d4fd0bee04cad842ee34587d68c07e45d088c"
[[package]]
name = "futures-executor"
-version = "0.3.31"
+version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f"
+checksum = "0f4fb8693db0cf099eadcca0efe2a5a22e4550f98ed16aba6c48700da29597bc"
dependencies = [
"futures-core",
"futures-task",
@@ -1539,51 +864,38 @@ dependencies = [
[[package]]
name = "futures-io"
-version = "0.3.31"
+version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
-
-[[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",
-]
+checksum = "8bf34a163b5c4c52d0478a4d757da8fb65cabef42ba90515efee0f6f9fa45aaa"
[[package]]
name = "futures-macro"
-version = "0.3.31"
+version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
+checksum = "53b153fd91e4b0147f4aced87be237c98248656bb01050b96bf3ee89220a8ddb"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.39",
]
[[package]]
name = "futures-sink"
-version = "0.3.31"
+version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
+checksum = "e36d3378ee38c2a36ad710c5d30c2911d752cb941c00c72dbabfb786a7970817"
[[package]]
name = "futures-task"
-version = "0.3.31"
+version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
+checksum = "efd193069b0ddadc69c46389b740bbccdd97203899b48d09c5f7969591d6bae2"
[[package]]
name = "futures-util"
-version = "0.3.31"
+version = "0.3.29"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
+checksum = "a19526d624e703a3179b3d322efec918b6246ea0fa51d41124525f00f1cc8104"
dependencies = [
"futures-channel",
"futures-core",
@@ -1598,20 +910,29 @@ dependencies = [
]
[[package]]
-name = "gethostname"
-version = "1.1.0"
+name = "fxhash"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1bd49230192a3797a9a4d6abe9b3eed6f7fa4c8a8a4947977c6f80025f92cbd8"
+checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c"
dependencies = [
- "rustix 1.1.3",
- "windows-link",
+ "byteorder",
+]
+
+[[package]]
+name = "gethostname"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1ebd34e35c46e00bb73e81363248d627782724609fe1b6396f553f68fe3862e"
+dependencies = [
+ "libc",
+ "winapi",
]
[[package]]
name = "getrandom"
-version = "0.2.17"
+version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
+checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427"
dependencies = [
"cfg-if",
"libc",
@@ -1619,39 +940,10 @@ dependencies = [
]
[[package]]
-name = "getrandom"
-version = "0.3.4"
+name = "gimli"
+version = "0.28.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
-dependencies = [
- "cfg-if",
- "libc",
- "r-efi",
- "wasip2",
-]
-
-[[package]]
-name = "getrandom"
-version = "0.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "139ef39800118c7683f2fd3c98c1b23c09ae076556b435f8e9064ae108aaeeec"
-dependencies = [
- "cfg-if",
- "libc",
- "r-efi",
- "wasip2",
- "wasip3",
-]
-
-[[package]]
-name = "gif"
-version = "0.14.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f5df2ba84018d80c213569363bdcd0c64e6933c67fe4c1d60ecf822971a3c35e"
-dependencies = [
- "color_quant",
- "weezl",
-]
+checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0"
[[package]]
name = "gl_generator"
@@ -1666,27 +958,15 @@ dependencies = [
[[package]]
name = "glam"
-version = "0.25.0"
+version = "0.21.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "151665d9be52f9bb40fc7966565d39666f2d1e69233571b71b87791c7e0528b3"
-
-[[package]]
-name = "gloo-timers"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bbb143cf96099802033e0d4f4963b19fd2e0b728bcf076cd9cf7f6634f092994"
-dependencies = [
- "futures-channel",
- "futures-core",
- "js-sys",
- "wasm-bindgen",
-]
+checksum = "518faa5064866338b013ff9b2350dc318e14cc4fcd6cb8206d7e7c9886c98815"
[[package]]
name = "glow"
-version = "0.16.0"
+version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c5e5ea60d70410161c8bf5da3fdfeaa1c72ed2c15f8bbb9d19fe3a4fad085f08"
+checksum = "d8bd5877156a19b8ac83a29b2306fe20537429d318f3ff0a1a2119f8d9c61919"
dependencies = [
"js-sys",
"slotmap",
@@ -1695,63 +975,182 @@ dependencies = [
]
[[package]]
-name = "glutin_wgl_sys"
-version = "0.6.1"
+name = "glow"
+version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2c4ee00b289aba7a9e5306d57c2d05499b2e5dc427f84ac708bd2c090212cf3e"
+checksum = "ca0fe580e4b60a8ab24a868bc08e2f03cbcb20d3d676601fa909386713333728"
+dependencies = [
+ "js-sys",
+ "slotmap",
+ "wasm-bindgen",
+ "web-sys",
+]
+
+[[package]]
+name = "glow_glyph"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0f4e62c64947b9a24fe20e2bba9ad819ecb506ef5c8df7ffc4737464c6df9510"
+dependencies = [
+ "bytemuck",
+ "glow 0.11.2",
+ "glyph_brush",
+ "log",
+]
+
+[[package]]
+name = "glutin"
+version = "0.29.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "444c9ad294fdcaf20ccf6726b78f380b5450275540c9b68ab62f49726ad1c713"
+dependencies = [
+ "cgl",
+ "cocoa",
+ "core-foundation",
+ "glutin_egl_sys",
+ "glutin_gles2_sys",
+ "glutin_glx_sys",
+ "glutin_wgl_sys",
+ "libloading 0.7.4",
+ "log",
+ "objc",
+ "once_cell",
+ "osmesa-sys",
+ "parking_lot 0.12.1",
+ "raw-window-handle 0.5.2",
+ "wayland-client",
+ "wayland-egl",
+ "winapi",
+ "winit",
+]
+
+[[package]]
+name = "glutin_egl_sys"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "68900f84b471f31ea1d1355567eb865a2cf446294f06cef8d653ed7bcf5f013d"
+dependencies = [
+ "gl_generator",
+ "winapi",
+]
+
+[[package]]
+name = "glutin_gles2_sys"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e8094e708b730a7c8a1954f4f8a31880af00eb8a1c5b5bf85d28a0a3c6d69103"
+dependencies = [
+ "gl_generator",
+ "objc",
+]
+
+[[package]]
+name = "glutin_glx_sys"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d93d0575865098580c5b3a423188cd959419912ea60b1e48e8b3b526f6d02468"
+dependencies = [
+ "gl_generator",
+ "x11-dl",
+]
+
+[[package]]
+name = "glutin_wgl_sys"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3da5951a1569dbab865c6f2a863efafff193a93caf05538d193e9e3816d21696"
dependencies = [
"gl_generator",
]
[[package]]
-name = "gpu-alloc"
-version = "0.6.0"
+name = "glyph_brush"
+version = "0.7.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fbcd2dba93594b227a1f57ee09b8b9da8892c34d55aa332e034a228d0fe6a171"
+checksum = "a3676f482c536a985fca36ce320a5e5b8fafd7b260806742af1963b71c5dc38c"
dependencies = [
- "bitflags 2.10.0",
+ "glyph_brush_draw_cache",
+ "glyph_brush_layout",
+ "ordered-float",
+ "rustc-hash",
+ "twox-hash",
+]
+
+[[package]]
+name = "glyph_brush_draw_cache"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6010675390f6889e09a21e2c8b575b3ee25667ea8237a8d59423f73cb8c28610"
+dependencies = [
+ "ab_glyph",
+ "crossbeam-channel",
+ "crossbeam-deque",
+ "linked-hash-map",
+ "rayon",
+ "rustc-hash",
+]
+
+[[package]]
+name = "glyph_brush_layout"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cc32c2334f00ca5ac3695c5009ae35da21da8c62d255b5b96d56e2597a637a38"
+dependencies = [
+ "ab_glyph",
+ "approx",
+ "xi-unicode",
+]
+
+[[package]]
+name = "gpu-alloc"
+version = "0.5.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "22beaafc29b38204457ea030f6fb7a84c9e4dd1b86e311ba0542533453d87f62"
+dependencies = [
+ "bitflags 1.3.2",
"gpu-alloc-types",
]
[[package]]
name = "gpu-alloc-types"
-version = "0.3.0"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "98ff03b468aa837d70984d55f5d3f846f6ec31fe34bbb97c4f85219caeee1ca4"
+checksum = "54804d0d6bc9d7f26db4eaec1ad10def69b599315f487d32c334a80d1efe67a5"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 1.3.2",
]
[[package]]
name = "gpu-allocator"
-version = "0.27.0"
+version = "0.22.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c151a2a5ef800297b4e79efa4f4bec035c5f51d5ae587287c9b952bdf734cacd"
+checksum = "ce95f9e2e11c2c6fadfce42b5af60005db06576f231f5c92550fdded43c423e8"
dependencies = [
+ "backtrace",
"log",
- "presser",
- "thiserror 1.0.69",
- "windows 0.58.0",
+ "thiserror",
+ "winapi",
+ "windows",
]
[[package]]
name = "gpu-descriptor"
-version = "0.3.2"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b89c83349105e3732062a895becfc71a8f921bb71ecbbdd8ff99263e3b53a0ca"
+checksum = "cc11df1ace8e7e564511f53af41f3e42ddc95b56fd07b3f4445d2a6048bc682c"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 2.4.1",
"gpu-descriptor-types",
- "hashbrown 0.15.5",
+ "hashbrown 0.14.2",
]
[[package]]
name = "gpu-descriptor-types"
-version = "0.2.0"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fdf242682df893b86f33a73828fb09ca4b2d3bb6cc95249707fc684d27484b91"
+checksum = "6bf0b36e6f090b7e1d8a4b49c0cb81c1f8376f72198c65dd3ad9ff3556b8b78c"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 2.4.1",
]
[[package]]
@@ -1765,65 +1164,41 @@ dependencies = [
]
[[package]]
-name = "half"
-version = "2.7.1"
+name = "hashbrown"
+version = "0.12.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
-dependencies = [
- "cfg-if",
- "crunchy",
- "num-traits",
- "zerocopy",
-]
-
-[[package]]
-name = "harfrust"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92c020db12c71d8a12a3fe7607873cade3a01a6287e29d540c8723276221b9d8"
-dependencies = [
- "bitflags 2.10.0",
- "bytemuck",
- "core_maths",
- "read-fonts",
- "smallvec",
-]
+checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
[[package]]
name = "hashbrown"
-version = "0.15.5"
+version = "0.14.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
+checksum = "f93e7192158dbcda357bdec5fb5788eebf8bbac027f3f33e719d29135ae84156"
dependencies = [
- "foldhash 0.1.5",
+ "ahash",
+ "allocator-api2",
]
[[package]]
-name = "hashbrown"
-version = "0.16.1"
+name = "hassle-rs"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
+checksum = "90601c6189668c7345fc53842cb3f3a3d872203d523be1b3cb44a36a3e62fb85"
dependencies = [
- "foldhash 0.2.0",
+ "bitflags 1.3.2",
+ "com-rs",
+ "libc",
+ "libloading 0.7.4",
+ "thiserror",
+ "widestring",
+ "winapi",
]
-[[package]]
-name = "heck"
-version = "0.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
-
[[package]]
name = "hermit-abi"
-version = "0.5.2"
+version = "0.3.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
-
-[[package]]
-name = "hex"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+checksum = "d77f7ec81a6d05a3abb01ab6eb7590f6083d08449fe5a1c8b1e620283546ccb7"
[[package]]
name = "hexf-parse"
@@ -1831,44 +1206,18 @@ version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dfa686283ad6dd069f105e5ab091b04c62850d3e4cf5d67debad1933f55023df"
-[[package]]
-name = "home"
-version = "0.5.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc627f471c528ff0c4a49e1d5e60450c8f6461dd6d10ba9dcd3a61d3dff7728d"
-dependencies = [
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "http"
-version = "1.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3ba2a386d7f85a81f119ad7498ebe444d2e22c2af0b86b069416ace48b3311a"
-dependencies = [
- "bytes",
- "itoa",
-]
-
-[[package]]
-name = "httparse"
-version = "1.10.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
-
[[package]]
name = "iana-time-zone"
-version = "0.1.65"
+version = "0.1.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
+checksum = "8326b86b6cff230b97d0d312a6c40a60726df3332e721f72a1b035f451663b20"
dependencies = [
"android_system_properties",
"core-foundation-sys",
"iana-time-zone-haiku",
"js-sys",
- "log",
"wasm-bindgen",
- "windows-core 0.62.2",
+ "windows-core",
]
[[package]]
@@ -1882,398 +1231,217 @@ dependencies = [
[[package]]
name = "iced"
-version = "0.14.0"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "000e01026c93ba643f8357a3db3ada0e6555265a377f6f9291c472f6dd701fb3"
+checksum = "efbddf356d01e9d41cd394a9d04d62bfd89650a30f12fda5839cabb8c4591c88"
dependencies = [
"iced_core",
- "iced_debug",
"iced_futures",
- "iced_renderer",
- "iced_runtime",
- "iced_widget",
+ "iced_glow",
+ "iced_glutin",
+ "iced_graphics",
+ "iced_native",
+ "iced_wgpu",
"iced_winit",
- "image",
- "thiserror 2.0.18",
+ "thiserror",
]
[[package]]
name = "iced_core"
-version = "0.14.0"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91ab1937d699403e7e69252ae743a902bcee9f4ab2052cc4c9a46fcf34729d85"
+checksum = "11e1942e28dedee756cc27e67e7a838cdc1e59fb6bf9627ec9f709ab3b135782"
dependencies = [
- "bitflags 2.10.0",
- "bytes",
- "glam",
- "lilt",
- "log",
- "num-traits",
- "rustc-hash 2.1.1",
- "smol_str",
- "thiserror 2.0.18",
- "web-time",
-]
-
-[[package]]
-name = "iced_debug"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "25035ab0215a620e53f4103e36fc4e59a1fb2817e4bfc38a30ad27b4202ea0be"
-dependencies = [
- "iced_core",
- "iced_futures",
- "log",
+ "bitflags 1.3.2",
+ "instant",
+ "palette",
]
[[package]]
name = "iced_futures"
-version = "0.14.0"
+version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c0c85ccad42dfbec7293c36c018af0ea0dbcc52d137a4a9a0b0f6822a3fdf0a"
+checksum = "215d51fa4f70dbb63775d7141243c4d98d4d525d8949695601f8fbac7dcbc04e"
dependencies = [
"futures",
- "iced_core",
"log",
- "rustc-hash 2.1.1",
"wasm-bindgen-futures",
- "wasmtimer",
+ "wasm-timer",
+]
+
+[[package]]
+name = "iced_glow"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "adc5b081015f5c75777c96ad75e2288916e7d444c97396d6d136517877ef9129"
+dependencies = [
+ "bytemuck",
+ "euclid",
+ "glow 0.11.2",
+ "glow_glyph",
+ "glyph_brush",
+ "iced_graphics",
+ "iced_native",
+ "log",
+]
+
+[[package]]
+name = "iced_glutin"
+version = "0.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c427ca018d29508512581d832fbaa7b6c8ec34c39d438f35f59e363a6419953"
+dependencies = [
+ "glutin",
+ "iced_graphics",
+ "iced_native",
+ "iced_winit",
+ "log",
]
[[package]]
name = "iced_graphics"
-version = "0.14.0"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "234ca1c2cec4155055f68fa5fad1b5242c496ac8238d80a259bca382fb44a102"
+checksum = "338a6aff7db906537074ad0fe8b720cfdb9512cdfea43c628c76bd1cf50fdcc0"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 1.3.2",
"bytemuck",
- "cosmic-text",
- "half",
+ "glam",
+ "iced_native",
+ "iced_style",
+ "log",
+ "raw-window-handle 0.5.2",
+ "thiserror",
+]
+
+[[package]]
+name = "iced_native"
+version = "0.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d012eb06da490fe46a695b39721c20da9643f35cf2ecb9d30618fdeb96170616"
+dependencies = [
"iced_core",
"iced_futures",
- "image",
- "kamadak-exif",
- "log",
- "raw-window-handle",
- "rustc-hash 2.1.1",
- "thiserror 2.0.18",
+ "iced_style",
+ "num-traits",
+ "thiserror",
+ "twox-hash",
"unicode-segmentation",
]
[[package]]
-name = "iced_program"
-version = "0.14.0"
+name = "iced_style"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6dfafec2947cda688d8eb00dac337ba11aa60f9ef6335aed343e189d26e4a673"
+checksum = "0e37333dc2991201140302cd0d4cea051bd37ca3671d5008ec85df86d232ff30"
dependencies = [
- "iced_graphics",
- "iced_runtime",
-]
-
-[[package]]
-name = "iced_renderer"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "250cc0802408e8c077986ec56c7d07c65f423ee658a4b9fd795a1f2aae5dac05"
-dependencies = [
- "iced_graphics",
- "iced_tiny_skia",
- "iced_wgpu",
- "log",
- "thiserror 2.0.18",
-]
-
-[[package]]
-name = "iced_runtime"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d1889b819ce4c06674183242e336c8d49465665441396914dc07cc86f44fa8d4"
-dependencies = [
- "bytes",
"iced_core",
- "iced_futures",
- "raw-window-handle",
- "thiserror 2.0.18",
-]
-
-[[package]]
-name = "iced_tiny_skia"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fe0acf8b75a3bc914aff5f2329fdffc1b36eeaea29dda0e4bd232f1c62e9cc3d"
-dependencies = [
- "bytemuck",
- "cosmic-text",
- "iced_debug",
- "iced_graphics",
- "kurbo",
- "log",
- "rustc-hash 2.1.1",
- "softbuffer",
- "tiny-skia",
+ "once_cell",
+ "palette",
]
[[package]]
name = "iced_wgpu"
-version = "0.14.0"
+version = "0.10.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff144a999b0ca0f8a10257934500060240825c42e950ec0ebee9c8ae30561c13"
+checksum = "478803c56061f567ce5ddf223b20d11d3c118cc46bb0d0552370dc65cdc4cb9c"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 1.3.2",
"bytemuck",
- "cryoglyph",
+ "encase",
"futures",
"glam",
+ "glyph_brush",
"guillotiere",
- "iced_debug",
"iced_graphics",
+ "iced_native",
"log",
- "rustc-hash 2.1.1",
- "thiserror 2.0.18",
+ "raw-window-handle 0.5.2",
"wgpu",
-]
-
-[[package]]
-name = "iced_widget"
-version = "0.14.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1596afa0d3109c2618e8bc12bae6c11d3064df8f95c42dfce570397dbe957ab"
-dependencies = [
- "iced_renderer",
- "log",
- "num-traits",
- "rustc-hash 2.1.1",
- "thiserror 2.0.18",
- "unicode-segmentation",
+ "wgpu_glyph",
]
[[package]]
name = "iced_winit"
-version = "0.14.0"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8b7dbedc47562d1de3b9707d939f678b88c382004b7ab5a18f7a7dd723162d75"
+checksum = "8a59ea3a85149a6a1f9e92b6c740ce90f04e5c7d848cfd05742336863fceb955"
dependencies = [
- "iced_debug",
- "iced_program",
+ "iced_futures",
+ "iced_graphics",
+ "iced_native",
"log",
- "mundy",
- "rustc-hash 2.1.1",
- "thiserror 2.0.18",
- "tracing",
- "wasm-bindgen-futures",
+ "thiserror",
"web-sys",
+ "winapi",
"window_clipboard",
"winit",
]
[[package]]
-name = "icu_collections"
-version = "2.1.1"
+name = "ident_case"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4c6b649701667bbe825c3b7e6388cb521c23d88644678e83c0c4d0a621a34b43"
-dependencies = [
- "displaydoc",
- "potential_utf",
- "yoke",
- "zerofrom",
- "zerovec",
-]
-
-[[package]]
-name = "icu_locale_core"
-version = "2.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "edba7861004dd3714265b4db54a3c390e880ab658fec5f7db895fae2046b5bb6"
-dependencies = [
- "displaydoc",
- "litemap",
- "tinystr",
- "writeable",
- "zerovec",
-]
-
-[[package]]
-name = "icu_normalizer"
-version = "2.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5f6c8828b67bf8908d82127b2054ea1b4427ff0230ee9141c54251934ab1b599"
-dependencies = [
- "icu_collections",
- "icu_normalizer_data",
- "icu_properties",
- "icu_provider",
- "smallvec",
- "zerovec",
-]
-
-[[package]]
-name = "icu_normalizer_data"
-version = "2.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7aedcccd01fc5fe81e6b489c15b247b8b0690feb23304303a9e560f37efc560a"
-
-[[package]]
-name = "icu_properties"
-version = "2.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "020bfc02fe870ec3a66d93e677ccca0562506e5872c650f893269e08615d74ec"
-dependencies = [
- "icu_collections",
- "icu_locale_core",
- "icu_properties_data",
- "icu_provider",
- "zerotrie",
- "zerovec",
-]
-
-[[package]]
-name = "icu_properties_data"
-version = "2.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "616c294cf8d725c6afcd8f55abc17c56464ef6211f9ed59cccffe534129c77af"
-
-[[package]]
-name = "icu_provider"
-version = "2.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85962cf0ce02e1e0a629cc34e7ca3e373ce20dda4c4d7294bbd0bf1fdb59e614"
-dependencies = [
- "displaydoc",
- "icu_locale_core",
- "writeable",
- "yoke",
- "zerofrom",
- "zerotrie",
- "zerovec",
-]
-
-[[package]]
-name = "id-arena"
-version = "2.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
[[package]]
name = "idna"
-version = "1.1.0"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
+checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c"
dependencies = [
- "idna_adapter",
- "smallvec",
- "utf8_iter",
+ "unicode-bidi",
+ "unicode-normalization",
]
-[[package]]
-name = "idna_adapter"
-version = "1.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"
-dependencies = [
- "icu_normalizer",
- "icu_properties",
-]
-
-[[package]]
-name = "image"
-version = "0.25.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e6506c6c10786659413faa717ceebcb8f70731c0a60cbae39795fdf114519c1a"
-dependencies = [
- "bytemuck",
- "byteorder-lite",
- "color_quant",
- "exr",
- "gif",
- "image-webp",
- "moxcms",
- "num-traits",
- "png",
- "qoi",
- "ravif",
- "rayon",
- "rgb",
- "tiff",
- "zune-core 0.5.1",
- "zune-jpeg 0.5.12",
-]
-
-[[package]]
-name = "image-webp"
-version = "0.2.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "525e9ff3e1a4be2fbea1fdf0e98686a6d98b4d8f937e1bf7402245af1909e8c3"
-dependencies = [
- "byteorder-lite",
- "quick-error",
-]
-
-[[package]]
-name = "imgref"
-version = "1.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e7c5cedc30da3a610cac6b4ba17597bdf7152cf974e8aab3afb3d54455e371c8"
-
[[package]]
name = "indexmap"
-version = "2.13.0"
+version = "1.9.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
+checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
+dependencies = [
+ "autocfg",
+ "hashbrown 0.12.3",
+]
+
+[[package]]
+name = "indexmap"
+version = "2.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f"
dependencies = [
"equivalent",
- "hashbrown 0.16.1",
- "serde",
- "serde_core",
+ "hashbrown 0.14.2",
]
[[package]]
-name = "interpolate_name"
-version = "0.2.4"
+name = "instant"
+version = "0.1.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c34819042dc3d3971c46c2190835914dfbe0c3c13f61449b2997f4e9722dfa60"
+checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
dependencies = [
- "proc-macro2",
- "quote",
- "syn",
+ "cfg-if",
+ "js-sys",
+ "wasm-bindgen",
+ "web-sys",
]
[[package]]
-name = "is_terminal_polyfill"
-version = "1.70.2"
+name = "is-terminal"
+version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
-
-[[package]]
-name = "itertools"
-version = "0.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2b192c782037fadd9cfa75548310488aabdbf3d2da73885b31bd0abd03351285"
+checksum = "cb0889898416213fab133e1d33a0e5858a48177452750691bde3666d0fdbaf8b"
dependencies = [
- "either",
+ "hermit-abi",
+ "rustix",
+ "windows-sys 0.48.0",
]
[[package]]
name = "itoa"
-version = "1.0.17"
+version = "1.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2"
-
-[[package]]
-name = "jni"
-version = "0.21.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97"
-dependencies = [
- "cesu8",
- "cfg-if",
- "combine",
- "jni-sys",
- "log",
- "thiserror 1.0.69",
- "walkdir",
- "windows-sys 0.45.0",
-]
+checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
[[package]]
name = "jni-sys"
@@ -2281,43 +1449,23 @@ version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8eaf4bc02d17cbdd7ff4c7438cafcdf7fb9a4613313ad11b4f8fefe7d3fa0130"
-[[package]]
-name = "jobserver"
-version = "0.1.34"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
-dependencies = [
- "getrandom 0.3.4",
- "libc",
-]
-
[[package]]
name = "js-sys"
-version = "0.3.85"
+version = "0.3.65"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c942ebf8e95485ca0d52d97da7c5a2c387d0e7f0ba4c35e93bfcaee045955b3"
+checksum = "54c0c35952f67de54bb584e9fd912b3023117cbafc0a77d8f3dee1fb5f572fe8"
dependencies = [
- "once_cell",
"wasm-bindgen",
]
-[[package]]
-name = "kamadak-exif"
-version = "0.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1130d80c7374efad55a117d715a3af9368f0fa7a2c54573afc15a188cd984837"
-dependencies = [
- "mutate_once",
-]
-
[[package]]
name = "khronos-egl"
-version = "6.0.0"
+version = "4.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6aae1df220ece3c0ada96b8153459b67eebe9ae9212258bb0134ae60416fdf76"
+checksum = "8c2352bd1d0bceb871cb9d40f24360c8133c11d7486b68b5381c1dd1a32015e3"
dependencies = [
"libc",
- "libloading",
+ "libloading 0.7.4",
"pkg-config",
]
@@ -2327,157 +1475,76 @@ version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e2db585e1d738fc771bf08a151420d3ed193d9d895a36df7f6f8a9456b911ddc"
-[[package]]
-name = "kurbo"
-version = "0.10.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1618d4ebd923e97d67e7cd363d80aef35fe961005cbbbb3d2dad8bdd1bc63440"
-dependencies = [
- "arrayvec",
- "smallvec",
-]
-
-[[package]]
-name = "kv-log-macro"
-version = "1.0.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f"
-dependencies = [
- "log",
-]
-
[[package]]
name = "lazy_static"
-version = "1.5.0"
+version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
-
-[[package]]
-name = "leb128fmt"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
-
-[[package]]
-name = "lebe"
-version = "0.5.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8"
+checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "libc"
-version = "0.2.186"
+version = "0.2.150"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
+checksum = "89d92a4743f9a61002fae18374ed11e7973f530cb3a3255fb354818118b2203c"
[[package]]
-name = "libfuzzer-sys"
-version = "0.4.12"
+name = "libloading"
+version = "0.7.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f12a681b7dd8ce12bff52488013ba614b869148d54dd79836ab85aafdd53f08d"
+checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f"
dependencies = [
- "arbitrary",
- "cc",
+ "cfg-if",
+ "winapi",
]
[[package]]
name = "libloading"
-version = "0.8.9"
+version = "0.8.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55"
+checksum = "c571b676ddfc9a8c12f1f3d3085a7b163966a8fd8098a90640953ce5f6170161"
dependencies = [
"cfg-if",
- "windows-link",
+ "windows-sys 0.48.0",
]
-[[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.12"
+version = "0.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3d0b95e02c851351f877147b7deea7b1afb1df71b63aa5f8270716e0c5720616"
+checksum = "85c833ca1e66078851dba29046874e38f08b2c883700aa29a03ddd3b23814ee8"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 2.4.1",
"libc",
- "redox_syscall 0.7.1",
+ "redox_syscall 0.4.1",
]
[[package]]
-name = "lilt"
-version = "0.8.1"
+name = "linked-hash-map"
+version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f67562e5eff6b20553fa9be1c503356768420994e28f67e3eafe6f41910e57ad"
-dependencies = [
- "web-time",
-]
-
-[[package]]
-name = "linebender_resource_handle"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d4a5ff6bcca6c4867b1c4fd4ef63e4db7436ef363e0ad7531d1558856bae64f4"
+checksum = "0717cef1bc8b636c6e1c1bbdefc09e6322da8a9321966e8928ef80d20f7f770f"
[[package]]
name = "linux-raw-sys"
-version = "0.4.15"
+version = "0.4.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
-
-[[package]]
-name = "linux-raw-sys"
-version = "0.11.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df1d3c3b53da64cf5760482273a98e575c651a67eec7f77df96b5b642de8f039"
-
-[[package]]
-name = "litemap"
-version = "0.8.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6373607a59f0be73a39b6fe456b8192fcc3585f602af20751600e974dd455e77"
-
-[[package]]
-name = "litrs"
-version = "1.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11d3d7f243d5c5a8b9bb5d6dd2b1602c0cb0b9db1621bafc7ed66e35ff9fe092"
+checksum = "da2479e8c062e40bf0066ffa0bc823de0a9368974af99c9f6df941d2c231e03f"
[[package]]
name = "lock_api"
-version = "0.4.14"
+version = "0.4.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
+checksum = "3c168f8615b12bc01f9c17e2eb0cc07dcae1940121185446edc3744920e8ef45"
dependencies = [
+ "autocfg",
"scopeguard",
]
[[package]]
name = "log"
-version = "0.4.29"
+version = "0.4.20"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
-dependencies = [
- "value-bag",
-]
-
-[[package]]
-name = "loop9"
-version = "0.1.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fae87c125b03c1d2c0150c90365d7d6bcc53fb73a9acaef207d2d065860f062"
-dependencies = [
- "imgref",
-]
-
-[[package]]
-name = "lru"
-version = "0.16.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1dc47f592c06f33f8e3aea9591776ec7c9f9e4124778ff8a3c3b87159f7e593"
+checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
[[package]]
name = "malloc_buf"
@@ -2488,156 +1555,113 @@ dependencies = [
"libc",
]
-[[package]]
-name = "maybe-rayon"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8ea1f30cedd69f0a2954655f7188c6a834246d2bcf1e315e2ac40c4b24dc9519"
-dependencies = [
- "cfg-if",
- "rayon",
-]
-
[[package]]
name = "memchr"
-version = "2.8.0"
+version = "2.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8ca58f447f06ed17d5fc4043ce1b10dd205e060fb3ce5b979b8ed8e59ff3f79"
+checksum = "f665ee40bc4a3c5590afb1e9677db74a508659dfd71e126420da8274909a0167"
[[package]]
name = "memmap2"
-version = "0.9.9"
+version = "0.5.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "744133e4a0e0a658e1374cf3bf8e415c4052a15a111acd372764c55b4177d490"
+checksum = "83faa42c0a078c393f6b29d5db232d8be22776a891f8f56e5284faee4a20b327"
dependencies = [
"libc",
]
[[package]]
name = "memoffset"
-version = "0.9.1"
+version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
+checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"
+dependencies = [
+ "autocfg",
+]
+
+[[package]]
+name = "memoffset"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c"
dependencies = [
"autocfg",
]
[[package]]
name = "metal"
-version = "0.32.0"
+version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "00c15a6f673ff72ddcc22394663290f870fb224c1bfce55734a75c414150e605"
+checksum = "de11355d1f6781482d027a3b4d4de7825dcedb197bf573e0596d00008402d060"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 1.3.2",
"block",
- "core-graphics-types 0.2.0",
- "foreign-types",
+ "core-graphics-types",
+ "foreign-types 0.3.2",
"log",
"objc",
- "paste",
]
[[package]]
-name = "miniz_oxide"
-version = "0.8.9"
+name = "minimal-lexical"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
+checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
+
+[[package]]
+name = "miniz_oxide"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7"
dependencies = [
- "adler2",
+ "adler",
"simd-adler32",
]
[[package]]
name = "mio"
-version = "1.2.1"
+version = "0.8.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "02bd0af71c67b473010cbbc60715ee815645a4dc942899111f494b4b737d6fda"
+checksum = "3dce281c5e46beae905d4de1870d8b1509a9142b62eedf18b443b011ca8343d0"
dependencies = [
"libc",
+ "log",
"wasi",
- "windows-sys 0.61.2",
+ "windows-sys 0.48.0",
]
-[[package]]
-name = "moxcms"
-version = "0.7.11"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ac9557c559cd6fc9867e122e20d2cbefc9ca29d80d027a8e39310920ed2f0a97"
-dependencies = [
- "num-traits",
- "pxfm",
-]
-
-[[package]]
-name = "mundy"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "523813c9e194ec43693805214eb112551f99382115b67f38600d724a692e7e8b"
-dependencies = [
- "android-build",
- "async-io",
- "cfg-if",
- "dispatch",
- "futures-channel",
- "futures-lite",
- "jni",
- "ndk-context",
- "objc2 0.6.3",
- "objc2-app-kit 0.3.2",
- "objc2-foundation 0.3.2",
- "pin-project-lite",
- "wasm-bindgen",
- "wasm-bindgen-futures",
- "web-sys",
- "windows 0.62.2",
- "zbus",
-]
-
-[[package]]
-name = "mutate_once"
-version = "0.1.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13d2233c9842d08cfe13f9eac96e207ca6a2ea10b80259ebe8ad0268be27d2af"
-
[[package]]
name = "naga"
-version = "27.0.3"
+version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "066cf25f0e8b11ee0df221219010f213ad429855f57c494f995590c861a9a7d8"
+checksum = "6c3d4269bcb7d50121097702fde1afb75f4ea8083aeb7a55688dcf289a853271"
dependencies = [
- "arrayvec",
"bit-set",
- "bitflags 2.10.0",
- "cfg-if",
- "cfg_aliases 0.2.1",
+ "bitflags 1.3.2",
"codespan-reporting",
- "half",
- "hashbrown 0.16.1",
"hexf-parse",
- "indexmap",
- "libm",
+ "indexmap 1.9.3",
"log",
"num-traits",
- "once_cell",
- "rustc-hash 1.1.0",
+ "rustc-hash",
"spirv",
- "thiserror 2.0.18",
- "unicode-ident",
+ "termcolor",
+ "thiserror",
+ "unicode-xid",
]
[[package]]
name = "ndk"
-version = "0.9.0"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3f42e7bbe13d351b6bead8286a43aac9534b82bd3cc43e47037f012ebfd62d4"
+checksum = "451422b7e4718271c8b5b3aadf5adedba43dc76312454b387e98fae0fc951aa0"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 1.3.2",
"jni-sys",
- "log",
"ndk-sys",
"num_enum",
- "raw-window-handle",
- "thiserror 1.0.69",
+ "raw-window-handle 0.5.2",
+ "thiserror",
]
[[package]]
@@ -2647,118 +1671,105 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "27b02d87554356db9e9a873add8782d4ea6e3e58ea071a9adb9a2e8ddb884a8b"
[[package]]
-name = "ndk-sys"
-version = "0.6.0+11769913"
+name = "ndk-glue"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ee6cda3051665f1fb8d9e08fc35c96d5a244fb1be711a03b71118828afc9a873"
+checksum = "0434fabdd2c15e0aab768ca31d5b7b333717f03cf02037d5a0a3ff3c278ed67f"
+dependencies = [
+ "libc",
+ "log",
+ "ndk",
+ "ndk-context",
+ "ndk-macro",
+ "ndk-sys",
+ "once_cell",
+ "parking_lot 0.12.1",
+]
+
+[[package]]
+name = "ndk-macro"
+version = "0.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0df7ac00c4672f9d5aece54ee3347520b7e20f158656c7db2e6de01902eb7a6c"
+dependencies = [
+ "darling",
+ "proc-macro-crate",
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+]
+
+[[package]]
+name = "ndk-sys"
+version = "0.4.1+23.1.7779620"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3cf2aae958bd232cac5069850591667ad422d263686d75b52a065f9badeee5a3"
dependencies = [
"jni-sys",
]
[[package]]
-name = "new_debug_unreachable"
-version = "1.0.6"
+name = "nix"
+version = "0.22.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
-
-[[package]]
-name = "nibble_vec"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "77a5d83df9f36fe23f0c3648c6bbb8b0298bb5f1939c8f2704431371f4b84d43"
+checksum = "e4916f159ed8e5de0082076562152a76b7a1f64a01fd9d1e0fea002c37624faf"
dependencies = [
- "smallvec",
+ "bitflags 1.3.2",
+ "cc",
+ "cfg-if",
+ "libc",
+ "memoffset 0.6.5",
]
[[package]]
name = "nix"
-version = "0.28.0"
+version = "0.24.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab2156c4fce2f8df6c499cc1c763e4394b7482525bf2a9701c9d79d215f519e4"
+checksum = "fa52e972a9a719cecb6864fb88568781eb706bac2cd1d4f04a648542dbf78069"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 1.3.2",
"cfg-if",
- "cfg_aliases 0.1.1",
"libc",
+ "memoffset 0.6.5",
+]
+
+[[package]]
+name = "nix"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f346ff70e7dbfd675fe90590b92d59ef2de15a8779ae305ebcbfd3f0caf59be4"
+dependencies = [
+ "autocfg",
+ "bitflags 1.3.2",
+ "cfg-if",
+ "libc",
+ "memoffset 0.6.5",
]
[[package]]
name = "nom"
-version = "8.0.0"
+version = "7.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df9761775871bdef83bee530e60050f7e54b1105350d6884eb0fb4f46c2f9405"
+checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
dependencies = [
"memchr",
-]
-
-[[package]]
-name = "noop_proc_macro"
-version = "0.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0676bb32a98c1a483ce53e500a81ad9c3d5b3f7c920c28c24e9cb0980d0b5bc8"
-
-[[package]]
-name = "num-bigint"
-version = "0.4.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
-dependencies = [
- "num-integer",
- "num-traits",
-]
-
-[[package]]
-name = "num-conv"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050"
-
-[[package]]
-name = "num-derive"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "num-integer"
-version = "0.1.46"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
-dependencies = [
- "num-traits",
-]
-
-[[package]]
-name = "num-rational"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
-dependencies = [
- "num-bigint",
- "num-integer",
- "num-traits",
+ "minimal-lexical",
]
[[package]]
name = "num-traits"
-version = "0.2.19"
+version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c"
dependencies = [
"autocfg",
- "libm",
]
[[package]]
name = "num_cpus"
-version = "1.17.0"
+version = "1.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b"
+checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
dependencies = [
"hermit-abi",
"libc",
@@ -2766,24 +1777,23 @@ dependencies = [
[[package]]
name = "num_enum"
-version = "0.7.5"
+version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b1207a7e20ad57b847bbddc6776b968420d38292bbfe2089accff5e19e82454c"
+checksum = "1f646caf906c20226733ed5b1374287eb97e3c2a5c227ce668c1f2ce20ae57c9"
dependencies = [
"num_enum_derive",
- "rustversion",
]
[[package]]
name = "num_enum_derive"
-version = "0.7.5"
+version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff32365de1b6743cb203b710788263c44a03de03802daf96092f2da4fe6ba4d7"
+checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799"
dependencies = [
"proc-macro-crate",
"proc-macro2",
"quote",
- "syn",
+ "syn 1.0.109",
]
[[package]]
@@ -2793,369 +1803,52 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "915b1b472bc21c53464d6c8461c9d3af805ba1ef837e1cac254428f4a77177b1"
dependencies = [
"malloc_buf",
+ "objc_exception",
]
[[package]]
-name = "objc-sys"
-version = "0.3.5"
+name = "objc-foundation"
+version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cdb91bdd390c7ce1a8607f35f3ca7151b65afc0ff5ff3b34fa350f7d7c7e4310"
-
-[[package]]
-name = "objc2"
-version = "0.5.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "46a785d4eeff09c14c487497c162e92766fbb3e4059a71840cecc03d9a50b804"
+checksum = "1add1b659e36c9607c7aab864a76c7a4c2760cd0cd2e120f3fb8b952c7e22bf9"
dependencies = [
- "objc-sys",
- "objc2-encode",
+ "block",
+ "objc",
+ "objc_id",
]
[[package]]
-name = "objc2"
-version = "0.6.3"
+name = "objc_exception"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b7c2599ce0ec54857b29ce62166b0ed9b4f6f1a70ccc9a71165b6154caca8c05"
+checksum = "ad970fb455818ad6cba4c122ad012fae53ae8b4795f86378bce65e4f6bab2ca4"
dependencies = [
- "objc2-encode",
+ "cc",
]
[[package]]
-name = "objc2-app-kit"
-version = "0.2.2"
+name = "objc_id"
+version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e4e89ad9e3d7d297152b17d39ed92cd50ca8063a89a9fa569046d41568891eff"
+checksum = "c92d4ddb4bd7b50d730c215ff871754d0da6b2178849f8a2a2ab69712d0c073b"
dependencies = [
- "bitflags 2.10.0",
- "block2 0.5.1",
- "libc",
- "objc2 0.5.2",
- "objc2-core-data 0.2.2",
- "objc2-core-image 0.2.2",
- "objc2-foundation 0.2.2",
- "objc2-quartz-core 0.2.2",
+ "objc",
]
[[package]]
-name = "objc2-app-kit"
-version = "0.3.2"
+name = "object"
+version = "0.32.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d49e936b501e5c5bf01fda3a9452ff86dc3ea98ad5f283e1455153142d97518c"
+checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0"
dependencies = [
- "bitflags 2.10.0",
- "block2 0.6.2",
- "libc",
- "objc2 0.6.3",
- "objc2-cloud-kit 0.3.2",
- "objc2-core-data 0.3.2",
- "objc2-core-foundation",
- "objc2-core-graphics",
- "objc2-core-image 0.3.2",
- "objc2-core-text",
- "objc2-core-video",
- "objc2-foundation 0.3.2",
- "objc2-quartz-core 0.3.2",
-]
-
-[[package]]
-name = "objc2-cloud-kit"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "74dd3b56391c7a0596a295029734d3c1c5e7e510a4cb30245f8221ccea96b009"
-dependencies = [
- "bitflags 2.10.0",
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-core-location",
- "objc2-foundation 0.2.2",
-]
-
-[[package]]
-name = "objc2-cloud-kit"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "73ad74d880bb43877038da939b7427bba67e9dd42004a18b809ba7d87cee241c"
-dependencies = [
- "bitflags 2.10.0",
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
-]
-
-[[package]]
-name = "objc2-contacts"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a5ff520e9c33812fd374d8deecef01d4a840e7b41862d849513de77e44aa4889"
-dependencies = [
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
-]
-
-[[package]]
-name = "objc2-core-data"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "617fbf49e071c178c0b24c080767db52958f716d9eabdf0890523aeae54773ef"
-dependencies = [
- "bitflags 2.10.0",
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
-]
-
-[[package]]
-name = "objc2-core-data"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0b402a653efbb5e82ce4df10683b6b28027616a2715e90009947d50b8dd298fa"
-dependencies = [
- "bitflags 2.10.0",
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
-]
-
-[[package]]
-name = "objc2-core-foundation"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
-dependencies = [
- "bitflags 2.10.0",
- "dispatch2",
- "objc2 0.6.3",
-]
-
-[[package]]
-name = "objc2-core-graphics"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e022c9d066895efa1345f8e33e584b9f958da2fd4cd116792e15e07e4720a807"
-dependencies = [
- "bitflags 2.10.0",
- "dispatch2",
- "objc2 0.6.3",
- "objc2-core-foundation",
- "objc2-io-surface",
-]
-
-[[package]]
-name = "objc2-core-image"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "55260963a527c99f1819c4f8e3b47fe04f9650694ef348ffd2227e8196d34c80"
-dependencies = [
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
- "objc2-metal",
-]
-
-[[package]]
-name = "objc2-core-image"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e5d563b38d2b97209f8e861173de434bd0214cf020e3423a52624cd1d989f006"
-dependencies = [
- "objc2 0.6.3",
- "objc2-foundation 0.3.2",
-]
-
-[[package]]
-name = "objc2-core-location"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "000cfee34e683244f284252ee206a27953279d370e309649dc3ee317b37e5781"
-dependencies = [
- "block2 0.5.1",
- "objc2 0.5.2",
- "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.10.0",
- "objc2 0.6.3",
- "objc2-core-foundation",
- "objc2-core-graphics",
-]
-
-[[package]]
-name = "objc2-core-video"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d425caf1df73233f29fd8a5c3e5edbc30d2d4307870f802d18f00d83dc5141a6"
-dependencies = [
- "bitflags 2.10.0",
- "objc2 0.6.3",
- "objc2-core-foundation",
- "objc2-core-graphics",
- "objc2-io-surface",
-]
-
-[[package]]
-name = "objc2-encode"
-version = "4.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef25abbcd74fb2609453eb695bd2f860d389e457f67dc17cafc8b8cbc89d0c33"
-
-[[package]]
-name = "objc2-foundation"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0ee638a5da3799329310ad4cfa62fbf045d5f56e3ef5ba4149e7452dcf89d5a8"
-dependencies = [
- "bitflags 2.10.0",
- "block2 0.5.1",
- "dispatch",
- "libc",
- "objc2 0.5.2",
-]
-
-[[package]]
-name = "objc2-foundation"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
-dependencies = [
- "bitflags 2.10.0",
- "block2 0.6.2",
- "libc",
- "objc2 0.6.3",
- "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.10.0",
- "objc2 0.6.3",
- "objc2-core-foundation",
-]
-
-[[package]]
-name = "objc2-link-presentation"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1a1ae721c5e35be65f01a03b6d2ac13a54cb4fa70d8a5da293d7b0020261398"
-dependencies = [
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
-]
-
-[[package]]
-name = "objc2-metal"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd0cba1276f6023976a406a14ffa85e1fdd19df6b0f737b063b95f6c8c7aadd6"
-dependencies = [
- "bitflags 2.10.0",
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
-]
-
-[[package]]
-name = "objc2-quartz-core"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e42bee7bff906b14b167da2bac5efe6b6a07e6f7c0a21a7308d40c960242dc7a"
-dependencies = [
- "bitflags 2.10.0",
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
- "objc2-metal",
-]
-
-[[package]]
-name = "objc2-quartz-core"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96c1358452b371bf9f104e21ec536d37a650eb10f7ee379fff67d2e08d537f1f"
-dependencies = [
- "bitflags 2.10.0",
- "objc2 0.6.3",
- "objc2-core-foundation",
- "objc2-foundation 0.3.2",
-]
-
-[[package]]
-name = "objc2-symbols"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a684efe3dec1b305badae1a28f6555f6ddd3bb2c2267896782858d5a78404dc"
-dependencies = [
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
-]
-
-[[package]]
-name = "objc2-ui-kit"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8bb46798b20cd6b91cbd113524c490f1686f4c4e8f49502431415f3512e2b6f"
-dependencies = [
- "bitflags 2.10.0",
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-cloud-kit 0.2.2",
- "objc2-core-data 0.2.2",
- "objc2-core-image 0.2.2",
- "objc2-core-location",
- "objc2-foundation 0.2.2",
- "objc2-link-presentation",
- "objc2-quartz-core 0.2.2",
- "objc2-symbols",
- "objc2-uniform-type-identifiers",
- "objc2-user-notifications",
-]
-
-[[package]]
-name = "objc2-uniform-type-identifiers"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "44fa5f9748dbfe1ca6c0b79ad20725a11eca7c2218bceb4b005cb1be26273bfe"
-dependencies = [
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-foundation 0.2.2",
-]
-
-[[package]]
-name = "objc2-user-notifications"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "76cfcbf642358e8689af64cee815d139339f3ed8ad05103ed5eaf73db8d84cb3"
-dependencies = [
- "bitflags 2.10.0",
- "block2 0.5.1",
- "objc2 0.5.2",
- "objc2-core-location",
- "objc2-foundation 0.2.2",
+ "memchr",
]
[[package]]
name = "once_cell"
-version = "1.21.3"
+version = "1.18.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
-
-[[package]]
-name = "once_cell_polyfill"
-version = "1.70.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
+checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
[[package]]
name = "option-ext"
@@ -3163,116 +1856,158 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
-[[package]]
-name = "orbclient"
-version = "0.3.50"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52ad2c6bae700b7aa5d1cc30c59bdd3a1c180b09dbaea51e2ae2b8e1cf211fdd"
-dependencies = [
- "libc",
- "libredox",
-]
-
[[package]]
name = "ordered-float"
-version = "5.1.0"
+version = "4.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f4779c6901a562440c3786d08192c6fbda7c1c2060edd10006b05ee35d10f2d"
+checksum = "536900a8093134cf9ccf00a27deb3532421099e958d9dd431135d0c7543ca1e8"
dependencies = [
"num-traits",
]
[[package]]
-name = "ordered-stream"
-version = "0.2.0"
+name = "osmesa-sys"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9aa2b01e1d916879f73a53d01d1d6cee68adbb31d6d9177a8cfce093cced1d50"
+checksum = "88cfece6e95d2e717e0872a7f53a8684712ad13822a7979bc760b9c77ec0013b"
dependencies = [
- "futures-core",
- "pin-project-lite",
+ "shared_library",
]
[[package]]
name = "owned_ttf_parser"
-version = "0.25.1"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "36820e9051aca1014ddc75770aab4d68bc1e9e632f0f5627c4086bc216fb583b"
+checksum = "d4586edfe4c648c71797a74c84bacb32b52b212eff5dfe2bb9f2c599844023e7"
dependencies = [
"ttf-parser",
]
[[package]]
-name = "parking"
-version = "2.2.1"
+name = "palette"
+version = "0.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
+checksum = "8f9cd68f7112581033f157e56c77ac4a5538ec5836a2e39284e65bd7d7275e49"
+dependencies = [
+ "approx",
+ "num-traits",
+ "palette_derive",
+ "phf",
+]
+
+[[package]]
+name = "palette_derive"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05eedf46a8e7c27f74af0c9cfcdb004ceca158cb1b918c6f68f8d7a549b3e427"
+dependencies = [
+ "find-crate",
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+]
[[package]]
name = "parking_lot"
-version = "0.12.5"
+version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+checksum = "7d17b78036a60663b797adeaee46f5c9dfebb86948d1255007a1d6be0271ff99"
+dependencies = [
+ "instant",
+ "lock_api",
+ "parking_lot_core 0.8.6",
+]
+
+[[package]]
+name = "parking_lot"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
dependencies = [
"lock_api",
- "parking_lot_core",
+ "parking_lot_core 0.9.9",
]
[[package]]
name = "parking_lot_core"
-version = "0.9.12"
+version = "0.8.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+checksum = "60a2cfe6f0ad2bfc16aefa463b497d5c7a5ecd44a23efa72aa342d90177356dc"
+dependencies = [
+ "cfg-if",
+ "instant",
+ "libc",
+ "redox_syscall 0.2.16",
+ "smallvec",
+ "winapi",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c42a9226546d68acdd9c0a280d17ce19bfe27a46bf68784e4066115788d008e"
dependencies = [
"cfg-if",
"libc",
- "redox_syscall 0.5.18",
+ "redox_syscall 0.4.1",
"smallvec",
- "windows-link",
+ "windows-targets 0.48.5",
]
-[[package]]
-name = "paste"
-version = "1.0.15"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
-
-[[package]]
-name = "pastey"
-version = "0.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35fb2e5f958ec131621fdd531e9fc186ed768cbe395337403ae56c17a74c68ec"
-
[[package]]
name = "percent-encoding"
-version = "2.3.2"
+version = "2.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
+checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94"
[[package]]
-name = "pin-project"
-version = "1.1.10"
+name = "phf"
+version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "677f1add503faace112b9f1373e43e9e054bfdd22ff1a63c1bc485eaec6a6a8a"
+checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"
dependencies = [
- "pin-project-internal",
+ "phf_macros",
+ "phf_shared",
]
[[package]]
-name = "pin-project-internal"
-version = "1.1.10"
+name = "phf_generator"
+version = "0.11.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e918e4ff8c4549eb882f14b3a4bc8c8bc93de829416eacf579f1207a8fbf861"
+checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0"
dependencies = [
+ "phf_shared",
+ "rand",
+]
+
+[[package]]
+name = "phf_macros"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3444646e286606587e49f3bcf1679b8cef1dc2c5ecc29ddacaffc305180d464b"
+dependencies = [
+ "phf_generator",
+ "phf_shared",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.39",
+]
+
+[[package]]
+name = "phf_shared"
+version = "0.11.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"
+dependencies = [
+ "siphasher",
]
[[package]]
name = "pin-project-lite"
-version = "0.2.16"
+version = "0.2.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
+checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58"
[[package]]
name = "pin-utils"
@@ -3280,225 +2015,74 @@ version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
-[[package]]
-name = "piper"
-version = "0.2.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96c8c490f422ef9a4efd2cb5b42b76c8613d7e7dfc1caf667b8a3350a5acc066"
-dependencies = [
- "atomic-waker",
- "fastrand",
- "futures-io",
-]
-
[[package]]
name = "pkg-config"
-version = "0.3.32"
+version = "0.3.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
+checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
[[package]]
name = "png"
-version = "0.18.0"
+version = "0.17.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "97baced388464909d42d89643fe4361939af9b7ce7a31ee32a168f832a70f2a0"
+checksum = "dd75bf2d8dd3702b9707cdbc56a5b9ef42cec752eb8b3bafc01234558442aa64"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 1.3.2",
"crc32fast",
"fdeflate",
"flate2",
"miniz_oxide",
]
-[[package]]
-name = "polling"
-version = "3.11.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5d0e4f59085d47d8241c88ead0f274e8a0cb551f3625263c05eb8dd897c34218"
-dependencies = [
- "cfg-if",
- "concurrent-queue",
- "hermit-abi",
- "pin-project-lite",
- "rustix 1.1.3",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "pollster"
-version = "0.4.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2f3a9f18d041e6d0e102a0a46750538147e5e8992d3b4873aaafee2520b00ce3"
-
-[[package]]
-name = "portable-atomic"
-version = "1.13.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
-
-[[package]]
-name = "portable-atomic-util"
-version = "0.2.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a9db96d7fa8782dd8c15ce32ffe8680bbd1e978a43bf51a34d39483540495f5"
-dependencies = [
- "portable-atomic",
-]
-
-[[package]]
-name = "potential_utf"
-version = "0.1.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b73949432f5e2a09657003c25bca5e19a0e9c84f8058ca374f49e0ebe605af77"
-dependencies = [
- "zerovec",
-]
-
-[[package]]
-name = "powerfmt"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
-
[[package]]
name = "ppv-lite86"
-version = "0.2.21"
+version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
-dependencies = [
- "zerocopy",
-]
-
-[[package]]
-name = "presser"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e8cf8e6a8aa66ce33f63993ffc4ea4271eb5b0530a9002db8455ea6050c77bfa"
-
-[[package]]
-name = "prettyplease"
-version = "0.2.37"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
-dependencies = [
- "proc-macro2",
- "syn",
-]
+checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
[[package]]
name = "proc-macro-crate"
-version = "3.4.0"
+version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "219cb19e96be00ab2e37d6e299658a0cfa83e52429179969b0f0121b4ac46983"
+checksum = "7f4c021e1093a56626774e81216a4ce732a735e5bad4868a03f3ed65ca0c3919"
dependencies = [
+ "once_cell",
"toml_edit",
]
[[package]]
name = "proc-macro2"
-version = "1.0.106"
+version = "1.0.69"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
+checksum = "134c189feb4956b20f6f547d2cf727d4c0fe06722b20a0eec87ed445a97f92da"
dependencies = [
"unicode-ident",
]
[[package]]
name = "profiling"
-version = "1.0.17"
+version = "1.0.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3eb8486b569e12e2c32ad3e204dbaba5e4b5b216e9367044f25f1dba42341773"
-dependencies = [
- "profiling-procmacros",
-]
-
-[[package]]
-name = "profiling-procmacros"
-version = "1.0.17"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52717f9a02b6965224f95ca2a81e2e0c5c43baacd28ca057577988930b6c3d5b"
-dependencies = [
- "quote",
- "syn",
-]
-
-[[package]]
-name = "pxfm"
-version = "0.1.27"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7186d3822593aa4393561d186d1393b3923e9d6163d3fbfd6e825e3e6cf3e6a8"
-dependencies = [
- "num-traits",
-]
-
-[[package]]
-name = "qoi"
-version = "0.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001"
-dependencies = [
- "bytemuck",
-]
-
-[[package]]
-name = "quick-error"
-version = "2.0.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a993555f31e5a609f617c12db6250dedcac1b0a85076912c436e6fc9b2c8e6a3"
-
-[[package]]
-name = "quick-xml"
-version = "0.38.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b66c2058c55a409d601666cffe35f04333cf1013010882cec174a7467cd4e21c"
-dependencies = [
- "memchr",
-]
+checksum = "f89dff0959d98c9758c88826cc002e2c3d0b9dfac4139711d1f30de442f1139b"
[[package]]
name = "quote"
-version = "1.0.45"
+version = "1.0.33"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
+checksum = "5267fca4496028628a95160fc423a33e8b2e6af8a5302579e322e4b520293cae"
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 = "radix_trie"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c069c179fcdc6a2fe24d8d18305cf085fdbd4f922c041943e203685d6a1c58fd"
-dependencies = [
- "endian-type",
- "nibble_vec",
-]
-
[[package]]
name = "rand"
-version = "0.8.6"
+version = "0.8.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a"
+checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
dependencies = [
"libc",
- "rand_chacha 0.3.1",
- "rand_core 0.6.4",
-]
-
-[[package]]
-name = "rand"
-version = "0.9.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1"
-dependencies = [
- "rand_chacha 0.9.0",
- "rand_core 0.9.5",
+ "rand_chacha",
+ "rand_core",
]
[[package]]
@@ -3508,17 +2092,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
dependencies = [
"ppv-lite86",
- "rand_core 0.6.4",
-]
-
-[[package]]
-name = "rand_chacha"
-version = "0.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
-dependencies = [
- "ppv-lite86",
- "rand_core 0.9.5",
+ "rand_core",
]
[[package]]
@@ -3527,91 +2101,45 @@ version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
dependencies = [
- "getrandom 0.2.17",
-]
-
-[[package]]
-name = "rand_core"
-version = "0.9.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
-dependencies = [
- "getrandom 0.3.4",
+ "getrandom",
]
[[package]]
name = "range-alloc"
-version = "0.1.4"
+version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c3d6831663a5098ea164f89cff59c6284e95f4e3c76ce9848d4529f5ccca9bde"
+checksum = "9c8a99fddc9f0ba0a85884b8d14e3592853e787d581ca1816c91349b10e4eeab"
[[package]]
-name = "rangemap"
-version = "1.7.1"
+name = "raw-window-handle"
+version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "973443cf09a9c8656b574a866ab68dfa19f0867d0340648c7d2f6a71b8a8ea68"
-
-[[package]]
-name = "rav1e"
-version = "0.8.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "43b6dd56e85d9483277cde964fd1bdb0428de4fec5ebba7540995639a21cb32b"
+checksum = "e28f55143d0548dad60bb4fbdc835a3d7ac6acc3324506450c5fdd6e42903a76"
dependencies = [
- "aligned-vec",
- "arbitrary",
- "arg_enum_proc_macro",
- "arrayvec",
- "av-scenechange",
- "av1-grain",
- "bitstream-io",
- "built",
- "cfg-if",
- "interpolate_name",
- "itertools",
"libc",
- "libfuzzer-sys",
- "log",
- "maybe-rayon",
- "new_debug_unreachable",
- "noop_proc_macro",
- "num-derive",
- "num-traits",
- "paste",
- "profiling",
- "rand 0.9.2",
- "rand_chacha 0.9.0",
- "simd_helpers",
- "thiserror 2.0.18",
- "v_frame",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "ravif"
-version = "0.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ef69c1990ceef18a116855938e74793a5f7496ee907562bd0857b6ac734ab285"
-dependencies = [
- "avif-serialize",
- "imgref",
- "loop9",
- "quick-error",
- "rav1e",
- "rayon",
- "rgb",
+ "raw-window-handle 0.4.3",
]
[[package]]
name = "raw-window-handle"
-version = "0.6.2"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "20675572f6f24e9e76ef639bc5552774ed45f1c30e2951e1e99c59888861c539"
+checksum = "b800beb9b6e7d2df1fe337c9e3d04e3af22a124460fb4c30fcc22c9117cefb41"
+dependencies = [
+ "cty",
+]
+
+[[package]]
+name = "raw-window-handle"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2ff9a1f06a88b01621b7ae906ef0211290d1c8a168a15542486a8f61c0833b9"
[[package]]
name = "rayon"
-version = "1.11.0"
+version = "1.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
+checksum = "9c27db03db7734835b3f53954b534c91069375ce6ccaa2e065441e07d9b6cdb1"
dependencies = [
"either",
"rayon-core",
@@ -3619,23 +2147,30 @@ dependencies = [
[[package]]
name = "rayon-core"
-version = "1.13.0"
+version = "1.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
+checksum = "5ce3fb6ad83f861aac485e76e1985cd109d9a3713802152be56c3b1f0e0658ed"
dependencies = [
"crossbeam-deque",
"crossbeam-utils",
]
[[package]]
-name = "read-fonts"
-version = "0.35.0"
+name = "redox_syscall"
+version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6717cf23b488adf64b9d711329542ba34de147df262370221940dfabc2c91358"
+checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
dependencies = [
- "bytemuck",
- "core_maths",
- "font-types",
+ "bitflags 1.3.2",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.3.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
+dependencies = [
+ "bitflags 1.3.2",
]
[[package]]
@@ -3647,102 +2182,80 @@ 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.10.0",
-]
-
-[[package]]
-name = "redox_syscall"
-version = "0.7.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "35985aa610addc02e24fc232012c86fd11f14111180f902b67e2d5331f8ebf2b"
-dependencies = [
- "bitflags 2.10.0",
-]
-
[[package]]
name = "redox_users"
-version = "0.5.2"
+version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4e608c6638b9c18977b00b475ac1f28d14e84b27d8d42f70e0bf1e3dec127ac"
+checksum = "a18479200779601e498ada4e8c1e1f50e3ee19deb0259c25825a98b5603b2cb4"
dependencies = [
- "getrandom 0.2.17",
+ "getrandom",
"libredox",
- "thiserror 2.0.18",
+ "thiserror",
]
+[[package]]
+name = "regex"
+version = "1.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "380b951a9c5e80ddfd6136919eef32310721aa4aacd4889a8d39124b026ab343"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-automata",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-automata"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5f804c7828047e88b2d32e2d7fe5a105da8ee3264f01902f796c8e067dc2483f"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-syntax"
+version = "0.8.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
+
[[package]]
name = "renderdoc-sys"
-version = "1.1.0"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "19b30a45b0cd0bcca8037f3d0dc3421eaf95327a17cad11964fb8179b4fc4832"
+checksum = "f1382d1f0a252c4bf97dc20d979a2fdd05b024acd7c2ed0f7595d7817666a157"
[[package]]
name = "retry"
-version = "2.2.0"
+version = "2.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1cab9bd343c737660e523ee69f788018f3db686d537d2fd0f99c9f747c1bda4f"
+checksum = "9166d72162de3575f950507683fac47e30f6f2c3836b71b7fbc61aa517c9c5f4"
dependencies = [
- "rand 0.9.2",
+ "rand",
]
-[[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.3",
- "objc2-app-kit 0.3.2",
- "objc2-core-foundation",
- "objc2-foundation 0.3.2",
- "percent-encoding",
- "pollster",
- "raw-window-handle",
- "wasm-bindgen",
- "wasm-bindgen-futures",
- "wayland-backend",
- "wayland-client",
- "wayland-protocols",
- "web-sys",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "rgb"
-version = "0.8.52"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c6a884d2998352bb4daf0183589aec883f16a6da1f4dde84d8e2e9a5409a1ce"
-
[[package]]
name = "ring"
-version = "0.17.14"
+version = "0.17.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
+checksum = "fb0205304757e5d899b9c2e448b867ffd03ae7f988002e47cd24954391394d0b"
dependencies = [
"cc",
- "cfg-if",
- "getrandom 0.2.17",
+ "getrandom",
"libc",
+ "spin",
"untrusted",
- "windows-sys 0.52.0",
+ "windows-sys 0.48.0",
]
[[package]]
-name = "roxmltree"
-version = "0.20.0"
+name = "rustc-demangle"
+version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c20b6793b5c2fa6553b250154b78d6d0db37e72700ae35fad9387a46f487c97"
+checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76"
[[package]]
name = "rustc-hash"
@@ -3750,123 +2263,54 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
-[[package]]
-name = "rustc-hash"
-version = "2.1.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d"
-
-[[package]]
-name = "rustc_version"
-version = "0.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
-dependencies = [
- "semver",
-]
-
[[package]]
name = "rustix"
-version = "0.38.44"
+version = "0.38.21"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
+checksum = "2b426b0506e5d50a7d8dafcf2e81471400deb602392c7dd110815afb4eaf02a3"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 2.4.1",
"errno",
"libc",
- "linux-raw-sys 0.4.15",
- "windows-sys 0.59.0",
-]
-
-[[package]]
-name = "rustix"
-version = "1.1.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "146c9e247ccc180c1f61615433868c99f3de3ae256a30a43b49f67c2d9171f34"
-dependencies = [
- "bitflags 2.10.0",
- "errno",
- "libc",
- "linux-raw-sys 0.11.0",
- "windows-sys 0.61.2",
+ "linux-raw-sys",
+ "windows-sys 0.48.0",
]
[[package]]
name = "rustls"
-version = "0.23.36"
+version = "0.21.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c665f33d38cea657d9614f766881e4d510e0eda4239891eea56b4cadcf01801b"
+checksum = "446e14c5cda4f3f30fe71863c34ec70f5ac79d6087097ad0bb433e1be5edf04c"
dependencies = [
"log",
- "once_cell",
"ring",
- "rustls-pki-types",
"rustls-webpki",
- "subtle",
- "zeroize",
-]
-
-[[package]]
-name = "rustls-pki-types"
-version = "1.14.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd"
-dependencies = [
- "zeroize",
+ "sct",
]
[[package]]
name = "rustls-webpki"
-version = "0.103.13"
+version = "0.101.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61c429a8649f110dddef65e2a5ad240f747e85f7758a6bccc7e5777bd33f756e"
+checksum = "8b6275d1ee7a1cd780b64aca7726599a1dbc893b1e64144529e55c3c2f745765"
dependencies = [
"ring",
- "rustls-pki-types",
"untrusted",
]
-[[package]]
-name = "rustversion"
-version = "1.0.22"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
-
-[[package]]
-name = "rustyline"
-version = "14.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7803e8936da37efd9b6d4478277f4b2b9bb5cdb37a113e8d63222e58da647e63"
-dependencies = [
- "bitflags 2.10.0",
- "cfg-if",
- "clipboard-win",
- "fd-lock",
- "home",
- "libc",
- "log",
- "memchr",
- "nix",
- "radix_trie",
- "unicode-segmentation",
- "unicode-width 0.1.14",
- "utf8parse",
- "windows-sys 0.52.0",
-]
-
[[package]]
name = "ryu"
-version = "1.0.23"
+version = "1.0.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
+checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
[[package]]
-name = "same-file"
-version = "1.0.6"
+name = "safe_arch"
+version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
+checksum = "c1ff3d6d9696af502cc3110dacce942840fb06ff4514cad92236ecc455f2ce05"
dependencies = [
- "winapi-util",
+ "bytemuck",
]
[[package]]
@@ -3882,283 +2326,170 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
-name = "sctk-adwaita"
-version = "0.10.1"
+name = "sct"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6277f0217056f77f1d8f49f2950ac6c278c0d607c45f5ee99328d792ede24ec"
+checksum = "da046153aa2352493d6cb7da4b6e5c0c057d8a1d0a9aa8560baffdd945acd414"
dependencies = [
- "ab_glyph",
+ "ring",
+ "untrusted",
+]
+
+[[package]]
+name = "sctk-adwaita"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61270629cc6b4d77ec1907db1033d5c2e1a404c412743621981a871dc9c12339"
+dependencies = [
+ "crossfont",
"log",
- "memmap2",
- "smithay-client-toolkit 0.19.2",
+ "smithay-client-toolkit",
"tiny-skia",
]
-[[package]]
-name = "self_cell"
-version = "1.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b12e76d157a900eb52e81bc6e9f3069344290341720e9178cde2407113ac8d89"
-
-[[package]]
-name = "semver"
-version = "1.0.27"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d767eb0aabc880b29956c35734170f26ed551a859dbd361d140cdbeca61ab1e2"
-
[[package]]
name = "serde"
-version = "1.0.228"
+version = "1.0.190"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
-dependencies = [
- "serde_core",
- "serde_derive",
-]
-
-[[package]]
-name = "serde_core"
-version = "1.0.228"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
+checksum = "91d3c334ca1ee894a2c6f6ad698fe8c435b76d504b13d436f0685d648d6d96f7"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
-version = "1.0.228"
+version = "1.0.190"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
+checksum = "67c5609f394e5c2bd7fc51efda478004ea80ef42fee983d5c67a65e34f32c0e3"
dependencies = [
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.39",
]
[[package]]
name = "serde_json"
-version = "1.0.149"
+version = "1.0.108"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
+checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b"
dependencies = [
"itoa",
- "memchr",
+ "ryu",
"serde",
- "serde_core",
- "zmij",
]
[[package]]
-name = "serde_repr"
-version = "0.1.20"
+name = "servo-fontconfig"
+version = "0.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "175ee3e80ae9982737ca543e96133087cbd9a485eecc3bc4de9c1a37b47ea59c"
+checksum = "c7e3e22fe5fd73d04ebf0daa049d3efe3eae55369ce38ab16d07ddd9ac5c217c"
dependencies = [
- "proc-macro2",
- "quote",
- "syn",
+ "libc",
+ "servo-fontconfig-sys",
]
[[package]]
-name = "serde_spanned"
-version = "1.0.4"
+name = "servo-fontconfig-sys"
+version = "5.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8bbf91e5a4d6315eee45e704372590b30e260ee83af6639d64557f51b067776"
+checksum = "e36b879db9892dfa40f95da1c38a835d41634b825fbd8c4c418093d53c24b388"
dependencies = [
- "serde_core",
+ "expat-sys",
+ "freetype-sys",
+ "pkg-config",
]
[[package]]
-name = "shlex"
-version = "1.3.0"
+name = "shared_library"
+version = "0.1.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
-
-[[package]]
-name = "signal-hook-registry"
-version = "1.4.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+checksum = "5a9e7e0f2bfae24d8a5b5a66c5b257a83c7412304311512a0c054cd5e619da11"
dependencies = [
- "errno",
+ "lazy_static",
"libc",
]
[[package]]
name = "simd-adler32"
-version = "0.3.8"
+version = "0.3.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2"
+checksum = "d66dc143e6b11c1eddc06d5c423cfc97062865baf299914ab64caa38182078fe"
[[package]]
-name = "simd_helpers"
-version = "0.1.0"
+name = "siphasher"
+version = "0.3.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "95890f873bec569a0362c235787f3aca6e1e887302ba4840839bcc6459c42da6"
-dependencies = [
- "quote",
-]
-
-[[package]]
-name = "skrifa"
-version = "0.37.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c31071dedf532758ecf3fed987cdb4bd9509f900e026ab684b4ecb81ea49841"
-dependencies = [
- "bytemuck",
- "read-fonts",
-]
+checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
[[package]]
name = "slab"
-version = "0.4.12"
+version = "0.4.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
+checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
+dependencies = [
+ "autocfg",
+]
[[package]]
name = "slotmap"
-version = "1.1.1"
+version = "1.0.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038"
+checksum = "e1e08e261d0e8f5c43123b7adf3e4ca1690d655377ac93a03b2c9d3e98de1342"
dependencies = [
"version_check",
]
[[package]]
name = "smallvec"
-version = "1.15.1"
+version = "1.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
+checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a"
[[package]]
name = "smithay-client-toolkit"
-version = "0.19.2"
+version = "0.16.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3457dea1f0eb631b4034d61d4d8c32074caa6cd1ab2d59f2327bd8461e2c0016"
+checksum = "870427e30b8f2cbe64bf43ec4b86e88fe39b0a84b3f15efd9c9c2d020bc86eb9"
dependencies = [
- "bitflags 2.10.0",
- "calloop 0.13.0",
- "calloop-wayland-source 0.3.0",
- "cursor-icon",
- "libc",
+ "bitflags 1.3.2",
+ "calloop",
+ "dlib",
+ "lazy_static",
"log",
"memmap2",
- "rustix 0.38.44",
- "thiserror 1.0.69",
- "wayland-backend",
+ "nix 0.24.3",
+ "pkg-config",
"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.10.0",
- "calloop 0.14.3",
- "calloop-wayland-source 0.4.1",
- "cursor-icon",
- "libc",
- "log",
- "memmap2",
- "rustix 1.1.3",
- "thiserror 2.0.18",
- "wayland-backend",
- "wayland-client",
- "wayland-csd-frame",
- "wayland-cursor",
- "wayland-protocols",
- "wayland-protocols-experimental",
- "wayland-protocols-misc",
- "wayland-protocols-wlr",
- "wayland-scanner",
- "xkeysym",
]
[[package]]
name = "smithay-clipboard"
-version = "0.7.3"
+version = "0.6.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "71704c03f739f7745053bde45fa203a46c58d25bc5c4efba1d9a60e9dba81226"
+checksum = "0a345c870a1fae0b1b779085e81b51e614767c239e93503588e54c5b17f4b0e8"
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.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "52d1cfed4120b4d927bf7c0f86d2087a4a7d6027c906d9f9d525a80573b9be51"
-dependencies = [
- "libc",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "softbuffer"
-version = "0.4.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aac18da81ebbf05109ab275b157c22a653bb3c12cf884450179942f81bcbf6c3"
-dependencies = [
- "as-raw-xcb-connection",
- "bytemuck",
- "fastrand",
- "js-sys",
- "memmap2",
- "ndk",
- "objc2 0.6.3",
- "objc2-core-foundation",
- "objc2-core-graphics",
- "objc2-foundation 0.3.2",
- "objc2-quartz-core 0.3.2",
- "raw-window-handle",
- "redox_syscall 0.5.18",
- "rustix 1.1.3",
- "tiny-xlib",
- "tracing",
- "wasm-bindgen",
- "wayland-backend",
+ "smithay-client-toolkit",
"wayland-client",
- "wayland-sys",
- "web-sys",
- "windows-sys 0.61.2",
- "x11rb",
]
+[[package]]
+name = "spin"
+version = "0.9.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
+
[[package]]
name = "spirv"
-version = "0.3.0+sdk-1.3.268.0"
+version = "0.2.0+1.5.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eda41003dc44290527a59b13432d4a0379379fa074b70174882adfbdfd917844"
+checksum = "246bfa38fe3db3f1dfc8ca5a2cdeb7348c78be2112740cc0ec8ef18b6d94f830"
dependencies = [
- "bitflags 2.10.0",
+ "bitflags 1.3.2",
+ "num-traits",
]
-[[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"
@@ -4166,45 +2497,56 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
-name = "strict-num"
-version = "0.1.1"
+name = "static_init"
+version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6637bab7722d379c8b41ba849228d680cc12d0a45ba1fa2b48f2a30577a06731"
-
-[[package]]
-name = "strsim"
-version = "0.11.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
-
-[[package]]
-name = "subtle"
-version = "2.6.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
-
-[[package]]
-name = "svg_fmt"
-version = "0.4.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0193cc4331cfd2f3d2011ef287590868599a2f33c3e69bc22c1a3d3acf9e02fb"
-
-[[package]]
-name = "swash"
-version = "0.2.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "47846491253e976bdd07d0f9cc24b7daf24720d11309302ccbbc6e6b6e53550a"
+checksum = "8a2a1c578e98c1c16fc3b8ec1328f7659a500737d7a0c6d625e73e830ff9c1f6"
dependencies = [
- "skrifa",
- "yazi",
- "zeno",
+ "bitflags 1.3.2",
+ "cfg_aliases",
+ "libc",
+ "parking_lot 0.11.2",
+ "parking_lot_core 0.8.6",
+ "static_init_macro",
+ "winapi",
]
[[package]]
-name = "syn"
-version = "2.0.118"
+name = "static_init_macro"
+version = "1.0.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
+checksum = "70a2595fc3aa78f2d0e45dd425b22282dd863273761cc77780914b2cf3003acf"
+dependencies = [
+ "cfg_aliases",
+ "memchr",
+ "proc-macro2",
+ "quote",
+ "syn 1.0.109",
+]
+
+[[package]]
+name = "str-buf"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e08d8363704e6c71fc928674353e6b7c23dcea9d82d7012c8faf2a3a025f8d0"
+
+[[package]]
+name = "strsim"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
+
+[[package]]
+name = "svg_fmt"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8fb1df15f412ee2e9dfc1c504260fa695c1c3f10fe9f4a6ee2d2184d7d6450e2"
+
+[[package]]
+name = "syn"
+version = "1.0.109"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
dependencies = [
"proc-macro2",
"quote",
@@ -4212,196 +2554,86 @@ dependencies = [
]
[[package]]
-name = "synstructure"
-version = "0.13.2"
+name = "syn"
+version = "2.0.39"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+checksum = "23e78b90f2fcf45d3e842032ce32e3f2d1545ba6636271dcbf24fa306d87be7a"
dependencies = [
"proc-macro2",
"quote",
- "syn",
-]
-
-[[package]]
-name = "sys-locale"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8eab9a99a024a169fe8a903cf9d4a3b3601109bcc13bd9e3c6fff259138626c4"
-dependencies = [
- "libc",
+ "unicode-ident",
]
[[package]]
name = "tar"
-version = "0.4.46"
+version = "0.4.40"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f6221d9a6003c78398e3b239969f352578258df48c8eb051caadae0015bc840"
+checksum = "b16afcea1f22891c49a00c751c7b63b2233284064f11a200fc624137c51e2ddb"
dependencies = [
"filetime",
"libc",
"xattr",
]
-[[package]]
-name = "tempfile"
-version = "3.25.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0136791f7c95b1f6dd99f9cc786b91bb81c3800b639b3478e561ddb7be95e5f1"
-dependencies = [
- "fastrand",
- "getrandom 0.4.1",
- "once_cell",
- "rustix 1.1.3",
- "windows-sys 0.61.2",
-]
-
[[package]]
name = "termcolor"
-version = "1.4.1"
+version = "1.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
+checksum = "6093bad37da69aab9d123a8091e4be0aa4a03e4d601ec641c327398315f62b64"
dependencies = [
"winapi-util",
]
[[package]]
name = "thiserror"
-version = "1.0.69"
+version = "1.0.50"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
+checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2"
dependencies = [
- "thiserror-impl 1.0.69",
-]
-
-[[package]]
-name = "thiserror"
-version = "2.0.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
-dependencies = [
- "thiserror-impl 2.0.18",
+ "thiserror-impl",
]
[[package]]
name = "thiserror-impl"
-version = "1.0.69"
+version = "1.0.50"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
+checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8"
dependencies = [
"proc-macro2",
"quote",
- "syn",
-]
-
-[[package]]
-name = "thiserror-impl"
-version = "2.0.18"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "tiff"
-version = "0.10.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af9605de7fee8d9551863fd692cce7637f548dbd9db9180fcc07ccc6d26c336f"
-dependencies = [
- "fax",
- "flate2",
- "half",
- "quick-error",
- "weezl",
- "zune-jpeg 0.4.21",
-]
-
-[[package]]
-name = "time"
-version = "0.3.47"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "743bd48c283afc0388f9b8827b976905fb217ad9e647fae3a379a9283c4def2c"
-dependencies = [
- "deranged",
- "itoa",
- "num-conv",
- "powerfmt",
- "serde_core",
- "time-core",
- "time-macros",
-]
-
-[[package]]
-name = "time-core"
-version = "0.1.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca"
-
-[[package]]
-name = "time-macros"
-version = "0.2.27"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2e70e4c5a0e0a8a4823ad65dfe1a6930e4f4d756dcd9dd7939022b5e8c501215"
-dependencies = [
- "num-conv",
- "time-core",
+ "syn 2.0.39",
]
[[package]]
name = "tiny-skia"
-version = "0.11.4"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "83d13394d44dae3207b52a326c0c85a8bf87f1541f23b0d143811088497b09ab"
+checksum = "642680569bb895b16e4b9d181c60be1ed136fa0c9c7f11d004daf053ba89bf82"
dependencies = [
"arrayref",
- "arrayvec",
+ "arrayvec 0.5.2",
"bytemuck",
"cfg-if",
- "log",
+ "png",
+ "safe_arch",
"tiny-skia-path",
]
[[package]]
name = "tiny-skia-path"
-version = "0.11.4"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9c9e7fc0c2e86a30b117d0462aa261b72b7a99b7ebd7deb3a14ceda95c5bdc93"
+checksum = "c114d32f0c2ee43d585367cb013dfaba967ab9f62b90d9af0d696e955e70fa6c"
dependencies = [
"arrayref",
"bytemuck",
- "strict-num",
-]
-
-[[package]]
-name = "tiny-xlib"
-version = "0.2.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0324504befd01cab6e0c994f34b2ffa257849ee019d3fb3b64fb2c858887d89e"
-dependencies = [
- "as-raw-xcb-connection",
- "ctor-lite",
- "libloading",
- "pkg-config",
- "tracing",
-]
-
-[[package]]
-name = "tinystr"
-version = "0.8.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "42d3e9c45c09de15d06dd8acf5f4e0e399e85927b7f00711024eb7ae10fa4869"
-dependencies = [
- "displaydoc",
- "zerovec",
]
[[package]]
name = "tinyvec"
-version = "1.10.0"
+version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bfa5fdc3bce6191a1dbc8c02d5c8bffcf557bafa17c124c5264a458f1b0613fa"
+checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
dependencies = [
"tinyvec_macros",
]
@@ -4412,241 +2644,108 @@ version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
-[[package]]
-name = "tokio"
-version = "1.52.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"
-dependencies = [
- "bytes",
- "libc",
- "mio",
- "parking_lot",
- "pin-project-lite",
- "signal-hook-registry",
- "socket2",
- "tokio-macros",
- "windows-sys 0.61.2",
-]
-
-[[package]]
-name = "tokio-macros"
-version = "2.7.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
[[package]]
name = "toml"
-version = "0.9.12+spec-1.1.0"
+version = "0.5.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf92845e79fc2e2def6a5d828f0801e29a2f8acc037becc5ab08595c7d5e9863"
+checksum = "f4f7f0dd8d50a853a531c426359045b1998f04219d88799810762cd4ad314234"
dependencies = [
- "indexmap",
- "serde_core",
- "serde_spanned",
- "toml_datetime",
- "toml_parser",
- "toml_writer",
- "winnow",
+ "serde",
]
[[package]]
name = "toml_datetime"
-version = "0.7.5+spec-1.1.0"
+version = "0.6.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "92e1cfed4a3038bc5a127e35a2d360f145e1f4b971b551a2ba5fd7aedf7e1347"
-dependencies = [
- "serde_core",
-]
+checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1"
[[package]]
name = "toml_edit"
-version = "0.23.10+spec-1.0.0"
+version = "0.19.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "84c8b9f757e028cee9fa244aea147aab2a9ec09d5325a9b01e0a49730c2b5269"
+checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421"
dependencies = [
- "indexmap",
+ "indexmap 2.1.0",
"toml_datetime",
- "toml_parser",
"winnow",
]
-[[package]]
-name = "toml_parser"
-version = "1.0.7+spec-1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "247eaa3197818b831697600aadf81514e577e0cba5eab10f7e064e78ae154df1"
-dependencies = [
- "winnow",
-]
-
-[[package]]
-name = "toml_writer"
-version = "1.0.6+spec-1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ab16f14aed21ee8bfd8ec22513f7287cd4a91aa92e44edfe2c17ddd004e92607"
-
-[[package]]
-name = "tracing"
-version = "0.1.44"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
-dependencies = [
- "log",
- "pin-project-lite",
- "tracing-attributes",
- "tracing-core",
-]
-
-[[package]]
-name = "tracing-attributes"
-version = "0.1.31"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "tracing-core"
-version = "0.1.36"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
-dependencies = [
- "once_cell",
-]
-
[[package]]
name = "ttf-parser"
-version = "0.25.1"
+version = "0.20.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d2df906b07856748fa3f6e0ad0cbaa047052d4a7dd609e231c4f72cee8c36f31"
+checksum = "17f77d76d837a7830fe1d4f12b7b4ba4192c1888001c7164257e4bc6d21d96b4"
+
+[[package]]
+name = "twox-hash"
+version = "1.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675"
dependencies = [
- "core_maths",
+ "cfg-if",
+ "rand",
+ "static_assertions",
]
[[package]]
-name = "uad-cli"
-version = "1.2.0"
+name = "uad_gui"
+version = "0.6.2"
dependencies = [
"chrono",
- "clap",
- "clap_complete",
- "csv",
"dirs",
- "log",
- "retry",
- "rustyline",
- "serde",
- "serde_json",
- "tokio",
- "toml",
- "uad-core",
- "ureq",
-]
-
-[[package]]
-name = "uad-core"
-version = "1.2.0"
-dependencies = [
- "chrono",
- "csv",
- "dirs",
- "flate2",
- "log",
- "retry",
- "serde",
- "serde_json",
- "tar",
- "toml",
- "ureq",
- "win32console",
-]
-
-[[package]]
-name = "uad-gui"
-version = "1.2.0"
-dependencies = [
- "chrono",
- "dark-light",
- "dirs",
- "embed-resource",
"fern",
"flate2",
"iced",
- "image",
+ "iced_native",
"log",
- "rfd",
+ "regex",
+ "retry",
+ "serde",
+ "serde_json",
+ "static_init",
"tar",
- "uad-core",
- "win32console",
-]
-
-[[package]]
-name = "uds_windows"
-version = "1.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "89daebc3e6fd160ac4aa9fc8b3bf71e1f74fbf92367ae71fb83a037e8bf164b9"
-dependencies = [
- "memoffset",
- "tempfile",
- "winapi",
+ "toml",
+ "ureq",
]
[[package]]
name = "unicode-bidi"
-version = "0.3.18"
+version = "0.3.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5"
+checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460"
[[package]]
name = "unicode-ident"
-version = "1.0.23"
+version = "1.0.12"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "537dd038a89878be9b64dd4bd1b260315c1bb94f4d784956b81e27a088d9a09e"
+checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
[[package]]
-name = "unicode-linebreak"
-version = "0.1.5"
+name = "unicode-normalization"
+version = "0.1.22"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f"
-
-[[package]]
-name = "unicode-script"
-version = "0.5.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "383ad40bb927465ec0ce7720e033cb4ca06912855fc35db31b5755d0de75b1ee"
+checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
+dependencies = [
+ "tinyvec",
+]
[[package]]
name = "unicode-segmentation"
-version = "1.12.0"
+version = "1.10.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
+checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36"
[[package]]
name = "unicode-width"
-version = "0.1.14"
+version = "0.1.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
-
-[[package]]
-name = "unicode-width"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4ac048d71ede7ee76d585517add45da530660ef4390e49b098733c6e897f254"
+checksum = "e51733f11c9c4f72aa0c160008246859e340b00807569a0da0e7a1079b27ba85"
[[package]]
name = "unicode-xid"
-version = "0.2.6"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
+checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c"
[[package]]
name = "untrusted"
@@ -4656,187 +2755,93 @@ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
[[package]]
name = "ureq"
-version = "3.2.0"
+version = "2.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fdc97a28575b85cfedf2a7e7d3cc64b3e11bd8ac766666318003abbacc7a21fc"
+checksum = "f5ccd538d4a604753ebc2f17cd9946e89b77bf87f6a8e2309667c6f2e87855e3"
dependencies = [
"base64",
- "cookie_store",
"flate2",
"log",
- "percent-encoding",
+ "once_cell",
"rustls",
- "rustls-pki-types",
+ "rustls-webpki",
"serde",
"serde_json",
- "ureq-proto",
- "utf-8",
+ "url",
"webpki-roots",
]
-[[package]]
-name = "ureq-proto"
-version = "0.5.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d81f9efa9df032be5934a46a068815a10a042b494b6a58cb0a1a97bb5467ed6f"
-dependencies = [
- "base64",
- "http",
- "httparse",
- "log",
-]
-
[[package]]
name = "url"
-version = "2.5.8"
+version = "2.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
+checksum = "143b538f18257fac9cad154828a57c6bf5157e1aa604d4816b5995bf6de87ae5"
dependencies = [
"form_urlencoded",
"idna",
"percent-encoding",
- "serde",
- "serde_derive",
]
[[package]]
-name = "utf-8"
-version = "0.7.6"
+name = "vec_map"
+version = "0.8.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
-
-[[package]]
-name = "utf8_iter"
-version = "1.0.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
-
-[[package]]
-name = "utf8parse"
-version = "0.2.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
-
-[[package]]
-name = "uuid"
-version = "1.20.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ee48d38b119b0cd71fe4141b30f5ba9c7c5d9f4e7a3a8b4a674e4b6ef789976f"
-dependencies = [
- "js-sys",
- "serde_core",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "v_frame"
-version = "0.3.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "666b7727c8875d6ab5db9533418d7c764233ac9c0cff1d469aec8fa127597be2"
-dependencies = [
- "aligned-vec",
- "num-traits",
- "wasm-bindgen",
-]
-
-[[package]]
-name = "value-bag"
-version = "1.12.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7ba6f5989077681266825251a52748b8c1d8a4ad098cc37e440103d0ea717fc0"
+checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
[[package]]
name = "version_check"
-version = "0.9.5"
+version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
-
-[[package]]
-name = "vswhom"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "be979b7f07507105799e854203b470ff7c78a1639e330a58f183b5fea574608b"
-dependencies = [
- "libc",
- "vswhom-sys",
-]
-
-[[package]]
-name = "vswhom-sys"
-version = "0.1.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fb067e4cbd1ff067d1df46c9194b5de0e98efd2810bbc95c5d5e5f25a3231150"
-dependencies = [
- "cc",
- "libc",
-]
-
-[[package]]
-name = "walkdir"
-version = "2.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
-dependencies = [
- "same-file",
- "winapi-util",
-]
+checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
[[package]]
name = "wasi"
-version = "0.11.1+wasi-snapshot-preview1"
+version = "0.11.0+wasi-snapshot-preview1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
-
-[[package]]
-name = "wasip2"
-version = "1.0.2+wasi-0.2.9"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5"
-dependencies = [
- "wit-bindgen",
-]
-
-[[package]]
-name = "wasip3"
-version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
-dependencies = [
- "wit-bindgen",
-]
+checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
[[package]]
name = "wasm-bindgen"
-version = "0.2.108"
+version = "0.2.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "64024a30ec1e37399cf85a7ffefebdb72205ca1c972291c51512360d90bd8566"
+checksum = "7daec296f25a1bae309c0cd5c29c4b260e510e6d813c286b19eaadf409d40fce"
dependencies = [
"cfg-if",
- "once_cell",
- "rustversion",
"wasm-bindgen-macro",
+]
+
+[[package]]
+name = "wasm-bindgen-backend"
+version = "0.2.88"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e397f4664c0e4e428e8313a469aaa58310d302159845980fd23b0f22a847f217"
+dependencies = [
+ "bumpalo",
+ "log",
+ "once_cell",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.39",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-futures"
-version = "0.4.58"
+version = "0.4.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "70a6e77fd0ae8029c9ea0063f87c46fde723e7d887703d74ad2616d792e51e6f"
+checksum = "9afec9963e3d0994cac82455b2b3502b81a7f40f9a0d32181f7528d9f4b43e02"
dependencies = [
"cfg-if",
- "futures-util",
"js-sys",
- "once_cell",
"wasm-bindgen",
"web-sys",
]
[[package]]
name = "wasm-bindgen-macro"
-version = "0.2.108"
+version = "0.2.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "008b239d9c740232e71bd39e8ef6429d27097518b6b30bdf9086833bd5b6d608"
+checksum = "5961017b3b08ad5f3fe39f1e79877f8ee7c23c5e5fd5eb80de95abc41f1f16b2"
dependencies = [
"quote",
"wasm-bindgen-macro-support",
@@ -4844,224 +2849,126 @@ dependencies = [
[[package]]
name = "wasm-bindgen-macro-support"
-version = "0.2.108"
+version = "0.2.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5256bae2d58f54820e6490f9839c49780dff84c65aeab9e772f15d5f0e913a55"
+checksum = "c5353b8dab669f5e10f5bd76df26a9360c748f054f862ff5f3f8aae0c7fb3907"
dependencies = [
- "bumpalo",
"proc-macro2",
"quote",
- "syn",
+ "syn 2.0.39",
+ "wasm-bindgen-backend",
"wasm-bindgen-shared",
]
[[package]]
name = "wasm-bindgen-shared"
-version = "0.2.108"
+version = "0.2.88"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1f01b580c9ac74c8d8f0c0e4afb04eeef2acf145458e52c03845ee9cd23e3d12"
-dependencies = [
- "unicode-ident",
-]
+checksum = "0d046c5d029ba91a1ed14da14dca44b68bf2f124cfbaf741c54151fdb3e0750b"
[[package]]
-name = "wasm-encoder"
-version = "0.244.0"
+name = "wasm-timer"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
-dependencies = [
- "leb128fmt",
- "wasmparser",
-]
-
-[[package]]
-name = "wasm-metadata"
-version = "0.244.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
-dependencies = [
- "anyhow",
- "indexmap",
- "wasm-encoder",
- "wasmparser",
-]
-
-[[package]]
-name = "wasmparser"
-version = "0.244.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
-dependencies = [
- "bitflags 2.10.0",
- "hashbrown 0.15.5",
- "indexmap",
- "semver",
-]
-
-[[package]]
-name = "wasmtimer"
-version = "0.4.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1c598d6b99ea013e35844697fc4670d08339d5cda15588f193c6beedd12f644b"
+checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f"
dependencies = [
"futures",
"js-sys",
- "parking_lot",
+ "parking_lot 0.11.2",
"pin-utils",
- "slab",
"wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
]
[[package]]
-name = "wayland-backend"
-version = "0.3.12"
+name = "wayland-client"
+version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fee64194ccd96bf648f42a65a7e589547096dfa702f7cadef84347b66ad164f9"
+checksum = "3f3b068c05a039c9f755f881dc50f01732214f5685e379829759088967c46715"
dependencies = [
- "cc",
+ "bitflags 1.3.2",
"downcast-rs",
- "rustix 1.1.3",
+ "libc",
+ "nix 0.24.3",
"scoped-tls",
+ "wayland-commons",
+ "wayland-scanner",
+ "wayland-sys",
+]
+
+[[package]]
+name = "wayland-commons"
+version = "0.29.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8691f134d584a33a6606d9d717b95c4fa20065605f798a3f350d78dced02a902"
+dependencies = [
+ "nix 0.24.3",
+ "once_cell",
"smallvec",
"wayland-sys",
]
-[[package]]
-name = "wayland-client"
-version = "0.31.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8e6faa537fbb6c186cb9f1d41f2f811a4120d1b57ec61f50da451a0c5122bec"
-dependencies = [
- "bitflags 2.10.0",
- "rustix 1.1.3",
- "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.10.0",
- "cursor-icon",
- "wayland-backend",
-]
-
[[package]]
name = "wayland-cursor"
-version = "0.31.12"
+version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5864c4b5b6064b06b1e8b74ead4a98a6c45a285fe7a0e784d24735f011fdb078"
+checksum = "6865c6b66f13d6257bef1cd40cbfe8ef2f150fb8ebbdb1e8e873455931377661"
dependencies = [
- "rustix 1.1.3",
+ "nix 0.24.3",
"wayland-client",
"xcursor",
]
+[[package]]
+name = "wayland-egl"
+version = "0.29.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "402de949f81a012926d821a2d659f930694257e76dd92b6e0042ceb27be4107d"
+dependencies = [
+ "wayland-client",
+ "wayland-sys",
+]
+
[[package]]
name = "wayland-protocols"
-version = "0.32.10"
+version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "baeda9ffbcfc8cd6ddaade385eaf2393bd2115a69523c735f12242353c3df4f3"
+checksum = "b950621f9354b322ee817a23474e479b34be96c2e909c14f7bc0100e9a970bc6"
dependencies = [
- "bitflags 2.10.0",
- "wayland-backend",
+ "bitflags 1.3.2",
"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.10.0",
- "wayland-backend",
- "wayland-client",
- "wayland-protocols",
- "wayland-scanner",
-]
-
-[[package]]
-name = "wayland-protocols-misc"
-version = "0.3.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "791c58fdeec5406aa37169dd815327d1e47f334219b523444bc26d70ceb4c34e"
-dependencies = [
- "bitflags 2.10.0",
- "wayland-backend",
- "wayland-client",
- "wayland-protocols",
- "wayland-scanner",
-]
-
-[[package]]
-name = "wayland-protocols-plasma"
-version = "0.3.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "aa98634619300a535a9a97f338aed9a5ff1e01a461943e8346ff4ae26007306b"
-dependencies = [
- "bitflags 2.10.0",
- "wayland-backend",
- "wayland-client",
- "wayland-protocols",
- "wayland-scanner",
-]
-
-[[package]]
-name = "wayland-protocols-wlr"
-version = "0.3.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e9597cdf02cf0c34cd5823786dce6b5ae8598f05c2daf5621b6e178d4f7345f3"
-dependencies = [
- "bitflags 2.10.0",
- "wayland-backend",
- "wayland-client",
- "wayland-protocols",
+ "wayland-commons",
"wayland-scanner",
]
[[package]]
name = "wayland-scanner"
-version = "0.31.8"
+version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5423e94b6a63e68e439803a3e153a9252d5ead12fd853334e2ad33997e3889e3"
+checksum = "8f4303d8fa22ab852f789e75a967f0a2cdc430a607751c0499bada3e451cbd53"
dependencies = [
"proc-macro2",
- "quick-xml",
"quote",
+ "xml-rs",
]
[[package]]
name = "wayland-sys"
-version = "0.31.8"
+version = "0.29.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e6dbfc3ac5ef974c92a2235805cc0114033018ae1290a72e474aa8b28cbbdfd"
+checksum = "be12ce1a3c39ec7dba25594b97b42cb3195d54953ddb9d3d95a7c3902bc6e9d4"
dependencies = [
"dlib",
- "log",
- "once_cell",
+ "lazy_static",
"pkg-config",
]
[[package]]
name = "web-sys"
-version = "0.3.85"
+version = "0.3.65"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "312e32e551d92129218ea9a2452120f4aabc03529ef03e4d0d82fb2780608598"
-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"
+checksum = "5db499c5f66323272151db0e666cd34f78617522fb0c1604d31a27c50c206a85"
dependencies = [
"js-sys",
"wasm-bindgen",
@@ -5069,38 +2976,24 @@ dependencies = [
[[package]]
name = "webpki-roots"
-version = "1.0.6"
+version = "0.25.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "22cfaf3c063993ff62e73cb4311efde4db1efb31ab78a3e5c457939ad5cc0bed"
-dependencies = [
- "rustls-pki-types",
-]
-
-[[package]]
-name = "weezl"
-version = "0.1.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"
+checksum = "14247bb57be4f377dfb94c72830b8ce8fc6beac03cf4bf7b9732eadd414123fc"
[[package]]
name = "wgpu"
-version = "27.0.1"
+version = "0.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bfe68bac7cde125de7a731c3400723cadaaf1703795ad3f4805f187459cd7a77"
+checksum = "d745a1b6d91d85c33defbb29f0eee0450e1d2614d987e14bf6baf26009d132d7"
dependencies = [
- "arrayvec",
- "bitflags 2.10.0",
+ "arrayvec 0.7.4",
"cfg-if",
- "cfg_aliases 0.2.1",
- "document-features",
- "hashbrown 0.16.1",
"js-sys",
"log",
"naga",
- "parking_lot",
- "portable-atomic",
+ "parking_lot 0.12.1",
"profiling",
- "raw-window-handle",
+ "raw-window-handle 0.5.2",
"smallvec",
"static_assertions",
"wasm-bindgen",
@@ -5113,135 +3006,98 @@ dependencies = [
[[package]]
name = "wgpu-core"
-version = "27.0.3"
+version = "0.15.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "27a75de515543b1897b26119f93731b385a19aea165a1ec5f0e3acecc229cae7"
+checksum = "7131408d940e335792645a98f03639573b0480e9e2e7cddbbab74f7c6d9f3fff"
dependencies = [
- "arrayvec",
- "bit-set",
+ "arrayvec 0.7.4",
"bit-vec",
- "bitflags 2.10.0",
- "bytemuck",
- "cfg_aliases 0.2.1",
- "document-features",
- "hashbrown 0.16.1",
- "indexmap",
+ "bitflags 1.3.2",
+ "codespan-reporting",
+ "fxhash",
"log",
"naga",
- "once_cell",
- "parking_lot",
- "portable-atomic",
+ "parking_lot 0.12.1",
"profiling",
- "raw-window-handle",
- "rustc-hash 1.1.0",
+ "raw-window-handle 0.5.2",
"smallvec",
- "thiserror 2.0.18",
- "wgpu-core-deps-apple",
- "wgpu-core-deps-emscripten",
- "wgpu-core-deps-windows-linux-android",
+ "thiserror",
+ "web-sys",
"wgpu-hal",
"wgpu-types",
]
-[[package]]
-name = "wgpu-core-deps-apple"
-version = "27.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0772ae958e9be0c729561d5e3fd9a19679bcdfb945b8b1a1969d9bfe8056d233"
-dependencies = [
- "wgpu-hal",
-]
-
-[[package]]
-name = "wgpu-core-deps-emscripten"
-version = "27.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b06ac3444a95b0813ecfd81ddb2774b66220b264b3e2031152a4a29fda4da6b5"
-dependencies = [
- "wgpu-hal",
-]
-
-[[package]]
-name = "wgpu-core-deps-windows-linux-android"
-version = "27.0.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "71197027d61a71748e4120f05a9242b2ad142e3c01f8c1b47707945a879a03c3"
-dependencies = [
- "wgpu-hal",
-]
-
[[package]]
name = "wgpu-hal"
-version = "27.0.4"
+version = "0.15.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5b21cb61c57ee198bc4aff71aeadff4cbb80b927beb912506af9c780d64313ce"
+checksum = "bdcf61a283adc744bb5453dd88ea91f3f86d5ca6b027661c6c73c7734ae0288b"
dependencies = [
"android_system_properties",
- "arrayvec",
+ "arrayvec 0.7.4",
"ash",
"bit-set",
- "bitflags 2.10.0",
+ "bitflags 1.3.2",
"block",
- "bytemuck",
- "cfg-if",
- "cfg_aliases 0.2.1",
- "core-graphics-types 0.2.0",
- "glow",
- "glutin_wgl_sys",
+ "core-graphics-types",
+ "d3d12",
+ "foreign-types 0.3.2",
+ "fxhash",
+ "glow 0.12.3",
"gpu-alloc",
"gpu-allocator",
"gpu-descriptor",
- "hashbrown 0.16.1",
+ "hassle-rs",
"js-sys",
"khronos-egl",
"libc",
- "libloading",
+ "libloading 0.7.4",
"log",
"metal",
"naga",
- "ndk-sys",
"objc",
- "once_cell",
- "ordered-float",
- "parking_lot",
- "portable-atomic",
- "portable-atomic-util",
+ "parking_lot 0.12.1",
"profiling",
"range-alloc",
- "raw-window-handle",
+ "raw-window-handle 0.5.2",
"renderdoc-sys",
"smallvec",
- "thiserror 2.0.18",
+ "thiserror",
"wasm-bindgen",
"web-sys",
"wgpu-types",
- "windows 0.58.0",
- "windows-core 0.58.0",
+ "winapi",
]
[[package]]
name = "wgpu-types"
-version = "27.0.1"
+version = "0.15.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "afdcf84c395990db737f2dd91628706cb31e86d72e53482320d368e52b5da5eb"
+checksum = "32444e121b0bd00cb02c0de32fde457a9491bd44e03e7a5db6df9b1da2f6f110"
dependencies = [
- "bitflags 2.10.0",
- "bytemuck",
+ "bitflags 1.3.2",
"js-sys",
- "log",
- "thiserror 2.0.18",
"web-sys",
]
[[package]]
-name = "win32console"
-version = "0.1.5"
+name = "wgpu_glyph"
+version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9e69bbdf01990d3e8b9f5a7c4667feda30c63be20aa2f8e66b2f4efb6c06f673"
+checksum = "e25440d5f32ec39de49c57c15c2d3f9133a7939b069b5ad07e5afd8b78fb8adc"
dependencies = [
- "winapi",
+ "bytemuck",
+ "glyph_brush",
+ "log",
+ "wgpu",
]
+[[package]]
+name = "widestring"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "17882f045410753661207383517a6f62ec3dbeb6a4ed2acce01f0728238d1983"
+
[[package]]
name = "winapi"
version = "0.3.9"
@@ -5260,11 +3116,20 @@ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
[[package]]
name = "winapi-util"
-version = "0.1.11"
+version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
+checksum = "f29e6f9198ba0d26b4c9f07dbe6f9ed633e1f3d5b8b414090084349e46a52596"
dependencies = [
- "windows-sys 0.61.2",
+ "winapi",
+]
+
+[[package]]
+name = "winapi-wsapoll"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44c17110f57155602a80dca10be03852116403c9ff3cd25b079d666f2aa3df6e"
+dependencies = [
+ "winapi",
]
[[package]]
@@ -5275,190 +3140,47 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
[[package]]
name = "window_clipboard"
-version = "0.5.1"
+version = "0.2.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d5654226305eaf2dde8853fb482861d28e5dcecbbd40cb88e8393d94bb80d733"
+checksum = "015dd4474dc6aa96fe19aae3a24587a088bd90331dba5a5cc60fb3a180234c4d"
dependencies = [
"clipboard-win",
"clipboard_macos",
"clipboard_wayland",
"clipboard_x11",
- "raw-window-handle",
- "thiserror 2.0.18",
+ "raw-window-handle 0.3.4",
+ "thiserror",
]
[[package]]
name = "windows"
-version = "0.58.0"
+version = "0.44.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dd04d41d93c4992d421894c18c8b43496aa748dd4c081bac0dc93eb0489272b6"
+checksum = "9e745dab35a0c4c77aa3ce42d595e13d2003d6902d6b08c9ef5fc326d08da12b"
dependencies = [
- "windows-core 0.58.0",
- "windows-targets 0.52.6",
-]
-
-[[package]]
-name = "windows"
-version = "0.62.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "527fadee13e0c05939a6a05d5bd6eec6cd2e3dbd648b9f8e447c6518133d8580"
-dependencies = [
- "windows-collections",
- "windows-core 0.62.2",
- "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 0.62.2",
+ "windows-targets 0.42.2",
]
[[package]]
name = "windows-core"
-version = "0.58.0"
+version = "0.51.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"
+checksum = "f1f8cf84f35d2db49a46868f947758c7a1138116f7fac3bc844f43ade1292e64"
dependencies = [
- "windows-implement 0.58.0",
- "windows-interface 0.58.0",
- "windows-result 0.2.0",
- "windows-strings 0.1.0",
- "windows-targets 0.52.6",
-]
-
-[[package]]
-name = "windows-core"
-version = "0.62.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
-dependencies = [
- "windows-implement 0.60.2",
- "windows-interface 0.59.3",
- "windows-link",
- "windows-result 0.4.1",
- "windows-strings 0.5.1",
-]
-
-[[package]]
-name = "windows-future"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e1d6f90251fe18a279739e78025bd6ddc52a7e22f921070ccdc67dde84c605cb"
-dependencies = [
- "windows-core 0.62.2",
- "windows-link",
- "windows-threading",
-]
-
-[[package]]
-name = "windows-implement"
-version = "0.58.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "windows-implement"
-version = "0.60.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "windows-interface"
-version = "0.58.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "windows-interface"
-version = "0.59.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "windows-link"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
-
-[[package]]
-name = "windows-numerics"
-version = "0.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6e2e40844ac143cdb44aead537bbf727de9b044e107a0f1220392177d15b0f26"
-dependencies = [
- "windows-core 0.62.2",
- "windows-link",
-]
-
-[[package]]
-name = "windows-result"
-version = "0.2.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"
-dependencies = [
- "windows-targets 0.52.6",
-]
-
-[[package]]
-name = "windows-result"
-version = "0.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
-dependencies = [
- "windows-link",
-]
-
-[[package]]
-name = "windows-strings"
-version = "0.1.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"
-dependencies = [
- "windows-result 0.2.0",
- "windows-targets 0.52.6",
-]
-
-[[package]]
-name = "windows-strings"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
-dependencies = [
- "windows-link",
+ "windows-targets 0.48.5",
]
[[package]]
name = "windows-sys"
-version = "0.45.0"
+version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0"
+checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"
dependencies = [
- "windows-targets 0.42.2",
+ "windows_aarch64_msvc 0.36.1",
+ "windows_i686_gnu 0.36.1",
+ "windows_i686_msvc 0.36.1",
+ "windows_x86_64_gnu 0.36.1",
+ "windows_x86_64_msvc 0.36.1",
]
[[package]]
@@ -5470,33 +3192,6 @@ dependencies = [
"windows-targets 0.48.5",
]
-[[package]]
-name = "windows-sys"
-version = "0.52.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
-dependencies = [
- "windows-targets 0.52.6",
-]
-
-[[package]]
-name = "windows-sys"
-version = "0.59.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
-dependencies = [
- "windows-targets 0.52.6",
-]
-
-[[package]]
-name = "windows-sys"
-version = "0.61.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
-dependencies = [
- "windows-link",
-]
-
[[package]]
name = "windows-targets"
version = "0.42.2"
@@ -5527,31 +3222,6 @@ dependencies = [
"windows_x86_64_msvc 0.48.5",
]
-[[package]]
-name = "windows-targets"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
-dependencies = [
- "windows_aarch64_gnullvm 0.52.6",
- "windows_aarch64_msvc 0.52.6",
- "windows_i686_gnu 0.52.6",
- "windows_i686_gnullvm",
- "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-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.42.2"
@@ -5565,10 +3235,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
[[package]]
-name = "windows_aarch64_gnullvm"
-version = "0.52.6"
+name = "windows_aarch64_msvc"
+version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"
[[package]]
name = "windows_aarch64_msvc"
@@ -5583,10 +3253,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
[[package]]
-name = "windows_aarch64_msvc"
-version = "0.52.6"
+name = "windows_i686_gnu"
+version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"
[[package]]
name = "windows_i686_gnu"
@@ -5601,16 +3271,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
[[package]]
-name = "windows_i686_gnu"
-version = "0.52.6"
+name = "windows_i686_msvc"
+version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
-
-[[package]]
-name = "windows_i686_gnullvm"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"
[[package]]
name = "windows_i686_msvc"
@@ -5625,10 +3289,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
[[package]]
-name = "windows_i686_msvc"
-version = "0.52.6"
+name = "windows_x86_64_gnu"
+version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"
[[package]]
name = "windows_x86_64_gnu"
@@ -5642,12 +3306,6 @@ version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
-[[package]]
-name = "windows_x86_64_gnu"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
-
[[package]]
name = "windows_x86_64_gnullvm"
version = "0.42.2"
@@ -5661,10 +3319,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
[[package]]
-name = "windows_x86_64_gnullvm"
-version = "0.52.6"
+name = "windows_x86_64_msvc"
+version = "0.36.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
[[package]]
name = "windows_x86_64_msvc"
@@ -5678,187 +3336,57 @@ version = "0.48.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
-[[package]]
-name = "windows_x86_64_msvc"
-version = "0.52.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
-
[[package]]
name = "winit"
-version = "0.30.12"
+version = "0.27.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c66d4b9ed69c4009f6321f762d6e61ad8a2389cd431b97cb1e146812e9e6c732"
+checksum = "bb796d6fbd86b2fd896c9471e6f04d39d750076ebe5680a3958f00f5ab97657c"
dependencies = [
- "ahash",
- "android-activity",
- "atomic-waker",
- "bitflags 2.10.0",
- "block2 0.5.1",
- "bytemuck",
- "calloop 0.13.0",
- "cfg_aliases 0.2.1",
- "concurrent-queue",
- "core-foundation 0.9.4",
+ "bitflags 1.3.2",
+ "cocoa",
+ "core-foundation",
"core-graphics",
- "cursor-icon",
- "dpi",
- "js-sys",
+ "dispatch",
+ "instant",
"libc",
- "memmap2",
+ "log",
+ "mio",
"ndk",
- "objc2 0.5.2",
- "objc2-app-kit 0.2.2",
- "objc2-foundation 0.2.2",
- "objc2-ui-kit",
- "orbclient",
+ "ndk-glue",
+ "objc",
+ "once_cell",
+ "parking_lot 0.12.1",
"percent-encoding",
- "pin-project",
- "raw-window-handle",
- "redox_syscall 0.4.1",
- "rustix 0.38.44",
+ "raw-window-handle 0.4.3",
+ "raw-window-handle 0.5.2",
"sctk-adwaita",
- "smithay-client-toolkit 0.19.2",
- "smol_str",
- "tracing",
- "unicode-segmentation",
+ "smithay-client-toolkit",
"wasm-bindgen",
- "wasm-bindgen-futures",
- "wayland-backend",
"wayland-client",
"wayland-protocols",
- "wayland-protocols-plasma",
"web-sys",
- "web-time",
- "windows-sys 0.52.0",
+ "windows-sys 0.36.1",
"x11-dl",
- "x11rb",
- "xkbcommon-dl",
]
[[package]]
name = "winnow"
-version = "0.7.14"
+version = "0.5.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a5364e9d77fcdeeaa6062ced926ee3381faa2ee02d3eb83a5c27a8825540829"
+checksum = "829846f3e3db426d4cee4510841b71a8e58aa2a76b1132579487ae430ccd9c7b"
dependencies = [
"memchr",
]
[[package]]
-name = "winreg"
-version = "0.52.0"
+name = "wio"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5"
+checksum = "5d129932f4644ac2396cb456385cbf9e63b5b30c6e8dc4820bdca4eb082037a5"
dependencies = [
- "cfg-if",
- "windows-sys 0.48.0",
+ "winapi",
]
-[[package]]
-name = "winreg"
-version = "0.55.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb5a765337c50e9ec252c2069be9bf91c7df47afb103b642ba3a53bf8101be97"
-dependencies = [
- "cfg-if",
- "windows-sys 0.59.0",
-]
-
-[[package]]
-name = "wit-bindgen"
-version = "0.51.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
-dependencies = [
- "wit-bindgen-rust-macro",
-]
-
-[[package]]
-name = "wit-bindgen-core"
-version = "0.51.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
-dependencies = [
- "anyhow",
- "heck",
- "wit-parser",
-]
-
-[[package]]
-name = "wit-bindgen-rust"
-version = "0.51.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
-dependencies = [
- "anyhow",
- "heck",
- "indexmap",
- "prettyplease",
- "syn",
- "wasm-metadata",
- "wit-bindgen-core",
- "wit-component",
-]
-
-[[package]]
-name = "wit-bindgen-rust-macro"
-version = "0.51.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
-dependencies = [
- "anyhow",
- "prettyplease",
- "proc-macro2",
- "quote",
- "syn",
- "wit-bindgen-core",
- "wit-bindgen-rust",
-]
-
-[[package]]
-name = "wit-component"
-version = "0.244.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
-dependencies = [
- "anyhow",
- "bitflags 2.10.0",
- "indexmap",
- "log",
- "serde",
- "serde_derive",
- "serde_json",
- "wasm-encoder",
- "wasm-metadata",
- "wasmparser",
- "wit-parser",
-]
-
-[[package]]
-name = "wit-parser"
-version = "0.244.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
-dependencies = [
- "anyhow",
- "id-arena",
- "indexmap",
- "log",
- "semver",
- "serde",
- "serde_derive",
- "serde_json",
- "unicode-xid",
- "wasmparser",
-]
-
-[[package]]
-name = "writeable"
-version = "0.6.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9edde0db4769d2dc68579893f2306b26c6ecfbe0ef499b013d731b7b9247e0b9"
-
[[package]]
name = "x11-dl"
version = "2.21.0"
@@ -5872,330 +3400,62 @@ dependencies = [
[[package]]
name = "x11rb"
-version = "0.13.2"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9993aa5be5a26815fe2c3eacfc1fde061fc1a1f094bf1ad2a18bf9c495dd7414"
+checksum = "6e99be55648b3ae2a52342f9a870c0e138709a3493261ce9b469afe6e4df6d8a"
dependencies = [
- "as-raw-xcb-connection",
"gethostname",
- "libc",
- "libloading",
- "once_cell",
- "rustix 1.1.3",
- "x11rb-protocol",
+ "nix 0.22.3",
+ "winapi",
+ "winapi-wsapoll",
]
-[[package]]
-name = "x11rb-protocol"
-version = "0.13.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ea6fc2961e4ef194dcbfe56bb845534d0dc8098940c7e5c012a258bfec6701bd"
-
[[package]]
name = "xattr"
-version = "1.6.1"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "32e45ad4206f6d2479085147f02bc2ef834ac85886624a23575ae137c8aa8156"
+checksum = "f4686009f71ff3e5c4dbcf1a282d0a44db3f021ba69350cd42086b3e5f1c6985"
dependencies = [
"libc",
- "rustix 1.1.3",
]
[[package]]
name = "xcursor"
-version = "0.3.10"
+version = "0.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bec9e4a500ca8864c5b47b8b482a73d62e4237670e5b5f1d6b9e3cae50f28f2b"
-
-[[package]]
-name = "xkbcommon-dl"
-version = "0.4.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d039de8032a9a8856a6be89cea3e5d12fdd82306ab7c94d74e6deab2460651c5"
+checksum = "463705a63313cd4301184381c5e8042f0a7e9b4bb63653f216311d4ae74690b7"
dependencies = [
- "bitflags 2.10.0",
- "dlib",
- "log",
- "once_cell",
- "xkeysym",
+ "nom",
]
[[package]]
-name = "xkeysym"
-version = "0.2.1"
+name = "xi-unicode"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b9cc00251562a284751c9973bace760d86c0276c471b4be569fe6b068ee97a56"
+checksum = "a67300977d3dc3f8034dae89778f502b6ba20b269527b3223ba59c0cf393bb8a"
[[package]]
name = "xml-rs"
-version = "0.8.28"
+version = "0.8.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3ae8337f8a065cfc972643663ea4279e04e7256de865aa66fe25cec5fb912d3f"
-
-[[package]]
-name = "y4m"
-version = "0.8.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a5a4b21e1a62b67a2970e6831bc091d7b87e119e7f9791aef9702e3bef04448"
-
-[[package]]
-name = "yazi"
-version = "0.2.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e01738255b5a16e78bbb83e7fbba0a1e7dd506905cfc53f4622d89015a03fbb5"
-
-[[package]]
-name = "yoke"
-version = "0.8.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72d6e5c6afb84d73944e5cedb052c4680d5657337201555f9f2a16b7406d4954"
-dependencies = [
- "stable_deref_trait",
- "yoke-derive",
- "zerofrom",
-]
-
-[[package]]
-name = "yoke-derive"
-version = "0.8.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b659052874eb698efe5b9e8cf382204678a0086ebf46982b79d6ca3182927e5d"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
- "synstructure",
-]
-
-[[package]]
-name = "zbus"
-version = "5.13.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1bfeff997a0aaa3eb20c4652baf788d2dfa6d2839a0ead0b3ff69ce2f9c4bdd1"
-dependencies = [
- "async-broadcast",
- "async-executor",
- "async-io",
- "async-lock",
- "async-process",
- "async-recursion",
- "async-task",
- "async-trait",
- "blocking",
- "enumflags2",
- "event-listener 5.4.1",
- "futures-core",
- "futures-lite",
- "hex",
- "libc",
- "ordered-stream",
- "rustix 1.1.3",
- "serde",
- "serde_repr",
- "tracing",
- "uds_windows",
- "uuid",
- "windows-sys 0.61.2",
- "winnow",
- "zbus_macros",
- "zbus_names",
- "zvariant",
-]
-
-[[package]]
-name = "zbus_macros"
-version = "5.13.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0bbd5a90dbe8feee5b13def448427ae314ccd26a49cac47905cafefb9ff846f1"
-dependencies = [
- "proc-macro-crate",
- "proc-macro2",
- "quote",
- "syn",
- "zbus_names",
- "zvariant",
- "zvariant_utils",
-]
-
-[[package]]
-name = "zbus_names"
-version = "4.3.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ffd8af6d5b78619bab301ff3c560a5bd22426150253db278f164d6cf3b72c50f"
-dependencies = [
- "serde",
- "winnow",
- "zvariant",
-]
-
-[[package]]
-name = "zeno"
-version = "0.3.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6df3dc4292935e51816d896edcd52aa30bc297907c26167fec31e2b0c6a32524"
+checksum = "0fcb9cbac069e033553e8bb871be2fbdffcab578eb25bd0f7c508cedc6dcd75a"
[[package]]
name = "zerocopy"
-version = "0.8.39"
+version = "0.7.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "db6d35d663eadb6c932438e763b262fe1a70987f9ae936e60158176d710cae4a"
+checksum = "8cd369a67c0edfef15010f980c3cbe45d7f651deac2cd67ce097cd801de16557"
dependencies = [
"zerocopy-derive",
]
[[package]]
name = "zerocopy-derive"
-version = "0.8.39"
+version = "0.7.25"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4122cd3169e94605190e77839c9a40d40ed048d305bfdc146e7df40ab0f3e517"
+checksum = "c2f140bda219a26ccc0cdb03dba58af72590c53b22642577d88a927bc5c87d6b"
dependencies = [
"proc-macro2",
"quote",
- "syn",
-]
-
-[[package]]
-name = "zerofrom"
-version = "0.1.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"
-dependencies = [
- "zerofrom-derive",
-]
-
-[[package]]
-name = "zerofrom-derive"
-version = "0.1.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
- "synstructure",
-]
-
-[[package]]
-name = "zeroize"
-version = "1.8.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0"
-
-[[package]]
-name = "zerotrie"
-version = "0.2.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2a59c17a5562d507e4b54960e8569ebee33bee890c70aa3fe7b97e85a9fd7851"
-dependencies = [
- "displaydoc",
- "yoke",
- "zerofrom",
-]
-
-[[package]]
-name = "zerovec"
-version = "0.11.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6c28719294829477f525be0186d13efa9a3c602f7ec202ca9e353d310fb9a002"
-dependencies = [
- "yoke",
- "zerofrom",
- "zerovec-derive",
-]
-
-[[package]]
-name = "zerovec-derive"
-version = "0.11.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "eadce39539ca5cb3985590102671f2567e659fca9666581ad3411d59207951f3"
-dependencies = [
- "proc-macro2",
- "quote",
- "syn",
-]
-
-[[package]]
-name = "zmij"
-version = "1.0.21"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
-
-[[package]]
-name = "zune-core"
-version = "0.4.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3f423a2c17029964870cfaabb1f13dfab7d092a62a29a89264f4d36990ca414a"
-
-[[package]]
-name = "zune-core"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cb8a0807f7c01457d0379ba880ba6322660448ddebc890ce29bb64da71fb40f9"
-
-[[package]]
-name = "zune-inflate"
-version = "0.2.54"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02"
-dependencies = [
- "simd-adler32",
-]
-
-[[package]]
-name = "zune-jpeg"
-version = "0.4.21"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "29ce2c8a9384ad323cf564b67da86e21d3cfdff87908bc1223ed5c99bc792713"
-dependencies = [
- "zune-core 0.4.12",
-]
-
-[[package]]
-name = "zune-jpeg"
-version = "0.5.12"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "410e9ecef634c709e3831c2cfdb8d9c32164fae1c67496d5b68fff728eec37fe"
-dependencies = [
- "zune-core 0.5.1",
-]
-
-[[package]]
-name = "zvariant"
-version = "5.9.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "68b64ef4f40c7951337ddc7023dd03528a57a3ce3408ee9da5e948bd29b232c4"
-dependencies = [
- "endi",
- "enumflags2",
- "serde",
- "url",
- "winnow",
- "zvariant_derive",
- "zvariant_utils",
-]
-
-[[package]]
-name = "zvariant_derive"
-version = "5.9.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "484d5d975eb7afb52cc6b929c13d3719a20ad650fea4120e6310de3fc55e415c"
-dependencies = [
- "proc-macro-crate",
- "proc-macro2",
- "quote",
- "syn",
- "zvariant_utils",
-]
-
-[[package]]
-name = "zvariant_utils"
-version = "3.3.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f75c23a64ef8f40f13a6989991e643554d9bef1d682a281160cf0c1bc389c5e9"
-dependencies = [
- "proc-macro2",
- "quote",
- "serde",
- "syn",
- "winnow",
+ "syn 2.0.39",
]
diff --git a/Cargo.toml b/Cargo.toml
index 0464938..bf353e5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,63 +1,43 @@
-[workspace]
-members = [
- "crates/uad-core",
- "crates/uad-gui",
- "crates/uad-cli"
-]
-resolver = "2"
-
-[workspace.package]
-version = "1.2.0"
+[package]
+name = "uad_gui"
+description = "A cross-platform GUI debloater for android devices"
+version = "0.6.2"
authors = ["Universal-Debloater-Alliance"]
license = "GPL-3.0"
-homepage = "https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation"
-repository = "https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation"
+homepage = "https://github.com/Universal-Debloater-Alliance/universal-android-debloater"
+repository = "https://github.com/Frigyes06/universal-android-debloater"
readme = "README.md"
keywords = ["debloater", "android", "adb", "privacy", "bloatware"]
categories = ["gui"]
-edition = "2024"
+edition = "2021"
-[workspace.dependencies]
-# Core dependencies
+[features]
+default = ["wgpu", "self-update"]
+wgpu = [] # Iced/wgpu is default
+glow = ["iced/glow"] # OpenGL support
+self-update = ["flate2", "tar"]
+no-self-update = []
+
+[dependencies]
serde = { version = "^1.0", features = ["derive"] }
serde_json = "^1.0"
-log = "^0.4"
-chrono = { version = "^0.4", default-features = false, features = ["std", "clock"] }
-toml = "^0"
-dirs = "^6"
-ureq = { version = "3", features = ["json"] }
-retry = "^2.0.0"
-csv = "^1.3"
-
-# GUI dependencies
-iced = { version = "=0.14.0", features = ["advanced"] }
-image = "0.25"
-rfd = "^0.17.1"
-dark-light = "2"
+static_init = "^1.0"
fern = { version = "^0", features = ["colored"] }
+chrono = { version = "^0.4", default-features = false, features = ["std", "clock"] }
+log = "^0.4"
+regex = "^1.10.2"
+toml = "^0"
+dirs = "^5.0.0"
+ureq = { version = "*", features = ["json"] }
+retry = { version = "^2.0.0" }
+iced = "0.9.0"
+iced_native = "^0.10.3"
-# CLI dependencies
-clap = { version = "4.6.1", features = ["derive"] }
-tokio = { version = "1.52.3", features = ["full"] }
+[target.'cfg(not(target_os = "windows"))'.dependencies]
+flate2 = { version = "^1", optional = true }
+tar = { version = "^0.4", optional = true }
-# Platform-specific dependencies
-flate2 = "^1"
-tar = "^0.4"
-win32console = "^0.1.5"
-
-[workspace.lints.rust]
-deprecated_safe = "warn"
-
-[workspace.lints.clippy]
-undocumented_unsafe_blocks = "forbid"
-panic_in_result_fn = "warn"
-infinite_loop = "warn"
-format_push_string = "warn"
-large_include_file = "warn"
-shadow_unrelated = "warn"
-struct_field_names = "allow" # annoying
-
-disallowed_types = "deny"
-disallowed_methods = "deny"
-
-pedantic = { level = "warn", priority = -1 }
\ No newline at end of file
+[profile.release]
+opt-level = "s"
+lto = true
+strip = "symbols"
diff --git a/LICENSE b/LICENSE
index e041ef8..b1fdb54 100644
--- a/LICENSE
+++ b/LICENSE
@@ -631,8 +631,8 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
- Universal Android Debloater Next Generation
- Copyright (C) 2023 Universal Debloater Alliance
+ Universal Android Debloater GUI
+ Copyright (C) 2021 W1nst0n
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -652,7 +652,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
- Universal Android Debloater Next Generation Copyright (C) 2023 Universal Debloater Alliance
+ Universal Android Debloater GUI Copyright (C) 2021 W1nst0n
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
diff --git a/README.md b/README.md
index 6e0f111..139e4c4 100644
--- a/README.md
+++ b/README.md
@@ -1,53 +1,206 @@
-# Universal Android Debloater Next Generation
+# Universal Android Debloater GUI
-> [!warning]
-> **DISCLAIMER**: Use at your own risk. We're not responsible for anything that could happen to your devices.
+**DISCLAIMER**: Use at your own risk. I am not responsible for anything that
+could happen to your phone.
-
-
-
+
-This is a detached fork of the [UAD project](https://github.com/0x192/universal-android-debloater). This aims to improve privacy and efficiency (energy, speed, memory) by removing unnecessary and obscure system apps.
-This can also improve security by reducing the [attack surface](https://en.wikipedia.org/wiki/Attack_surface). Read [the wiki](https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/wiki) for more details.
+**This software is still in an early stage of development. Check out the issues, and feel free to contribute!**
-## Documentation
+## Summary
-Everything about UAD-ng (and related stuff) can be found on the Wiki, such as:
+This is a complete rewrite in Rust of the [UAD project](https://gitlab.com/W1nst0n/universal-android-debloater),
+which aims to improve privacy and battery performance by removing unnecessary
+and obscure system apps.
+This can also contribute to improving security by reducing [the attack surface](https://en.wikipedia.org/wiki/Attack_surface).
-- [Getting started](https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/wiki/Getting-started)
-- Features of this app
-- [Usage guide](https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/wiki/Usage)
-- Suggested Android app replacements
-- How to get the cutting-edge version by [building the source-code](https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/wiki/Building-from-source)
-- Weird things OEMs do
-- [Suggested apps for analyzing APKs](https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/wiki/How-to-contribute#useful-apps)
+Packages are as well documented as possible to provide a better understanding
+of what you can delete or not. The worst issue that could happen is removing
+an essential system package needed during boot causing then an unfortunate
+bootloop. After about 5 failed system boots, the phone will automatically reboot
+in recovery mode, and you'll have to perform a FACTORY RESET. Make a backup first!
-## Privacy
+In any case, you **CANNOT** brick your device with this software!
+That's the main point, right?
-UAD-ng does not collect or transmit any user data. The only external connections are `GET` requests to GitHub for fetching the [package list](https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/blob/main/resources/assets/uad_lists.json) ([src/core/uad_lists.rs](src/core/uad_lists.rs)) and checking for updates ([src/core/update.rs](src/core/update.rs)).
+## Features
-## Contact
+- [x] Uninstall/Disable and Restore/Enable system packages
+- [x] Multi-user support (e.g. apps in work profiles)
+- [x] Export/Import your selection in `uad_exported_selection.txt`
+- [x] Multi-device support: you can connect multiple phones at the same time
+- [x] All your actions are logged, so you never forget what you've done
-**For real-time communication and support, consider joining our Discord guild:**
+NB : System apps cannot truly be uninstalled without root (see the [FAQ](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/wiki/FAQ))
-[ ](https://discord.gg/CzwbMCPEZa)
+## Universal Debloat Lists
-**If you prefer using Matrix, we have a bridge to Discord:**
+- [x] GFAM (Google/Facebook/Amazon/Microsoft)
+- [x] AOSP
+- [x] Manufacturers (OEM)
+- [x] Mobile carriers
+- [x] Qualcomm / Mediatek / Miscellaneous
-[ ](https://matrix.to/#/#uad-ng:matrix.org)
+## Manufacturers debloat lists
+* [ ] Archos
+* [X] Asus
+* [ ] Blackberry
+* [X] Fairphone
+* [ ] Gionee
+* [X] Google
+* [x] Honor
+* [ ] HTC
+* [X] Huawei
+* [X] iQOO
+* [X] LG
+* [X] Lenovo
+* [X] Motorola
+* [X] Nokia
+* [X] Nubia
+* [X] Nothing Phone
+* [X] OnePlus
+* [X] Oppo
+* [X] Realme
+* [X] Samsung
+* [X] Sony
+* [X] Tecno
+* [X] TCL
+* [X] Unihertz
+* [X] Vivo/iQOO
+* [X] Wiko
+* [X] Xiaomi
+* [X] ZTE
-## Friends
+## Mobile carriers debloat lists
-Several projects integrate with or depend on UAD-ng's data and tools:
+| Country | Carriers |
+| ------- | ------------------------------- |
+| France | Orange, SFR, Free, Bouygues |
+| USA | T-Mobile, Verizon, Sprint, AT&T |
+| Germany | Telekom |
+| UK | EE |
-- **[Canta](https://github.com/samolego/Canta)** — A mobile Android debloater that uses Shizuku for rootless privilege escalation. It integrates with UAD-ng's Universal Debloat List to provide safe package recommendations without requiring a PC.
+## How to use it
-- **Projects by [Muntashir Akon](https://github.com/MuntashirAkon):**
- - **[AppManager](https://github.com/MuntashirAkon/AppManager)** — An advanced Android app manager with powerful debloating features.
- - **[android-debloat-list](https://github.com/MuntashirAkon/android-debloat-list)** — A comprehensive, community-driven list of Android packages to debloat, based on UAD-ng's list.
+- **Read the [FAQ](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/wiki/FAQ)!**
+- **Do a proper backup of your data! You can never be too careful!**
+- Enable _Developer Options_ on your smartphone.
+- Turn on _USB Debugging_ from the developer panel.
+- From the settings, disconnect from any OEM accounts (when you delete an OEM
+ account package it could lock you on the lock screen because the phone can't
+ associate your identity anymore)
+- Install ADB (see the instructions by clicking on your OS below):
+
+
+ LINUX
+
+ - Install _Android platform tools_ on your PC :
+
+ Debian Base:
+
+ ```bash
+ sudo apt install android-sdk-platform-tools
+ ```
+
+ Arch-Linux Base:
+
+ ```bash
+ sudo pacman -S android-tools
+ ```
+
+ Red Hat Base:
+
+ ```bash
+ sudo yum install android-tools
+ ```
+
+ OpenSUSE Base:
+
+ ```bash
+ sudo zypper install android-tools
+ ```
+
+ Gentoo Base:
+
+ ```bash
+ sudo emerge -av dev-util/android-tools
+ ```
+
+ NixOS Base:
+
+ ```bash
+ sudo nix-shell -p android-tools
+ ```
+
+ Alpine Linux or FreeBSD Base:
+
+ ```bash
+ sudo pkg install android-tools
+ ```
+
+ Fedora Base:
+
+ ```bash
+ sudo dnf install android-tools
+ ```
+
+ Replace sudo with doas depending on what you use
+
+
+
+
+
+
+ MAC OS
+
+ - Install [Homebrew](https://brew.sh/)
+ - Install _Android platform tools_
+
+ ```bash
+ brew install android-platform-tools
+ ```
+
+
+
+
+
+
+ WINDOWS
+
+ - Download [android platform tools](https://dl.google.com/android/repository/platform-tools-latest-windows.zip)
+ and unzip it somewhere.
+ - [Add the android platform tools to your PATH](https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/)
+ **OR** make sure to launch UAD from the same directory.
+
+ - [Install USB drivers for your device](https://developer.android.com/studio/run/oem-usb#Drivers)
+ - Check your device is detected:
+
+ ```bash
+ adb devices
+ ```
+
+
+
+
+- Download the latest release of UAD GUI for your Operating System [here](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/releases). Take the `opengl` version only if the default version (with a Vulkan backend) doesn't launch.
+
+**NOTE:** Chinese phone users may need to use the AOSP list to remove some stock
+apps because those Chinese manufacturers (especially Xiaomi and Huawei) have been
+using the name of AOSP packages for their own (modified & closed-source) apps.
+
+**IMPORTANT NOTE:** You will have to run this software whenever your OEM pushes
+an update to your phone as some _uninstalled_ system apps could be reinstalled.
+
+## How to contribute
+
+Hey-hey-hey! Don't go away so fast! This is a community project.
+That means I need you! I'm sure you want to make this project better anyway.
+
+==> [How to contribute](https://github.com/Universal-Debloater-Alliance/universal-android-debloater/wiki)
## Special thanks
-- [@0x192](https://github.com/0x192) who created the original UAD project.
-- [@mawilms](https://github.com/mawilms) for his LotRO plugin manager ([Lembas](https://github.com/mawilms/lembas)) which helped a lot to understand how to use the [Iced](https://github.com/iced-rs/iced) GUI library.
+- [@mawilms](https://github.com/mawilms) for his LotRO plugin manager ([Lembas](https://github.com/mawilms/lembas))
+ which helped me a lot to understand how to use the [Iced](https://github.com/hecrj/iced)
+ GUI library.
- [@casperstorm](https://github.com/casperstorm) for the UI/UX inspiration.
diff --git a/RELEASE.md b/RELEASE.md
deleted file mode 100644
index c029638..0000000
--- a/RELEASE.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# Release management
-
-## Semantic versioning
-
-We're making use of [semantic versioning](https://semver.org/). We use semantic versioning for two things:
-
-1. GitHub Milestones
-1. UAD-ng releases
-
-Speaking of milestones: it could be that we have a bug-fix release (e.g. 1.0.3), but a contributor submits a PR that adds a new feature. What do we do? Merge after we released 1.0.3? Change the name of the milestone to for example 1.1.0? Or another approach?
-
-In that case, we should closely review the PR and 'compare' it with what semantic versioning has to say about the submitted feature. If the changes are significant enough, we're renaming the milestone to (for example) 1.1.0.
-
-## Checklist before releasing a new version
-
-- [ ] Make sure the Milestone is completed and if not, check what needs to be done to complete it.
-- [ ] Make sure all merged PRs regarding the application follow the Conventional Commit Messages style. This makes sure that when generating a changelog, the changes look consistent, which in turn improves readability.
-- [ ] Make sure all merged PRs have the correct labels assigned, as the changelog is generated based on labels.
-- [ ] Create a release preparation PR that bumps the UAD-ng version in `Cargo.toml` and `Cargo.lock`.
-
-When all the above has been checked, you can push a tag to `main` to trigger the GitHub Action that creates a release:
-
-- Create the tag: `git tag -s v1.2.3 -am '1.2.3'`
-- Push the tag: `git push origin v1.2.3`
-
-Change the version number to whatever version we're releasing.
-
-## Development process
-
-1. Update dependencies right after a new release, so that we start a new milestone with updated dependencies
-1. On-going development of bug-fixes and new features etc, along with fixing potential bugs, potentially due to the updated dependencies
-1. Release
-
-## Faulty releases
-
-If we publish a faulty release, for example containing a critical bug, this is how we should deal with it:
-
-We issue a hotfix and keep the faulty release but we'll add warnings to the faulty release in the changelog.
diff --git a/build.rs b/build.rs
deleted file mode 100644
index e2bbb62..0000000
--- a/build.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-const META: &str = "resources/assets/manifest.rc";
-
-fn main() -> Result<(), Box> {
- println!("cargo::rerun-if-changed={META}");
- if std::env::var("CARGO_CFG_TARGET_FAMILY")? == "windows" {
- embed_resource::compile(META, embed_resource::NONE)
- .manifest_optional()
- .unwrap();
- }
- Ok(())
-}
diff --git a/clippy.toml b/clippy.toml
deleted file mode 100644
index ea830ad..0000000
--- a/clippy.toml
+++ /dev/null
@@ -1,7 +0,0 @@
-disallowed-types = [
- { path = "iced::widget::Text", reason = "Use [`crate::gui::widgets::text`] instead. For further details, see #523 and #858" },
-]
-
-disallowed-methods= [
- { path = "iced::widget::text", reason = "Use [`crate::gui::widgets::text`] instead. For further details, see #523 and #858" },
-]
diff --git a/crates/uad-cli/Cargo.toml b/crates/uad-cli/Cargo.toml
deleted file mode 100644
index 6045f95..0000000
--- a/crates/uad-cli/Cargo.toml
+++ /dev/null
@@ -1,52 +0,0 @@
-[package]
-name = "uad-cli"
-version.workspace = true
-authors.workspace = true
-license.workspace = true
-homepage.workspace = true
-repository.workspace = true
-readme.workspace = true
-keywords.workspace = true
-categories = ["command-line-utilities"]
-edition.workspace = true
-
-[[bin]]
-name = "uad"
-path = "src/main.rs"
-
-[dependencies]
-uad-core = { path = "../uad-core" }
-clap.workspace = true
-clap_complete = "4.4"
-tokio.workspace = true
-serde.workspace = true
-serde_json.workspace = true
-log.workspace = true
-chrono.workspace = true
-toml.workspace = true
-dirs.workspace = true
-ureq.workspace = true
-retry.workspace = true
-csv.workspace = true
-rustyline = "14.0"
-
-[lints.rust]
-deprecated_safe = "warn"
-
-[lints.clippy]
-undocumented_unsafe_blocks = "deny"
-exit = "deny"
-panic_in_result_fn = "warn"
-infinite_loop = "warn"
-mem_forget = "warn"
-implicit_clone = "warn"
-format_push_string = "warn"
-large_include_file = "warn"
-shadow_unrelated = "warn"
-struct_field_names = "allow" # annoying
-
-disallowed_types = "deny"
-disallowed_methods = "deny"
-
-allow_attributes_without_reason = "warn"
-pedantic = { level = "warn", priority = -1 }
diff --git a/crates/uad-cli/examples/usage.sh b/crates/uad-cli/examples/usage.sh
deleted file mode 100755
index ab3192e..0000000
--- a/crates/uad-cli/examples/usage.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/env bash
-
-# Example usage script for UAD CLI
-
-# Check if uad-cli is available
-if ! command -v uad &> /dev/null; then
- echo "uad command not found. Please build and install uad-cli first."
- exit 1
-fi
-
-echo "=== UAD CLI Usage Examples ==="
-echo
-
-echo "1. List connected devices:"
-uad devices
-echo
-
-echo "2. List all enabled packages:"
-uad list --state enabled | head -20
-echo "... (showing first 20)"
-echo
-
-echo "3. Search for Google packages:"
-uad list --search google | head -10
-echo "... (showing first 10)"
-echo
-
-echo "4. Show info about a package (example):"
-echo "uad info com.google.android.gms"
-echo
-
-echo "5. Dry-run uninstall (safe to test):"
-echo "uad uninstall com.example.package --dry-run"
-echo
-
-echo "6. Start interactive mode:"
-echo "uad repl"
-echo
-
-echo "=== Generate shell completions ==="
-echo "For bash: uad completions bash > ~/.local/share/bash-completion/completions/uad"
-echo "For zsh: uad completions zsh > ~/.local/share/zsh/site-functions/_uad"
-echo "For fish: uad completions fish > ~/.config/fish/completions/uad.fish"
-
diff --git a/crates/uad-cli/src/commands.rs b/crates/uad-cli/src/commands.rs
deleted file mode 100644
index 62286bd..0000000
--- a/crates/uad-cli/src/commands.rs
+++ /dev/null
@@ -1,470 +0,0 @@
-use clap::CommandFactory;
-use clap_complete::{Shell, generate};
-use std::collections::{HashMap, HashSet};
-use std::io::Write;
-use uad_core::adb::{ACommand, PmListPacksFlag};
-use uad_core::sync::{
- CorePackage, Phone, User, apply_pkg_state_commands, get_devices_list, get_package_state,
- run_adb_shell_action,
-};
-use uad_core::uad_lists::{Package, PackageState, Removal, UadList, load_debloat_lists};
-use uad_core::utils::{matches_search, truncate_description};
-
-use crate::device::{NO_DEVICES_FOUND, get_target_device, get_user};
-use crate::filters::{ListFilter, RemovalFilter, StateFilter};
-use crate::{Cli, print_or_exit, println_or_exit};
-
-/// List all connected Android devices
-pub fn list_devices() -> Result<(), Box> {
- println_or_exit!("Scanning for connected devices...");
- let devices = get_devices_list();
-
- if devices.is_empty() {
- return Err(NO_DEVICES_FOUND.into());
- }
-
- println_or_exit!("\nFound {} device(s):\n", devices.len());
- for device in &devices {
- println_or_exit!(" Model: {}", device.model);
- println_or_exit!(" Serial: {}", device.adb_id);
- println_or_exit!(" Android SDK: {}", device.android_sdk);
-
- if !device.user_list.is_empty() {
- println_or_exit!(" Users: {} user(s)", device.user_list.len());
- for user in &device.user_list {
- let protected = if user.protected { " (protected)" } else { "" };
- println_or_exit!(" - User ID: {}{}", user.id, protected);
- }
- }
- println_or_exit!();
- }
-
- Ok(())
-}
-
-/// Context for package filtering and display
-pub struct PackageListContext {
- pub state_filter: Option,
- pub removal_filter: Option,
- pub list_filter: Option,
- pub search: Option,
-}
-
-impl PackageListContext {
- /// Check if package passes all filters
- pub fn filter_package(
- &self,
- pkg_name: &str,
- pkg_info: Option<&Package>,
- pkg_state: PackageState,
- ) -> bool {
- // Removal filter
- if let Some(removal) = self.removal_filter {
- if !removal.matches(pkg_info) {
- return false;
- }
- }
-
- // State filter
- if let Some(state) = self.state_filter {
- if !state.matches(pkg_state) {
- return false;
- }
- }
-
- // List filter
- if let Some(list) = self.list_filter {
- if !list.matches(pkg_info) {
- return false;
- }
- }
-
- // Search filter
- if let Some(ref search_term) = self.search {
- let description = pkg_info.map(|p| p.description.as_str());
- if !matches_search(pkg_name, search_term, description) {
- return false;
- }
- }
-
- true
- }
-
- /// Determine what information to show based on active filters
- pub fn display_config(&self) -> DisplayConfig {
- DisplayConfig {
- show_state: self.state_filter.is_none_or(|f| !f.is_specific()),
- show_removal: self.removal_filter.is_none_or(|f| !f.is_specific()),
- }
- }
-}
-
-pub struct DisplayConfig {
- pub show_state: bool,
- pub show_removal: bool,
-}
-
-/// List packages on a device with filtering
-pub fn list_packages(
- device: Option,
- state_filter: Option,
- removal_filter: Option,
- list_filter: Option,
- search: Option,
- user_id: Option,
-) -> Result<(), Box> {
- let target_device = get_target_device(device)?;
- let uad_lists = load_debloat_lists(false).unwrap_or_else(|lists| lists);
-
- println_or_exit!(
- "Listing packages on: {} ({})\n",
- target_device.model,
- target_device.adb_id
- );
-
- let context = PackageListContext {
- state_filter,
- removal_filter,
- list_filter,
- search,
- };
-
- let pm_flag = state_filter.and_then(StateFilter::to_pm_flag);
- let system_packages = ACommand::new()
- .shell(&target_device.adb_id)
- .pm()
- .list_packages_sys(pm_flag, user_id)?;
-
- let displayed_count = display_package_list(
- &system_packages,
- &uad_lists,
- &target_device.adb_id,
- user_id,
- &context,
- )?;
-
- if displayed_count == 0 {
- println_or_exit!(" No packages found matching the specified filters.");
- } else {
- println_or_exit!("\nTotal: {} package(s)", displayed_count);
- }
-
- Ok(())
-}
-
-/// Display a list of packages with their info
-pub fn display_package_list(
- packages: &[String],
- uad_lists: &HashMap,
- device_serial: &str,
- user_id: Option,
- context: &PackageListContext,
-) -> Result> {
- let config = context.display_config();
- let mut displayed_count = 0;
-
- let enabled_packages: HashSet = ACommand::new()
- .shell(device_serial)
- .pm()
- .list_packages_sys(Some(PmListPacksFlag::OnlyEnabled), user_id)
- .unwrap_or_default()
- .into_iter()
- .collect();
- let disabled_packages: HashSet = ACommand::new()
- .shell(device_serial)
- .pm()
- .list_packages_sys(Some(PmListPacksFlag::OnlyDisabled), user_id)
- .unwrap_or_default()
- .into_iter()
- .collect();
-
- for pkg_name in packages {
- let pkg_info = uad_lists.get(pkg_name);
-
- let pkg_state = if enabled_packages.contains(pkg_name) {
- PackageState::Enabled
- } else if disabled_packages.contains(pkg_name) {
- PackageState::Disabled
- } else {
- PackageState::Uninstalled
- };
-
- if !context.filter_package(pkg_name, pkg_info, pkg_state) {
- continue;
- }
-
- display_package_entry(pkg_name, pkg_info, pkg_state, &config);
- displayed_count += 1;
- }
-
- Ok(displayed_count)
-}
-
-/// Display a single package entry
-pub fn display_package_entry(
- pkg_name: &str,
- pkg_info: Option<&Package>,
- pkg_state: PackageState,
- config: &DisplayConfig,
-) {
- print_or_exit!("[");
-
- if let Some(info) = pkg_info {
- if config.show_removal {
- print_or_exit!("{}", info.removal);
- if config.show_state {
- print_or_exit!(" - ");
- }
- }
- if config.show_state {
- print_or_exit!("{}", pkg_state);
- }
- print_or_exit!("] {}", pkg_name);
- if !info.description.is_empty() {
- print_or_exit!(" - {}", truncate_description(&info.description, 80));
- }
- } else {
- if config.show_removal {
- print_or_exit!("Unlisted");
- if config.show_state {
- print_or_exit!(" - ");
- }
- }
- if config.show_state {
- print_or_exit!("{}", pkg_state);
- }
- print_or_exit!("] {}", pkg_name);
- }
-
- println_or_exit!();
-}
-
-/// Change the state of one or more packages
-pub fn change_package_state(
- packages: &[String],
- device: Option,
- user_id: Option,
- dry_run: bool,
- target_state: PackageState,
- action_name: &str,
-) -> Result<(), Box> {
- if packages.is_empty() {
- return Err("No packages specified".into());
- }
-
- let target_device = get_target_device(device)?;
- let user = get_user(&target_device, user_id)?;
- let uad_lists = load_debloat_lists(false).unwrap_or_else(|lists| lists);
-
- println!(
- "{} {} package(s) on: {} ({})\n",
- action_name,
- packages.len(),
- target_device.model,
- target_device.adb_id
- );
-
- if dry_run {
- println!("DRY RUN - No changes will be made\n");
- }
-
- for pkg_name in packages {
- process_package_state_change(
- pkg_name,
- &target_device,
- user,
- target_state,
- dry_run,
- &uad_lists,
- )?;
- println!();
- }
-
- if dry_run {
- println!("Dry run completed. No changes were made.");
- } else {
- println!("Operation completed successfully.");
- }
-
- Ok(())
-}
-
-/// Process state change for a single package
-fn process_package_state_change(
- pkg_name: &str,
- device: &Phone,
- user: User,
- target_state: PackageState,
- dry_run: bool,
- uad_lists: &HashMap,
-) -> Result<(), Box> {
- let current_state = get_package_state(&device.adb_id, pkg_name, Some(user.id))
- .ok_or("Package not found on device")?;
-
- println!(" {} ({})", pkg_name, current_state);
-
- if current_state == target_state {
- println!(" → Already in target state, skipping");
- return Ok(());
- }
-
- let pkg_info = uad_lists.get(pkg_name);
- if let Some(info) = pkg_info {
- if info.removal == Removal::Unsafe {
- println!(" ⚠ WARNING: This package is marked as UNSAFE to remove!");
- }
- }
-
- let core_pkg = CorePackage {
- name: pkg_name.to_string(),
- description: pkg_info.map(|p| p.description.clone()).unwrap_or_default(),
- removal: pkg_info.map(|p| p.removal).unwrap_or(Removal::Unlisted),
- state: current_state,
- list: pkg_info.map(|p| p.list).unwrap_or(UadList::Unlisted),
- };
-
- let commands = apply_pkg_state_commands(&core_pkg, target_state, user, device);
-
- if dry_run {
- for cmd in &commands {
- println!(" Would run: {}", cmd);
- }
- } else {
- execute_with_fallback(
- pkg_name,
- target_state,
- &core_pkg,
- user,
- device,
- &commands,
- " ",
- )?;
- }
-
- Ok(())
-}
-
-/// Execute commands and verify package state with fallback
-pub fn execute_with_fallback(
- package: &str,
- target_state: PackageState,
- core_pkg: &CorePackage,
- user: User,
- device: &Phone,
- commands: &[String],
- indent: &str,
-) -> Result<(), Box> {
- // Capture the before-state of packages on other users for cross-user detection
- let before_cross_user_states =
- uad_core::sync::capture_cross_user_states(package, &device.adb_id, user.id, device);
-
- // Execute commands
- for cmd in commands {
- match run_adb_shell_action(&device.adb_id, cmd.as_str()) {
- Ok(_) => println!("{}✓ {}", indent, cmd),
- Err(e) => {
- return Err(format!("{indent}✗ Failed to execute `{cmd}`: {e:?}").into());
- }
- }
- }
-
- // Verify package state and attempt fallback if needed
- let actual_state = match get_package_state(&device.adb_id, package, Some(user.id)) {
- Some(state) => state,
- None if target_state == PackageState::Uninstalled => PackageState::Uninstalled,
- None => {
- return Err(format!(
- "Package '{package}' was not found on device for user {}",
- user.id
- )
- .into());
- }
- };
-
- if actual_state != target_state {
- println!(
- "{}⚠ Package state verification failed: expected {:?}, got {:?}",
- indent, target_state, actual_state
- );
-
- // Attempt fallback
- if let Ok(fallback_action) =
- uad_core::sync::attempt_fallback(core_pkg, target_state, actual_state, user, device)
- {
- println!("{}↻ Fallback: {}", indent, fallback_action);
- } else {
- println!("{}✗ No fallback available", indent);
- }
- }
-
- // Check for cross-user behavior if operation succeeded
- if actual_state == target_state {
- if let Some(notification) = uad_core::sync::detect_cross_user_behavior(
- package,
- device.adb_id.as_str(),
- user.id,
- target_state,
- actual_state,
- device,
- &before_cross_user_states,
- ) {
- println!("{}ℹ {}", indent, notification);
- }
- }
-
- Ok(())
-}
-
-/// Show detailed information about a package
-pub fn show_package_info(
- package: &str,
- device: Option,
- user_id: Option,
-) -> Result<(), Box> {
- println!("Package: {}\n", package);
-
- let uad_lists = load_debloat_lists(false).unwrap_or_else(|lists| lists);
-
- if let Some(pkg_info) = uad_lists.get(package) {
- println!("UAD Information:");
- println!(" List: {}", pkg_info.list);
- println!(" Removal: {}", pkg_info.removal);
- println!(" Description: {}", pkg_info.description);
- println!();
- } else {
- println!(" Not found in UAD lists (unlisted package)\n");
- }
-
- if let Some(device_id) = device {
- let target_device = get_target_device(Some(device_id))?;
- let user = get_user(&target_device, user_id)?;
- println!("Device: {} ({})", target_device.model, target_device.adb_id);
- println!("User: {}", user.id);
-
- let state = get_package_state(&target_device.adb_id, package, Some(user.id))
- .ok_or("Package not found on device")?;
- println!(" State: {}", state);
- }
-
- Ok(())
-}
-
-/// Update UAD package lists from remote repository
-pub fn update_lists() -> Result<(), Box> {
- println!("Updating UAD package lists from remote repository...");
-
- match load_debloat_lists(true) {
- Ok(_lists) => {
- println!("✓ Successfully updated package lists");
- Ok(())
- }
- Err(_lists) => Err("Failed to update lists from remote, using cached version".into()),
- }
-}
-
-/// Generate shell completion script
-pub fn generate_completions(shell: Shell) {
- let mut cmd = Cli::command();
- let name = cmd.get_name().to_string();
- generate(shell, &mut cmd, name, &mut std::io::stdout());
-}
diff --git a/crates/uad-cli/src/device.rs b/crates/uad-cli/src/device.rs
deleted file mode 100644
index 54fee8c..0000000
--- a/crates/uad-cli/src/device.rs
+++ /dev/null
@@ -1,47 +0,0 @@
-use uad_core::sync::{Phone, User, get_devices_list};
-
-pub const NO_DEVICES_FOUND: &str =
- "No devices found. Make sure ADB is installed and devices are connected.";
-
-/// Get target device, either by serial or first available
-pub fn get_target_device(device: Option) -> Result> {
- let devices = get_devices_list();
-
- if devices.is_empty() {
- return Err(NO_DEVICES_FOUND.into());
- }
-
- let target_device = if let Some(device_id) = device {
- devices
- .iter()
- .find(|d| d.adb_id == device_id)
- .ok_or("Device not found")?
- .clone()
- } else {
- if devices.len() > 1 {
- eprintln!(
- "Warning: Multiple devices found, using first one: {}",
- devices[0].adb_id
- );
- }
- devices[0].clone()
- };
-
- Ok(target_device)
-}
-
-/// Get user from device, creating a basic one if not found
-pub fn get_user(device: &Phone, user_id: Option) -> Result> {
- let uid = user_id.unwrap_or(0);
-
- if let Some(user) = device.user_list.iter().find(|u| u.id == uid) {
- Ok(*user)
- } else {
- // Create a basic user if not found in list
- Ok(User {
- id: uid,
- index: 0,
- protected: false,
- })
- }
-}
diff --git a/crates/uad-cli/src/filters.rs b/crates/uad-cli/src/filters.rs
deleted file mode 100644
index 5ae156f..0000000
--- a/crates/uad-cli/src/filters.rs
+++ /dev/null
@@ -1,98 +0,0 @@
-use clap::ValueEnum;
-use uad_core::adb::PmListPacksFlag;
-use uad_core::uad_lists::{Package, PackageState, Removal, UadList};
-
-#[derive(Debug, Clone, Copy, ValueEnum)]
-pub enum StateFilter {
- /// Show all packages regardless of state
- All,
- /// Show only enabled packages
- Enabled,
- /// Show only disabled packages
- Disabled,
- /// Show only uninstalled packages
- Uninstalled,
-}
-
-#[derive(Debug, Clone, Copy, ValueEnum)]
-pub enum RemovalFilter {
- All,
- Recommended,
- Advanced,
- Expert,
- Unsafe,
- Unlisted,
-}
-
-#[derive(Debug, Clone, Copy, ValueEnum)]
-pub enum ListFilter {
- All,
- Aosp,
- Carrier,
- Google,
- Misc,
- Oem,
- Pending,
- Unlisted,
-}
-
-impl StateFilter {
- pub fn to_pm_flag(self) -> Option {
- match self {
- Self::Enabled => Some(PmListPacksFlag::OnlyEnabled),
- Self::Disabled => Some(PmListPacksFlag::OnlyDisabled),
- Self::Uninstalled | Self::All => Some(PmListPacksFlag::IncludeUninstalled),
- }
- }
-
- pub fn matches(self, pkg_state: PackageState) -> bool {
- match self {
- Self::All => true,
- Self::Enabled => pkg_state == PackageState::Enabled,
- Self::Disabled => pkg_state == PackageState::Disabled,
- Self::Uninstalled => pkg_state == PackageState::Uninstalled,
- }
- }
-
- pub fn is_specific(self) -> bool {
- matches!(self, Self::Enabled | Self::Disabled | Self::Uninstalled)
- }
-}
-
-impl RemovalFilter {
- pub fn matches(self, pkg_info: Option<&Package>) -> bool {
- match pkg_info {
- Some(info) => match self {
- Self::All => true,
- Self::Recommended => info.removal == Removal::Recommended,
- Self::Advanced => info.removal == Removal::Advanced,
- Self::Expert => info.removal == Removal::Expert,
- Self::Unsafe => info.removal == Removal::Unsafe,
- Self::Unlisted => info.removal == Removal::Unlisted,
- },
- None => matches!(self, Self::All | Self::Unlisted),
- }
- }
-
- pub fn is_specific(self) -> bool {
- !matches!(self, Self::All)
- }
-}
-
-impl ListFilter {
- pub fn matches(self, pkg_info: Option<&Package>) -> bool {
- match pkg_info {
- Some(info) => match self {
- Self::All => true,
- Self::Aosp => info.list == UadList::Aosp,
- Self::Carrier => info.list == UadList::Carrier,
- Self::Google => info.list == UadList::Google,
- Self::Misc => info.list == UadList::Misc,
- Self::Oem => info.list == UadList::Oem,
- Self::Pending => info.list == UadList::Pending,
- Self::Unlisted => info.list == UadList::Unlisted,
- },
- None => matches!(self, Self::All | Self::Unlisted),
- }
- }
-}
diff --git a/crates/uad-cli/src/main.rs b/crates/uad-cli/src/main.rs
deleted file mode 100644
index f473e28..0000000
--- a/crates/uad-cli/src/main.rs
+++ /dev/null
@@ -1,251 +0,0 @@
-#![allow(
- clippy::needless_continue,
- clippy::collapsible_if,
- clippy::uninlined_format_args,
- clippy::map_unwrap_or,
- clippy::unnecessary_wraps,
- reason = "Suppress non-critical pedantic/style lints to keep build green"
-)]
-
-use clap::{Parser, Subcommand};
-use clap_complete::Shell;
-use std::process::ExitCode;
-use uad_core::uad_lists::PackageState;
-
-mod commands;
-mod device;
-mod filters;
-mod output;
-mod repl;
-
-use filters::{ListFilter, RemovalFilter, StateFilter};
-
-#[derive(Parser)]
-#[command(name = "uad")]
-#[command(about = "Universal Android Debloater - Command Line Interface", long_about = None)]
-#[command(version)]
-#[command(propagate_version = true)]
-pub struct Cli {
- #[command(subcommand)]
- command: Commands,
-}
-
-#[derive(Subcommand)]
-enum Commands {
- /// List connected Android devices
- Devices,
-
- /// List packages on a device
- #[command(name = "list", visible_alias = "ls")]
- List {
- /// Device serial number (optional, uses first device if not specified)
- #[arg(short, long)]
- device: Option,
-
- /// Filter by package state
- #[arg(short, long, value_enum)]
- state: Option,
-
- /// Filter by removal category
- #[arg(short, long, value_enum)]
- removal: Option,
-
- /// Filter by UAD list
- #[arg(short, long, value_enum)]
- list: Option,
-
- /// Search pattern (matches package name or description)
- #[arg(short = 'q', long)]
- search: Option,
-
- /// User ID (defaults to 0)
- #[arg(short, long)]
- user: Option,
- },
-
- /// Uninstall packages (default removal action)
- #[command(visible_alias = "rm")]
- Uninstall {
- /// Package names to uninstall
- packages: Vec,
-
- /// Device serial number (optional, uses first device if not specified)
- #[arg(short, long)]
- device: Option,
-
- /// User ID (defaults to 0)
- #[arg(short, long)]
- user: Option,
-
- /// Dry run - show what would be done without actually doing it
- #[arg(long)]
- dry_run: bool,
- },
-
- /// Restore (reinstall) packages
- #[command(visible_alias = "restore")]
- Enable {
- /// Package names to restore/enable
- packages: Vec,
-
- /// Device serial number (optional, uses first device if not specified)
- #[arg(short, long)]
- device: Option,
-
- /// User ID (defaults to 0)
- #[arg(short, long)]
- user: Option,
-
- /// Dry run - show what would be done without actually doing it
- #[arg(long)]
- dry_run: bool,
- },
-
- /// Disable packages (keeps data but prevents execution)
- Disable {
- /// Package names to disable
- packages: Vec,
-
- /// Device serial number (optional, uses first device if not specified)
- #[arg(short, long)]
- device: Option,
-
- /// User ID (defaults to 0)
- #[arg(short, long)]
- user: Option,
-
- /// Dry run - show what would be done without actually doing it
- #[arg(long)]
- dry_run: bool,
- },
-
- /// Show detailed information about a package
- Info {
- /// Package name
- package: String,
-
- /// Device serial number (optional, uses first device if not specified)
- #[arg(short, long)]
- device: Option,
-
- /// User ID (defaults to 0)
- #[arg(short, long)]
- user: Option,
- },
-
- /// Update UAD package lists from remote repository
- Update,
-
- /// Generate shell completion script
- Completions {
- /// Shell to generate completions for
- #[arg(value_enum)]
- shell: Shell,
- },
-
- /// Start interactive REPL mode
- #[command(visible_alias = "shell")]
- Repl {
- /// Device serial number (optional, uses first device if not specified)
- #[arg(short, long)]
- device: Option,
-
- /// User ID (defaults to 0)
- #[arg(short, long)]
- user: Option,
- },
-}
-
-#[tokio::main]
-async fn main() -> ExitCode {
- match run() {
- Ok(()) => ExitCode::SUCCESS,
- Err(err) => {
- eprintln!("Error: {err}");
- ExitCode::FAILURE
- }
- }
-}
-
-fn run() -> Result<(), Box> {
- let cli = Cli::parse();
-
- match cli.command {
- Commands::Devices => {
- commands::list_devices()?;
- }
- Commands::List {
- device,
- state,
- removal,
- list,
- search,
- user,
- } => {
- commands::list_packages(device, state, removal, list, search, user)?;
- }
- Commands::Uninstall {
- packages,
- device,
- user,
- dry_run,
- } => {
- commands::change_package_state(
- &packages,
- device,
- user,
- dry_run,
- PackageState::Uninstalled,
- "Uninstalling",
- )?;
- }
- Commands::Enable {
- packages,
- device,
- user,
- dry_run,
- } => {
- commands::change_package_state(
- &packages,
- device,
- user,
- dry_run,
- PackageState::Enabled,
- "Enabling",
- )?;
- }
- Commands::Disable {
- packages,
- device,
- user,
- dry_run,
- } => {
- commands::change_package_state(
- &packages,
- device,
- user,
- dry_run,
- PackageState::Disabled,
- "Disabling",
- )?;
- }
- Commands::Info {
- package,
- device,
- user,
- } => {
- commands::show_package_info(&package, device, user)?;
- }
- Commands::Update => {
- commands::update_lists()?;
- }
- Commands::Completions { shell } => {
- commands::generate_completions(shell);
- }
- Commands::Repl { device, user } => {
- repl::repl_mode(device, user)?;
- }
- }
-
- Ok(())
-}
diff --git a/crates/uad-cli/src/output.rs b/crates/uad-cli/src/output.rs
deleted file mode 100644
index cff4724..0000000
--- a/crates/uad-cli/src/output.rs
+++ /dev/null
@@ -1,18 +0,0 @@
-/// Helper macro to handle broken pipe errors gracefully
-/// When piping to commands like `head`, we want to exit cleanly when the pipe closes
-#[macro_export]
-macro_rules! println_or_exit {
- () => {
- let _ = writeln!(std::io::stdout());
- };
- ($($arg:tt)*) => {
- let _ = writeln!(std::io::stdout(), $($arg)*);
- };
-}
-
-#[macro_export]
-macro_rules! print_or_exit {
- ($($arg:tt)*) => {
- let _ = write!(std::io::stdout(), $($arg)*);
- };
-}
diff --git a/crates/uad-cli/src/repl.rs b/crates/uad-cli/src/repl.rs
deleted file mode 100644
index eeee0c6..0000000
--- a/crates/uad-cli/src/repl.rs
+++ /dev/null
@@ -1,374 +0,0 @@
-use rustyline::DefaultEditor;
-use rustyline::error::ReadlineError;
-use std::collections::HashMap;
-use std::io::Write;
-use uad_core::adb::ACommand;
-use uad_core::sync::{CorePackage, Phone, User, apply_pkg_state_commands, get_package_state};
-use uad_core::uad_lists::{Package, PackageState, Removal, UadList, load_debloat_lists};
-
-use crate::commands::{PackageListContext, display_package_list, execute_with_fallback};
-use crate::device::{get_target_device, get_user};
-use crate::filters::StateFilter;
-use crate::println_or_exit;
-
-enum ReplAction {
- Continue,
- Exit,
-}
-
-/// Start interactive REPL mode
-pub fn repl_mode(
- device: Option,
- user_id: Option,
-) -> Result<(), Box> {
- println!("Universal Android Debloater - Interactive Mode");
- println!("Type 'help' for available commands, 'exit' or 'quit' to leave\n");
-
- let target_device = get_target_device(device)?;
- let user = get_user(&target_device, user_id)?;
-
- println!(
- "Connected to: {} ({})",
- target_device.model, target_device.adb_id
- );
- println!("User: {}\n", user.id);
-
- let uad_lists = load_debloat_lists(false).unwrap_or_else(|lists| lists);
- let mut rl = DefaultEditor::new()?;
-
- // Try to load history
- let history_file = dirs::cache_dir().map(|d| d.join("uad").join("cli_history.txt"));
- if let Some(ref path) = history_file {
- let _ = rl.load_history(path);
- }
-
- loop {
- let readline = rl.readline("uad> ");
- match readline {
- Ok(line) => {
- match handle_repl_line(&line, &mut rl, &target_device, user, user_id, &uad_lists) {
- Ok(ReplAction::Continue) => {}
- Ok(ReplAction::Exit) => break,
- Err(e) => {
- eprintln!("Error: {}", e);
- }
- }
- }
- Err(ReadlineError::Interrupted) => {
- println!("Interrupted (Ctrl-C). Type 'exit' to quit.");
- continue;
- }
- Err(ReadlineError::Eof) => {
- println!("Goodbye!");
- break;
- }
- Err(err) => {
- eprintln!("Error: {:?}", err);
- break;
- }
- }
- }
-
- // Save history
- if let Some(ref path) = history_file {
- if let Some(parent) = path.parent() {
- let _ = std::fs::create_dir_all(parent);
- }
- let _ = rl.save_history(path);
- }
-
- Ok(())
-}
-
-/// Handle a single line of REPL input
-fn handle_repl_line(
- line: &str,
- rl: &mut DefaultEditor,
- device: &Phone,
- user: User,
- user_id: Option,
- uad_lists: &HashMap,
-) -> Result> {
- let line = line.trim();
- if line.is_empty() {
- return Ok(ReplAction::Continue);
- }
-
- let _ = rl.add_history_entry(line);
-
- let parts: Vec<&str> = line.split_whitespace().collect();
- if parts.is_empty() {
- return Ok(ReplAction::Continue);
- }
-
- match parts[0] {
- "help" => print_repl_help(),
- "exit" | "quit" => {
- println!("Goodbye!");
- return Ok(ReplAction::Exit);
- }
- "list" | "ls" => {
- handle_list_command(&parts[1..], device, user_id, uad_lists)?;
- }
- "info" => {
- handle_info_command(&parts[1..], device, user.id, uad_lists)?;
- }
- "uninstall" | "rm" => {
- handle_state_change_command(
- &parts[1..],
- device,
- user,
- PackageState::Uninstalled,
- "Uninstalling",
- uad_lists,
- )?;
- }
- "enable" | "restore" => {
- handle_state_change_command(
- &parts[1..],
- device,
- user,
- PackageState::Enabled,
- "Enabling",
- uad_lists,
- )?;
- }
- "disable" => {
- handle_state_change_command(
- &parts[1..],
- device,
- user,
- PackageState::Disabled,
- "Disabling",
- uad_lists,
- )?;
- }
- "device" => {
- println!(
- "Device: {} ({}), Android SDK: {}, User: {}",
- device.model, device.adb_id, device.android_sdk, user.id
- );
- }
- "clear" => {
- print!("\x1B[2J\x1B[1;1H");
- }
- _ => {
- eprintln!(
- "Unknown command: '{}'. Type 'help' for available commands.",
- parts[0]
- );
- }
- }
-
- Ok(ReplAction::Continue)
-}
-
-/// Parse REPL arguments into filters
-struct ReplListArgs {
- state_filter: Option,
- search_term: Option,
-}
-
-impl ReplListArgs {
- fn parse(args: &[&str]) -> Result {
- let mut state_filter = None;
- let mut search_term = None;
- let mut i = 0;
-
- while i < args.len() {
- match args[i] {
- "--state" | "-s" => {
- if i + 1 >= args.len() {
- return Err("--state requires a value".to_string());
- }
- state_filter = match args[i + 1].to_lowercase().as_str() {
- "enabled" => Some(StateFilter::Enabled),
- "disabled" => Some(StateFilter::Disabled),
- "uninstalled" => Some(StateFilter::Uninstalled),
- "all" => Some(StateFilter::All),
- _ => return Err(format!("Invalid state: {}", args[i + 1])),
- };
- i += 2;
- }
- "--search" | "-q" => {
- if i + 1 >= args.len() {
- return Err("--search requires a value".to_string());
- }
- search_term = Some(args[i + 1].to_string());
- i += 2;
- }
- _ => {
- return Err(format!("Unknown option: {}", args[i]));
- }
- }
- }
-
- Ok(Self {
- state_filter,
- search_term,
- })
- }
-}
-
-/// Handle list command in REPL
-fn handle_list_command(
- args: &[&str],
- device: &Phone,
- user_id: Option,
- uad_lists: &HashMap,
-) -> Result<(), Box> {
- let parsed = ReplListArgs::parse(args)?;
-
- let pm_flag = parsed.state_filter.and_then(StateFilter::to_pm_flag);
- let system_packages = ACommand::new()
- .shell(&device.adb_id)
- .pm()
- .list_packages_sys(pm_flag, user_id)?;
-
- let context = PackageListContext {
- state_filter: parsed.state_filter,
- removal_filter: None,
- list_filter: None,
- search: parsed.search_term,
- };
-
- let displayed_count = display_package_list(
- &system_packages,
- uad_lists,
- &device.adb_id,
- user_id,
- &context,
- )?;
-
- if displayed_count == 0 {
- println_or_exit!(" No packages found.");
- } else {
- println_or_exit!("\nTotal: {} package(s)", displayed_count);
- }
-
- Ok(())
-}
-
-/// Handle info command in REPL
-fn handle_info_command(
- args: &[&str],
- device: &Phone,
- user_id: u16,
- uad_lists: &HashMap,
-) -> Result<(), Box> {
- if args.is_empty() {
- eprintln!("Usage: info ");
- return Ok(());
- }
-
- let package = args[0];
- println!("Package: {}", package);
-
- if let Some(pkg_info) = uad_lists.get(package) {
- println!(" List: {}", pkg_info.list);
- println!(" Removal: {}", pkg_info.removal);
- println!(" Description: {}", pkg_info.description);
- } else {
- println!(" Not found in UAD lists (unlisted package)");
- }
-
- let state = get_package_state(&device.adb_id, package, Some(user_id))
- .ok_or("Package not found on device")?;
- println!(" State: {}", state);
-
- Ok(())
-}
-
-/// Handle state change command in REPL
-fn handle_state_change_command(
- args: &[&str],
- device: &Phone,
- user: User,
- target_state: PackageState,
- action_name: &str,
- uad_lists: &HashMap,
-) -> Result<(), Box> {
- if args.is_empty() {
- eprintln!(
- "Usage: {} [package_name...]",
- action_name.to_lowercase()
- );
- return Ok(());
- }
-
- for pkg_name in args {
- process_package_change(pkg_name, device, user, target_state, action_name, uad_lists)?;
- }
-
- Ok(())
-}
-
-/// Process state change for a single package in REPL
-fn process_package_change(
- pkg_name: &str,
- device: &Phone,
- user: User,
- target_state: PackageState,
- action_name: &str,
- uad_lists: &HashMap,
-) -> Result<(), Box> {
- let current_state = get_package_state(&device.adb_id, pkg_name, Some(user.id))
- .ok_or("Package not found on device")?;
-
- println!("{} {} (current: {})", action_name, pkg_name, current_state);
-
- if current_state == target_state {
- println!(" → Already in target state, skipping");
- return Ok(());
- }
-
- let pkg_info = uad_lists.get(pkg_name);
- if let Some(info) = pkg_info {
- if info.removal == Removal::Unsafe {
- println!(" ⚠ WARNING: This package is marked as UNSAFE to remove!");
- }
- }
-
- let core_pkg = CorePackage {
- name: pkg_name.to_string(),
- description: pkg_info.map(|p| p.description.clone()).unwrap_or_default(),
- removal: pkg_info.map(|p| p.removal).unwrap_or(Removal::Unlisted),
- state: current_state,
- list: pkg_info.map(|p| p.list).unwrap_or(UadList::Unlisted),
- };
-
- let commands = apply_pkg_state_commands(&core_pkg, target_state, user, device);
-
- execute_with_fallback(
- pkg_name,
- target_state,
- &core_pkg,
- user,
- device,
- &commands,
- " ",
- )
-}
-
-/// Print REPL help message
-fn print_repl_help() {
- println!("Available commands:");
- println!(" list [--state ] [--search ]");
- println!(" List packages with optional filters");
- println!(" info ");
- println!(" Show information about a package");
- println!(" uninstall [package_name...]");
- println!(" Uninstall one or more packages");
- println!(" enable [package_name...]");
- println!(" Enable/restore one or more packages");
- println!(" disable [package_name...]");
- println!(" Disable one or more packages");
- println!(" device");
- println!(" Show current device information");
- println!(" clear");
- println!(" Clear the screen");
- println!(" help");
- println!(" Show this help message");
- println!(" exit, quit");
- println!(" Exit the interactive mode");
-}
diff --git a/crates/uad-core/Cargo.toml b/crates/uad-core/Cargo.toml
deleted file mode 100644
index f7d3a43..0000000
--- a/crates/uad-core/Cargo.toml
+++ /dev/null
@@ -1,52 +0,0 @@
-[package]
-name = "uad-core"
-version.workspace = true
-authors.workspace = true
-license.workspace = true
-homepage.workspace = true
-repository.workspace = true
-readme.workspace = true
-keywords.workspace = true
-categories = ["command-line-utilities"]
-edition.workspace = true
-
-[features]
-default = []
-self-update = ["dep:flate2", "dep:tar"]
-
-[dependencies]
-serde.workspace = true
-serde_json.workspace = true
-log.workspace = true
-chrono.workspace = true
-toml.workspace = true
-dirs.workspace = true
-ureq.workspace = true
-retry.workspace = true
-csv.workspace = true
-flate2 = { workspace = true, optional = true }
-tar = { workspace = true, optional = true }
-
-[target.'cfg(target_os = "windows")'.dependencies]
-win32console.workspace = true
-
-[lints.rust]
-deprecated_safe = "warn"
-
-[lints.clippy]
-undocumented_unsafe_blocks = "forbid"
-exit = "deny"
-panic_in_result_fn = "warn"
-infinite_loop = "warn"
-mem_forget = "warn"
-implicit_clone = "warn"
-format_push_string = "warn"
-large_include_file = "warn"
-shadow_unrelated = "warn"
-struct_field_names = "allow" # annoying
-
-disallowed_types = "deny"
-disallowed_methods = "deny"
-
-allow_attributes_without_reason = "warn"
-pedantic = { level = "warn", priority = -1 }
diff --git a/crates/uad-core/src/adb.rs b/crates/uad-core/src/adb.rs
deleted file mode 100644
index f2335e0..0000000
--- a/crates/uad-core/src/adb.rs
+++ /dev/null
@@ -1,503 +0,0 @@
-#![deny(clippy::unwrap_used)]
-
-//! This module is intended to group everything that's "intrinsic" of ADB.
-//!
-//! Following the design philosophy of most of Rust `std`,
-//! `*Command` are intended to be "thin wrappers" (low-overhead abstractions)
-//! around the ADB CLI or `adb_client`
-//! ([in the future](https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/issues/700) ),
-//! which implies:
-//! - no "magic"
-//! - no custom commands
-//! - no chaining ("piping") of existing commands
-//!
-//! This guarantees a 1-to-1 mapping between methods and cmds,
-//! thereby reducing surprises such as:
-//! - Non-atomic operations: consider what happens if a pack changes state
-//! in the middle of listing enabled and disabled packs!
-//! - Non-standard semantics: what would happen if a new ADB version
-//! supports a feature we already defined,
-//! but has _slightly_ different behavior?
-//!
-//! Despite being "low-level", we can still "have cake and eat it too";
-//! After all, what's the point of an abstraction if it doesn't come with goodies?:
-//! We can reserve some artistic license, such as:
-//! - pre-parsing or validanting output, to provide types with invariants
-//! - strongly-typed rather than "stringly-typed" APIs
-//! - nicer IDE support
-//! - compile-time prevention of malformed cmds
-//! - implicit enforcement of a narrow set of operations
-//!
-//! About that last point, if there's ever a need for an ADB feature
-//! which these APIs don't expose,
-//! please, **PLEASE** refrain from falling-back to any `Command`-like API.
-//! Rather, please extend these APIs in a consistent way.
-//!
-//! Thank you! ❤️
-//!
-//! For comprehensive info about ADB,
-//! [see this](https://android.googlesource.com/platform/packages/modules/adb/+/refs/heads/master/docs/)
-
-use std::rc::Rc;
-
-#[cfg(target_os = "windows")]
-use std::os::windows::process::CommandExt;
-
-use crate::utils::is_all_w_c;
-use log::{error, info, warn};
-
-/// Convert ADB output bytes to a trimmed UTF-8 string.
-/// Uses lossy conversion to prevent panics on non-UTF8 output from certain OEMs.
-#[must_use]
-pub fn to_trimmed_utf8(v: &[u8]) -> String {
- String::from_utf8_lossy(v).trim_end().to_string()
-}
-
-#[cfg(debug_assertions)]
-#[must_use]
-fn is_version_triple(s: &str) -> bool {
- let mut components = s.split('.');
- for _ in 0..3 {
- if !components
- .next()
- .is_some_and(|comp| comp.as_bytes().iter().all(u8::is_ascii_digit))
- {
- return false;
- }
- }
- if components.next().is_some() {
- return false;
- }
- true
-}
-
-/// Builder object for an Android Debug Bridge CLI command,
-/// using the type-state and new-type patterns.
-///
-/// This is not intended to model the entire ADB API.
-/// It only models the subset that concerns UADNG.
-///
-/// [More info here](https://developer.android.com/tools/adb)
-#[derive(Debug)]
-pub struct ACommand(std::process::Command);
-impl ACommand {
- /// `adb` command builder
- #[must_use]
- pub fn new() -> Self {
- Self(std::process::Command::new("adb"))
- }
-
- /// `shell` sub-command builder.
- ///
- /// If `device_serial` is empty, it lets ADB choose the default device.
- #[must_use]
- pub fn shell>(mut self, device_serial: S) -> ShellCommand {
- let serial = device_serial.as_ref();
- if !serial.is_empty() {
- self.0.args(["-s", serial]);
- }
- self.0.arg("shell");
- ShellCommand(self)
- }
-
- /// Header-less list of attached devices (as serials) and their statuses:
- /// - USB
- /// - TCP/IP: WIFI, Ethernet, etc...
- /// - Local emulators
- ///
- /// Status can be (but not limited to):
- /// - "unauthorized"
- /// - "device"
- pub fn devices(mut self) -> Result, String> {
- self.0.arg("devices");
- Ok(self
- .run()?
- .lines()
- .skip(1) // header
- .map(|dev_stat| {
- let tab_idx = dev_stat
- // OS-specific?
- .find('\t')
- // True on Linux,
- // no matter if ADB is piped or connected to terminal
- .expect("There must be 1 tab after serial");
- (
- // serial
- dev_stat[..tab_idx].to_string(),
- // status
- dev_stat[(tab_idx + 1)..].to_string(),
- )
- })
- .collect())
- }
-
- /// `version` sub-command
- ///
- /// ## Format
- /// This is just a sample,
- /// we don't know which guarantees are stable (yet):
- /// ```txt
- /// Android Debug Bridge version 1.0.41
- /// Version 34.0.5-debian
- /// Installed as /usr/lib/android-sdk/platform-tools/adb
- /// Running on Linux 6.12.12-amd64 (x86_64)
- /// ```
- ///
- /// The expected format should be like:
- /// ```txt
- /// Android Debug Bridge version ..
- /// Version ..-
- /// Installed as /platform-tools/adb[.exe]
- /// Running on ()
- /// ```
- #[expect(clippy::panic_in_result_fn, reason = "Assertions are fine")]
- pub fn version(mut self) -> Result {
- self.0.arg("version");
- let out = self.run()?;
-
- #[cfg(debug_assertions)]
- {
- const ADBV: &str = "Android Debug Bridge version ";
- const V: &str = "Version ";
-
- let mut lns = out.lines();
-
- assert!(
- lns.next()
- .is_some_and(|ln| ln.starts_with(ADBV) && is_version_triple(&ln[ADBV.len()..]))
- );
- assert!(lns.next().is_some_and(|ln| ln.starts_with(V)
- && is_version_triple(&ln[V.len()..ln.find('-').unwrap_or(ln.len())])));
- // missing test for valid path
- assert!(lns.next().is_some_and(|ln| ln.starts_with("Installed as ")
- && (ln.ends_with("adb") || ln.ends_with("adb.exe"))));
- // missing test for x86/ARM (both 64b)
- assert!(lns.next().is_some_and(|ln| ln.starts_with("Running on ")));
- if lns.next().is_some() {
- unreachable!("Expected < 5 lines")
- }
- }
-
- Ok(out)
- }
-
- /// General executor
- fn run(self) -> Result {
- let mut cmd = self.0;
- #[cfg(target_os = "windows")]
- let cmd = cmd.creation_flags(0x0800_0000); // do not open a cmd window
-
- info!(
- "Ran command: adb {}",
- cmd.get_args()
- .map(|s| s.to_str().unwrap_or_else(|| unreachable!()))
- .collect::>()
- .join(" ")
- );
- match cmd.output() {
- Err(e) => {
- error!("ADB: {e}");
- Err("Cannot run ADB, likely not found".to_string())
- }
- Ok(o) => {
- let stdout = to_trimmed_utf8(&o.stdout);
- if o.status.success() {
- Ok(stdout)
- } else {
- let stderr = to_trimmed_utf8(&o.stderr);
- // ADB does really weird things:
- // Some errors are not redirected to `stderr`
- let err = if stdout.is_empty() { stderr } else { stdout };
- Err(err)
- }
- }
- }
- }
-}
-
-impl Default for ACommand {
- fn default() -> Self {
- Self::new()
- }
-}
-
-/// Builder object for a command that runs on the device's default `sh` implementation.
-/// Typically MKSH, but could be Ash.
-///
-/// [More info](https://chromium.googlesource.com/aosp/platform/system/core/+/refs/heads/upstream/shell_and_utilities).
-#[derive(Debug)]
-pub struct ShellCommand(ACommand);
-impl ShellCommand {
- /// `pm` command builder
- pub fn pm(mut self) -> PmCommand {
- self.0.0.arg("pm");
- PmCommand(self)
- }
- /// Query a device property value, by its key.
- /// These can be of any type:
- /// - `boolean`
- /// - `int`
- /// - chars
- /// - etc...
- ///
- /// So to avoid lossy conversions, we return strs
- pub fn getprop(mut self, key: &str) -> Result {
- self.0.0.args(["getprop", key]);
- self.0.run()
- }
- /// Reboots device
- pub fn reboot(mut self) -> Result {
- self.0.0.arg("reboot");
- self.0.run()
- }
-
- /// Execute an arbitrary shell action string on the device's default shell.
- /// The action string is passed as a single argument to `adb shell` and
- /// interpreted by the remote shell (which splits on spaces).
- pub fn raw(mut self, action: &str) -> Result {
- self.0.0.arg(action);
- self.0.run()
- }
-}
-
-#[must_use]
-pub const fn is_pkg_component(s: &[u8]) -> bool {
- if s.is_empty() {
- return false;
- }
- s[0].is_ascii_alphabetic()
- && if s.len() > 1 {
- is_all_w_c(s.split_at(1).1)
- } else {
- true
- }
-}
-
-/// String with the invariant of being a valid package-name.
-/// See [`PackageId::new`] for validation details.
-#[derive(Debug, Clone, PartialEq, Eq, Hash)]
-pub struct PackageId(Rc);
-impl PackageId {
- /// Creates a package-ID if it's `"android"` or valid according to:
- /// -
- /// -
- #[must_use]
- pub fn new(p_id: &str) -> Option {
- if p_id == "android" {
- return Some(Self(p_id.into()));
- }
- let mut components = p_id.split('.');
- for _ in 0..2 {
- if !components
- .next()
- .is_some_and(|comp| is_pkg_component(comp.as_bytes()))
- {
- return None;
- }
- }
- if components.all(|comp| is_pkg_component(comp.as_bytes())) {
- Some(Self(p_id.into()))
- } else {
- None
- }
- }
-}
-
-/// `pm list packages` flag/state/type
-#[derive(Debug, Clone, Copy, PartialEq, Eq)]
-pub enum PmListPacksFlag {
- /// `-u`, not to be confused with `-a`
- IncludeUninstalled,
- /// `-e`
- OnlyEnabled,
- /// `-d`
- OnlyDisabled,
-}
-impl PmListPacksFlag {
- // is there a trait for this?
- fn to_str(self) -> &'static str {
- match self {
- Self::IncludeUninstalled => "-u",
- Self::OnlyEnabled => "-e",
- Self::OnlyDisabled => "-d",
- }
- }
-}
-#[expect(clippy::to_string_trait_impl, reason = "This is not user-facing")]
-impl ToString for PmListPacksFlag {
- fn to_string(&self) -> String {
- self.to_str().to_string()
- }
-}
-
-const PACK_PREFIX: &str = "package:";
-
-pub const PM_CLEAR_PACK: &str = "pm clear";
-
-/// Builder object for an Android Package Manager command.
-///
-#[derive(Debug)]
-#[must_use]
-pub struct PmCommand(ShellCommand);
-impl PmCommand {
- /// `list packages -s` sub-command, [`PACK_PREFIX`] stripped from each element.
- ///
- /// `Ok` variant:
- /// - isn't 100% guaranteed to contain valid pack-IDs
- /// but you can assume it does (except in `unsafe {}` blocks)
- /// - isn't sorted
- /// - duplicates never _seem_ to happen, but don't assume uniqueness
- pub fn list_packages_sys(
- mut self,
- f: Option,
- user_id: Option,
- ) -> Result, String> {
- let cmd = &mut self.0.0.0;
-
- cmd.args(["list", "packages", "-s"]);
- if let Some(s) = f {
- cmd.arg(s.to_str());
- }
- if let Some(u) = user_id {
- cmd.arg("--user");
- cmd.arg(u.to_string());
- }
-
- self.0.0.run().map(|pack_ls| {
- pack_ls
- .lines()
- .filter_map(|p_ln| {
- debug_assert!(p_ln.starts_with(PACK_PREFIX));
- let p = &p_ln[PACK_PREFIX.len()..];
- if PackageId::new(p).is_some() {
- Some(String::from(p))
- } else {
- warn!("skipping nonstandard package name: {p:?}");
- None
- }
- })
- .collect()
- })
- }
-
- /// `list users` sub-command, deserialized/parsed.
- ///
- /// -
- /// -
- pub fn list_users(mut self) -> Result, String> {
- self.0.0.0.args(["list", "users"]);
- Ok(self
- .0
- .0
- .run()?
- .lines()
- .skip(1) // omit header
- .map(|ln| {
- // this could be optimized by making more API-stability assumptions
- let ln = ln.trim_ascii_start();
- let ln = ln.strip_prefix("UserInfo").unwrap_or(ln).trim_ascii_start();
- let ln = ln.strip_prefix('{').unwrap_or(ln).trim_ascii();
- //let run;
- let ln = if let Some(l) = ln.strip_suffix("running") {
- //run = true;
- l.trim_ascii_end()
- } else {
- //run = false;
- ln
- };
- let ln = ln.strip_suffix('}').unwrap_or(ln).trim_ascii_end();
- // https://android.googlesource.com/platform/frameworks/base/+/refs/heads/main/core/java/android/content/pm/UserInfo.java
- // The format looks stable today, but google may change it in future Android versions
- // (and very old Androids might differ). Keep parsing defensive.
- // Expected shape: "UserInfo{::}[ running]"
-
- let mut comps = ln.split(':');
-
- let id = comps
- .next()
- .expect("There must be at least 1 ':'-separated component")
- .parse()
- .expect("string assumed to be UID numeral");
- //let name = comps
- // .next()
- // .expect("There must be at least 2 ':'-separated components. 2nd is user-name");
- //let flags = u32::from_str_radix(
- // comps.next().expect(
- // "There must be at least 3 ':'-separated components. 3rd is user bit-flags",
- // ),
- // 16,
- //)
- //.expect("string assumed to be hexadecimal bit-flags");
- UserInfo {
- id,
- //name: name.into(),
- //flags,
- //running: run,
- }
- })
- .collect())
- }
-}
-
-/// Mirror of AOSP `UserInfo` Java Class, with an extra field
-#[derive(Debug, Clone)]
-pub struct UserInfo {
- id: u16,
- //name: Box,
- //flags: u32,
- //running: bool,
-}
-impl UserInfo {
- #[must_use]
- pub const fn get_id(&self) -> u16 {
- self.id
- }
- /*
- /// Check if the user was logged-in at the time `pm list users` was invoked
- #[must_use]
- #[allow(dead_code, reason = "Currently unused by UI; kept for future features")]
- pub const fn was_running(&self) -> bool {
- self.running
- }
- */
-}
-
-#[cfg(test)]
-mod tests {
- use super::*;
-
- #[test]
- fn invalid_pack_ids() {
- for p_id in [
- "",
- " ",
- ".",
- "nodots",
- "com..example",
- "net.hello.",
- "org.0example",
- "org._foobar",
- "the.🎂.is.a.lie",
- "EXCLAMATION!!!!",
- ] {
- assert_eq!(PackageId::new(p_id), None);
- }
- }
-
- #[test]
- fn valid_pack_ids() {
- for p_id in [
- "A.a",
- "x.X",
- "org.example",
- "net.hello",
- "uwu.owo",
- "Am0Gu5.Zuz",
- "net.net.net.net.net.net.net.net.net.net.net",
- "com.github.w1nst0n",
- "this_.String_.is_.not_.real_",
- ] {
- assert_ne!(PackageId::new(p_id), None);
- }
- }
-}
diff --git a/crates/uad-core/src/config.rs b/crates/uad-core/src/config.rs
deleted file mode 100644
index 5c41d78..0000000
--- a/crates/uad-core/src/config.rs
+++ /dev/null
@@ -1,150 +0,0 @@
-use crate::CACHE_DIR;
-use crate::CONFIG_DIR;
-use crate::sync::User;
-use crate::utils::DisplayablePath;
-use log::error;
-use serde::{Deserialize, Serialize};
-use std::fs;
-use std::path::PathBuf;
-use std::sync::LazyLock;
-
-const DEFAULT_THEME: &str = "Auto (follow system theme)";
-
-#[derive(Default, Debug, Serialize, Deserialize, Clone)]
-pub struct Config {
- pub general: GeneralSettings,
- #[serde(skip_serializing_if = "Vec::is_empty", default = "Vec::new")]
- pub devices: Vec,
-}
-
-#[derive(Debug, Serialize, Deserialize, Clone)]
-pub struct GeneralSettings {
- pub theme: String,
- pub expert_mode: bool,
- pub backup_folder: PathBuf,
-}
-
-#[derive(Default, Debug, Clone)]
-pub struct BackupSettings {
- pub backups: Vec,
- pub selected: Option,
- pub users: Vec,
- pub selected_user: Option,
- pub backup_state: String,
-}
-
-#[derive(Debug, Serialize, Deserialize, Clone, Default)]
-pub struct DeviceSettings {
- /// Unique serial identifier
- pub device_id: String,
- pub disable_mode: bool, // should be `enum RemovalMode`
- pub multi_user_mode: bool,
- #[serde(skip)]
- pub backup: BackupSettings,
-}
-
-impl Default for GeneralSettings {
- fn default() -> Self {
- Self {
- theme: DEFAULT_THEME.to_string(),
- expert_mode: false,
- backup_folder: CACHE_DIR.join("backups"),
- }
- }
-}
-
-static CONFIG_FILE: LazyLock = LazyLock::new(|| CONFIG_DIR.join("config.toml"));
-
-impl Config {
- pub fn save_device_settings(
- &mut self,
- device_settings: DeviceSettings,
- general: GeneralSettings,
- ) {
- if let Some(device) = self
- .devices
- .iter_mut()
- .find(|x| x.device_id == device_settings.device_id)
- {
- *device = device_settings;
- } else {
- self.devices.push(device_settings);
- }
- self.general = general;
- let toml = toml::to_string(&self).unwrap();
- fs::write(&*CONFIG_FILE, toml).expect("Could not write config file to disk!");
- }
-
- #[must_use]
- pub fn load_configuration_file() -> Self {
- match fs::read_to_string(&*CONFIG_FILE) {
- Ok(s) => match toml::from_str(&s) {
- Ok(config) => return config,
- Err(e) => error!("Invalid config file: `{e}`"),
- },
- Err(e) => error!("Failed to read config file: `{e}`"),
- }
- error!("Restoring default config file");
- let toml = toml::to_string(&Self::default()).unwrap();
- fs::write(&*CONFIG_FILE, toml).expect("Could not write config file to disk!");
- Self::default()
- }
-}
-
-#[cfg(test)]
-mod tests {
- //! Unit tests
-
- use super::*;
- use std::path::Path;
-
- // create a clean default config file for testing
- fn create_default_config_file() {
- let toml = toml::to_string(&Config::default()).unwrap();
- fs::write(&*CONFIG_FILE, toml).expect("Could not write config file to disk!");
- }
-
- #[test]
- fn test_create_default_config_file() {
- create_default_config_file();
- assert!(CONFIG_FILE.exists());
- }
-
- #[test]
- fn test_load_configuration_file() {
- create_default_config_file();
- let config = Config::load_configuration_file();
- // non-deterministic
- //assert_eq!(config.devices.len(), 0);
- assert_eq!(config.general.theme, DEFAULT_THEME);
- assert!(!config.general.expert_mode);
- assert_eq!(config.general.backup_folder, CACHE_DIR.join("backups"));
- }
-
- // non-deterministic
- /*
- #[test]
- fn test_save_changes() {
- let mut settings = Settings::default();
- let device_id = "test_device".to_string();
- settings.device.device_id = device_id.clone();
- Config::save_changes(&settings, &device_id);
- let config = Config::load_configuration_file();
- assert_eq!(config.devices[0].device_id, device_id);
- }
- */
-
- #[test]
- fn test_default_config() {
- let config = Config::default();
- assert_eq!(config.devices.len(), 0);
- assert_eq!(config.general.theme, DEFAULT_THEME);
- assert!(!config.general.expert_mode);
- assert_eq!(config.general.backup_folder, CACHE_DIR.join("backups"));
- }
-
- #[test]
- fn test_config_file_path() {
- assert_eq!(&*CONFIG_FILE, Path::new(&*CONFIG_DIR.join("config.toml")));
- }
-}
diff --git a/crates/uad-core/src/lib.rs b/crates/uad-core/src/lib.rs
deleted file mode 100644
index be3e5b4..0000000
--- a/crates/uad-core/src/lib.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-#![allow(
- clippy::missing_panics_doc,
- clippy::missing_errors_doc,
- clippy::collapsible_if,
- clippy::uninlined_format_args,
- clippy::result_unit_err,
- reason = "Doc+style pedantic lints are out-of-scope for this pass"
-)]
-
-pub mod adb;
-pub mod config;
-pub mod save;
-pub mod sync;
-pub mod uad_lists;
-pub mod update;
-pub mod utils;
-
-use std::path::PathBuf;
-use std::sync::LazyLock;
-pub static CONFIG_DIR: LazyLock =
- LazyLock::new(|| utils::setup_uad_dir(&dirs::config_dir().expect("Can't detect config dir")));
-pub static CACHE_DIR: LazyLock =
- LazyLock::new(|| utils::setup_uad_dir(&dirs::cache_dir().expect("Can't detect cache dir")));
diff --git a/crates/uad-core/src/sync.rs b/crates/uad-core/src/sync.rs
deleted file mode 100644
index f90b6ee..0000000
--- a/crates/uad-core/src/sync.rs
+++ /dev/null
@@ -1,663 +0,0 @@
-use crate::{
- adb::{ACommand as AdbCommand, PM_CLEAR_PACK, PackageId},
- uad_lists::PackageState,
-};
-use log::{error, info};
-use retry::{OperationResult, delay::Fixed, retry};
-use serde::{Deserialize, Serialize};
-
-/// An Android device, typically a phone
-#[derive(Debug, Clone, PartialEq, Eq)]
-pub struct Phone {
- /// Non-market name
- pub model: String, // could be `Copy`
- /// Android API level version
- pub android_sdk: u8,
- /// In theory, `len < u16::MAX` _should_ always be `true`.
- /// In practice, `len <= u8::MAX`.
- pub user_list: Vec,
- /// Unique serial identifier
- pub adb_id: String, // could be `Copy`
-}
-
-impl Default for Phone {
- fn default() -> Self {
- Self {
- model: "fetching devices...".to_string(),
- android_sdk: 0,
- user_list: vec![],
- adb_id: String::default(),
- }
- }
-}
-
-impl std::fmt::Display for Phone {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- write!(f, "{}", self.model)
- }
-}
-
-/// `UserInfo` but relevant to UAD
-#[derive(Default, Debug, Clone, Copy, PartialEq, Eq)]
-pub struct User {
- pub id: u16,
- pub index: usize,
- pub protected: bool,
-}
-
-impl std::fmt::Display for User {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- write!(f, "user {}", self.id)
- }
-}
-
-/// An enum to contain different variants for errors yielded by ADB.
-#[derive(Debug, Clone)]
-pub enum AdbError {
- Generic(String),
-}
-
-/// Run an arbitrary shell action via the typed ADB wrapper.
-/// This replaces the deprecated `adb_shell_command`.
-///
-/// If `serial` is empty, it lets ADB choose the default device.
-pub fn run_adb_shell_action>(
- device_serial: S,
- action: &str,
-) -> Result {
- let serial = device_serial.as_ref();
-
- match AdbCommand::new().shell(serial).raw(action) {
- Ok(o) => {
- if ["Error", "Failure"].iter().any(|&e| o.contains(e)) {
- let friendly_msg = make_friendly_error_message(&o, action);
- return Err(AdbError::Generic(friendly_msg));
- }
- info!("{action} -> {o}");
- Ok(o)
- }
- Err(err) => {
- if !err.contains("[not installed for") {
- let friendly_msg = make_friendly_error_message(&err, action);
- return Err(AdbError::Generic(friendly_msg));
- }
- Err(AdbError::Generic(err))
- }
- }
-}
-
-/// Convert common OEM-specific ADB error messages into user-friendly explanations.
-fn make_friendly_error_message(error_output: &str, action: &str) -> String {
- // Common Samsung errors
- if error_output.contains("DELETE_FAILED_USER_RESTRICTED") {
- return format!(
- "Cannot uninstall: This package is restricted by the device manufacturer (Samsung Knox or similar).\n\
- Error: {error_output}\n\
- Tip: Try disabling the package instead, or check device settings for Knox/security restrictions."
- );
- }
-
- if error_output.contains("NOT_INSTALLED_FOR_USER") {
- return format!(
- "Package is not installed for the current user.\n\
- Error: {error_output}\n\
- Tip: The package may be installed for a different user profile or work profile."
- );
- }
-
- // Empty package name error
- if error_output.contains("Shell cannot change component state for null") {
- return format!(
- "Invalid package: Empty package name detected.\n\
- Error: {error_output}\n\
- Tip: Please refresh the package list and try again."
- );
- }
-
- // Generic permission errors
- if error_output.contains("Permission denied")
- || error_output.contains("INSTALL_FAILED_PERMISSION_MODEL_DOWNGRADE")
- {
- return format!(
- "Permission denied: Insufficient privileges to perform this action.\n\
- Error: {error_output}\n\
- Tip: This may require root access or the package is protected by the system."
- );
- }
-
- // Work profile / managed device errors
- if error_output.contains("DELETE_FAILED_DEVICE_POLICY_MANAGER") {
- return format!(
- "Cannot modify: Package is managed by device policy (MDM/EMM).\n\
- Error: {error_output}\n\
- Tip: Contact your IT administrator if this is a work device."
- );
- }
-
- // Generic failure with context
- format!("{action} -> {error_output}")
-}
-
-/// If `None`, returns an empty String, not " --user 0"
-#[must_use]
-pub fn user_flag(user_id: Option) -> String {
- user_id
- .map(|user| format!(" --user {}", user.id))
- .unwrap_or_default()
-}
-
-// Minimum information for processing adb commands
-#[derive(Debug, Deserialize, Serialize, Clone, PartialEq, Eq)]
-pub struct CorePackage {
- pub name: String,
- pub description: String,
- #[serde(default)]
- pub removal: crate::uad_lists::Removal,
- #[serde(default)]
- pub state: PackageState,
- #[serde(default)]
- pub list: crate::uad_lists::UadList,
-}
-
-#[must_use]
-pub fn apply_pkg_state_commands(
- package: &CorePackage,
- wanted_state: PackageState,
- selected_user: User,
- phone: &Phone,
-) -> Vec {
- // https://github.com/Universal-Debloater-Alliance/universal-android-debloater/wiki/ADB-reference
- // ALWAYS PUT THE COMMAND THAT CHANGES THE PACKAGE STATE FIRST!
- let commands = match wanted_state {
- PackageState::Enabled => match package.state {
- PackageState::Disabled => vec!["pm enable"],
- PackageState::Uninstalled => match phone.android_sdk {
- i if i >= 23 => vec!["cmd package install-existing"],
- 21 | 22 => vec!["pm unhide"],
- 19 | 20 => vec!["pm unblock", PM_CLEAR_PACK],
- _ => unreachable!("already prevented by the GUI"),
- },
- _ => vec![],
- },
- PackageState::Disabled => match package.state {
- PackageState::Uninstalled | PackageState::Enabled => {
- if supports_disabling(phone) {
- vec!["pm disable-user", "am force-stop", PM_CLEAR_PACK]
- } else {
- vec![]
- }
- }
- _ => vec![],
- },
- PackageState::Uninstalled => match package.state {
- PackageState::Enabled | PackageState::Disabled => match phone.android_sdk {
- sdk if sdk >= 23 => vec!["pm uninstall"], // > Marshmallow (6.0)
- 21 | 22 => vec!["pm hide", PM_CLEAR_PACK], // Lollipop (5.x)
- _ => vec!["pm block", PM_CLEAR_PACK], // Disable mode is unavailable on older devices because the specific ADB commands need root
- },
- _ => vec![],
- },
- PackageState::All => vec![],
- }; // this should be a `tinyvec`, as `len <= 4`
-
- let user = supports_multi_user(phone).then_some(selected_user);
- request_builder(&commands, &package.name, user)
-}
-
-/// Build a command request to be sent via ADB to a device.
-/// `commands` accepts one or more ADB shell commands
-/// which act on a common `package` and `user`.
-#[must_use]
-pub fn request_builder(commands: &[&str], package: &str, user: Option) -> Vec {
- // Defense-in-depth: `package` is interpolated verbatim into a device-shell
- // action, so refuse any invalid name/ID. Every current caller already
- // reconciles the name against the live device package list before reaching
- // here, so this rejects nothing legitimate — it just keeps the no-injection
- // guarantee local to the sink instead of relying on each caller to sanitise.
- // Fail closed: emit no command for a malformed name rather than an injectable
- // device-shell string.
- if PackageId::new(package).is_none() {
- error!("request_builder: refusing invalid package name: {package:?}");
- return Vec::new();
- }
- let maybe_user_flag = user_flag(user);
- commands
- .iter()
- .map(|c| format!("{c}{maybe_user_flag} {package}"))
- .collect()
-}
-
-/// Get the model by querying the `ro.product.model` property.
-///
-/// If `serial` is empty, it lets ADB choose the default device.
-#[must_use]
-pub fn get_device_model(serial: &str) -> String {
- AdbCommand::new()
- .shell(serial)
- .getprop("ro.product.model")
- .unwrap_or_else(|err| {
- eprintln!("ERROR: {err}");
- error!("{err}");
- if err.contains("adb: no devices/emulators found") {
- "no devices/emulators found".to_string()
- } else {
- err
- }
- })
-}
-
-/// Get the brand by querying the `ro.product.brand` property.
-///
-/// If `serial` is empty, it lets ADB choose the default device.
-#[must_use]
-pub fn get_device_brand(serial: &str) -> String {
- AdbCommand::new()
- .shell(serial)
- .getprop("ro.product.brand")
- // `trim` is just-in-case
- .map(|s| s.trim().to_string())
- .unwrap_or_default()
-}
-
-/// Get Android SDK version by querying the
-// `ro.build.version.sdk` property or defaulting to 0.
-///
-/// If `device_serial` is empty, it lets ADB choose the default device.
-#[must_use]
-pub fn get_android_sdk(device_serial: &str) -> u8 {
- AdbCommand::new()
- .shell(device_serial)
- .getprop("ro.build.version.sdk")
- .map_or(0, |sdk| {
- sdk.parse().expect("SDK version numeral must be valid")
- })
-}
-
-/// Capture the current state of a package across all non-protected users.
-/// This is used to detect cross-user behavior by comparing before and after states.
-///
-/// Only includes users where the package exists (Some state). Users where the package
-/// doesn't exist (None) are not tracked.
-#[must_use]
-pub fn capture_cross_user_states(
- package_name: &str,
- device_serial: &str,
- target_user_id: u16,
- phone: &Phone,
-) -> Vec<(u16, PackageState)> {
- phone
- .user_list
- .iter()
- .filter(|u| !u.protected && u.id != target_user_id)
- .filter_map(|u| {
- verify_package_state(package_name, device_serial, Some(u.id)).map(|state| (u.id, state))
- })
- .collect()
-}
-
-/// Detect cross-user behavior and return appropriate notification message.
-/// This handles unexpected cross-user behavior:
-/// - Case A: Uninstall → Restore (package appears on other users)
-/// - Case B: Uninstall → Uninstall (package disappears from other users that previously had it)
-/// - Case C: Restore → Restore (package appears on other users)
-#[must_use]
-pub fn detect_cross_user_behavior(
- package_name: &str,
- device_serial: &str,
- target_user_id: u16,
- wanted_state: PackageState,
- actual_state: PackageState,
- phone: &Phone,
- before_states: &[(u16, PackageState)],
-) -> Option {
- // Only check if operation was successful on target user
- if actual_state != wanted_state {
- return None;
- }
-
- // Only check if we have multiple users
- if phone.user_list.len() < 2 {
- return None;
- }
-
- let after_states =
- check_cross_user_package_existence(package_name, device_serial, target_user_id, phone);
-
- match wanted_state {
- PackageState::Uninstalled => {
- if after_states.is_empty() {
- // Case B: Uninstall → Uninstall (check if all users lost package)
- let affected_users: Vec<_> = before_states
- .iter()
- .filter(|(uid, before_state)| {
- // Only flag if the package was installed/enabled/disabled before
- *before_state != PackageState::Uninstalled
- // And is NOT in after_states (doesn't exist in usable state anymore)
- && !after_states.iter().any(|(after_uid, _)| after_uid == uid)
- })
- .map(|(uid, _)| uid)
- .collect();
-
- if affected_users.is_empty() {
- None
- } else {
- let user_list = affected_users
- .iter()
- .map(|uid| format!("user {uid}"))
- .collect::>()
- .join(", ");
-
- Some(format!(
- "Detected cross-user uninstall: package was also uninstalled from {user_list} after uninstalling from user {target_user_id}"
- ))
- }
- } else {
- // Case A: Uninstall → Restore (package appears on other users)
- let user_list = after_states
- .iter()
- .map(|(uid, state)| format!("user {uid} ({state:?})"))
- .collect::>()
- .join(", ");
-
- Some(format!(
- "Detected cross-user restoration: package exists on {user_list} after uninstalling from user {target_user_id}"
- ))
- }
- }
- PackageState::Enabled | PackageState::Disabled => {
- // Case C: Restore → Restore (package appears on other users)
-
- // Check if a user didn't have the package before (not tracked or package didn't exist).
- // Detects packages that appear on users where they didn't exist previously (OEM cross-user restoration).
- let was_package_absent_before = |uid: &u16| {
- before_states
- .iter()
- .find(|(before_uid, _)| before_uid == uid)
- .is_none_or(|(_, before_state)| *before_state == PackageState::Uninstalled)
- };
-
- let newly_appeared: Vec<_> = after_states
- .iter()
- .filter(|(uid, _after_state)| was_package_absent_before(uid))
- .collect();
-
- if newly_appeared.is_empty() {
- None
- } else {
- let user_list = newly_appeared
- .iter()
- .map(|(uid, state)| format!("user {uid} ({state:?})"))
- .collect::>()
- .join(", ");
-
- Some(format!(
- "Detected cross-user restoration: package exists on {user_list} after {} from user {target_user_id}",
- if wanted_state == PackageState::Enabled {
- "enabling"
- } else {
- "disabling"
- }
- ))
- }
- }
- PackageState::All => None,
- }
-}
-
-#[must_use]
-pub const fn supports_disabling(dev: &Phone) -> bool {
- // >= Marshmallow (6.0)
- dev.android_sdk >= 23
-}
-
-/// Check if it might support multi-user mode,
-/// by simply comparing SDK version.
-/// `true` isn't reliable, you can only trust `false`.
-///
-/// See:
-/// -
-/// -
-#[must_use]
-pub const fn supports_multi_user(dev: &Phone) -> bool {
- // >= Lollipop (5.0)
- dev.android_sdk >= 21
-}
-
-/// Check if a `user_id` is protected on a device by trying
-/// to list associated packages.
-///
-/// If `device_serial` is empty, it lets ADB choose the default device.
-pub fn is_protected_user>(user_id: u16, device_serial: S) -> bool {
- AdbCommand::new()
- .shell(device_serial)
- .pm()
- .list_packages_sys(None, Some(user_id))
- .is_err()
-}
-
-#[must_use]
-pub fn list_users_idx_prot(device_serial: &str) -> Vec {
- AdbCommand::new()
- .shell(device_serial)
- .pm()
- .list_users()
- .map(|out| {
- out.into_iter()
- .enumerate()
- .map(|(i, user)| {
- let id = user.get_id();
- User {
- id,
- index: i,
- protected: is_protected_user(id, device_serial),
- }
- })
- .collect()
- })
- .unwrap_or_default()
-}
-
-/// This matches serials (`getprop ro.serialno`)
-/// that are authorized by the user.
-#[must_use]
-pub fn get_devices_list() -> Vec {
- retry(
- Fixed::from_millis(500).take(if cfg!(debug_assertions) { 3 } else { 10 }),
- || match AdbCommand::new().devices() {
- Ok(devices) => {
- let mut device_list: Vec = vec![];
- if devices.iter().all(|(_, stat)| stat != "device") {
- return OperationResult::Retry(vec![]);
- }
- for device in devices {
- let serial = &device.0;
- device_list.push(Phone {
- model: format!("{} {}", get_device_brand(serial), get_device_model(serial)),
- android_sdk: get_android_sdk(serial),
- user_list: list_users_idx_prot(serial),
- adb_id: serial.clone(),
- });
- }
- OperationResult::Ok(device_list)
- }
- Err(err) => {
- error!("get_devices_list() -> {err}");
- let test: Vec = vec![];
- OperationResult::Retry(test)
- }
- },
- )
- .unwrap_or_default()
-}
-
-#[must_use]
-pub fn initial_load() -> bool {
- match AdbCommand::new().devices() {
- Ok(_devices) => true,
- Err(_err) => false,
- }
-}
-
-/// Get the current state of a package on a device
-#[must_use]
-pub fn get_package_state(
- device_serial: &str,
- package_name: &str,
- user_id: Option,
-) -> Option {
- use crate::adb::{ACommand as AdbCommand, PmListPacksFlag};
-
- // Check if package is enabled
- if let Ok(enabled_packages) = AdbCommand::new()
- .shell(device_serial)
- .pm()
- .list_packages_sys(Some(PmListPacksFlag::OnlyEnabled), user_id)
- && enabled_packages.contains(&package_name.to_string())
- {
- return Some(PackageState::Enabled);
- }
-
- // Check if package is disabled
- if let Ok(disabled_packages) = AdbCommand::new()
- .shell(device_serial)
- .pm()
- .list_packages_sys(Some(PmListPacksFlag::OnlyDisabled), user_id)
- && disabled_packages.contains(&package_name.to_string())
- {
- return Some(PackageState::Disabled);
- }
-
- // Check if package exists at all (including uninstalled)
- if let Ok(all_packages) = AdbCommand::new()
- .shell(device_serial)
- .pm()
- .list_packages_sys(Some(PmListPacksFlag::IncludeUninstalled), user_id)
- && all_packages.contains(&package_name.to_string())
- {
- return Some(PackageState::Uninstalled);
- }
-
- // Package not found at all - it doesn't exist on this device/user
- None
-}
-
-/// Verify the current state of a package on a device.
-/// Returns the package state, or `None` if the package doesn't exist.
-#[must_use]
-pub fn verify_package_state(
- package_name: &str,
- device_serial: &str,
- user_id: Option,
-) -> Option {
- get_package_state(device_serial, package_name, user_id)
-}
-
-/// Check if a package exists on any other users besides the target user.
-/// This helps detect OEM-specific cross-user restoration behavior.
-///
-/// Only includes users where the package exists in a non-uninstalled state
-/// (i.e., Enabled or Disabled).
-#[must_use]
-pub fn check_cross_user_package_existence(
- package_name: &str,
- device_serial: &str,
- target_user_id: u16,
- phone: &Phone,
-) -> Vec<(u16, PackageState)> {
- let mut other_user_states = Vec::new();
-
- for user in &phone.user_list {
- if user.id != target_user_id
- && !user.protected
- && let Some(state) = verify_package_state(package_name, device_serial, Some(user.id))
- && state != PackageState::Uninstalled
- {
- other_user_states.push((user.id, state));
- }
- }
-
- other_user_states
-}
-
-/// Creates a `CorePackage` with the specified state, preserving other fields from the original.
-fn package_with_state(package: &CorePackage, state: PackageState) -> CorePackage {
- CorePackage {
- state,
- ..package.clone()
- }
-}
-
-/// Executes the first available command and returns the result.
-fn execute_first_command(commands: &[String], phone: &Phone) -> Result<(), String> {
- if commands.is_empty() {
- return Err("No command available".to_string());
- }
- AdbCommand::new()
- .shell(&phone.adb_id)
- .raw(&commands[0])
- .map(|_| ())
- .map_err(|err| err.clone())
-}
-
-/// Attempt fallback action when package state verification fails
-pub fn attempt_fallback(
- package: &CorePackage,
- wanted_state: PackageState,
- actual_state: PackageState,
- user: User,
- phone: &Phone,
-) -> Result {
- match (wanted_state, actual_state) {
- // Case 1: Tried to uninstall but package was reinstalled -> disable it
- (PackageState::Uninstalled, PackageState::Enabled) => {
- let pkg = package_with_state(package, PackageState::Enabled);
- let commands = apply_pkg_state_commands(&pkg, PackageState::Disabled, user, phone);
- execute_first_command(&commands, phone)
- .map(|()| "disabled package instead of uninstalling".to_string())
- .map_err(|e| format!("Failed to disable package: {e}"))
- }
-
- // Case 2: Tried to disable but package re-enabled itself -> try uninstall
- (PackageState::Disabled, PackageState::Enabled) => {
- let pkg = package_with_state(package, PackageState::Enabled);
- let commands = apply_pkg_state_commands(&pkg, PackageState::Uninstalled, user, phone);
- execute_first_command(&commands, phone)
- .map_err(|e| format!("Failed to uninstall: {e}"))?;
-
- // Verify the package was actually uninstalled
- match verify_package_state(&package.name, &phone.adb_id, Some(user.id)) {
- Some(PackageState::Uninstalled) | None => {
- Ok("uninstalled package instead of disabling".to_string())
- }
- _ => Err("Package still exists after uninstall attempt".to_string()),
- }
- }
-
- // Case 3: Tried to enable but package was disabled -> try uninstall then reinstall
- (PackageState::Enabled, PackageState::Disabled) => {
- let pkg = package_with_state(package, PackageState::Disabled);
- let uninstall_cmds =
- apply_pkg_state_commands(&pkg, PackageState::Uninstalled, user, phone);
- execute_first_command(&uninstall_cmds, phone)
- .map_err(|e| format!("Failed to uninstall for reinstall: {e}"))?;
-
- // Now try to reinstall/enable
- let pkg_uninstalled = package_with_state(package, PackageState::Uninstalled);
- let enable_cmds =
- apply_pkg_state_commands(&pkg_uninstalled, PackageState::Enabled, user, phone);
-
- if enable_cmds.is_empty() {
- return Ok("uninstalled package but couldn't reinstall".to_string());
- }
-
- execute_first_command(&enable_cmds, phone)
- .map(|()| "uninstalled and reinstalled package to enable it".to_string())
- .map_err(|e| format!("Failed to reinstall package: {e}"))
- }
-
- // Other cases - no fallback available
- _ => Err(format!(
- "No fallback available for wanted state {wanted_state:?} and actual state {actual_state:?}"
- )),
- }
-}
diff --git a/crates/uad-core/src/utils.rs b/crates/uad-core/src/utils.rs
deleted file mode 100644
index 3569162..0000000
--- a/crates/uad-core/src/utils.rs
+++ /dev/null
@@ -1,299 +0,0 @@
-#![warn(clippy::unwrap_used)]
-
-use crate::{
- adb::{ACommand as AdbCommand, PmListPacksFlag},
- sync::{CorePackage, User},
- uad_lists::{PackageHashMap, PackageState, Removal, UadList},
-};
-use chrono::{DateTime, offset::Utc};
-use csv::Writer;
-use log::error;
-use std::{
- collections::HashSet,
- fmt, fs,
- path::{Path, PathBuf},
-};
-
-/// Canonical shortened name of the application
-pub const NAME: &str = "UAD-ng";
-/// Full name of the application
-pub const FULL_NAME: &str = "Universal Android Debloater Next Generation";
-pub const EXPORT_FILE_NAME: &str = "selection_export.txt";
-
-/// Returns `true` if `c` matches the regex `\w`
-#[inline]
-#[must_use]
-pub const fn is_w(c: u8) -> bool {
- // https://github.com/rust-lang/rust/issues/93279
- // https://github.com/rust-lang/rust/issues/83623
- (c == b'_') | c.is_ascii_alphanumeric()
-}
-
-/// Returns `true` if `s` matches the regex `^\w+$`
-#[must_use]
-pub const fn is_all_w_c(s: &[u8]) -> bool {
- let mut i = 0;
- while i < s.len() {
- if !is_w(s[i]) {
- return false;
- }
- i += 1;
- }
- true
-}
-
-// Takes a time-stamp parameter,
-// for purity and testability.
-//
-// The TZ is generic, because testing requires UTC,
-// while users get the local-aware version.
-#[expect(
- clippy::needless_pass_by_value,
- reason = "Timestamps should be fresh, no need to borrow"
-)]
-#[must_use]
-pub fn generate_backup_name(t: DateTime) -> String
-where
- T: chrono::TimeZone,
- T::Offset: std::fmt::Display,
-{
- t.format("uninstalled_packages_%Y%m%d.csv").to_string()
-}
-
-#[derive(Debug, Clone, Copy)]
-pub enum Error {
- DialogClosed,
-}
-
-#[must_use]
-pub fn fetch_packages(
- uad_lists: &PackageHashMap,
- device_serial: &str,
- user_id: Option,
-) -> Vec {
- let all_sys_packs = AdbCommand::new()
- .shell(device_serial)
- .pm()
- .list_packages_sys(Some(PmListPacksFlag::IncludeUninstalled), user_id)
- .unwrap_or_default();
- let enabled_sys_packs: HashSet = AdbCommand::new()
- .shell(device_serial)
- .pm()
- .list_packages_sys(Some(PmListPacksFlag::OnlyEnabled), user_id)
- .unwrap_or_default()
- .into_iter()
- .collect();
- let disabled_sys_packs: HashSet = AdbCommand::new()
- .shell(device_serial)
- .pm()
- .list_packages_sys(Some(PmListPacksFlag::OnlyDisabled), user_id)
- .unwrap_or_default()
- .into_iter()
- .collect();
-
- let mut description;
- let mut removal;
- let mut state;
- let mut list;
- let mut user_package: Vec = Vec::new();
-
- for pack_name in all_sys_packs {
- let p_name = &pack_name;
- description = String::from("[No description]: CONTRIBUTION WELCOMED");
- removal = Removal::Unlisted;
- state = PackageState::Uninstalled;
- list = UadList::Unlisted;
-
- if let Some(package) = uad_lists.get(p_name) {
- if !package.description.is_empty() {
- description = package.description.clone();
- }
- removal = package.removal;
- list = package.list;
- }
-
- if enabled_sys_packs.contains(p_name) {
- state = PackageState::Enabled;
- } else if disabled_sys_packs.contains(p_name) {
- state = PackageState::Disabled;
- }
-
- let package = CorePackage {
- name: p_name.clone(),
- description,
- removal,
- state,
- list,
- };
- user_package.push(package);
- }
- user_package.sort_by_key(|package| package.name.to_lowercase());
- user_package
-}
-
-#[must_use]
-pub fn setup_uad_dir(dir: &Path) -> PathBuf {
- let dir = dir.join("uad");
- if let Err(e) = fs::create_dir_all(&dir) {
- error!("Can't create directory: {}", dir.display());
- panic!("{e}");
- }
- dir
-}
-
-/// Open a directory or file with the system's default file manager.
-pub fn open_url(dir: PathBuf) {
- const OPENER: &str = match std::env::consts::OS.as_bytes() {
- b"windows" => "explorer",
- b"macos" => "open",
- // "linux"
- _ => "xdg-open",
- };
- match std::process::Command::new(OPENER).arg(dir).output() {
- Ok(o) => {
- if !o.status.success() {
- // Use lossy conversion for stderr - some systems (like Windows)
- // may output non-UTF8 characters in error messages
- let stderr = String::from_utf8_lossy(&o.stderr);
- let stderr_trimmed = stderr.trim_end();
- if stderr_trimmed.is_empty() {
- error!("Can't open URL: command failed with no error message");
- } else {
- error!("Can't open the following URL: {stderr_trimmed}");
- }
- }
- }
- Err(e) => error!("Failed to run command to open the file explorer: {e}"),
- }
-}
-
-#[rustfmt::skip]
-#[must_use]
-pub fn last_modified_date(file: PathBuf) -> DateTime {
- fs::metadata(file).map_or_else(|_| Utc::now(), |metadata| match metadata.modified() {
- Ok(time) => time.into(),
- Err(_) => Utc::now(),
- })
-}
-
-#[must_use]
-pub fn format_diff_time_from_now(date: DateTime) -> String {
- let now: DateTime = Utc::now();
- let last_update = now - date;
- if last_update.num_days() == 0 {
- if last_update.num_hours() == 0 {
- last_update.num_minutes().to_string() + " min(s) ago"
- } else {
- last_update.num_hours().to_string() + " hour(s) ago"
- }
- } else {
- last_update.num_days().to_string() + " day(s) ago"
- }
-}
-
-/// Export selected package names.
-/// File will be saved in same directory where UAD-ng is located.
-pub fn export_selection(package_names: &[String]) -> Result {
- let selected = package_names.join("\n");
-
- match fs::write(EXPORT_FILE_NAME, selected) {
- Ok(()) => Ok(true),
- Err(err) => Err(err.to_string()),
- }
-}
-
-#[derive(Debug, Clone, PartialEq, Eq)]
-pub struct DisplayablePath {
- pub path: PathBuf,
-}
-
-impl fmt::Display for DisplayablePath {
- fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- let stem = self.path.file_stem().map_or_else(
- || {
- error!("[PATH STEM]: No file stem found");
- "[File steam not found]".to_string()
- },
- |p| {
- if let Ok(stem) = p.to_os_string().into_string() {
- stem
- } else {
- error!("[PATH ENCODING]: {}", self.path.display());
- "[PATH ENCODING ERROR]".to_string()
- }
- },
- );
-
- write!(f, "{stem}")
- }
-}
-
-/// Export uninstalled packages in a csv file.
-/// Exported information will contain package name and description.
-pub fn export_packages(user: User, phone_packages: &[Vec]) -> Result {
- let backup_file = generate_backup_name(chrono::Local::now());
-
- let file = fs::File::create(backup_file).map_err(|err| err.to_string())?;
- let mut wtr = Writer::from_writer(file);
-
- wtr.write_record(["Package Name", "Description"])
- .map_err(|err| err.to_string())?;
-
- let uninstalled_packages: Vec<&CorePackage> = phone_packages[user.index]
- .iter()
- .filter(|p| p.state == PackageState::Uninstalled)
- .collect();
-
- for package in uninstalled_packages {
- wtr.write_record([&package.name, &package.description.replace('\n', " ")])
- .map_err(|err| err.to_string())?;
- }
-
- wtr.flush().map_err(|err| err.to_string())?;
-
- Ok(true)
-}
-
-/// Truncate description to fit within max length, taking only the first line
-#[must_use]
-pub fn truncate_description(desc: &str, max_len: usize) -> String {
- let first_line = desc.split('\n').next().unwrap_or("").trim_end();
-
- if first_line.len() <= max_len {
- first_line.to_string()
- } else {
- format!("{}...", &first_line[..max_len.saturating_sub(3)])
- }
-}
-
-/// Check if package matches search term (checks name and description)
-#[must_use]
-pub fn matches_search(pkg_name: &str, search_term: &str, pkg_description: Option<&str>) -> bool {
- let search_lower = search_term.to_lowercase();
-
- if pkg_name.to_lowercase().contains(&search_lower) {
- return true;
- }
-
- if let Some(description) = pkg_description {
- if description.to_lowercase().contains(&search_lower) {
- return true;
- }
- }
-
- false
-}
-
-#[cfg(test)]
-mod tests {
- use super::*;
- use chrono::TimeZone;
-
- #[test]
- fn backup_name() {
- assert_eq!(
- generate_backup_name(chrono::Utc.timestamp_millis_opt(0).unwrap()),
- "uninstalled_packages_19700101.csv".to_string()
- );
- }
-}
diff --git a/crates/uad-gui/Cargo.toml b/crates/uad-gui/Cargo.toml
deleted file mode 100644
index 4a50636..0000000
--- a/crates/uad-gui/Cargo.toml
+++ /dev/null
@@ -1,62 +0,0 @@
-[package]
-name = "uad-gui"
-version.workspace = true
-authors.workspace = true
-license.workspace = true
-homepage.workspace = true
-repository.workspace = true
-readme.workspace = true
-keywords.workspace = true
-categories = ["gui"]
-edition.workspace = true
-
-[[bin]]
-name = "uad-ng"
-path = "src/main.rs"
-
-[features]
-default = ["wgpu", "self-update", "img"]
-wgpu = [] # Iced/wgpu is default
-self-update = ["flate2", "tar"]
-no-self-update = []
-img = ["image", "iced/image"]
-
-[dependencies]
-uad-core = { path = "../uad-core", features = ["self-update"] }
-iced.workspace = true
-image = { workspace = true, optional = true }
-rfd.workspace = true
-dark-light.workspace = true
-fern.workspace = true
-chrono.workspace = true
-dirs.workspace = true
-log.workspace = true
-flate2 = { workspace = true, optional = true }
-tar = { workspace = true, optional = true }
-
-[target.'cfg(target_os = "windows")'.dependencies]
-win32console.workspace = true
-
-[build-dependencies]
-embed-resource = "3"
-
-[lints.rust]
-deprecated_safe = "warn"
-
-[lints.clippy]
-undocumented_unsafe_blocks = "forbid"
-exit = "deny"
-panic_in_result_fn = "warn"
-infinite_loop = "warn"
-mem_forget = "warn"
-implicit_clone = "warn"
-format_push_string = "warn"
-large_include_file = "warn"
-shadow_unrelated = "warn"
-struct_field_names = "allow" # annoying
-
-disallowed_types = "deny"
-disallowed_methods = "deny"
-
-allow_attributes_without_reason = "warn"
-pedantic = { level = "warn", priority = -1 }
diff --git a/crates/uad-gui/src/gui.rs b/crates/uad-gui/src/gui.rs
deleted file mode 100644
index 925aedf..0000000
--- a/crates/uad-gui/src/gui.rs
+++ /dev/null
@@ -1,475 +0,0 @@
-#[cfg(feature = "img")]
-use crate::theme::OS_COLOR_SCHEME;
-use crate::theme::Theme;
-use crate::theme::string_to_theme;
-use crate::views::about::{About as AboutView, Message as AboutMessage};
-use crate::views::list::{
- List as AppsView, LoadingState as ListLoadingState, Message as AppsMessage,
-};
-use crate::views::settings::{Message as SettingsMessage, Settings as SettingsView};
-use crate::widgets::navigation_menu::nav_menu;
-use iced::font;
-use iced::widget::column;
-#[cfg(feature = "img")]
-use iced::window::icon;
-use iced::{Alignment, Element, Length, Settings, Task, window::Settings as Window};
-use iced::{Subscription, event, keyboard};
-#[cfg(feature = "img")]
-use image::ImageFormat;
-use log::{debug, error, info};
-#[cfg(feature = "self-update")]
-use std::path::PathBuf;
-use uad_core::adb;
-use uad_core::sync::{Phone, get_devices_list, initial_load};
-use uad_core::uad_lists::UadListState;
-use uad_core::update::{Release, SelfUpdateState, SelfUpdateStatus, get_latest_release};
-use uad_core::utils::{FULL_NAME, NAME};
-
-#[cfg(feature = "self-update")]
-use uad_core::update::{BIN_NAME, download_update_to_temp_file, remove_file};
-
-#[derive(Default, Debug, Clone)]
-enum View {
- #[default]
- List,
- About,
- Settings,
-}
-
-#[derive(Default, Clone)]
-pub struct UpdateState {
- pub self_update: SelfUpdateState,
- pub uad_list: UadListState,
-}
-
-#[derive(Default)]
-pub struct UadGui {
- view: View,
- apps_view: AppsView,
- about_view: AboutView,
- settings_view: SettingsView,
- devices_list: Vec,
- /// index of `devices_list`
- selected_device: Option,
- update_state: UpdateState,
- nb_running_async_adb_commands: u32,
- adb_satisfied: bool,
-}
-
-#[derive(Debug, Clone)]
-pub enum Message {
- /// Navigation Panel
- AboutPressed,
- SettingsPressed,
- AppsPress,
- DeviceSelected(Phone),
- AboutAction(AboutMessage),
- AppsAction(AppsMessage),
- SettingsAction(SettingsMessage),
- RefreshButtonPressed,
- RebootButtonPressed,
- LoadDevices(Vec),
- #[cfg(feature = "self-update")]
- _NewReleaseDownloaded(Result<(PathBuf, PathBuf), ()>),
- GetLatestRelease(Result, ()>),
- FontLoaded(Result<(), iced::font::Error>),
- Nothing,
- ADBSatisfied(bool),
-}
-
-impl UadGui {
- #[allow(
- clippy::unused_self,
- reason = "required by iced's Application trait interface"
- )]
- fn title(&self) -> String {
- self.selected_device.as_ref().map_or_else(
- || FULL_NAME.to_string(),
- |device| format!("{FULL_NAME} - {}", device.model),
- )
- }
-
- fn new() -> (Self, Task) {
- (
- Self::default(),
- Task::batch([
- // Used in crate::widgets::navigation_menu::ICONS. Name is `icomoon`.
- font::load(include_bytes!("../../../resources/assets/icons.ttf").as_slice())
- .map(Message::FontLoaded),
- Task::perform(async { initial_load() }, Message::ADBSatisfied),
- Task::perform(async { get_devices_list() }, Message::LoadDevices),
- Task::perform(
- async move { get_latest_release() },
- Message::GetLatestRelease,
- ),
- ]),
- )
- }
-
- #[allow(
- clippy::unused_self,
- reason = "required by iced's Application trait interface"
- )]
- fn subscription(&self) -> Subscription {
- if self.selected_device.is_some() {
- event::listen_with(Self::keyboard_shortcuts_with_device)
- } else {
- event::listen_with(Self::keyboard_shortcuts_without_device)
- }
- }
-
- fn keyboard_shortcuts_with_device(
- event: iced::Event,
- _status: iced::event::Status,
- _window: iced::window::Id,
- ) -> Option {
- Self::keyboard_shortcuts(event, true)
- }
-
- fn keyboard_shortcuts_without_device(
- event: iced::Event,
- _status: iced::event::Status,
- _window: iced::window::Id,
- ) -> Option {
- Self::keyboard_shortcuts(event, false)
- }
-
- fn keyboard_shortcuts(event: iced::Event, can_control_device: bool) -> Option {
- match event {
- iced::Event::Keyboard(keyboard::Event::KeyPressed {
- key: keyboard::Key::Character(c),
- modifiers,
- ..
- }) if modifiers.control() && modifiers.shift() => match c.as_str() {
- "r" if can_control_device => Some(Message::RebootButtonPressed),
- "5" if can_control_device => Some(Message::RefreshButtonPressed),
- "a" => Some(Message::AppsPress),
- "i" => Some(Message::AboutPressed),
- "s" => Some(Message::SettingsPressed),
- _ => None,
- },
- _ => None,
- }
- }
-
- #[allow(
- clippy::too_many_lines,
- reason = "Root GUI update orchestrates many flows"
- )]
- fn update(&mut self, msg: Message) -> Task {
- match msg {
- Message::LoadDevices(devices_list) => {
- self.selected_device = match &self.selected_device {
- Some(s_device) => {
- // Try to reload last selected phone
- devices_list
- .iter()
- .find(|phone| phone.adb_id == s_device.adb_id)
- .cloned()
- }
- None => devices_list.first().cloned(),
- };
- self.devices_list = devices_list;
-
- #[expect(unused_must_use, reason = "side-effect")]
- {
- self.update(Message::SettingsAction(SettingsMessage::LoadDeviceSettings));
- }
-
- self.update(Message::AppsAction(AppsMessage::LoadUadList(true)))
- }
- Message::AppsPress => {
- self.view = View::List;
- Task::none()
- }
- Message::AboutPressed => {
- self.view = View::About;
- self.update_state.self_update = SelfUpdateState::default();
- Task::perform(
- async move { get_latest_release() },
- Message::GetLatestRelease,
- )
- }
- Message::SettingsPressed => {
- self.view = View::Settings;
- Task::none()
- }
- Message::RefreshButtonPressed => {
- self.apps_view = AppsView::default();
- #[expect(unused_must_use, reason = "side-effect")]
- {
- self.update(Message::AppsAction(AppsMessage::ADBSatisfied(
- self.adb_satisfied,
- )));
- }
- Task::perform(async { get_devices_list() }, Message::LoadDevices)
- }
- Message::RebootButtonPressed => {
- self.apps_view = AppsView::default();
- let serial = match &self.selected_device {
- Some(d) => d.adb_id.clone(),
- _ => String::default(),
- };
- self.selected_device = None;
- self.devices_list = vec![];
- Task::perform(
- async { adb::ACommand::new().shell(serial).reboot() },
- |_| Message::Nothing,
- )
- }
- Message::AppsAction(msg) => self
- .apps_view
- .update(
- &mut self.settings_view,
- &mut self.selected_device.clone().unwrap_or_default(),
- &mut self.update_state.uad_list,
- msg,
- )
- .map(Message::AppsAction),
- Message::SettingsAction(msg) => {
- match msg {
- SettingsMessage::RestoringDevice(ref output) => {
- self.nb_running_async_adb_commands -= 1;
- self.view = View::List;
-
- #[expect(unused_must_use, reason = "side-effect")]
- {
- self.apps_view.update(
- &mut self.settings_view,
- &mut self.selected_device.clone().unwrap_or_default(),
- &mut self.update_state.uad_list,
- AppsMessage::RestoringDevice(output.clone()),
- );
- }
- if self.nb_running_async_adb_commands == 0 {
- return self.update(Message::RefreshButtonPressed);
- }
- }
- SettingsMessage::MultiUserMode(toggled) if toggled => {
- for user in self.apps_view.phone_packages.clone() {
- for (i, _) in user.iter().filter(|&pkg| pkg.selected).enumerate() {
- for u in self
- .selected_device
- .as_ref()
- .expect("Device should be selected")
- .user_list
- .iter()
- .filter(|&u| !u.protected)
- {
- self.apps_view.phone_packages[u.index][i].selected = true;
- }
- }
- }
- }
- _ => (),
- }
- self.settings_view
- .update(
- &self.selected_device.clone().unwrap_or_default(),
- &self.apps_view.phone_packages,
- &mut self.nb_running_async_adb_commands,
- msg,
- self.apps_view.selected_user,
- )
- .map(Message::SettingsAction)
- }
- Message::AboutAction(msg) => {
- self.about_view.update(msg.clone());
-
- match msg {
- AboutMessage::UpdateUadLists => {
- self.update_state.uad_list = UadListState::Downloading;
- self.apps_view.loading_state = ListLoadingState::DownloadingList;
- self.update(Message::AppsAction(AppsMessage::LoadUadList(true)))
- }
- AboutMessage::DoSelfUpdate => {
- #[cfg(feature = "self-update")]
- if let Some(release) = self.update_state.self_update.latest_release.as_ref()
- {
- self.update_state.self_update.status = SelfUpdateStatus::Updating;
- self.apps_view.loading_state = ListLoadingState::_UpdatingUad;
- Task::perform(
- download_update_to_temp_file(BIN_NAME, release.clone()),
- Message::_NewReleaseDownloaded,
- )
- } else {
- Task::none()
- }
- #[cfg(not(feature = "self-update"))]
- Task::none()
- }
- AboutMessage::UrlPressed(_) => Task::none(),
- }
- }
- Message::DeviceSelected(s_device) => {
- self.selected_device = Some(s_device.clone());
- self.view = View::List;
- info!("{:-^65}", "-");
- info!(
- "ANDROID_SDK: {} | DEVICE: {}",
- s_device.android_sdk, s_device.model
- );
- info!("{:-^65}", "-");
- self.apps_view.loading_state = ListLoadingState::FindingPhones;
-
- #[expect(unused_must_use, reason = "side-effects")]
- {
- self.update(Message::SettingsAction(SettingsMessage::LoadDeviceSettings));
- self.update(Message::AppsAction(AppsMessage::ToggleAllSelected(false)));
- self.update(Message::AppsAction(AppsMessage::ClearSelectedPackages));
- }
- self.update(Message::AppsAction(AppsMessage::LoadPhonePackages((
- self.apps_view.uad_lists.clone(),
- UadListState::Done,
- ))))
- }
- #[cfg(feature = "self-update")]
- Message::_NewReleaseDownloaded(res) => {
- debug!("{NAME} update has been downloaded!");
-
- if let Ok((relaunch_path, cleanup_path)) = res {
- let mut args: Vec<_> = std::env::args().skip(1).collect();
-
- // Remove the `--self-update-temp` arg from args if it exists,
- // since we need to pass it cleanly. Otherwise new process will
- // fail during arg parsing.
- if let Some(idx) = args.iter().position(|a| a == "--self-update-temp") {
- args.remove(idx);
- // Remove path passed after this arg
- args.remove(idx);
- }
-
- match std::process::Command::new(relaunch_path)
- .args(args)
- .arg("--self-update-temp")
- .arg(&cleanup_path)
- .spawn()
- {
- Ok(_) => {
- if let Err(e) = remove_file(cleanup_path) {
- error!("Could not remove temp update file: {e}");
- }
- std::process::exit(0)
- }
- Err(error) => {
- if let Err(e) = remove_file(cleanup_path) {
- error!("Could not remove temp update file: {e}");
- }
- error!("Failed to update {NAME}: {error}");
- }
- }
- } else {
- error!("Failed to update {NAME}!");
- #[expect(unused_must_use, reason = "side-effect")]
- {
- self.update(Message::AppsAction(AppsMessage::UpdateFailed));
- self.update_state.self_update.status = SelfUpdateStatus::Failed;
- }
- }
- Task::none()
- }
- Message::GetLatestRelease(release) => {
- match release {
- Ok(r) => {
- self.update_state.self_update.status = SelfUpdateStatus::Done;
- self.update_state.self_update.latest_release = r;
- }
- Err(()) => self.update_state.self_update.status = SelfUpdateStatus::Failed,
- }
- Task::none()
- }
- Message::FontLoaded(result) => {
- if let Err(error) = result {
- error!("Couldn't load font: {error:?}");
- }
-
- Task::none()
- }
- Message::ADBSatisfied(result) => {
- self.adb_satisfied = result;
- self.update(Message::AppsAction(AppsMessage::ADBSatisfied(
- self.adb_satisfied,
- )))
- }
- Message::Nothing => Task::none(),
- }
- }
-
- fn view(&self) -> Element<'_, Message, Theme> {
- let navigation_container = nav_menu(
- &self.devices_list,
- self.selected_device.clone(),
- &self.apps_view,
- &self.update_state.self_update,
- );
-
- let selected_device = self.selected_device.clone().unwrap_or_default();
- let main_container = match self.view {
- View::List => self
- .apps_view
- .view(&self.settings_view, &selected_device)
- .map(Message::AppsAction),
- View::About => self
- .about_view
- .view(&self.update_state)
- .map(Message::AboutAction),
- View::Settings => self
- .settings_view
- .view(&selected_device, &self.apps_view)
- .map(Message::SettingsAction),
- };
-
- column![navigation_container, main_container]
- .width(Length::Fill)
- .align_x(Alignment::Center)
- .into()
- }
-
- fn theme(&self) -> Theme {
- string_to_theme(&self.settings_view.general.theme)
- }
-}
-
-impl UadGui {
- pub fn start() -> iced::Result {
- #[cfg(feature = "img")]
- let logo: &[u8] = match *OS_COLOR_SCHEME {
- // remember to keep `Unspecified` in sync with `src/theme`
- dark_light::Mode::Dark | dark_light::Mode::Unspecified => {
- include_bytes!("../../../resources/assets/logo-dark.png")
- }
- dark_light::Mode::Light => {
- include_bytes!("../../../resources/assets/logo-light.png")
- }
- };
-
- iced::application(UadGui::new, UadGui::update, UadGui::view)
- .title(UadGui::title)
- .theme(UadGui::theme)
- .subscription(UadGui::subscription)
- .settings(Settings {
- id: Some(String::from(NAME)),
- default_text_size: iced::Pixels(16.0),
- // HACK: avoid glyph clipping on some systems. Details:
- // https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/pull/1337
- #[cfg(target_os = "linux")]
- default_font: iced::Font {
- family: iced::font::Family::Name("Adwaita Sans"),
- ..Default::default()
- },
- ..Settings::default()
- })
- .window(Window {
- size: iced::Size {
- width: 950.0,
- height: 700.0,
- },
- resizable: true,
- decorations: true,
- #[cfg(feature = "img")]
- icon: icon::from_file_data(logo, Some(ImageFormat::Png)).ok(),
- ..iced::window::Settings::default()
- })
- .run()
- }
-}
diff --git a/crates/uad-gui/src/helpers.rs b/crates/uad-gui/src/helpers.rs
deleted file mode 100644
index 25c06f1..0000000
--- a/crates/uad-gui/src/helpers.rs
+++ /dev/null
@@ -1,23 +0,0 @@
-use crate::style;
-use crate::theme::Theme;
-use iced::Element;
-use iced::widget::button::Button;
-
-/// Wrapper function for `iced::widget::button` with padding and style applied
-pub fn button_primary<'a, Message>(
- content: impl Into>,
-) -> Button<'a, Message, Theme> {
- iced::widget::button(content)
- .padding([5, 10])
- .style(style::Button::Primary)
-}
-
-/// Opens a file picker dialog to select a folder
-pub async fn open_folder() -> Result {
- rfd::AsyncFileDialog::new()
- .set_title("Choose a backup location")
- .pick_folder()
- .await
- .ok_or(uad_core::utils::Error::DialogClosed)
- .map(|f| f.path().to_path_buf())
-}
diff --git a/crates/uad-gui/src/lib.rs b/crates/uad-gui/src/lib.rs
deleted file mode 100644
index ede5da8..0000000
--- a/crates/uad-gui/src/lib.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-#![allow(
- clippy::missing_errors_doc,
- reason = "Short-circuit doc lint to keep CI green"
-)]
-
-pub mod gui;
-pub mod helpers;
-pub mod style;
-pub mod theme;
-pub mod views;
-pub mod widgets;
diff --git a/crates/uad-gui/src/main.rs b/crates/uad-gui/src/main.rs
deleted file mode 100644
index 07608a5..0000000
--- a/crates/uad-gui/src/main.rs
+++ /dev/null
@@ -1,112 +0,0 @@
-#![windows_subsystem = "windows"]
-
-use fern::{
- FormatCallback,
- colors::{Color, ColoredLevelConfig},
-};
-use log::Record;
-use std::sync::LazyLock;
-use std::{fmt::Arguments, fs::OpenOptions, path::PathBuf};
-use uad_core::utils::setup_uad_dir;
-
-use uad_gui::gui::UadGui;
-
-static CACHE_DIR: LazyLock =
- LazyLock::new(|| setup_uad_dir(&dirs::cache_dir().expect("Can't detect cache dir")));
-
-fn main() -> iced::Result {
- // Safety: This function is safe to call in a single-threaded program.
- // The exact requirement is: you must ensure that there are no other threads concurrently writing or
- // reading(!) the environment through functions or global variables other than the ones in this module.
- unsafe {
- // Force WGPU/Iced to use discrete GPU to prevent crashes on PCs with two GPUs.
- // See #848 and related pull 850.
- std::env::set_var("WGPU_POWER_PREF", "high");
- }
-
- setup_logger().expect("setup logging");
- UadGui::start()
-}
-
-/// Sets up logging to a new file in `CACHE_DIR"/uadng.log"`
-/// Also attaches the terminal on Windows machines
-/// '''
-/// match `setup_logger().expect("Error` setting up logger")
-/// '''
-fn setup_logger() -> Result<(), fern::InitError> {
- #[cfg(target_os = "windows")]
- {
- attach_windows_console();
- }
-
- let colors = ColoredLevelConfig::new().info(Color::Green);
-
- let make_formatter = |use_colors: bool| {
- move |out: FormatCallback, message: &Arguments, record: &Record| {
- out.finish(format_args!(
- "{} {} [{}:{}] {}",
- chrono::Local::now().format("%Y-%m-%d %H:%M:%S"),
- if use_colors {
- format!("{:5}", colors.color(record.level()))
- } else {
- format!("{:5}", record.level().to_string())
- },
- record.file().unwrap_or("?"),
- record.line().map(|l| l.to_string()).unwrap_or_default(),
- message
- ));
- }
- };
-
- let default_log_level = log::LevelFilter::Warn;
- let log_file = OpenOptions::new()
- .create(true)
- .append(true)
- .truncate(false)
- .open(CACHE_DIR.join("uadng.log"))?;
-
- let file_dispatcher = fern::Dispatch::new()
- .format(make_formatter(false))
- .level(default_log_level)
- // Rust compiler makes module names use _ instead of -
- .level_for("uad_gui", log::LevelFilter::Debug)
- .chain(log_file);
-
- let stdout_dispatcher = fern::Dispatch::new()
- .format(make_formatter(true))
- .level(default_log_level)
- // Rust compiler makes module names use _ instead of -
- .level_for("uad_gui", log::LevelFilter::Warn)
- .chain(std::io::stdout());
-
- fern::Dispatch::new()
- .chain(stdout_dispatcher)
- .chain(file_dispatcher)
- .apply()?;
-
- Ok(())
-}
-
-/// (Windows) Allow the application to display logs to the terminal
-/// regardless if it was compiled with `windows_subsystem = "windows"`.
-///
-/// This is excluded on non-Windows targets.
-#[cfg(target_os = "windows")]
-fn attach_windows_console() {
- use win32console::console::WinConsole;
-
- const ATTACH_PARENT_PROCESS: u32 = 0xFFFFFFFF;
- let _ = WinConsole::attach_console(ATTACH_PARENT_PROCESS);
-}
-
-#[cfg(test)]
-mod tests {
- use super::*;
- #[test]
- fn init_logger() {
- match setup_logger() {
- Ok(()) => (),
- Err(error) => panic!("Error: {error}"),
- }
- }
-}
diff --git a/crates/uad-gui/src/style.rs b/crates/uad-gui/src/style.rs
deleted file mode 100644
index 9eeba68..0000000
--- a/crates/uad-gui/src/style.rs
+++ /dev/null
@@ -1,776 +0,0 @@
-#![allow(
- non_snake_case,
- clippy::trivially_copy_pass_by_ref,
- clippy::wildcard_imports,
- reason = "Iced style modules use PascalCase and &Theme; wildcard for local convenience"
-)]
-use crate::theme::{ColorPalette, Theme};
-use iced::widget::{
- button, checkbox, container, overlay, pick_list, radio, scrollable, text, text_editor,
- text_input,
-};
-use iced::{Background, Border, Color, Shadow};
-
-// Implement theming catalogs for our custom `Theme` so generic widgets
-// like `Button<'_, Message, Theme, Renderer>` compile under iced 0.13.
-
-impl button::Catalog for Theme {
- type Class<'a> = button::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme, s: button::Status| Button::Primary(t, s))
- }
-
- fn style(
- &self,
- class: &::Class<'_>,
- status: button::Status,
- ) -> button::Style {
- (class)(self, status)
- }
-}
-
-impl checkbox::Catalog for Theme {
- type Class<'a> = checkbox::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme, s: checkbox::Status| CheckBox::SettingsEnabled(t, s))
- }
-
- fn style(
- &self,
- class: &::Class<'_>,
- status: checkbox::Status,
- ) -> checkbox::Style {
- (class)(self, status)
- }
-}
-
-impl container::Catalog for Theme {
- type Class<'a> = container::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme| Container::Background(t))
- }
-
- fn style(&self, class: &::Class<'_>) -> container::Style {
- (class)(self)
- }
-}
-
-impl scrollable::Catalog for Theme {
- type Class<'a> = scrollable::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme, s: scrollable::Status| Scrollable::Description(t, s))
- }
-
- fn style(
- &self,
- class: &::Class<'_>,
- status: scrollable::Status,
- ) -> scrollable::Style {
- (class)(self, status)
- }
-}
-
-impl text::Catalog for Theme {
- type Class<'a> = text::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme| Text::Default(t))
- }
-
- fn style(&self, class: &::Class<'_>) -> text::Style {
- (class)(self)
- }
-}
-
-// Additional catalogs required by Iced 0.13 generic theming
-
-impl text_input::Catalog for Theme {
- type Class<'a> = text_input::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme, s: text_input::Status| {
- let p = t.palette();
-
- let active = text_input::Style {
- background: Background::Color(p.base.foreground),
- border: Border {
- color: p.base.foreground,
- width: 0.0,
- radius: 5.0.into(),
- },
- icon: Color {
- a: 0.5,
- ..p.normal.primary
- },
- placeholder: p.normal.surface,
- value: p.bright.primary,
- selection: p.normal.primary,
- };
-
- let focused = text_input::Style {
- background: Background::Color(p.base.foreground),
- border: Border {
- color: Color {
- a: 0.5,
- ..p.normal.primary
- },
- width: 1.0,
- radius: 2.0.into(),
- },
- icon: Color {
- a: 0.5,
- ..p.normal.primary
- },
- placeholder: p.normal.surface,
- value: p.bright.primary,
- selection: p.normal.primary,
- };
-
- let disabled = text_input::Style {
- background: Background::Color(p.base.background),
- border: Border {
- color: Color {
- a: 0.5,
- ..p.base.foreground
- },
- width: 1.0,
- radius: 2.0.into(),
- },
- icon: Color {
- a: 0.5,
- ..p.base.foreground
- },
- placeholder: p.normal.surface,
- value: p.bright.primary,
- selection: p.normal.primary,
- };
-
- match s {
- text_input::Status::Active => active,
- text_input::Status::Focused { .. } | text_input::Status::Hovered => focused,
- text_input::Status::Disabled => disabled,
- }
- })
- }
-
- fn style(
- &self,
- class: &::Class<'_>,
- status: text_input::Status,
- ) -> text_input::Style {
- (class)(self, status)
- }
-}
-
-impl pick_list::Catalog for Theme {
- type Class<'a> = pick_list::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme, s: pick_list::Status| {
- let p = t.palette();
- let border_color = match s {
- pick_list::Status::Hovered => p.normal.primary,
- _ => Color {
- a: 0.5,
- ..p.normal.primary
- },
- };
- pick_list::Style {
- text_color: p.bright.surface,
- placeholder_color: p.bright.surface,
- handle_color: p.bright.surface,
- background: Background::Color(p.base.background),
- border: Border {
- color: border_color,
- width: 1.0,
- radius: 2.0.into(),
- },
- }
- })
- }
-
- fn style(
- &self,
- class: &::Class<'_>,
- status: pick_list::Status,
- ) -> pick_list::Style {
- (class)(self, status)
- }
-}
-
-impl overlay::menu::Catalog for Theme {
- type Class<'a> = overlay::menu::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme| {
- let p = t.palette();
- overlay::menu::Style {
- text_color: p.bright.surface,
- background: p.base.background.into(),
- border: Border {
- color: p.base.background,
- width: 1.0,
- radius: 2.0.into(),
- },
- selected_text_color: p.bright.surface,
- selected_background: p.normal.primary.into(),
- shadow: Shadow::default(),
- }
- })
- }
-
- fn style(&self, class: &::Class<'_>) -> overlay::menu::Style {
- (class)(self)
- }
-}
-
-impl radio::Catalog for Theme {
- type Class<'a> = radio::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme, s: radio::Status| {
- let p = t.palette();
- let active = radio::Style {
- background: Color::TRANSPARENT.into(),
- dot_color: p.bright.primary,
- border_width: 1.0,
- border_color: p.bright.primary,
- text_color: None,
- };
-
- match s {
- radio::Status::Active { .. } => active,
- radio::Status::Hovered { .. } => radio::Style {
- border_width: 2.0,
- ..active
- },
- }
- })
- }
-
- fn style(
- &self,
- class: &::Class<'_>,
- status: radio::Status,
- ) -> radio::Style {
- (class)(self, status)
- }
-}
-
-impl text_editor::Catalog for Theme {
- type Class<'a> = text_editor::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme, _s: text_editor::Status| {
- let p = t.palette();
- text_editor::Style {
- background: Background::Color(p.base.foreground),
- border: Border {
- color: Color::TRANSPARENT,
- width: 0.0,
- radius: 0.0.into(),
- },
- placeholder: p.normal.surface,
- value: p.bright.surface,
- selection: Color {
- a: 0.3,
- ..p.normal.primary
- },
- }
- })
- }
-
- fn style(
- &self,
- class: &::Class<'_>,
- status: text_editor::Status,
- ) -> text_editor::Style {
- (class)(self, status)
- }
-}
-
-// Rule styling for custom Theme (needed by vertical_rule)
-impl iced::widget::rule::Catalog for Theme {
- type Class<'a> = iced::widget::rule::StyleFn<'a, Theme>;
-
- fn default<'a>() -> ::Class<'a> {
- Box::new(|t: &Theme| {
- let p = t.palette();
- iced::widget::rule::Style {
- color: p.bright.surface,
- radius: 2.0.into(),
- fill_mode: iced::widget::rule::FillMode::Full,
- snap: true,
- }
- })
- }
-
- fn style(
- &self,
- class: &::Class<'_>,
- ) -> iced::widget::rule::Style {
- (class)(self)
- }
-}
-
-pub mod Container {
- use super::*;
-
- #[allow(dead_code, reason = "Used by other themes or future styles")]
- #[must_use]
- pub fn Invisible(_: &Theme) -> container::Style {
- container::Style::default()
- }
-
- #[must_use]
- pub fn Frame(theme: &Theme) -> container::Style {
- let p = theme.palette();
- container::Style {
- background: Some(Background::Color(p.base.foreground)),
- text_color: Some(p.bright.surface),
- border: Border {
- color: Color::TRANSPARENT,
- width: 0.0,
- radius: 5.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- }
- }
-
- #[must_use]
- pub fn BorderedFrame(theme: &Theme) -> container::Style {
- let p = theme.palette();
- container::Style {
- background: Some(Background::Color(p.base.foreground)),
- text_color: Some(p.bright.surface),
- border: Border {
- color: p.normal.error,
- width: 1.0,
- radius: 5.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- }
- }
-
- #[allow(dead_code, reason = "Currently unused in some views")]
- #[must_use]
- pub fn Tooltip(theme: &Theme) -> container::Style {
- let p = theme.palette();
- container::Style {
- background: Some(Background::Color(p.base.foreground)),
- text_color: Some(p.bright.surface),
- border: Border {
- color: p.normal.primary,
- width: 1.0,
- radius: 8.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- }
- }
-
- #[must_use]
- pub fn Background(theme: &Theme) -> container::Style {
- let p = theme.palette();
- container::Style {
- background: Some(Background::Color(p.base.background)),
- text_color: Some(p.bright.surface),
- border: Border {
- color: Color::TRANSPARENT,
- width: 0.0,
- radius: 5.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- }
- }
-}
-
-pub mod Button {
- use super::*;
-
- #[allow(
- dead_code,
- reason = "Helper used by multiple styles; may be inlined by compiler"
- )]
- fn base(border_color: Color) -> button::Style {
- button::Style {
- background: None,
- text_color: Color::WHITE,
- border: Border {
- color: border_color,
- width: 1.0,
- radius: 2.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- }
- }
-
- #[must_use]
- pub fn Primary(theme: &Theme, status: button::Status) -> button::Style {
- let p = theme.palette();
- let mut style = style_active_hover_disabled(p.bright.primary, p.bright.primary, status);
- if matches!(status, button::Status::Active | button::Status::Pressed) {
- style.background = Some(Background::Color(p.base.foreground));
- }
- style
- }
-
- #[allow(
- dead_code,
- reason = "Alias kept for semantic clarity in some call-sites"
- )]
- #[must_use]
- pub fn SelfUpdate(theme: &Theme, status: button::Status) -> button::Style {
- Primary(theme, status)
- }
-
- #[must_use]
- pub fn RestorePackage(theme: &Theme, status: button::Status) -> button::Style {
- let p = theme.palette();
- let mut style = style_active_hover_disabled(p.bright.secondary, p.bright.secondary, status);
- if matches!(status, button::Status::Active | button::Status::Pressed) {
- style.background = Some(Background::Color(p.base.foreground));
- }
- if matches!(status, button::Status::Disabled) {
- style.background = Some(Background::Color(Color {
- a: 0.05,
- ..p.normal.primary
- }));
- style.text_color = p.bright.primary;
- }
- style
- }
-
- #[must_use]
- pub fn UninstallPackage(theme: &Theme, status: button::Status) -> button::Style {
- let p = theme.palette();
- let mut style = style_active_hover_disabled(p.bright.error, p.bright.error, status);
- if matches!(status, button::Status::Active | button::Status::Pressed) {
- style.background = Some(Background::Color(p.base.foreground));
- }
- style
- }
-
- #[allow(
- dead_code,
- reason = "Style exposed for disabled state buttons in some contexts"
- )]
- #[must_use]
- pub fn Unavailable(theme: &Theme, status: button::Status) -> button::Style {
- UninstallPackage(theme, status)
- }
-
- #[must_use]
- pub fn NormalPackage(theme: &Theme, status: button::Status) -> button::Style {
- let p = theme.palette();
- match status {
- button::Status::Hovered => button::Style {
- background: Some(Background::Color(Color {
- a: 0.25,
- ..p.normal.primary
- })),
- text_color: p.bright.surface,
- border: Border {
- color: p.base.background,
- width: 0.0,
- radius: 5.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- },
- _ => button::Style {
- background: Some(Background::Color(p.base.foreground)),
- text_color: p.bright.surface,
- border: Border {
- color: p.base.background,
- width: 0.0,
- radius: 5.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- },
- }
- }
-
- #[must_use]
- pub fn SelectedPackage(theme: &Theme, _status: button::Status) -> button::Style {
- let p = theme.palette();
- button::Style {
- background: Some(Background::Color(Color {
- a: 0.25,
- ..p.normal.primary
- })),
- text_color: p.bright.primary,
- border: Border {
- color: p.normal.primary,
- width: 0.0,
- radius: 5.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- }
- }
-
- #[allow(dead_code, reason = "Used in views where buttons must be invisible")]
- #[must_use]
- pub fn Hidden(_: &Theme, _: button::Status) -> button::Style {
- button::Style {
- background: Some(Background::Color(Color::TRANSPARENT)),
- text_color: Color::TRANSPARENT,
- border: Border {
- color: Color::TRANSPARENT,
- width: 0.0,
- radius: 5.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- }
- }
-
- fn style_active_hover_disabled(
- main: Color,
- text: Color,
- status: button::Status,
- ) -> button::Style {
- match status {
- button::Status::Active | button::Status::Pressed => button::Style {
- background: Some(Background::Color(main)),
- text_color: text,
- border: Border {
- color: Color { a: 0.5, ..main },
- width: 1.0,
- radius: 2.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- },
- button::Status::Hovered => button::Style {
- background: Some(Background::Color(Color { a: 0.25, ..main })),
- text_color: text,
- border: Border {
- color: Color { a: 0.5, ..main },
- width: 1.0,
- radius: 2.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- },
- button::Status::Disabled => button::Style {
- background: Some(Background::Color(Color { a: 0.05, ..main })),
- text_color: Color { a: 0.5, ..text },
- border: Border {
- color: Color { a: 0.5, ..main },
- width: 1.0,
- radius: 2.0.into(),
- },
- shadow: Shadow::default(),
- snap: true,
- },
- }
- }
-}
-
-pub mod Scrollable {
- use super::*;
-
- #[allow(dead_code, reason = "Kept for future custom rails variations")]
- fn rails(scroller_color: Color) -> (scrollable::Rail, scrollable::Rail) {
- let rail = scrollable::Rail {
- background: Some(Background::Color(Color::TRANSPARENT)),
- border: Border {
- color: Color::TRANSPARENT,
- width: 0.0,
- radius: 5.0.into(),
- },
- scroller: scrollable::Scroller {
- background: Background::Color(scroller_color),
- border: Border {
- color: Color::TRANSPARENT,
- width: 1.0,
- radius: 5.0.into(),
- },
- },
- };
- (rail, rail)
- }
-
- fn autoscroll(p: ColorPalette) -> scrollable::AutoScroll {
- scrollable::AutoScroll {
- background: Background::Color(Color {
- a: 0.05,
- ..p.base.background
- }),
- border: Border {
- color: Color::TRANSPARENT,
- width: 0.0,
- radius: 5.0.into(),
- },
- shadow: Shadow::default(),
- icon: p.bright.surface,
- }
- }
-
- #[must_use]
- pub fn Description(theme: &Theme, _status: scrollable::Status) -> scrollable::Style {
- let p = theme.palette();
- let (v, h) = rails(p.normal.surface);
- scrollable::Style {
- container: container::Style::default(),
- vertical_rail: v,
- horizontal_rail: h,
- gap: Some(Background::Color(Color::TRANSPARENT)),
- auto_scroll: autoscroll(p),
- }
- }
-
- #[must_use]
- pub fn Packages(theme: &Theme, _status: scrollable::Status) -> scrollable::Style {
- let p = theme.palette();
- let (v, h) = rails(p.base.foreground);
- scrollable::Style {
- container: container::Style::default(),
- vertical_rail: v,
- horizontal_rail: h,
- gap: Some(Background::Color(Color::TRANSPARENT)),
- auto_scroll: autoscroll(p),
- }
- }
-}
-
-pub mod CheckBox {
- use super::*;
-
- #[must_use]
- pub fn PackageEnabled(theme: &Theme, _status: checkbox::Status) -> checkbox::Style {
- let p = theme.palette();
- checkbox::Style {
- background: Background::Color(p.base.background),
- icon_color: p.bright.primary,
- border: Border {
- color: p.base.background,
- width: 1.0,
- radius: 5.0.into(),
- },
- text_color: Some(p.bright.surface),
- }
- }
-
- #[must_use]
- pub fn PackageDisabled(theme: &Theme, _status: checkbox::Status) -> checkbox::Style {
- let p = theme.palette();
- checkbox::Style {
- background: Background::Color(Color {
- a: 0.55,
- ..p.base.background
- }),
- icon_color: p.bright.primary,
- border: Border {
- color: p.normal.primary,
- width: 1.0,
- radius: 5.0.into(),
- },
- text_color: Some(p.normal.primary),
- }
- }
-
- #[must_use]
- pub fn SettingsEnabled(theme: &Theme, _status: checkbox::Status) -> checkbox::Style {
- let p = theme.palette();
- checkbox::Style {
- background: Background::Color(p.base.background),
- icon_color: p.bright.primary,
- border: Border {
- color: p.bright.primary,
- width: 1.0,
- radius: 5.0.into(),
- },
- text_color: Some(p.bright.surface),
- }
- }
-
- #[must_use]
- pub fn SettingsDisabled(theme: &Theme, _status: checkbox::Status) -> checkbox::Style {
- let p = theme.palette();
- checkbox::Style {
- background: Background::Color(p.base.foreground),
- icon_color: p.bright.primary,
- border: Border {
- color: p.normal.primary,
- width: 1.0,
- radius: 5.0.into(),
- },
- text_color: Some(p.bright.surface),
- }
- }
-}
-
-pub mod Text {
- use super::*;
-
- #[must_use]
- pub fn Default(theme: &Theme) -> text::Style {
- let _ = theme;
- text::Style::default()
- }
-
- #[must_use]
- pub fn Ok(theme: &Theme) -> text::Style {
- let p = theme.palette();
- text::Style {
- color: Some(p.bright.secondary),
- }
- }
-
- #[must_use]
- pub fn Danger(theme: &Theme) -> text::Style {
- let p = theme.palette();
- text::Style {
- color: Some(p.bright.error),
- }
- }
-
- #[must_use]
- pub fn Commentary(theme: &Theme) -> text::Style {
- let p = theme.palette();
- text::Style {
- color: Some(p.normal.surface),
- }
- }
-
- #[allow(
- dead_code,
- reason = "Convenience factory used by dynamic text coloring"
- )]
- pub fn Color(c: Color) -> impl Fn(&Theme) -> text::Style {
- move |_t: &Theme| text::Style { color: Some(c) }
- }
-}
-
-// Unit tests
-#[cfg(test)]
-mod tests {
- use super::*;
-
- #[test]
- fn test_palette() {
- let palette = Theme::Dark.palette();
-
- assert_ne!(palette.base.background, palette.base.foreground);
- assert_ne!(palette.normal.primary, Color::BLACK);
- assert_ne!(palette.normal.surface, Color::BLACK);
- assert_ne!(palette.bright.primary, Color::BLACK);
- // if `LIGHT` then this can be `BLACK`
- // https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/pull/730#issuecomment-2525405134
- //assert_ne!(palette.bright.surface, Color::BLACK);
- assert_ne!(palette.normal.error, Color::BLACK);
- assert_ne!(palette.bright.error, Color::BLACK);
- }
-}
diff --git a/crates/uad-gui/src/theme.rs b/crates/uad-gui/src/theme.rs
deleted file mode 100644
index e18a428..0000000
--- a/crates/uad-gui/src/theme.rs
+++ /dev/null
@@ -1,219 +0,0 @@
-use iced::theme::{self, Mode, Palette, Style};
-use iced::{Color, color};
-use std::sync::LazyLock;
-
-/*
-In-memory caching.
-This fixes the perf bug
-caused by Iced repeatedly calling `palette`.
-
-Coincidentally, this also ensures consistent colors across the GUI,
-at the cost of requiring a restart to update the palette.
-(this is just a patch, not a fix)
-*/
-pub static OS_COLOR_SCHEME: LazyLock =
- LazyLock::new(|| dark_light::detect().unwrap_or(dark_light::Mode::Unspecified));
-
-#[derive(Default, Debug, PartialEq, Eq, Copy, Clone)]
-/// Color scheme
-pub enum Theme {
- #[default]
- /// `Dark` or `Light`, according to `dark_light`
- Auto,
- /// `Dark`-ish and purple
- Lupin,
- /// white on black
- Dark,
- /// black on white
- Light,
-}
-
-#[derive(Debug, Clone, Copy)]
-pub struct BaseColors {
- pub background: Color,
- pub foreground: Color,
-}
-
-#[derive(Debug, Clone, Copy)]
-pub struct NormalColors {
- pub primary: Color,
- #[allow(dead_code, reason = "Reserved for future palette updates")]
- pub secondary: Color,
- pub surface: Color,
- pub error: Color,
-}
-
-#[derive(Debug, Clone, Copy)]
-pub struct BrightColors {
- pub primary: Color,
- pub secondary: Color,
- pub surface: Color,
- pub error: Color,
-}
-
-#[derive(Debug, Clone, Copy)]
-pub struct ColorPalette {
- pub base: BaseColors,
- pub normal: NormalColors,
- pub bright: BrightColors,
-}
-
-impl Theme {
- pub const ALL: [Self; 4] = [Self::Auto, Self::Lupin, Self::Dark, Self::Light];
-
- #[allow(
- clippy::unreadable_literal,
- reason = "https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/pull/578#discussion_r1759653408"
- )]
- /// This `fn` _could_ be `const`,
- /// but `deref`ing a lazy-`static` is non-`const`.
- #[must_use]
- pub fn palette(self) -> ColorPalette {
- const DARK: ColorPalette = ColorPalette {
- base: BaseColors {
- background: color!(0x111111),
- foreground: color!(0x1C1C1C),
- },
- normal: NormalColors {
- primary: color!(0x5E4266),
- secondary: color!(0x386E50),
- surface: color!(0x828282),
- error: color!(0x992B2B),
- },
- bright: BrightColors {
- primary: color!(0xBA84FC),
- secondary: color!(0x49EB7A),
- surface: color!(0xE0E0E0),
- error: color!(0xC13047),
- },
- };
- const LIGHT: ColorPalette = ColorPalette {
- base: BaseColors {
- background: color!(0xEEEEEE),
- foreground: color!(0xE0E0E0),
- },
- normal: NormalColors {
- primary: color!(0x818181),
- secondary: color!(0xF9D659),
- surface: color!(0x818181),
- error: color!(0x992B2B),
- },
- bright: BrightColors {
- primary: color!(0x673AB7),
- secondary: color!(0x3797A4),
- surface: color!(0x000000),
- error: color!(0xC13047),
- },
- };
- const LUPIN: ColorPalette = ColorPalette {
- base: BaseColors {
- background: color!(0x282A36),
- foreground: color!(0x353746),
- },
- normal: NormalColors {
- primary: color!(0x58406F),
- secondary: color!(0x386E50),
- surface: color!(0xA2A4A3),
- error: color!(0xA13034),
- },
- bright: BrightColors {
- primary: color!(0xBD94F9),
- secondary: color!(0x49EB7A),
- surface: color!(0xF4F8F3),
- error: color!(0xE63E6D),
- },
- };
- match self {
- Self::Dark => DARK,
- Self::Light => LIGHT,
- Self::Lupin => LUPIN,
- Self::Auto => match *OS_COLOR_SCHEME {
- dark_light::Mode::Light => LIGHT,
- dark_light::Mode::Dark | dark_light::Mode::Unspecified => DARK,
- },
- }
- }
-}
-
-impl std::fmt::Display for Theme {
- fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
- write!(
- f,
- "{}",
- match self {
- Self::Dark => "Dark",
- Self::Light => "Light",
- Self::Lupin => "Lupin",
- Self::Auto => "Auto (follow system theme)",
- }
- )
- }
-}
-
-/// Converts a string to the GUI's Theme type
-#[must_use]
-pub fn string_to_theme(theme: &str) -> Theme {
- match theme {
- "Lupin" => Theme::Lupin,
- "Dark" => Theme::Dark,
- "Light" => Theme::Light,
- _ => Theme::Auto,
- }
-}
-
-impl theme::Base for Theme {
- fn default(preference: Mode) -> Self {
- match preference {
- Mode::Light => Self::Light,
- Mode::Dark => Self::Dark,
- Mode::None => match *OS_COLOR_SCHEME {
- dark_light::Mode::Light => Self::Light,
- dark_light::Mode::Dark | dark_light::Mode::Unspecified => Self::Dark,
- },
- }
- }
-
- fn mode(&self) -> Mode {
- let resolved = match self {
- Self::Auto => match *OS_COLOR_SCHEME {
- dark_light::Mode::Light => Self::Light,
- dark_light::Mode::Dark | dark_light::Mode::Unspecified => Self::Dark,
- },
- other => *other,
- };
-
- match resolved {
- Self::Light => Mode::Light,
- _ => Mode::Dark,
- }
- }
-
- fn base(&self) -> Style {
- let p = Self::palette(*self);
- Style {
- background_color: p.base.background,
- text_color: p.bright.surface,
- }
- }
-
- fn palette(&self) -> Option {
- let p = Self::palette(*self);
- Some(Palette {
- background: p.base.background,
- text: p.bright.surface,
- primary: p.normal.primary,
- success: p.bright.secondary,
- warning: p.normal.surface,
- danger: p.normal.error,
- })
- }
-
- fn name(&self) -> &str {
- match self {
- Self::Dark => "Dark",
- Self::Light => "Light",
- Self::Lupin => "Lupin",
- Self::Auto => "Auto",
- }
- }
-}
diff --git a/crates/uad-gui/src/views/about.rs b/crates/uad-gui/src/views/about.rs
deleted file mode 100644
index 42cb723..0000000
--- a/crates/uad-gui/src/views/about.rs
+++ /dev/null
@@ -1,174 +0,0 @@
-use crate::helpers::button_primary;
-use crate::theme::Theme;
-use crate::{gui::UpdateState, style, widgets::text};
-use iced::widget::{Space, column, container, row};
-use iced::{Alignment, Element, Length, Renderer};
-use log::error;
-use std::path::PathBuf;
-use uad_core::CACHE_DIR;
-use uad_core::adb;
-use uad_core::uad_lists::LIST_FNAME;
-use uad_core::utils::{FULL_NAME, NAME, last_modified_date, open_url};
-
-#[cfg(feature = "self-update")]
-use uad_core::update::SelfUpdateStatus;
-
-#[derive(Default, Debug, Clone)]
-pub struct About {}
-
-#[derive(Debug, Clone)]
-pub enum Message {
- UrlPressed(PathBuf),
- UpdateUadLists,
- DoSelfUpdate,
-}
-
-impl About {
- #[allow(
- clippy::unused_self,
- reason = "Trait-like shape required by GUI architecture"
- )]
- pub fn update(&mut self, msg: Message) {
- if let Message::UrlPressed(url) = msg {
- open_url(url);
- }
- // other events are handled by UadGui update()
- }
- #[allow(
- clippy::unused_self,
- reason = "Trait-like shape required by GUI architecture"
- )]
- pub fn view(&self, update_state: &UpdateState) -> Element<'_, Message, Theme, Renderer> {
- let about_text = text(format!(
- "{FULL_NAME} ({NAME}) is a free and open-source community project \naiming at simplifying the removal of pre-installed apps on any Android device."
- ));
-
- let descr_container = container(about_text)
- .width(Length::Fill)
- .padding(25)
- .style(style::Container::Frame);
-
- let date = last_modified_date(CACHE_DIR.join(LIST_FNAME));
- let uad_list_text =
- text(format!("{NAME} package list: v{}", date.format("%Y%m%d"))).width(250);
- let last_update_text = text(update_state.uad_list.to_string());
- let uad_lists_btn = button_primary("Update").on_press(Message::UpdateUadLists);
-
- #[cfg(feature = "self-update")]
- let self_update_row = {
- let self_update_btn = button_primary("Update").on_press(Message::DoSelfUpdate);
-
- let uad_version_text =
- text(format!("{NAME} version: v{}", env!("CARGO_PKG_VERSION"))).width(250);
-
- let self_update_text = update_state
- .self_update
- .latest_release
- .as_ref()
- .map_or_else(
- || {
- if update_state.self_update.status == SelfUpdateStatus::Done {
- "(No update available)".to_string()
- } else {
- update_state.self_update.status.to_string()
- }
- },
- |r| {
- if update_state.self_update.status == SelfUpdateStatus::Updating {
- update_state.self_update.status.to_string()
- } else {
- format!("({} available)", r.tag_name)
- }
- },
- );
-
- let last_self_update_text = text(self_update_text).style(style::Text::Default);
-
- row![uad_version_text, self_update_btn, last_self_update_text,]
- .align_y(Alignment::Center)
- .spacing(10)
- .width(550)
- };
-
- let uad_list_row = row![uad_list_text, uad_lists_btn, last_update_text,]
- .align_y(Alignment::Center)
- .spacing(10)
- .width(550);
-
- /*
- There's no need to fetch this info every time the view is updated,
- we could cache it in a `static` `LazyLock`.
-
- But what if the system updates ADB while the app is running?
- the numbers will be out of sync!
-
- However, the server will still be the "old" version
- until it's killed
- */
- let adb_version_text = text(match adb::ACommand::new().version() {
- Ok(s) => s
- .lines()
- .nth(0)
- .unwrap_or_else(|| unreachable!())
- // This allocation is good.
- // If it was a ref, the app would hold the entire string
- // instead of the relevant slice.
- .to_string(),
- Err(e) => {
- error!("{e}");
- "Couldn't fetch ADB version. Is it installed?".into()
- // satisfy `match` by inferring the type of the `Ok` arm
- }
- })
- .width(250);
- let adb_version_row = row![adb_version_text].align_y(Alignment::Center).width(550);
-
- #[cfg(feature = "self-update")]
- let update_column = column![uad_list_row, self_update_row, adb_version_row];
- #[cfg(not(feature = "self-update"))]
- let update_column = column![uad_list_row, adb_version_row];
-
- let update_column = update_column.align_x(Alignment::Center).spacing(10);
-
- let update_container = container(update_column)
- .width(Length::Fill)
- .center_x(Length::Fill)
- .padding(10)
- .style(style::Container::Frame);
-
- let website_btn =
- button_primary("GitHub page").on_press(Message::UrlPressed(PathBuf::from(
- "https://github.com/Universal-Debloater-Alliance/universal-android-debloater",
- )));
-
- let issue_btn = button_primary("Have an issue?")
- .on_press(Message::UrlPressed(PathBuf::from(
- "https://github.com/Universal-Debloater-Alliance/universal-android-debloater/issues",
- )));
-
- let log_btn = button_primary("Locate the logfiles")
- .on_press(Message::UrlPressed(CACHE_DIR.to_path_buf()));
-
- let wiki_btn = button_primary("Wiki").on_press(Message::UrlPressed(PathBuf::from(
- "https://github.com/Universal-Debloater-Alliance/universal-android-debloater/wiki",
- )));
-
- let row = row![website_btn, wiki_btn, issue_btn, log_btn,].spacing(20);
-
- let content = column![
- Space::new().width(Length::Fill).height(Length::Shrink),
- descr_container,
- update_container,
- row,
- ]
- .width(Length::Fill)
- .spacing(20)
- .align_x(Alignment::Center);
-
- container(content)
- .width(Length::Fill)
- .height(Length::Fill)
- .padding(10)
- .into()
- }
-}
diff --git a/crates/uad-gui/src/views/list.rs b/crates/uad-gui/src/views/list.rs
deleted file mode 100644
index a9792dd..0000000
--- a/crates/uad-gui/src/views/list.rs
+++ /dev/null
@@ -1,1597 +0,0 @@
-use crate::helpers::button_primary;
-use crate::style;
-use crate::theme::Theme;
-use crate::widgets::navigation_menu::ICONS;
-use log::{error, info, warn};
-use std::path::PathBuf;
-use uad_core::config::DeviceSettings;
-use uad_core::sync::{AdbError, Phone, User, apply_pkg_state_commands};
-use uad_core::uad_lists::{
- Opposite, PackageHashMap, PackageState, Removal, UadList, UadListState, load_debloat_lists,
-};
-use uad_core::utils::{
- EXPORT_FILE_NAME, NAME, export_selection, fetch_packages, matches_search, open_url,
-};
-
-use crate::views::settings::Settings;
-use crate::widgets::modal::Modal;
-use crate::widgets::package_row::{Message as RowMessage, PackageRow};
-use crate::widgets::text;
-use iced::widget::scrollable::{Direction, Scrollbar};
-use iced::widget::{
- Column, Space, button, checkbox, column, container, pick_list, radio, row, rule, scrollable,
- text_editor, text_input, tooltip,
-};
-use iced::{Alignment, Element, Length, Renderer, Task, alignment};
-
-#[derive(Debug, Default, Clone)]
-pub struct PackageInfo {
- pub i_user: usize,
- pub index: usize,
- pub removal: String,
- pub before_cross_user_states: Vec<(u16, PackageState)>,
-}
-
-#[derive(Default, Debug, Clone)]
-pub enum LoadingState {
- DownloadingList,
- #[default]
- FindingPhones,
- LoadingPackages,
- _UpdatingUad,
- Ready,
- RestoringDevice(String),
- FailedToUpdate,
-}
-
-#[derive(Default, Debug)]
-#[allow(clippy::struct_excessive_bools, reason = "Not a state-machine")]
-pub struct List {
- pub loading_state: LoadingState,
- pub uad_lists: PackageHashMap,
- /// packages of all users of the phone
- pub phone_packages: Vec>,
- /// `phone_packages` indexes of the selected user (= what you see on screen)
- filtered_packages: Vec,
- /// Vec of `(user_index, pkg_index)`
- selected_packages: Vec<(usize, usize)>,
- selected_removal: Option,
- selected_package_state: Option,
- selected_list: Option,
- pub selected_user: Option,
- all_selected: bool,
- pub input_value: String,
- description: String,
- description_content: text_editor::Content,
- selection_modal: bool,
- error_modal: Option,
- export_modal: bool,
- current_package_index: usize,
- is_adb_satisfied: bool,
- copy_confirmation: bool,
- fallback_notifications: Vec,
-}
-
-#[derive(Debug, Clone)]
-pub enum Message {
- LoadUadList(bool),
- LoadPhonePackages((PackageHashMap, UadListState)),
- RestoringDevice(Result),
- ApplyFilters(Vec>),
- DismissFallbackNotifications,
- VerifyAndFallbackFinished(VerifyAndFallbackResult),
- SearchInputChanged(String),
- ToggleAllSelected(bool),
- ListSelected(UadList),
- UserSelected(User),
- RemovalSelected(Removal),
- PackageStateSelected(PackageState),
- ApplyActionOnSelection,
- List(usize, RowMessage),
- VerifyAndFallback(Result),
- Nothing,
- ModalHide,
- ModalUserSelected(User),
- ModalValidate,
- ClearSelectedPackages,
- ADBSatisfied(bool),
- UpdateFailed,
- GoToUrl(PathBuf),
- ExportSelection,
- SelectionExported(Result),
- DescriptionEdit(text_editor::Action),
- CopyError(String),
- HideCopyConfirmation,
-}
-
-pub struct SummaryEntry {
- category: Removal,
- discard: u8,
- restore: u8,
-}
-
-#[derive(Debug, Clone)]
-pub struct VerifyAndFallbackResult {
- pub i_user: usize,
- pub index: usize,
- pub new_state: PackageState,
- pub notification: Option,
- pub error_modal: Option,
-}
-
-impl From for SummaryEntry {
- fn from(category: Removal) -> Self {
- Self {
- category,
- discard: 0,
- restore: 0,
- }
- }
-}
-
-impl List {
- pub fn update(
- &mut self,
- settings: &mut Settings,
- selected_device: &mut Phone,
- list_update_state: &mut UadListState,
- message: Message,
- ) -> Task {
- match message {
- Message::ModalHide => self.on_modal_hide(),
- Message::ModalValidate => self.on_modal_validate(settings, selected_device),
- Message::RestoringDevice(output) => self.on_restoring_device(output),
- Message::LoadUadList(remote) => self.on_load_uad_list(remote, selected_device),
- Message::LoadPhonePackages(payload) => {
- self.on_load_phone_packages(payload, selected_device, list_update_state)
- }
- Message::ApplyFilters(packages) => self.on_apply_filters(packages),
- Message::DismissFallbackNotifications => self.on_dismiss_fallback_notifications(),
- Message::ToggleAllSelected(selected) => {
- self.on_toggle_all_selected(selected, settings, selected_device, list_update_state)
- }
- Message::SearchInputChanged(letter) => self.on_search_input_changed(letter),
- Message::ListSelected(list) => self.on_list_selected(list),
- Message::RemovalSelected(removal) => self.on_removal_selected(removal),
- Message::PackageStateSelected(state) => self.on_package_state_selected(state),
- Message::List(i, row_msg) => self.on_list_row(i, &row_msg, settings, selected_device),
- Message::ApplyActionOnSelection => self.on_apply_action_on_selection(),
- Message::UserSelected(user) => self.on_user_selected(user),
- Message::VerifyAndFallback(res) => {
- self.on_verify_and_fallback(res, settings, selected_device)
- }
- Message::VerifyAndFallbackFinished(result) => {
- self.on_verify_and_fallback_finished(result)
- }
- Message::ModalUserSelected(user) => {
- self.on_modal_user_selected(user, settings, selected_device, list_update_state)
- }
- Message::ClearSelectedPackages => self.on_clear_selected_packages(),
- Message::ADBSatisfied(result) => self.on_adb_satisfied(result),
- Message::UpdateFailed => self.on_update_failed(),
- Message::GoToUrl(url) => Self::on_go_to_url(url),
- Message::ExportSelection => self.on_export_selection(),
- Message::SelectionExported(res) => self.on_selection_exported(res),
- Message::Nothing => Task::none(),
- Message::DescriptionEdit(action) => self.on_description_edit(action),
- Message::CopyError(err) => self.on_copy_error(err),
- Message::HideCopyConfirmation => self.on_hide_copy_confirmation(),
- }
- }
-
- // Handle verification completion on the UI thread after async work
- fn on_verify_and_fallback_finished(
- &mut self,
- result: VerifyAndFallbackResult,
- ) -> Task {
- let package = &mut self.phone_packages[result.i_user][result.index];
- if let Some(notification) = result.notification {
- self.fallback_notifications.push(notification);
- }
- if let Some(err) = result.error_modal {
- self.error_modal = Some(err);
- }
- package.state = result.new_state;
- package.selected = false;
- self.selected_packages
- .retain(|&x| x.1 != result.index && x.0 != result.i_user);
- Self::filter_package_lists(self);
- Task::none()
- }
-
- /// Builds the main view for the app list interface
- pub fn view(
- &self,
- settings: &Settings,
- selected_device: &Phone,
- ) -> Element<'_, Message, Theme, Renderer> {
- match &self.loading_state {
- LoadingState::DownloadingList => waiting_view(
- &format!("Downloading latest {NAME} lists from GitHub. Please wait..."),
- Some(button("No internet?").on_press(Message::LoadUadList(false))),
- style::Text::Default,
- ),
- LoadingState::FindingPhones => {
- if self.is_adb_satisfied {
- waiting_view("Finding connected devices...", None, style::Text::Default)
- } else {
- waiting_view(
- "ADB is not installed on your system, install ADB and relaunch application.",
- Some(button("Read on how to get started.")
- .on_press(Message::GoToUrl(PathBuf::from(
- "https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation/wiki/Getting-started",
- )))),
- style::Text::Danger,
- )
- }
- }
- LoadingState::LoadingPackages => waiting_view(
- "Pulling packages from the device. Please wait...",
- None,
- style::Text::Default,
- ),
- LoadingState::_UpdatingUad => waiting_view(
- &format!("Updating {NAME}. Please wait..."),
- None,
- style::Text::Default,
- ),
- LoadingState::RestoringDevice(device) => waiting_view(
- &format!("Restoring device: {device}"),
- None,
- style::Text::Default,
- ),
- LoadingState::Ready => self.ready_view(settings, selected_device),
- LoadingState::FailedToUpdate => waiting_view(
- "Failed to download update",
- Some(button("Go back").on_press(Message::LoadUadList(false))),
- style::Text::Danger,
- ),
- }
- }
-
- fn control_panel(&self, selected_device: &Phone) -> Element<'_, Message, Theme, Renderer> {
- let search_packages = text_input("Search packages...", &self.input_value)
- .width(Length::Fill)
- .on_input(Message::SearchInputChanged)
- .padding([5, 10]);
-
- let select_all_checkbox = checkbox(self.all_selected)
- .on_toggle(Message::ToggleAllSelected)
- .size(20)
- .style(style::CheckBox::SettingsEnabled)
- .spacing(0); // no label, so remove space entirely
-
- let col_sel_all = row![
- tooltip(
- select_all_checkbox,
- if self.all_selected {
- "Deselect all"
- } else {
- "Select all"
- },
- tooltip::Position::Top,
- )
- .style(style::Container::Tooltip)
- .gap(4)
- ]
- .padding(8);
-
- let user_picklist = pick_list(
- selected_device.user_list.clone(),
- self.selected_user,
- Message::UserSelected,
- )
- .width(85);
-
- let list_picklist =
- pick_list(UadList::ALL, self.selected_list, Message::ListSelected).width(96);
-
- let package_state_picklist = pick_list(
- PackageState::ALL,
- self.selected_package_state,
- Message::PackageStateSelected,
- )
- .width(120);
-
- let removal_picklist = pick_list(
- Removal::ALL,
- self.selected_removal,
- Message::RemovalSelected,
- )
- .width(150);
-
- row![
- col_sel_all,
- search_packages,
- user_picklist,
- removal_picklist,
- package_state_picklist,
- list_picklist,
- ]
- .width(Length::Fill)
- .align_y(Alignment::Center)
- .spacing(6)
- .padding(iced::Padding {
- top: 0.0,
- right: 16.0,
- bottom: 0.0,
- left: 0.0,
- })
- .into()
- }
-
- #[allow(
- clippy::too_many_lines,
- reason = "Complex layout; further refactor later"
- )]
- fn ready_view(
- &self,
- settings: &Settings,
- selected_device: &Phone,
- ) -> Element<'_, Message, Theme, Renderer> {
- let packages = self
- .filtered_packages
- .iter()
- .fold(column![].spacing(6), |col, &i| {
- col.push(
- self.phone_packages[self.selected_user.unwrap_or_default().index][i]
- .view(settings, selected_device)
- .map(move |msg| Message::List(i, msg)),
- )
- });
-
- let packages_scrollable = scrollable(packages)
- .height(Length::FillPortion(6))
- .style(style::Scrollable::Packages);
-
- let description_scroll =
- scrollable(text_editor(&self.description_content).on_action(Message::DescriptionEdit))
- .style(style::Scrollable::Description);
-
- let description_panel = container(description_scroll)
- .padding(6)
- .height(Length::FillPortion(2))
- .width(Length::Fill)
- .style(style::Container::Frame);
-
- let review_selection = {
- let tmp_widget = text(format!(
- "Review selection ({})",
- self.selected_packages.len()
- ));
- if self.selected_packages.is_empty() {
- button(tmp_widget).padding([5, 10])
- } else {
- button_primary(tmp_widget).on_press(Message::ApplyActionOnSelection)
- }
- };
-
- let mut export_selection = button(text(format!(
- "Export current selection ({})",
- self.selected_packages.len()
- )))
- .padding([5, 10]);
- if !self.selected_packages.is_empty() {
- export_selection = export_selection
- .on_press(Message::ExportSelection)
- .style(style::Button::Primary);
- }
- // lock
- let export_selection = export_selection;
-
- let action_row = row![
- export_selection,
- Space::new().width(Length::Fill).height(Length::Shrink),
- review_selection
- ]
- .width(Length::Fill)
- .spacing(10)
- .align_y(Alignment::Center);
-
- let unavailable = container(
- column![
- text("ADB is not authorized to access this user!").size(20)
- .style(style::Text::Danger),
- text("The most likely reason is that it is the user of your work profile (also called Secure Folder on Samsung devices). There's really no solution, other than completely disabling your work profile in your device settings.")
- .style(style::Text::Commentary)
- .align_x(alignment::Horizontal::Center),
- ]
- .spacing(6)
- .align_x(Alignment::Center)
- )
- .padding(10)
- .center_x(Length::Shrink)
- .style(style::Container::BorderedFrame);
-
- let control_panel = self.control_panel(selected_device);
-
- // Fallback notifications area
- let notifications_area: Element<'_, Message, Theme, Renderer> =
- if self.fallback_notifications.is_empty() {
- Space::new().into()
- } else {
- let notification_texts: Vec<_> = self
- .fallback_notifications
- .iter()
- .map(|msg| text(msg).style(style::Text::Commentary).into())
- .collect();
-
- container(
- column![
- text("Fallback Actions Performed:").style(style::Text::Default),
- column(notification_texts).spacing(4),
- row![
- Space::new().width(Length::Fill).height(Length::Shrink),
- button(text("Dismiss"))
- .on_press(Message::DismissFallbackNotifications)
- .style(style::Button::Primary)
- .padding([4, 10]),
- ]
- ]
- .spacing(6),
- )
- .padding(8)
- .style(style::Container::BorderedFrame)
- .into()
- };
-
- let content = if selected_device.user_list.is_empty()
- || match self.selected_user {
- Some(u) => !self.phone_packages[u.index].is_empty(),
- // If no user has been selected,
- // then it could be considered as "equivalent"
- // to the case where the `user_list` is empty?
- // However, this is inconsistent,
- // because other parts of the code simply use a `default` `User`.
- None => true,
- } {
- column![
- control_panel,
- notifications_area,
- packages_scrollable,
- description_panel,
- action_row,
- ]
- } else {
- column![
- control_panel,
- notifications_area,
- container(unavailable)
- .height(Length::Fill)
- .center_y(Length::Fill),
- ]
- }
- .width(Length::Fill)
- .spacing(10)
- .align_x(Alignment::Center);
-
- if self.selection_modal {
- return Modal::new(
- content.padding(10),
- self.apply_selection_modal(
- selected_device,
- settings,
- &self.phone_packages[self.selected_user.unwrap_or_default().index],
- ),
- )
- .on_blur(Message::ModalHide)
- .into();
- }
-
- if self.export_modal {
- let title = container(row![text("Success").size(24)].align_y(Alignment::Center))
- .width(Length::Fill)
- .style(style::Container::Frame)
- .padding([10, 0])
- .center_y(Length::Shrink)
- .center_x(Length::Shrink);
-
- let text_box = row![
- text(format!("Exported current selection into file.\nFile is exported in same directory where {NAME} is located.")).width(Length::Fill),
- ].padding(20);
-
- let file_row = row![text(EXPORT_FILE_NAME).style(style::Text::Commentary)].padding(20);
-
- let modal_btn_row = row![
- Space::new().width(Length::Fill).height(Length::Shrink),
- button(text("Close").width(Length::Shrink))
- .width(Length::Shrink)
- .on_press(Message::ModalHide),
- Space::new().width(Length::Fill).height(Length::Shrink),
- ];
-
- let ctn = container(column![title, text_box, file_row, modal_btn_row])
- .height(Length::Shrink)
- .width(500)
- .padding(10)
- .style(style::Container::Frame);
-
- return Modal::new(content.padding(10), ctn)
- .on_blur(Message::ModalHide)
- .into();
- }
-
- if let Some(err) = &self.error_modal {
- error_view(err, content, self.copy_confirmation).into()
- } else {
- container(content).height(Length::Fill).padding(10).into()
- }
- }
-
- #[allow(
- clippy::too_many_lines,
- reason = "Modal construction is verbose by nature"
- )]
- fn apply_selection_modal(
- &self,
- device: &Phone,
- settings: &Settings,
- packages: &[PackageRow],
- ) -> Element<'_, Message, Theme, Renderer> {
- const PACK_NO_USER_MSG: &str = "`selected_packages` implies a user must be selected";
-
- // 5 element slice is cheap
- let mut summaries = Removal::CATEGORIES.map(SummaryEntry::from);
- for p in packages.iter().filter(|p| p.selected) {
- let summary = &mut summaries[p.removal as usize];
- match p.state {
- PackageState::Uninstalled | PackageState::Disabled => summary.restore += 1,
- _ => summary.discard += 1,
- }
- }
-
- let radio_btn_users = device.user_list.iter().filter(|&u| !u.protected).fold(
- row![].spacing(10),
- |row, &user| {
- row.push(
- radio(
- format!("{}", user.clone()),
- user,
- self.selected_user,
- Message::ModalUserSelected,
- )
- .size(24),
- )
- },
- );
-
- let title_ctn =
- container(row![text("Review your selection").size(24)].align_y(Alignment::Center))
- .width(Length::Fill)
- .style(style::Container::Frame)
- .padding([10, 0])
- .center_y(Length::Shrink)
- .center_x(Length::Fill);
-
- let users_ctn = container(radio_btn_users)
- .padding(10)
- .center_x(Length::Shrink)
- .style(style::Container::Frame);
-
- let explaination_ctn = container(
- row![
- text("The action for the selected user will be applied to all other users")
- .style(style::Text::Danger),
- tooltip(
- text("\u{EA0C}")
- .font(ICONS)
- .width(22)
- .align_x(alignment::Horizontal::Center)
- .style(style::Text::Commentary),
- "Let's say you choose user 0. If a selected package on user 0\n\
- is set to be uninstalled and if this same package is disabled on user 10,\n\
- then the package on both users will be uninstalled.",
- tooltip::Position::Top,
- )
- .gap(20)
- .padding(10)
- .style(style::Container::Tooltip)
- ]
- .spacing(10),
- )
- .center_x(Length::Shrink)
- .padding(10)
- .style(style::Container::BorderedFrame);
-
- let modal_btn_row = row![
- button(text("Cancel")).on_press(Message::ModalHide),
- Space::new().width(Length::Fill),
- button(text("Apply")).on_press(Message::ModalValidate),
- ]
- .padding(iced::Padding {
- top: 0.0,
- right: 15.0,
- bottom: 10.0,
- left: 10.0,
- });
-
- let recap_view = summaries
- .iter()
- .fold(column![].spacing(6).width(Length::Fill), |col, r| {
- col.push(recap(settings, r))
- });
-
- let selected_pkgs_ctn = container(
- container(
- scrollable(
- container(
- if self
- .selected_packages
- .iter()
- .any(|s| s.0 == self.selected_user.expect(PACK_NO_USER_MSG).index)
- {
- self.selected_packages
- .iter()
- .filter(|s| {
- s.0 == self.selected_user.expect(PACK_NO_USER_MSG).index
- })
- .fold(
- column![].spacing(6).width(Length::Shrink),
- |col, selection| {
- col.push(
- row![
- row![text(
- self.phone_packages[selection.0][selection.1]
- .removal
- .to_string()
- )]
- .width(120),
- row![text(
- self.phone_packages[selection.0][selection.1]
- .list
- .to_string()
- )]
- .width(55),
- row![text(
- self.phone_packages[selection.0][selection.1]
- .name
- .clone()
- ),]
- .width(540),
- row![match self.phone_packages[selection.0]
- [selection.1]
- .state
- {
- PackageState::Enabled =>
- if settings.device.disable_mode {
- text("Disable")
- .style(style::Text::Danger)
- } else {
- text("Uninstall")
- .style(style::Text::Danger)
- },
- PackageState::Disabled =>
- text("Enable").style(style::Text::Ok),
- PackageState::Uninstalled =>
- text("Restore").style(style::Text::Ok),
- PackageState::All => text("Impossible")
- .style(style::Text::Danger),
- },]
- .width(70),
- ]
- .width(Length::Shrink)
- .spacing(20),
- )
- },
- )
- } else {
- column![text("No packages selected for this user")]
- .align_x(Alignment::Center)
- .width(Length::Fill)
- },
- )
- .padding(10)
- .width(Length::Shrink)
- .style(style::Container::Invisible),
- )
- .direction(Direction::Both {
- vertical: Scrollbar::default(),
- horizontal: Scrollbar::default(),
- })
- .style(style::Scrollable::Description),
- )
- .width(Length::Fill)
- .style(style::Container::Frame),
- )
- .width(Length::Fill)
- .max_height(150)
- .padding([0, 10]);
-
- container(
- if device.user_list.iter().filter(|&u| !u.protected).count() > 1
- && settings.device.multi_user_mode
- {
- column![
- title_ctn,
- users_ctn,
- row![explaination_ctn].padding([0, 10]),
- container(recap_view).padding(10),
- selected_pkgs_ctn,
- modal_btn_row,
- ]
- .spacing(10)
- .align_x(Alignment::Center)
- } else if !settings.device.multi_user_mode {
- column![
- title_ctn,
- users_ctn,
- container(recap_view).padding(10),
- selected_pkgs_ctn,
- modal_btn_row,
- ]
- .spacing(10)
- .align_x(Alignment::Center)
- } else {
- column![
- title_ctn,
- container(recap_view).padding(10),
- selected_pkgs_ctn,
- modal_btn_row,
- ]
- .spacing(10)
- .align_x(Alignment::Center)
- },
- )
- .width(900)
- .height(Length::Shrink)
- .max_height(700)
- .style(style::Container::Background)
- .into()
- }
-
- fn filter_package_lists(&mut self) {
- let list_filter: UadList = self.selected_list.expect("UAD-list type must be selected");
- let package_filter: PackageState = self
- .selected_package_state
- .expect("pack-state must be selected");
- let removal_filter: Removal = self
- .selected_removal
- .expect("removal recommendation must be selected");
-
- self.filtered_packages = self.phone_packages
- [self.selected_user.expect("User must be selected").index]
- .iter()
- // we must filter the indices associated with pack-rows,
- // that's why `enumerate` is before `filter`.
- .enumerate()
- .filter(|(_, p)| {
- (list_filter == UadList::All || p.list == list_filter)
- && (package_filter == PackageState::All || p.state == package_filter)
- && (removal_filter == Removal::All || p.removal == removal_filter)
- && (self.input_value.is_empty()
- || matches_search(&p.name, &self.input_value, Some(&p.description)))
- })
- .map(|(i, _)| i)
- .collect();
- }
-
- #[expect(clippy::unused_async, reason = "1 call-site")]
- async fn load_packages>(
- uad_list: PackageHashMap,
- device_serial: S,
- user_list: Vec,
- ) -> Vec> {
- let serial = device_serial.as_ref();
- if user_list.len() <= 1 {
- vec![
- fetch_packages(&uad_list, serial, None)
- .into_iter()
- .map(PackageRow::from)
- .collect(),
- ]
- } else {
- user_list
- .iter()
- .map(|user| {
- fetch_packages(&uad_list, serial, Some(user.id))
- .into_iter()
- .map(PackageRow::from)
- .collect()
- })
- .collect()
- }
- }
-
- #[expect(clippy::unused_async, reason = "1 call-site")]
- async fn init_apps_view(remote: bool, phone: Phone) -> (PackageHashMap, UadListState) {
- let uad_lists = load_debloat_lists(remote);
- match uad_lists {
- Ok(list) => {
- if phone.adb_id.is_empty() {
- warn!("AppsView ready but no phone found");
- }
- (list, UadListState::Done)
- }
- Err(local_list) => {
- error!(
- "Error loading remote debloat list for the phone. Fallback to embedded (and outdated) list"
- );
- (local_list, UadListState::Failed)
- }
- }
- }
-
- // === Split handlers to keep update short ===
- fn on_modal_hide(&mut self) -> Task {
- self.selection_modal = false;
- self.error_modal = None;
- self.export_modal = false;
- Task::none()
- }
-
- fn on_modal_validate(
- &mut self,
- settings: &Settings,
- selected_device: &mut Phone,
- ) -> Task {
- self.fallback_notifications.clear();
- let mut commands = vec![];
- self.selected_packages.sort_unstable();
- self.selected_packages.dedup();
- for selection in &self.selected_packages {
- commands.append(&mut build_action_pkg_commands(
- &self.phone_packages,
- selected_device,
- &settings.device,
- *selection,
- ));
- }
- self.selection_modal = false;
- Task::batch(commands)
- }
-
- fn on_restoring_device(&mut self, output: Result) -> Task {
- let i_user = self.selected_user.unwrap_or_default().index;
- if let Ok(p) = output {
- self.loading_state =
- LoadingState::RestoringDevice(self.phone_packages[i_user][p.index].name.clone());
- } else {
- self.loading_state = LoadingState::RestoringDevice("Error [TODO]".to_string());
- }
- Task::none()
- }
-
- fn on_load_uad_list(&mut self, remote: bool, selected_device: &Phone) -> Task {
- info!("{:-^65}", "-");
- info!(
- "ANDROID_SDK: {} | DEVICE: {}",
- selected_device.android_sdk, selected_device.model
- );
- info!("{:-^65}", "-");
- self.loading_state = LoadingState::DownloadingList;
- Task::perform(
- Self::init_apps_view(remote, selected_device.clone()),
- Message::LoadPhonePackages,
- )
- }
-
- fn on_load_phone_packages(
- &mut self,
- payload: (PackageHashMap, UadListState),
- selected_device: &Phone,
- list_update_state: &mut UadListState,
- ) -> Task {
- let (uad_list, list_state) = payload;
- self.loading_state = LoadingState::LoadingPackages;
- self.uad_lists.clone_from(&uad_list);
- *list_update_state = list_state;
- Task::perform(
- Self::load_packages(
- uad_list,
- selected_device.adb_id.clone(),
- selected_device.user_list.clone(),
- ),
- Message::ApplyFilters,
- )
- }
-
- fn on_apply_filters(&mut self, packages: Vec>) -> Task {
- let i_user = self.selected_user.unwrap_or_default().index;
- self.phone_packages = packages;
- self.filtered_packages = (0..self.phone_packages[i_user].len()).collect();
- self.selected_removal = Some(Removal::Recommended);
- self.selected_package_state = Some(PackageState::Enabled);
- self.selected_list = Some(UadList::All);
- self.selected_user = Some(User::default());
- self.fallback_notifications.clear();
- Self::filter_package_lists(self);
- self.loading_state = LoadingState::Ready;
- Task::none()
- }
-
- fn on_toggle_all_selected(
- &mut self,
- selected: bool,
- settings: &mut Settings,
- selected_device: &mut Phone,
- list_update_state: &mut UadListState,
- ) -> Task {
- let i_user = self.selected_user.unwrap_or_default().index;
- for i in self.filtered_packages.clone() {
- if self.phone_packages[i_user][i].selected != selected {
- #[expect(unused_must_use, reason = "side-effect")]
- self.update(
- settings,
- selected_device,
- list_update_state,
- Message::List(i, RowMessage::ToggleSelection(selected)),
- );
- }
- }
- self.all_selected = selected;
- Task::none()
- }
-
- fn on_search_input_changed(&mut self, letter: String) -> Task {
- self.input_value = letter;
- Self::filter_package_lists(self);
- Task::none()
- }
-
- fn on_list_selected(&mut self, list: UadList) -> Task {
- self.selected_list = Some(list);
- Self::filter_package_lists(self);
- Task::none()
- }
-
- fn on_package_state_selected(&mut self, package_state: PackageState) -> Task {
- self.selected_package_state = Some(package_state);
- Self::filter_package_lists(self);
- Task::none()
- }
-
- fn on_removal_selected(&mut self, removal: Removal) -> Task {
- self.selected_removal = Some(removal);
- Self::filter_package_lists(self);
- Task::none()
- }
-
- fn on_list_row(
- &mut self,
- i_package: usize,
- row_message: &RowMessage,
- settings: &Settings,
- selected_device: &mut Phone,
- ) -> Task {
- let i_user = self.selected_user.unwrap_or_default().index;
- #[expect(unused_must_use, reason = "side-effect")]
- {
- self.phone_packages[i_user][i_package]
- .update(row_message)
- .map(move |row_message| Message::List(i_package, row_message));
- }
-
- let package = &mut self.phone_packages[i_user][i_package];
-
- match *row_message {
- RowMessage::ToggleSelection(toggle) => {
- if package.removal == Removal::Unsafe && !settings.general.expert_mode {
- package.selected = false;
- return Task::none();
- }
-
- if settings.device.multi_user_mode {
- for u in selected_device.user_list.iter().filter(|&u| !u.protected) {
- if let Some(pkg) = self
- .phone_packages
- .get_mut(u.index)
- .and_then(|pkgs| pkgs.get_mut(i_package))
- {
- pkg.selected = toggle;
- if toggle && !self.selected_packages.contains(&(u.index, i_package)) {
- self.selected_packages.push((u.index, i_package));
- }
- }
- }
- if !toggle {
- self.selected_packages.retain(|&x| x.1 != i_package);
- }
- } else {
- package.selected = toggle;
- if toggle {
- if !self.selected_packages.contains(&(i_user, i_package)) {
- self.selected_packages.push((i_user, i_package));
- }
- } else {
- self.selected_packages
- .retain(|&x| x.1 != i_package || x.0 != i_user);
- }
- }
- Task::none()
- }
- RowMessage::ActionPressed => {
- self.fallback_notifications.clear();
- self.phone_packages[i_user][i_package].selected = true;
- Task::batch(build_action_pkg_commands(
- &self.phone_packages,
- selected_device,
- &settings.device,
- (i_user, i_package),
- ))
- }
- RowMessage::PackagePressed => {
- self.description = package.clone().description;
- self.description_content = text_editor::Content::with_text(&package.description);
- package.current = true;
- if self.current_package_index != i_package {
- self.phone_packages[i_user][self.current_package_index].current = false;
- }
- self.current_package_index = i_package;
- Task::none()
- }
- }
- }
-
- fn on_apply_action_on_selection(&mut self) -> Task {
- self.selection_modal = true;
- Task::none()
- }
-
- fn on_user_selected(&mut self, user: User) -> Task {
- self.selected_user = Some(user);
- self.fallback_notifications.clear();
- self.filtered_packages = (0..self.phone_packages[user.index].len()).collect();
- Self::filter_package_lists(self);
- Task::none()
- }
-
- #[allow(
- clippy::too_many_lines,
- reason = "Complex verification and fallback logic"
- )]
- //this functions matches the adb command to two types, when it is a soft issue and when it is a hard issue
- // soft issue: utilizes core::sync::attempt_fallback in the case the state that wanted to be changed wasn't in fact changed
- // hard issue: does basically nothing in most cases FIXME, besides handling enabling packages.
- // also this really should be refactored, these are gigantic code blocks
- fn on_verify_and_fallback(
- &mut self,
- res: Result,
- settings: &Settings,
- selected_device: &Phone,
- ) -> Task {
- match res {
- Ok(p) => {
- // Snapshot minimal info to move into background task
- let i_user = p.i_user;
- let index = p.index;
- let pkg_name = self.phone_packages[i_user][index].name.clone();
- let current_state = self.phone_packages[i_user][index].state;
- let wanted_state = current_state.opposite(settings.device.disable_mode);
- let before_cross_user_states = p.before_cross_user_states.clone();
- let device = selected_device.clone();
- let user_id = device.user_list[i_user].id;
-
- // Offload verification + potential fallback to background
- Task::perform(
- async move {
- // Blocking ADB calls happen here (off UI thread)
- let actual_state_opt = uad_core::sync::verify_package_state(
- &pkg_name,
- device.adb_id.as_str(),
- Some(user_id),
- );
-
- match actual_state_opt {
- Some(actual_state) if actual_state == wanted_state => {
- // Check cross-user behavior
- let error_modal = uad_core::sync::detect_cross_user_behavior(
- &pkg_name,
- device.adb_id.as_str(),
- user_id,
- wanted_state,
- actual_state,
- &device,
- &before_cross_user_states,
- )
- .map(|notification| {
- format!(
- "Cross-User Behavior Detected:\n\n{notification}\n\n\
- This is unusual behavior that may be specific to your device manufacturer (OEM). \
- The package state has been successfully changed on the target user."
- )
- });
-
- VerifyAndFallbackResult {
- i_user,
- index,
- new_state: wanted_state,
- notification: None,
- error_modal,
- }
- }
- actual_state_opt => {
- // Package doesn't exist (None) or has wrong state - try fallback
- let actual_state =
- actual_state_opt.unwrap_or(PackageState::Uninstalled);
- // Create CorePackage for fallback
- let core_package = uad_core::sync::CorePackage {
- name: pkg_name.clone(),
- description: String::new(),
- removal: Removal::All,
- state: current_state,
- list: UadList::Unlisted,
- };
- let fallback_result = uad_core::sync::attempt_fallback(
- &core_package,
- wanted_state,
- actual_state,
- device.user_list[i_user],
- &device,
- );
-
- let state_description = match actual_state_opt {
- Some(PackageState::Uninstalled) => "remains uninstalled",
- Some(PackageState::Disabled) => "was disabled",
- Some(PackageState::Enabled) => "was enabled",
- Some(PackageState::All) => {
- "unexpected state (error determining state)"
- }
- None => "does not exist on device",
- };
-
- let (notification, new_state) = match fallback_result {
- Ok(fallback_action) => (
- Some(format!(
- "Package '{pkg_name}' was {} but {} instead. Fallback: {fallback_action}",
- match wanted_state {
- PackageState::Uninstalled => "uninstalled",
- PackageState::Disabled => "disabled",
- PackageState::Enabled => "enabled",
- PackageState::All => "modified",
- },
- state_description
- )),
- actual_state,
- ),
- Err(err) => (
- Some(format!(
- "Package '{pkg_name}' verification failed: {err}"
- )),
- current_state, // no change if fallback failed
- ),
- };
-
- VerifyAndFallbackResult {
- i_user,
- index,
- new_state,
- notification,
- error_modal: None,
- }
- }
- }
- },
- Message::VerifyAndFallbackFinished,
- )
- }
-
- //this is an example of how errors should be done, this is hard to implement however.
- // Err(AdbError::SecurityException(err)) => {
-
- // }
- //FIXME: this has to be changed as soon as possible, generic errors are bad practice
- // keep in mind most solutions to hard errors like this are going to be hacky
- // and weird.
- Err(AdbError::Generic(err)) => {
- // this is such a hacky solution
- if err.contains("Shell cannot change component state") {
- // look for the "pm enable --user " to get the command
- if let Some(start_index) = err.find("pm enable --user ") {
- // slice the string starting from the end of the prefix
- let remainder = &err[start_index + "pm enable --user ".len()..];
- // split by whitespace to get the arguments: [ID, PACKAGE, ...]
- let parts: Vec<&str> = remainder.split_whitespace().collect();
-
- if parts.len() >= 2 {
- let user_id_str = parts[0];
- let pkg_name_str = parts[1];
-
- let found_user = selected_device
- .user_list
- .iter()
- .enumerate()
- .find(|(_, u)| u.id.to_string() == user_id_str);
-
- if let Some((i_user, user_ref)) = found_user {
- // find the package index
- let found_pkg = self.phone_packages[i_user]
- .iter()
- .enumerate()
- .find(|(_, p)| p.name == pkg_name_str);
-
- if let Some((index, _)) = found_pkg {
- let user = *user_ref;
- let device = selected_device.clone();
- let pkg_name = pkg_name_str.to_string();
-
- // fallback task
- return Task::perform(
- async move {
- let temp_pkg = uad_core::sync::CorePackage {
- name: pkg_name.clone(),
- description: String::new(),
- removal: Removal::All,
- state: PackageState::Disabled,
- list: UadList::Unlisted,
- };
-
- // get uninstall command
- let uninstall_cmds =
- uad_core::sync::apply_pkg_state_commands(
- &temp_pkg,
- PackageState::Uninstalled,
- user,
- &device,
- );
-
- if let Some(cmd) = uninstall_cmds.first() {
- let _ = uad_core::sync::run_adb_shell_action(
- &device.adb_id,
- cmd,
- );
- }
-
- // reinstall/enable
- let temp_pkg_uninstalled =
- uad_core::sync::CorePackage {
- name: pkg_name.clone(),
- description: String::new(),
- removal: Removal::All,
- state: PackageState::Uninstalled,
- list: UadList::Unlisted,
- };
-
- let enable_cmds =
- uad_core::sync::apply_pkg_state_commands(
- &temp_pkg_uninstalled,
- PackageState::Enabled,
- user,
- &device,
- );
-
- // lets enable the new package
- if let Some(cmd) = enable_cmds.first() {
- let _ = uad_core::sync::run_adb_shell_action(
- &device.adb_id,
- cmd,
- );
- }
-
- //verifies the final state for thread confirmation
- let actual_state =
- uad_core::sync::verify_package_state(
- &pkg_name,
- &device.adb_id,
- Some(user.id),
- )
- .unwrap_or(PackageState::Uninstalled);
- VerifyAndFallbackResult {
- i_user,
- index,
- new_state: actual_state,
- notification: Some(format!(
- "Attempted recovery for {pkg_name}"
- )),
- error_modal: None,
- }
- },
- Message::VerifyAndFallbackFinished,
- );
- }
- }
- }
- }
- }
-
- // Fallthrough: default error handling if parsing failed or unrelated error
- self.error_modal = Some(err);
- Task::none()
- }
- }
- }
-
- fn on_modal_user_selected(
- &mut self,
- user: User,
- settings: &mut Settings,
- selected_device: &mut Phone,
- list_update_state: &mut UadListState,
- ) -> Task {
- self.selected_user = Some(user);
- self.update(
- settings,
- selected_device,
- list_update_state,
- Message::UserSelected(user),
- )
- }
-
- fn on_clear_selected_packages(&mut self) -> Task {
- self.selected_packages = Vec::new();
- Task::none()
- }
-
- fn on_adb_satisfied(&mut self, result: bool) -> Task {
- self.is_adb_satisfied = result;
- Task::none()
- }
-
- fn on_update_failed(&mut self) -> Task {
- self.loading_state = LoadingState::FailedToUpdate;
- Task::none()
- }
-
- fn on_go_to_url(url: PathBuf) -> Task {
- open_url(url);
- Task::none()
- }
-
- fn on_export_selection(&mut self) -> Task {
- let i_user = self.selected_user.unwrap_or_default().index;
- let package_names: Vec = self.phone_packages[i_user]
- .iter()
- .filter(|p| p.selected)
- .map(|p| p.name.clone())
- .collect();
- Task::perform(
- async move { export_selection(&package_names) },
- Message::SelectionExported,
- )
- }
-
- fn on_selection_exported(&mut self, export: Result) -> Task {
- match export {
- Ok(_) => self.export_modal = true,
- Err(err) => error!("Failed to export current selection: {err:?}"),
- }
- Task::none()
- }
-
- fn on_description_edit(&mut self, action: text_editor::Action) -> Task {
- match action {
- text_editor::Action::Scroll { lines: _ } | text_editor::Action::Edit(_) => {}
- _ => {
- self.description_content.perform(action);
- }
- }
- Task::none()
- }
-
- fn on_copy_error(&mut self, err: String) -> Task {
- self.copy_confirmation = true;
- Task::batch(vec![
- iced::clipboard::write::(err),
- Task::perform(
- // intentional delay
- async { std::thread::sleep(std::time::Duration::from_secs(1)) },
- |()| Message::HideCopyConfirmation,
- ),
- ])
- }
-
- fn on_hide_copy_confirmation(&mut self) -> Task {
- self.copy_confirmation = false;
- Task::none()
- }
-}
-
-impl List {
- fn on_dismiss_fallback_notifications(&mut self) -> Task