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:
@@ -19,11 +19,6 @@ url = "2"
|
||||
[target.'cfg(windows)'.dependencies]
|
||||
winreg = "0.52"
|
||||
|
||||
[target.'cfg(target_os = "macos")'.dependencies]
|
||||
objc2 = "0.6.4"
|
||||
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["NSAlert", "NSApplication", "NSButton", "NSCell", "NSControl", "NSEvent", "NSImage", "NSMenu", "NSMenuItem", "NSResponder", "NSView"] }
|
||||
objc2-foundation = { version = "0.3.2", default-features = false, features = ["objc2-core-foundation", "NSString"] }
|
||||
|
||||
[target.'cfg(windows)'.build-dependencies]
|
||||
winresource = "0.1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user