Add native Windows support for getael while preserving the strictly read-only invariant and single-binary architecture.
Scope #
- Platform directory paths: Replace macOS-hardcoded
~/Library/Caches/getael,~/.config/getael, and~/Library/Logs/getaelwith standard Windows locations (e.g.%LOCALAPPDATA%\getael\cache,%APPDATA%\getael,%LOCALAPPDATA%\getael\logsviadirectoriesorcfg(windows)). - Scanner metadata: Abstract
std::os::unix::fs::MetadataExtusage (blocks,dev,ino,nlink,ctime) behind a platform module:- Allocated on-disk size via
GetCompressedFileSizeW(or cluster-aligned fallback). - Hardlink deduplication via Windows file index + volume serial number.
- Allocated on-disk size via
- Filesystem watcher: Gate
notify'smacos_fseventfeature tocfg(target_os = "macos").notify::RecommendedWatcherusesReadDirectoryChangesW(bWatchSubtree = TRUE, unprivileged, O(1) handle). Ensure buffer overflow (ERROR_NOTIFY_ENUM_DIR/Flag::Rescan) maps cleanly togetael's existing overflow/rescan path. - Volume & snapshot telemetry: Replace APFS (
diskutil,statfs,tmutil) with Windows volume capacity (GetDiskFreeSpaceExW). Treat local snapshot telemetry as unavailable/unsupported (VSS requires Administrator privileges) and ensure the HTTP API and UI degrade cleanly without macOS-specific copy. - Single-file build: Verify
x86_64-pc-windows-msvcbuilds cleanly as a standalone.exe(-C target-feature=+crt-static,rusqlitebundled,rust-embed).
Acceptance Criteria #
cargo check/cargo testpass on Windows (x86_64-pc-windows-msvc).- Server starts unprivileged, scans
%USERPROFILE%, serves the embedded web UI on127.0.0.1:6174, and updates live on filesystem changes. - Strictly read-only toward user files.