Not a ripgrep issue, so excuse me ignoring the standard boilerplate.
ignore::walk::DirEntry cannot be cloned, which is an issue if I want to use it in findr. findr uses the most excellent embedded mini-scripting language Rhai, and Rust structs must be clonable to inter-operate with it.
I've been using a combination of walkdir (which does provide a clonable DirEntry) and the gitignore crate. In effect, I have to reproduce a (subset) of ignore functionality in findr - it would be rather nice to offload that to a crate that already knows about directory iteration that can ignore non-essential files.
Edit: Had a look - not so trivial, since Error must be Clone and std::io::Error is not....
Not a ripgrep issue, so excuse me ignoring the standard boilerplate.
ignore::walk::DirEntry
cannot be cloned, which is an issue if I want to use it in findr.findr
uses the most excellent embedded mini-scripting language Rhai, and Rust structs must be clonable to inter-operate with it.I've been using a combination of
walkdir
(which does provide a clonableDirEntry
) and thegitignore
crate. In effect, I have to reproduce a (subset) ofignore
functionality infindr
- it would be rather nice to offload that to a crate that already knows about directory iteration that can ignore non-essential files.Edit: Had a look - not so trivial, since
Error
must beClone
andstd::io::Error
is not....