[package]
name = "mlbt"
version = "0.1.0"
authors = ["Andrew Schneider <andjschneider@gmail.com>"]
edition = "2024"
license = "MIT"
repository = "https://github.com/mlb-rs/mlbt"
readme = "README.md"
description = "A terminal user interface for the MLB stats API. Watch a baseball game in your terminal! ⚾"
keywords = ["baseball", "mlb", "terminal", "tui"]
categories = ["command-line-utilities"]

[profile.release]
lto = true
strip = true
opt-level = "z"
codegen-units = 1

[package.metadata.binstall]
pkg-url = "{ repo }/releases/download/v{ version }/mlbt-{ target }.tar.gz"
bin-dir = "mlbt{ binary-ext }"
pkg-fmt = "tgz"

[package.metadata.deb]
maintainer = "Andrew Schneider <andjschneider@gmail.com>"
section = "utils"

[package.metadata.generate-rpm]
assets = [
    { source = "target/release/mlbt", dest = "/usr/bin/mlbt", mode = "0755" },
]

[workspace]
members = [".", "api"]

[dependencies]
anyhow = "1.0.100"
better-panic = "0.3.0"
chrono = "0.4.43"
chrono-tz = { version = "0.10.4", features = ["serde"] }
crossterm = "0.29.0"
directories = "6.0.0"
indexmap = "2.13.0"
log = "0.4.29"
mlbt-api = { path = "api", version = "0.2.0" }
serde = { version = "1.0.228", features = ["derive"] }
tokio = { version = "1.49.0", features = ["full"] }
toml = "0.9.8"
tui = { package = "ratatui", version = "0.30.0", features = ["unstable-rendered-line-info"] }
tui-logger = { version = "0.18.1", features = ["crossterm"] }
