# 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 = "2024"
name = "tvid"
version = "0.2.5"
authors = ["copi143 <copi143@outlook.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A terminal video player"
homepage = "https://github.com/copi143/tvid"
readme = "README.md"
keywords = [
    "video",
    "player",
    "terminal",
]
categories = [
    "command-line-utilities",
    "multimedia",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/copi143/tvid"

[package.metadata.static-l10n]
path = "lang"
base = "en-us"
langs = [
    "en-us",
    "zh-cn",
    "zh-tw",
    "ja-jp",
    "fr-fr",
    "de-de",
    "es-es",
    "ko-kr",
    "pt-br",
    "ru-ru",
    "it-it",
    "tr-tr",
    "vi-vn",
]

[features]
audio = ["dep:cpal"]
command = []
config = [
    "dep:serde",
    "dep:toml_edit",
]
default = [
    "ffmpeg",
    "i18n",
    "config",
    "audio",
    "video",
    "subtitle",
    "unicode",
    "unifont",
    "command",
]
ffmpeg = [
    "dep:av",
    "dep:avsys",
]
i18n = [
    "dep:sys-locale",
    "dep:static-l10n",
]
osc1337 = [
    "dep:base64",
    "dep:jpeg-encoder",
]
sixel = []
ssh = ["dep:russh"]
subtitle = []
unicode = ["dep:unicode-width"]
unifont = []
video = []

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.av]
version = "8.1.0"
optional = true
package = "ffmpeg-next"

[dependencies.avsys]
version = "8.1.0"
optional = true
package = "ffmpeg-sys-next"

[dependencies.base64]
version = "0.22.1"
optional = true

[dependencies.chrono]
version = "0.4.44"
features = ["clock"]
default-features = false

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

[dependencies.cpal]
version = "0.17.3"
optional = true

[dependencies.data-classes]
version = "0.0.0-17"
features = ["serde"]

[dependencies.jpeg-encoder]
version = "0.7.0"
optional = true

[dependencies.parking_lot]
version = "0.12.5"

[dependencies.russh]
version = "0.60.2"
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.shellexpand]
version = "3.1.2"

[dependencies.static-l10n]
version = "0.0.2"
optional = true

[dependencies.sys-locale]
version = "0.3.2"
optional = true

[dependencies.tokio]
version = "1.52.2"
features = [
    "rt-multi-thread",
    "time",
    "sync",
]

[dependencies.toml_edit]
version = "0.25.11"
features = ["serde"]
optional = true

[dependencies.unicode-width]
version = "0.2.2"
optional = true

[target."cfg(unix)".dependencies.libc]
version = "0.2.186"

[target."cfg(windows)".dependencies.winapi]
version = "0.3.9"
features = [
    "std",
    "winbase",
    "processenv",
    "winnt",
    "wincon",
    "consoleapi",
]

[profile.dev]
opt-level = 2
lto = false
codegen-units = 16
debug = 2
debug-assertions = true
overflow-checks = true

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
debug = 0
debug-assertions = false
overflow-checks = false
