Getǣl — Read-only macOS home directory disk usage cartography & APFS telemetry service

Fix Windows build (Win32_Security feature) and Windows clippy lints #21

Merged zip.mu.social
targeting dev from fix/windows-createfilew
Merged opened by zip.mu.social
targeting dev from fix/windows-createfilew

Fixes x86_64-pc-windows-msvc compilation and clippy -D warnings verified via cargo-xwin:

  • Add Win32_Security to windows-sys features in Cargo.toml so CreateFileW resolves.
  • Gate Unix-only imports in src/service/mod.rs and SF_DATALESS in src/scanner/mod.rs.
  • Box toml::de::Error in ConfigError::ParseToml (src/config.rs) to fix clippy::result_large_err on Windows.
  • Simplify is_watch_limit_error in src/watcher/mod.rs to fix clippy::needless_bool on non-Unix targets.
  • Mark fallback read_nsurl_volume_capacity in src/macos/mod.rs with #[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 (produced getael.exe, 6.8 MB)
  • cargo fmt --check, cargo clippy --all-targets --all-features -- -D warnings, cargo test (37 unit + 2 E2E passed on macOS)
Commits 1

Fix Windows build (Win32_Security feature) and Windows clippy lints
Sign up or Sign in to add to the discussion.