Crate rg

source ·

Modules

Macros

  • Like eprintln, but locks STDOUT to prevent interleaving lines.
  • Like message, but sets ripgrep’s “errored” flag, which controls the exit status.
  • Emit a non-fatal ignore-related error message (like a parse error), unless ignore-messages were disabled.
  • Emit a non-fatal error message, unless messages were disabled.

Functions

  • files 🔒
    The top-level entry point for listing files without searching them. This recursively steps through the file list (current directory by default) and prints each path sequentially using a single thread.
  • The top-level entry point for listing files without searching them. This recursively steps through the file list (current directory by default) and prints each path sequentially using multiple threads.
  • main 🔒
  • The top-level entry point for –pcre2-version.
  • search 🔒
    The top-level entry point for single-threaded search. This recursively steps through the file list (current directory by default) and searches each file sequentially.
  • The top-level entry point for multi-threaded search. The parallelism is itself achieved by the recursive directory traversal. All we need to do is feed it a worker for performing a search on each file.
  • try_main 🔒
  • types 🔒
    The top-level entry point for –type-list.

Type Aliases