refactor: make the crate Windows-only and extract config

- delete the macOS/Linux/Finder-extension code, the non-Windows branches and
  the objc2 dependencies; three platform-only tests went with them (62 -> 59).
- src/config.rs: config dir, zoom, window geometry and the blocking dialogs.
- move the test module to the end of main.rs (clippy items_after_test_module).
- main.rs 3709 -> 2822 lines. No behavior change on Windows.
This commit is contained in:
2026-11-03 23:22:33 +08:00
parent d5ba2495ba
commit d0e374a02c
4 changed files with 952 additions and 1635 deletions

3
Cargo.lock generated
View File

@@ -1676,9 +1676,6 @@ version = "1.4.2"
dependencies = [
"image",
"notify",
"objc2",
"objc2-app-kit",
"objc2-foundation",
"open",
"pulldown-cmark",
"rfd",