# 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 = "rgx-cli"
version = "0.14.0"
authors = ["rgx contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A terminal regex tester with real-time matching, multi-engine support, and plain-English explanations"
homepage = "https://github.com/brevity1swos/rgx"
documentation = "https://github.com/brevity1swos/rgx"
readme = "README.md"
keywords = [
    "regex",
    "tui",
    "terminal",
    "cli",
    "developer-tools",
]
categories = [
    "command-line-utilities",
    "text-processing",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/brevity1swos/rgx"

[features]
default = []
pcre2-engine = [
    "dep:pcre2",
    "dep:pcre2-sys",
]

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "engine_bench"
path = "benches/engine_bench.rs"
harness = false

[dependencies.anyhow]
version = "1"

[dependencies.arboard]
version = "3"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.clap_complete]
version = "4"

[dependencies.crossterm]
version = "0.29"
features = ["event-stream"]

[dependencies.dirs]
version = "6"

[dependencies.fancy-regex]
version = "0.17"

[dependencies.grex]
version = "1"

[dependencies.pcre2]
version = "0.2"
optional = true

[dependencies.pcre2-sys]
version = "0.2"
optional = true

[dependencies.ratatui]
version = "0.30"

[dependencies.regex]
version = "1"

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

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.toml]
version = "1.0"

[dependencies.unicode-width]
version = "0.2"

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.insta]
version = "1"

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

[profile.dist]
lto = "thin"
inherits = "release"

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