# 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.85"
name = "bookokrat"
version = "0.2.2"
authors = ["Rafael Bagmanov <bugzmanov@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "bookokrat"
description = "A terminal-based EPUB Books reader"
homepage = "https://bugzmanov.github.io/bookokrat/"
readme = "README.md"
keywords = [
    "tui",
    "ratatui",
    "epub",
    "reader",
]
categories = ["command-line-interface"]
license = "MIT"
repository = "https://github.com/bugzmanov/bookokrat"

[features]
serde = []
test-utils = []

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

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

[[example]]
name = "debug_chapter"
path = "examples/debug_chapter.rs"

[[example]]
name = "debug_spine"
path = "examples/debug_spine.rs"

[[example]]
name = "epub_inspector"
path = "examples/epub_inspector.rs"

[[example]]
name = "test_mathml_rust"
path = "examples/test_mathml_rust.rs"

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

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

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

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

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

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

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

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

[dependencies.anyhow]
version = "1.0.79"

[dependencies.arboard]
version = "3.4"

[dependencies.base64]
version = "0.21.2"

[dependencies.better-panic]
version = "0.3"

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

[dependencies.codepage-437]
version = "0.1.0"

[dependencies.crossterm]
version = "0.29.0"

[dependencies.epub]
version = "2.1.5"

[dependencies.fast_image_resize]
version = "3.0"

[dependencies.flate2]
version = "1.0"

[dependencies.home]
version = "=0.5.11"

[dependencies.html5ever]
version = "0.27"

[dependencies.human-panic]
version = "2.0"

[dependencies.icy_sixel]
version = "0.1.1"

[dependencies.image]
version = "0.25"

[dependencies.imagesize]
version = "0.13"

[dependencies.libc]
version = "0.2"

[dependencies.log]
version = "0.4"

[dependencies.markup5ever_rcdom]
version = "0.3"

[dependencies.md5]
version = "0.7"

[dependencies.once_cell]
version = "1.19"

[dependencies.open]
version = "5.3"

[dependencies.pprof]
version = "0.15"
features = [
    "flamegraph",
    "protobuf-codec",
]

[dependencies.rand]
version = "0.8.5"

[dependencies.ratatui]
version = "0.29.0"

[dependencies.regex]
version = "1.10.3"

[dependencies.roxmltree]
version = "0.18"

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.simplelog]
version = "0.12.1"

[dependencies.tempfile]
version = "3.8"

[dependencies.textwrap]
version = "0.16"

[dependencies.thiserror]
version = "1.0.59"

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

[dependencies.vt100]
version = "0.15"

[dependencies.walkdir]
version = "2.4"

[dependencies.zip]
version = "0.6"

[dev-dependencies.anstyle]
version = "1.0"

[dev-dependencies.anstyle-svg]
version = "0.1.5"

[dev-dependencies.serial_test]
version = "3.2"

[dev-dependencies.snapbox]
version = "0.6"
features = ["term-svg"]

[dev-dependencies.tempfile]
version = "3.8"

[target."cfg(not(windows))".dependencies.rustix]
version = "0.38.4"
features = [
    "stdio",
    "termios",
    "fs",
]

[target."cfg(windows)".dependencies.windows]
version = "0.58.0"
features = [
    "std",
    "Win32_System_Console",
    "Win32_Storage_FileSystem",
    "Win32_Security",
]
default-features = false

[profile.release]
debug = 2
