[package]
name = "television"
version = "0.8.1"
edition = "2021"
description = "The revolution will be televised."
license = "MIT"
authors = ["Alexandre Pasmantier <alex.pasmant@gmail.com>"]
build = "build.rs"
repository = "https://github.com/alexpasmantier/television"
homepage = "https://github.com/alexpasmantier/television"
keywords = ["search", "fuzzy", "preview", "tui", "terminal"]
categories = [
  "command-line-utilities",
  "command-line-interface",
  "concurrency",
  "development-tools",
]
include = [
  "LICENSE",
  "README.md",
  "themes/**/*.toml",
  "crates/television/**/*.rs",
  "build.rs",
  ".config/config.toml",
  "cable",
]
rust-version = "1.81"

[workspace]
resolver = "2"
members = ["crates/television-*"]

[workspace.package]
edition = "2021"
description = "The revolution will be televised."
license = "MIT"
authors = ["Alexandre Pasmantier <alex.pasmant@gmail.com>"]
repository = "https://github.com/alexpasmantier/television"
homepage = "https://github.com/alexpasmantier/television"
keywords = ["search", "fuzzy", "preview", "tui", "terminal"]
categories = [
  "command-line-utilities",
  "command-line-interface",
  "concurrency",
  "development-tools",
]
include = [
  "LICENSE",
  "README.md",
  "crates/television/**/*.rs",
  "build.rs",
  "shell/**/*.sh",
]
rust-version = "1.81"
readme = "README.md"


[[bin]]
bench = false
path = "crates/television/main.rs"
name = "tv"

[dependencies]
# workspace dependencies

television-fuzzy = { path = "crates/television-fuzzy", version = "0.0.15" }
television-derive = { path = "crates/television-derive", version = "0.0.15" }
television-screen = { path = "crates/television-screen", version = "0.0.15" }
television-channels = { path = "crates/television-channels", version = "0.0.15" }
television-previewers = { path = "crates/television-previewers", version = "0.0.15" }
television-utils = { path = "crates/television-utils", version = "0.0.15" }

# external dependencies
better-panic = "0.3.0"
clap = { version = "4.4.5", features = ["derive", "cargo", "string"] }
color-eyre = "0.6.3"
config = "0.14.0"
crossterm = { version = "0.28.1", features = ["serde"] }
directories = "5.0.1"
lazy_static = "1.5.0"
ratatui = { version = "0.29.0", features = ["serde", "macros"] }
serde = { version = "1.0.208", features = ["derive"] }
signal-hook = "0.3.17"
syntect = "5.2.0"
tokio = { version = "1.39.3", features = ["full"] }
toml = "0.8.19"
tracing = "0.1.40"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "serde"] }
unicode-width = "0.2.0"
human-panic = "2.0.2"
copypasta = "0.10.1"

[dev-dependencies]
criterion = "0.5.1"
devicons = "0.6.11"

[[bench]]
name = "results_list_benchmark"
harness = false

[build-dependencies]
vergen-gix = { version = "1.0.0", features = ["build", "cargo", "rustc"] }

[target.'cfg(target_os = "macos")'.dependencies]
crossterm = { version = "0.28.1", features = ["serde", "use-dev-tty"] }


[profile.staging]
inherits = "dev"
opt-level = 3
debug = true
lto = false

[profile.profiling]
inherits = "release"
debug = true


[profile.release]
lto = "thin"

[profile.deb]
inherits = "release"
debug = false
