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

Add Windows support (APPDATA/LOCALAPPDATA paths, Win32 metadata & volume telemetry) #18

Merged zip.mu.social
targeting dev from feat/windows-support
Merged opened by and assigned to zip.mu.social
targeting dev from feat/windows-support

Resolves #10 (stacked on PR #17 / feat/linux-support).

Summary #

  • Dependencies: Add windows-sys (Win32_Foundation, Win32_Storage_FileSystem) under [target.'cfg(windows)'.dependencies].
  • Platform Directories: Resolve %APPDATA%\getael\config.toml and %LOCALAPPDATA%\getael\{cache,logs} in PlatformDirs::resolve_windows.
  • Scanner Metadata: Abstract std::os::unix::fs::MetadataExt behind metadata_dev, is_same_mount (FILE_ATTRIBUTE_REPARSE_POINT guard on Windows), metadata_mtime_ns, is_hidden_entry (FILE_ATTRIBUTE_HIDDEN), and file_physical_and_link_id (GetCompressedFileSizeW with 4 KiB cluster-aligned fallback + GetFileInformationByHandle volume serial & file index hardlink deduplication).
  • Volume & Snapshot Telemetry: Implement WindowsVolumeTelemetry using GetDiskFreeSpaceExW, GetVolumePathNameW, and GetVolumeInformationW; reuse UnavailableSnapshotProvider and non-macOS UI degradation from #17.
  • CLI & Tests: Add cmd /C start for --open on Windows and isolate USERPROFILE/APPDATA/LOCALAPPDATA in E2E tests.

Verification #

  • cargo fmt --check, cargo clippy --all-targets --all-features -- -D warnings, cargo test (37 unit + 2 E2E passed on macOS)
  • Note: x86_64-pc-windows-msvc compilation was not executed locally as cargo-xwin / Windows MSVC SDK is not installed on this macOS host.
Commits 0