mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2024-12-12 19:18:24 +02:00
bb110c1ebe
This commit does the work to delete the old `grep` crate and effectively rewrite most of ripgrep core to use the new libripgrep crates. The new `grep` crate is now a facade that collects the various crates that make up libripgrep. The most complex part of ripgrep core is now arguably the translation between command line parameters and the library options, which is ultimately where we want to be.
1.1 KiB
1.1 KiB
grep
ripgrep, as a library.
Dual-licensed under MIT or the UNLICENSE.
Documentation
NOTE: This crate isn't ready for wide use yet. Ambitious individuals can probably piece together the parts, but there is no high level documentation describing how all of the pieces fit together.
Usage
Add this to your Cargo.toml
:
[dependencies]
grep = "0.2"
and this to your crate root:
extern crate grep;
Features
This crate provides a pcre2
feature (disabled by default) which, when
enabled, re-exports the grep-pcre2
crate as an alternative Matcher
implementation to the standard grep-regex
implementation.