Resolves #11.
Summary #
- Dependencies: Gate
notify'smacos_fseventfeature tocfg(target_os = "macos")inCargo.toml. - Platform Directories: Add
PlatformDirs::resolvewith XDG Base Directory support ($XDG_CONFIG_HOME,$XDG_CACHE_HOME,$XDG_STATE_HOME) on Linux. - Volume & Snapshot Telemetry: Add
LinuxVolumeTelemetryusinglibc::statvfs+/proc/mounts(longest mount prefix + octal escape decoding) andUnavailableSnapshotProvider, exposingplatform,filesystem_type, andsnapshots_supportedin/api/health,/api/volume, and/api/snapshots. - Filesystem Watcher: Introduce
NativeFsWatcherhandling LinuxinotifyENOSPC/MaxFilesWatchgracefully with a warning +sysctlguidance and falling back to periodic rescanning, plus mappingFlag::Rescanwith empty paths (IN_Q_OVERFLOW) to the existing overflow/rescan path. - Service & UI: Add
systemd --userunit generation and lifecycle commands (systemctl --user) inservice,xdg-opensupport for--open, and graceful non-macOS UI degradation inweb/.
Verification #
cargo fmt --check,cargo clippy --all-targets --all-features -- -D warnings,cargo test(36 unit + 2 E2E passed on macOS)cd web && npm run typecheck && npm run lint && npm test && npm run build(10 vitest tests passed)- Note: Linux target compilation (
x86_64-unknown-linux-musl/aarch64-unknown-linux-musl) was not executed locally as cross-compilation C toolchains (cargo-zigbuild/ Linux runner) are not installed on this macOS host.