Part of #14 Depends on Phase 2a (#18) ## Goal Replace `filewatcher.py` (watchdog-based) with Rust `notify` crate for file system monitoring. ## Tasks - [ ] Add `notify` crate to `fastled-cli` - [ ] Implement recursive directory watching with configurable ignore patterns (`fastled_js`, `.build`, etc.) - [ ] Implement debounce logic (0.3s default) - [ ] Implement content-hash change detection (blake3 or sha2) to filter false positives - [ ] Expose watcher via PyO3 bridge for Python callers: `fastled._native.watch(path, callback)` - [ ] Add Rust unit tests for debounce and ignore patterns - [ ] Remove `filewatcher.py` and update imports ## Acceptance criteria - File watching works on Windows, macOS, Linux - Debounce prevents duplicate rebuild triggers - Content-hash filtering ignores timestamp-only changes - `bash test` passes with the Rust watcher
Activity
zackees commentedon Apr 12, 2026
Completed in PR #31
feat(rust): port file watching to Rust with notify crate (#19)