# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

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

[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"

[lib]
name = "grix"
path = "src/lib.rs"

[[bin]]
name = "grix"
path = "src/main.rs"

[[test]]
name = "integration"
path = "tests/integration.rs"

[dependencies.ignore]
version = "0.4"

[dependencies.memchr]
version = "2"

[dependencies.memmap2]
version = "0.9"

[dependencies.notify]
version = "6"

[dependencies.regex]
version = "1"

[dependencies.regex-syntax]
version = "0.8"

[dependencies.serde_json]
version = "1"

[dev-dependencies.tempfile]
version = "3"

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