The ignore crate pulls in regex, which adds to the binary size quite significantly. If we do not need the .ignore features, we can opt out of it and drop the dependency.
This PR locks the ignore crate behind a use-ignore default feature, and adds a walkdir optional feature. When walkdir is enabled, we use the walkdir crate to traverse the directory instead. This does not respect .ignore files.
If neither use-ignore nor walkdir features are enabled, a compile-time error is raised.
The
ignore
crate pulls inregex
, which adds to the binary size quite significantly. If we do not need the.ignore
features, we can opt out of it and drop the dependency.This PR locks the
ignore
crate behind ause-ignore
default feature, and adds awalkdir
optional feature. Whenwalkdir
is enabled, we use thewalkdir
crate to traverse the directory instead. This does not respect.ignore
files.If neither
use-ignore
norwalkdir
features are enabled, a compile-time error is raised.