Add parallel recursive directory iterator.
This adds a new walk type in the `ignore` crate, `WalkParallel`, which provides a way for recursively iterating over a set of paths in parallel while respecting various ignore rules. The API is a bit strange, as a closure producing a closure isn't something one often sees, but it does seem to work well. This also allowed us to simplify much of the worker logic in ripgrep proper, where MultiWorker is now gone.
Showing
... | ... | @@ -25,7 +25,6 @@ path = "tests/tests.rs" |
[dependencies] | ||
ctrlc = "2.0" | ||
deque = "0.3" | ||
docopt = "0.6" | ||
env_logger = "0.3" | ||
grep = { version = "0.1.3", path = "grep" } | ||
... | ... |
此差异已折叠。
src/worker.rs
0 → 100644
想要评论请 注册 或 登录