This pull request proposes replacing the globset library with the glob-match library in the whiz repository.
Changes:
Files Modified:
watcher.rs: Implemented glob-match logic, replacing all instances of globset. Ensured that the watcher functionality continues to operate as expected by testing for file changes.
command.rs: Removed unused imports related to globset and ensured that the integration with glob-match is seamless. Also made necessary adjustments to data structures (e.g., replacing GlobSet with Vec<String> for pattern storage).
Package Changes:
Added: glob-match – An efficient and fast glob matching library.
Removed: globset – The previous glob matching library.
Reason for Change:
The glob-match library provides an extremely efficient matching mechanism with zero allocations, no regex compilation, and a linear-time matching process. It's a lightweight and robust alternative to globset.
Testing:
All existing unit tests have passed without issues.
Manual testing was conducted, especially in terms of file watching, and the results were satisfactory.
Would appreciate a review to ensure the changes are aligned with the repository's standards and objectives. Feedback is welcome.
Fixes #24
Pull Request: Replace
globset
withglob-match
Overview:
This pull request proposes replacing the
globset
library with theglob-match
library in thewhiz
repository.Changes:
Files Modified:
watcher.rs
: Implementedglob-match
logic, replacing all instances ofglobset
. Ensured that the watcher functionality continues to operate as expected by testing for file changes.command.rs
: Removed unused imports related toglobset
and ensured that the integration withglob-match
is seamless. Also made necessary adjustments to data structures (e.g., replacingGlobSet
withVec<String>
for pattern storage).Package Changes:
glob-match
– An efficient and fast glob matching library.globset
– The previous glob matching library.Reason for Change:
The
glob-match
library provides an extremely efficient matching mechanism with zero allocations, no regex compilation, and a linear-time matching process. It's a lightweight and robust alternative toglobset
.Testing:
Would appreciate a review to ensure the changes are aligned with the repository's standards and objectives. Feedback is welcome.