-
Notifications
You must be signed in to change notification settings - Fork 40
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
consider making onig optional #212
Comments
Yeah, compatibility is generally why we use |
ripgrep abstracted quite a bit so it can use pcre2 or |
https://gitlab.redox-os.org/redox-os/posix-regex might be a good option |
I was convinced that |
Our glob implementation converts globs to Posix BREs, so any POSIX-compatible regex implementation gets us globs for free: https://github.com/uutils/findutils/blob/main/src/find/matchers/glob.rs |
onig is still not updated, and clang-16 is going to hit more distributions. Given that upstream seems unresponsive should we start looking for alternatives more actively? |
Am I missing some part of the conversation? What's going on with clang-16? |
clang-16 makes onig non-buildable, I sent a patch to fix it more or less as I opened this issue. |
Oh that's unfortunate. I wonder if https://crates.io/crates/fancy-regex be a good alternative? |
That explains the error I'm getting when building this using MSYS2 / UCRT64, as that project recently updated to Clang 16. |
There are a number of pure rust globs and regex crates, might be better to not have to deal with a C dependency if we could avoid it.
From what I'm seeing
regex
may lack a mean to select a specific flavour of regex, not sure if somebody already had a mean to restrict the engine to not support extensions compared to posix/emacs.The text was updated successfully, but these errors were encountered: