# 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 = "trnovel"
version = "0.10.3"
authors = ["yexiyue <yexiyue666@qq.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "trnovel"
description = "Terminal reader for novel"
homepage = "https://yexiyue.github.io/TRNovel"
readme = "README.md"
keywords = [
    "CLI",
    "Terminal",
    "Novel",
    "Reader",
]
license = "MIT"
repository = "https://github.com/yexiyue/TRNovel"

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

[[bin]]
name = "trn"
path = "src/bin/trn.rs"

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

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

[dependencies.anyhow]
version = "1.0.102"

[dependencies.async-trait]
version = "0.1"

[dependencies.chrono]
version = "0.4.44"
features = ["serde"]

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

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

[dependencies.dirs]
version = "6.0.0"

[dependencies.encoding_rs]
version = "0.8.35"
features = ["serde"]

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

[dependencies.futures]
version = "0.3.32"

[dependencies.md5]
version = "0.8.0"

[dependencies.novel-tts]
version = "0.1.8"

[dependencies.parse-book-source]
version = "0.4.0"
features = [
    "browser",
    "js",
]

[dependencies.ratatui]
version = "0.29.0"
features = [
    "unstable",
    "serde",
]

[dependencies.ratatui-kit]
version = "0.5.9"
features = ["full"]

[dependencies.regex]
version = "1.12"

[dependencies.rodio]
version = "0.21.1"
features = [
    "playback",
    "wav",
]
default-features = false

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

[dependencies.serde_json]
version = "1.0.150"

[dependencies.strum]
version = "0.28"
features = ["derive"]

[dependencies.textwrap]
version = "0.16.2"

[dependencies.thiserror]
version = "2.0.18"

[dependencies.throbber-widgets-tui]
version = "0.9.0"

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

[dependencies.tokio-util]
version = "0.7.18"

[dependencies.tui-big-text]
version = "0.7.0"

[dependencies.tui-scrollview]
version = "0.5.1"

[dependencies.tui-textarea]
version = "0.7.0"

[dependencies.tui-tree-widget]
version = "0.23.0"

[dependencies.tui-widget-list]
version = "0.13.0"

[dependencies.walkdir]
version = "2.5.0"

[profile.dist]
inherits = "release"

[profile.release]
opt-level = 3
lto = true
panic = "abort"
