-
-
Notifications
You must be signed in to change notification settings - Fork 746
refactor(watcher): split watcher from rspack_fs
#11948
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for rspack canceled.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR extracts the watcher functionality from the rspack_fs crate into a new standalone rspack_watcher crate. This refactoring improves modularity by separating file system watching concerns from general file system operations.
Key Changes:
- Created new
rspack_watchercrate with its own Cargo.toml configuration - Updated import paths across multiple files to reference
rspack_watcherinstead ofrspack_fs::watcher - Removed watcher-related exports and dependencies from
rspack_fs
Reviewed Changes
Copilot reviewed 13 out of 17 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| crates/rspack_watcher/Cargo.toml | Defines the new rspack_watcher crate with required dependencies including notify, tokio, and rspack utilities |
| crates/rspack_watcher/src/*.rs | Updates import paths to use crate-relative paths instead of watcher:: module paths |
| crates/rspack_fs/src/lib.rs | Removes watcher-related exports that have been moved to the new crate |
| crates/rspack_fs/Cargo.toml | Removes notify dependency no longer needed after watcher extraction |
| crates/rspack_binding_api/src/native_watcher.rs | Updates imports to use rspack_watcher instead of rspack_fs for watcher functionality |
| crates/rspack_binding_api/Cargo.toml | Adds rspack_watcher dependency |
| Cargo.toml | Registers the new rspack_watcher workspace member |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
📦 Binary Size-limit
🎉 Size decreased by 128bytes from 47.80MB to 47.80MB (⬇️0.00%) |
CodSpeed Performance ReportMerging #11948 will not alter performanceComparing Summary
|
Summary
Split watcher from
rspack_fsto a standalone craterspack_watcher.Related links
Checklist