1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-02-04 06:08:39 +02:00
Andrew Gallant 19a08bee8a cli: clean-up crate
This does a variety of polishing.

1. Deprecate the tty methods in favor of std's IsTerminal trait.
2. Trim down un-needed dependencies.
3. Use bstr to implement escaping.
4. Various aesthetic polishing.

I'm doing this as prep work before adding more to this crate. And as
part of a general effort toward reducing ripgrep's dependencies.
2023-09-25 14:39:54 -04:00
..
2023-09-25 14:39:54 -04:00
2023-05-16 13:12:45 -04:00
2021-06-01 21:07:37 -04:00

grep

ripgrep, as a library.

Build status

Dual-licensed under MIT or the UNLICENSE.

Documentation

https://docs.rs/grep

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"

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.