2 releases

0.1.1 Sep 21, 2023
0.1.0 Aug 27, 2023

#6 in #broken

Download history 10/week @ 2024-02-21 17/week @ 2024-02-28 3/week @ 2024-03-06 5/week @ 2024-03-13 1/week @ 2024-03-20 15/week @ 2024-03-27 35/week @ 2024-04-03

51 downloads per month
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.5–5MB
~85K SLoC