-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate glob
in favour of globset
and globwalk
?
#17
Comments
A possible path forward here (although, my personal bandwidth for this is super limited):
I think a key issue here is that "glob the file system" needs to be proved out and polished. At a higher level, it's also worth saying that |
Thanks for your thoughts @BurntSushi! Personally, I'm in favour of re-purposing the I'm guessing we're not in a big hurry to do this, so could work towards proving and polishing the glob the filesystem case in @Gilnaa Do you have any thoughts to share? I know it hasn't actually been very long since you started working on |
I am not against breaking changes, per se, but removing file-system traversal from It might be a viable move once we prove |
@Gilnaa I agree it would be a bit strange to do that. I'm assuming we'd effectively deprecate both It would be good if we could get concrete about what proving |
Well, globset's API is a superset of glob's, so it's probably not that big of a deal; but if we could get some community feedback about it would be great. |
I am in favour of |
Yeah I am in favour of having a single crate for both. We can use feature gates in case people would want only 1 of the 2 functionalities. |
If |
The
glob
crate has some deficiencies that are addressed byglobset
, but it comes with its own set of trade-offs. Theglobwalk
crate offers aglob
function, based onglobset
, that's a missing piece of theglobset
API.There's a willingness to deprecate
glob
in favour ofglobset
and accept its trade-offs as facts of life that can be improved by the compiler.We probably need someone to take up the cause and help push this forward.
The text was updated successfully, but these errors were encountered: