[package]
edition = "2024"
name = "rgrc"
version = "0.6.7"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rusty Generic Colouriser"
homepage = "https://lazywalker.github.io/rgrc"
readme = "README.md"
keywords = [
"cli",
"grc",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/lazywalker/rgrc"
[package.metadata.deb]
maintainer = "lazywalker <lazywalkerz@gmail.com>"
copyright = "2026, lazywalker <lazywalkerz@gmail.com>"
license-file = ["LICENSE"]
extended-description = "A fast, Rust-based command-line tool that colorizes output from other commands using grc/grcat-style configuration files. Supports embedded configs, advanced count/replace features, and portable packaging."
depends = "$auto"
section = "utility"
priority = "optional"
assets = [
[
"target/release/rgrc",
"usr/bin/",
"755",
],
[
"target/release/rgrv",
"usr/bin/",
"755",
],
[
"doc/rgrc.1.gz",
"usr/share/man/man1/",
"644",
],
[
"etc/rgrc.conf",
"etc/",
"644",
],
[
"share/conf.*",
"usr/share/rgrc/",
"644",
],
]
[features]
debug = []
default = ["embed-configs"]
embed-configs = []
fancy-regex = ["dep:fancy-regex"]
timetrace = []
[lib]
name = "rgrc"
path = "src/lib.rs"
[[bin]]
name = "rgrc"
path = "src/main.rs"
doc = true
[[bin]]
name = "rgrv"
path = "src/bin/rgrv.rs"
doc = true
[[test]]
name = "all_config_tests"
path = "tests/all_config_tests.rs"
[[test]]
name = "build_tests"
path = "tests/build_tests.rs"
[[test]]
name = "colorizer_coverage"
path = "tests/colorizer_coverage.rs"
[[test]]
name = "colorizer_tests"
path = "tests/colorizer_tests.rs"
[[test]]
name = "config_lookaround_tests"
path = "tests/config_lookaround_tests.rs"
[[test]]
name = "enhanced_regex_coverage"
path = "tests/enhanced_regex_coverage.rs"
[[test]]
name = "grc_coverage"
path = "tests/grc_coverage.rs"
[[test]]
name = "grc_tests"
path = "tests/grc_tests.rs"
[[test]]
name = "hybrid_regex_test"
path = "tests/hybrid_regex_test.rs"
[[test]]
name = "lib_tests"
path = "tests/lib_tests.rs"
[[test]]
name = "main_tests"
path = "tests/main_tests.rs"
[[test]]
name = "rgrv_coverage"
path = "tests/rgrv_coverage.rs"
[[bench]]
name = "enhanced_regex_bench"
path = "benches/enhanced_regex_bench.rs"
harness = false
[dependencies.fancy-regex]
version = "0.17"
optional = true
[dependencies.mimalloc]
version = "^0.1.43"
[dependencies.regex]
version = "^1.12"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.tempfile]
version = "3.24"
[profile.bench]
debug = 1
[profile.minimal]
opt-level = "z"
inherits = "release"
[profile.release]
lto = true
codegen-units = 1
panic = "abort"
strip = true