ripgrep/crates/core
xtqqczze cd1f981bea
Some checks failed
ci / test (push) Has been cancelled
ci / wasm (push) Has been cancelled
ci / rustfmt (push) Has been cancelled
ci / docs (push) Has been cancelled
ci / Compile Fuzz Test Targets (push) Has been cancelled
fix: derive Default when possible
Ref https://rust-lang.github.io/rust-clippy/master/index.html#/derivable_impls
2025-11-29 14:11:38 -05:00
..
flags fix: derive Default when possible 2025-11-29 14:11:38 -05:00
haystack.rs cli: replace clap with lexopt and supporting code 2023-11-20 23:51:53 -05:00
logger.rs style: fix new lints 2024-03-07 09:37:48 -05:00
main.rs deps: switch to tikv-jemallocator 2025-09-19 21:08:19 -04:00
messages.rs impl: switch most atomic ops to Relaxed ordering 2025-09-19 21:08:19 -04:00
README.md repo: make ripgrep build with the new organization 2020-02-17 19:24:53 -05:00
search.rs core: don't build decompression reader unless we intend to use it 2025-10-12 16:31:20 -04:00

ripgrep core

This is the core ripgrep crate. In particular, main.rs is where the main function lives.

Most of ripgrep core consists of two things:

  • The definition of the CLI interface, including docs for every flag.
  • Glue code that brings the grep-matcher, grep-regex, grep-searcher and grep-printer crates together to actually execute the search.

Currently, there are no plans to make ripgrep core available as an independent library. However, much of the heavy lifting of ripgrep is done via its constituent crates, which can be reused independent of ripgrep. Unfortunately, there is no guide or tutorial to teach folks how to do this yet.