[package]
name = "grix"
version = "0.3.0"
edition = "2021"
authors = ["kyosuke <h.kyosuke0505@gmail.com>"]
description = "grep with an index: trigram-indexed code search that answers in milliseconds"
repository = "https://github.com/kyo5uke/grix"
license = "MIT"
readme = "README.md"
keywords = ["grep", "search", "index", "trigram", "cli"]
categories = ["command-line-utilities", "text-processing"]
rust-version = "1.74"

# Install a prebuilt binary with `cargo binstall grix`. URLs match the names
# produced by .github/workflows/release.yml.
[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }.tar.gz"
bin-dir = "{ name }-v{ version }-{ target }/{ bin }{ binary-ext }"
pkg-fmt = "tgz"

[package.metadata.binstall.overrides.x86_64-pc-windows-msvc]
pkg-url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }.zip"
pkg-fmt = "zip"

[dependencies]
regex = "1"
regex-syntax = "0.8"
memmap2 = "0.9"
ignore = "0.4"
memchr = "2"
notify = "6"
serde_json = "1"

[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true

[dev-dependencies]
tempfile = "3"
