codestudy/ripgrep/files/crates/core/main.rs

main.rs

dz / codestudy / ripgrep / files / crates / core / main.rs

Subgraphs

Node Tree

Nodes

main
content main(): entry point
children main/match
parents codestudy/ripgrep/files/crates/core/main.rs
file reference codestudy/ripgrep/crates/core/main.rs:43-66
location codestudy/dz/ripgrep/files.dz:8

run
content run()
children run/1_import_flags, run/4_return_error_code, run/2_extract_args, run/3_match_based_on_mode
parents codestudy/ripgrep/files/crates/core/main.rs
file reference codestudy/ripgrep/crates/core/main.rs:77-101
location codestudy/dz/ripgrep/files.dz:41

2025-01-06 21:40 connecting nodes to run function

search
content search(): the top level entry point for single-threaded search.
children search/08_let_mut_searcher, search/03_let_unsorted, search/05_let_mut_matched, search/07_let_mut_stats, search/01_let_started_at, search/12_return_matched, search/06_let_mut_searched, search/09_iterate_haystacks, search/10_nothing_searched, search/02_let_haystack_builder, search/11_print_stats, search/04_let_haystacks
parents run/3_match_based_on_mode/1_search, codestudy/ripgrep/files/crates/core/main.rs
file reference codestudy/ripgrep/crates/core/main.rs:107-151
location codestudy/dz/ripgrep/files.dz:92

2025-01-06 21:50 diving into single-threaded search

This seems like a decent starting point 2025-01-06 22:03 Interesting how lets are grouped by mutable immutable

also, they are at the top
search_parallel
content search_parallel(): top-level function for parallel search.
parents run/3_match_based_on_mode/1_search, codestudy/ripgrep/files/crates/core/main.rs
file reference codestudy/ripgrep/crates/core/main.rs:160-229
location codestudy/dz/ripgrep/files.dz:155

files
content files(): top-level entry point for file listing without searching.
parents run/3_match_based_on_mode/2_files, codestudy/ripgrep/files/crates/core/main.rs
file reference codestudy/ripgrep/crates/core/main.rs:235-261
location codestudy/dz/ripgrep/files.dz:163

files_parallel
content files_parallel(): top-level entry point for multi-thread file listing without searching.
parents run/3_match_based_on_mode/2_files, codestudy/ripgrep/files/crates/core/main.rs
file reference codestudy/ripgrep/crates/core/main.rs:271-326
location codestudy/dz/ripgrep/files.dz:171

types
content types(): top-level entry point for --type-list
parents run/3_match_based_on_mode/3_types, codestudy/ripgrep/files/crates/core/main.rs
file reference codestudy/ripgrep/crates/core/main.rs:329-348
location codestudy/dz/ripgrep/files.dz:179

generate
content generate(): implements ripgreps "generate" modes
parents run/3_match_based_on_mode/4_generate, codestudy/ripgrep/files/crates/core/main.rs
file reference codestudy/ripgrep/crates/core/main.rs:355-369
location codestudy/dz/ripgrep/files.dz:185

special
parents codestudy/ripgrep/files/crates/core/main.rs
file reference codestudy/ripgrep/crates/core/main.rs:383-404
location codestudy/dz/ripgrep/files.dz:191

print_stats
file reference codestudy/ripgrep/crates/core/main.rs:434-483