2 releases

0.1.1 Sep 21, 2023
0.1.0 Aug 27, 2023

#6 in #broken


Used in electron_tasje

Unlicense

6KB
77 lines

globreeks

it's globset but more dutch, because I made it for use in electron_tasje. it tries to be the least broken globset. sorry, reeks.

glob order matters here. out of real examples, one can set the globs to !**/node_modules/**/build/** and then node_modules/@signalapp/better-sqlite3/build/Release/better_sqlite3.node, as to make an exception from the previously forbidden pattern.

it uses the glob implementation from ripgrep's globset (by BurntSushi). yes, it's the crate that holds a similar purpose to this one. however, it also includes the least broken rust implementation of a single glob.

mirrors:

copyright 2023 lauren n. liberda, if you must. usage allowed under the terms of Unlicense.


lib.rs:

globreeks is a thing that gets globs and checks if they match.

glob order matters here. out of real examples, one can set the globs to !**/node_modules/**/build/** and then node_modules/@signalapp/better-sqlite3/build/Release/better_sqlite3.node, as to make an exception from the previously forbidden pattern.

see [Globreeks] for the actual implementation.

Dependencies

~3–4.5MB
~83K SLoC