[package]
edition = "2024"
rust-version = "1.85"
name = "ripgrep"
version = "15.2.0"
authors = ["Andrew Gallant <jamslam@gmail.com>"]
build = "build.rs"
exclude = [
"HomebrewFormula",
"/.github/",
"/ci/",
"/pkg/brew",
"/benchsuite/",
"/scripts/",
"/crates/fuzz",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = """
ripgrep is a line-oriented search tool that recursively searches the current
directory for a regex pattern while respecting gitignore rules. ripgrep has
first class support on Windows, macOS and Linux.
"""
homepage = "https://github.com/BurntSushi/ripgrep"
documentation = "https://github.com/BurntSushi/ripgrep"
readme = "README.md"
keywords = [
"regex",
"grep",
"egrep",
"search",
"pattern",
]
categories = [
"command-line-utilities",
"text-processing",
]
license = "Unlicense OR MIT"
repository = "https://github.com/BurntSushi/ripgrep"
[package.metadata.deb]
features = ["pcre2"]
section = "utils"
assets = [
[
"target/release/rg",
"usr/bin/",
"755",
],
[
"COPYING",
"usr/share/doc/ripgrep/",
"644",
],
[
"LICENSE-MIT",
"usr/share/doc/ripgrep/",
"644",
],
[
"UNLICENSE",
"usr/share/doc/ripgrep/",
"644",
],
[
"CHANGELOG.md",
"usr/share/doc/ripgrep/CHANGELOG",
"644",
],
[
"README.md",
"usr/share/doc/ripgrep/README",
"644",
],
[
"FAQ.md",
"usr/share/doc/ripgrep/FAQ",
"644",
],
[
"deployment/deb/rg.1",
"usr/share/man/man1/rg.1",
"644",
],
[
"deployment/deb/rg.bash",
"usr/share/bash-completion/completions/rg",
"644",
],
[
"deployment/deb/rg.fish",
"usr/share/fish/vendor_completions.d/rg.fish",
"644",
],
[
"deployment/deb/_rg",
"usr/share/zsh/vendor-completions/",
"644",
],
]
extended-description = """
ripgrep (rg) recursively searches your current directory for a regex pattern.
By default, ripgrep will respect your .gitignore and automatically skip hidden
files/directories and binary files.
"""
[features]
pcre2 = ["grep/pcre2"]
[[bin]]
name = "rg"
path = "crates/core/main.rs"
bench = false
[[test]]
name = "integration"
path = "tests/tests.rs"
[dependencies.anyhow]
version = "1.0.75"
[dependencies.bstr]
version = "1.7.0"
[dependencies.grep]
version = "0.4.1"
[dependencies.ignore]
version = "0.4.29"
[dependencies.lexopt]
version = "0.3.0"
[dependencies.log]
version = "0.4.5"
[dependencies.serde_json]
version = "1.0.23"
[dependencies.termcolor]
version = "1.4.0"
[dependencies.textwrap]
version = "0.16.0"
default-features = false
[dev-dependencies.serde]
version = "1.0.77"
[dev-dependencies.serde_derive]
version = "1.0.77"
[dev-dependencies.walkdir]
version = "2"
[target.'cfg(all(target_env = "musl", target_pointer_width = "64"))'.dependencies.tikv-jemallocator]
version = "0.7.0"
[profile.deb]
inherits = "release-lto"
[profile.release]
debug = 1
[profile.release-lto]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
debug-assertions = false
panic = "abort"
overflow-checks = false
incremental = false
inherits = "release"
strip = "symbols"