[package]
name = "ripgrepx"
version = "0.4.0"
edition = "2024"
description = "Instant ripgrep via a persistent candidate index, for the terminal and AI agents over MCP"
license = "MIT"
repository = "https://github.com/igorgatis/ripgrepx"
readme = "README.md"
keywords = ["ripgrep", "grep", "search", "code-search", "mcp"]
categories = ["command-line-utilities", "development-tools"]
exclude = ["/npm", "/bench", "/docs", "/.github", "/mise.toml", "/pyproject.toml", "/install.sh"]
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/rgx-v{ version }-{ target }.{ archive-format }"
bin-dir = "rgx{ binary-ext }"
pkg-fmt = "tgz"
[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-fmt = "zip"
[package.metadata.binstall.overrides.aarch64-pc-windows-msvc]
pkg-fmt = "zip"
[dependencies]
anyhow = "1"
regex-syntax = "0.8"
ignore = "0.4"
rayon = "1"
roaring = "0.10"
rustc-hash = "2"
memchr = "2"
grep = "0.4"
termcolor = "1"
notify-debouncer-full = "0.5"
serde_json = "1"
dhat = { version = "0.3", optional = true }
toml = { version = "1.1.2", default-features = false, features = ["parse", "serde"] }
serde = { version = "1.0.228", features = ["derive"] }
[features]
dhat-heap = ["dep:dhat"]
tcp-transport = []
[dev-dependencies]
regex = "1"
criterion = "0.5"
tempfile = "3"
[lib]
name = "rgx"
path = "src/lib.rs"
[[bin]]
name = "rgx"
path = "src/main.rs"
[[bench]]
name = "index_bench"
harness = false
[profile.release]
strip = true
lto = true
codegen-units = 1
[profile.profiling]
inherits = "release"
debug = "line-tables-only"
[profile.bench]
debug = "line-tables-only"