# 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"
rust-version = "1.89"
name = "trnovel"
version = "0.13.2"
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.29.0"
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.3.0"

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

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

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

[dependencies.ratatui-kit-themes]
version = "0.1"

[dependencies.regex]
version = "1.12"

[dependencies.reqwest]
version = "0.13"
features = ["rustls"]
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.swash]
version = "0.2.7"

[dependencies.textwrap]
version = "0.16.2"

[dependencies.thiserror]
version = "2.0.18"

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

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

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

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

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

[dependencies.walkdir]
version = "2.5.0"

[dependencies.woff2]
version = "0.4.0"
package = "woff2-patched"

[dependencies.zeno]
version = "0.3.3"

[profile.dist]
inherits = "release"

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