Fixes x86_64-pc-windows-msvc compilation and clippy -D warnings verified via cargo-xwin:
- Add
Win32_Securitytowindows-sysfeatures inCargo.tomlsoCreateFileWresolves. - Gate Unix-only imports in
src/service/mod.rsandSF_DATALESSinsrc/scanner/mod.rs. - Box
toml::de::ErrorinConfigError::ParseToml(src/config.rs) to fixclippy::result_large_erron Windows. - Simplify
is_watch_limit_errorinsrc/watcher/mod.rsto fixclippy::needless_boolon non-Unix targets. - Mark fallback
read_nsurl_volume_capacityinsrc/macos/mod.rswith#[allow(clippy::unnecessary_wraps)].
Verification #
GETAEL_SKIP_WEB_BUILD=1 cargo xwin clippy --all-targets --all-features --target x86_64-pc-windows-msvc -- -D warnings(passed)GETAEL_SKIP_WEB_BUILD=1 RUSTFLAGS="-C target-feature=+crt-static" cargo xwin build --release --target x86_64-pc-windows-msvc(producedgetael.exe, 6.8 MB)cargo fmt --check,cargo clippy --all-targets --all-features -- -D warnings,cargo test(37 unit + 2 E2E passed on macOS)