#regex #grep #egrep #search #pattern

grep-searcher

Fast line oriented regex searching as a library

3 unstable releases

0.1.1 Sep 7, 2018
0.1.0 Aug 20, 2018
0.0.1 Aug 8, 2018

#85 in Filesystem

Download history 18/week @ 2018-08-10 8/week @ 2018-08-17 16/week @ 2018-08-24 5/week @ 2018-08-31 65/week @ 2018-09-07

37 downloads per month
Used in 3 crates (2 directly)

Unlicense/MIT

267KB
5K SLoC

grep-searcher

A high level library for executing fast line oriented searches. This handles things like reporting contextual lines, counting lines, inverting a search, detecting binary data, automatic UTF-16 transcoding and deciding whether or not to use memory maps.

Linux build status Windows build status

Dual-licensed under MIT or the UNLICENSE.

Documentation

https://docs.rs/grep-searcher

NOTE: You probably don't want to use this crate directly. Instead, you should prefer the facade defined in the grep crate.

Usage

Add this to your Cargo.toml:

[dependencies]
grep-searcher = "0.1"

and this to your crate root:

extern crate grep_searcher;

Dependencies

~2.5MB
~47K SLoC