2 Commits

Author SHA1 Message Date
Deepesh Varatharajan 9ddb4b60f7 ripgrep: limit libstd-rs DEPENDS to class-target
Avoid pulling in a non-existent libstd-rs-native dependency by
restricting libstd-rs to class-target builds.

Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-12 22:37:46 -08:00
Deepesh Varatharajan 1feb12a4bc ripgrep: Add ripgrep recipe
ripgrep is a fast, line-oriented search tool written in Rust.
Add recipe for the latest release (15.1.0)

- Recursively searches the current directory using a regex pattern
- Respects .gitignore rules
- Provides first-class support on Linux
- 'rg' is significantly faster than grep

More information: https://crates.io/crates/ripgrep

Upstream Benchmarks:
Task                                 ripgrep               GNU grep               Speedup vs grep
Basic search (Unicode)          536 lines, 0.082s       536 lines, 0.273s       ripgrep ~3.3× faster
Ignoring gitignore files        447 lines, 0.063s       447 lines, 0.674s       ripgrep ~10× faster
Large single file (~13GB)       7882 lines, 1.042s      7882 lines, 6.577s      ripgrep ~6.3× faster

Bechmarks inside qemu (ripgrep built from this recipe):
Tool & Command                      Real Time    User Time    Sys Time    Speedup vs grep
ripgrep (rg "printf" /usr)           0.496 s      0.511 s     0.604 s       3.1× faster
grep (grep -R "printf" /usr)         1.533 s      0.633 s     0.897 s            —

Signed-off-by: Deepesh Varatharajan <Deepesh.Varatharajan@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-12-10 08:56:13 -08:00