Skip to content

Phase 2b: Port file watching to Rust #19

Closed

Description

@zackees

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

  1. zackees commented on Apr 12, 2026

    @zackees
    MemberAuthor

    Completed in PR #31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions