Skip to content

Conversation

@h-a-n-a
Copy link
Contributor

@h-a-n-a h-a-n-a commented Oct 21, 2025

Summary

Split watcher from rspack_fs to a standalone crate rspack_watcher.

Related links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings October 21, 2025 10:24
@h-a-n-a h-a-n-a requested a review from quininer as a code owner October 21, 2025 10:24
@netlify
Copy link

netlify bot commented Oct 21, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit e57e9d3
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/68f885366d01bd0008af4e5b

Copy link
Contributor

Copilot AI left a 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_watcher crate with its own Cargo.toml configuration
  • Updated import paths across multiple files to reference rspack_watcher instead of rspack_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.

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Oct 21, 2025
@h-a-n-a h-a-n-a enabled auto-merge (squash) October 21, 2025 10:35
@h-a-n-a h-a-n-a requested a review from GiveMe-A-Name October 21, 2025 10:43
@github-actions
Copy link
Contributor

github-actions bot commented Oct 21, 2025

📦 Binary Size-limit

Comparing e57e9d3 to chore(deps): update dependency @rslib/core to v0.16.0 (#11960) by renovate[bot]

🎉 Size decreased by 128bytes from 47.80MB to 47.80MB (⬇️0.00%)

@codspeed-hq
Copy link

codspeed-hq bot commented Oct 21, 2025

CodSpeed Performance Report

Merging #11948 will not alter performance

Comparing watcher (e57e9d3) with main (5b89b0b)

Summary

✅ 17 untouched

@h-a-n-a h-a-n-a merged commit 5b8aefc into main Oct 22, 2025
92 of 96 checks passed
@h-a-n-a h-a-n-a deleted the watcher branch October 22, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: refactor team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants