# 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.86"
name = "kitpdf"
version = "0.3.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A terminal-based PDF viewer using the Kitty graphics protocol"
readme = "README.md"
keywords = [
    "cli",
    "utility",
    "pdf",
    "epub",
]
categories = ["command-line-utilities"]
license = "MIT"
repository = "https://github.com/wensheng/kitpdf"

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

[dependencies.anyhow]
version = "1"

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

[dependencies.csscolorparser]
version = "0.8"
default-features = false

[dependencies.directories]
version = "6"

[dependencies.flexi_logger]
version = "0.31"

[dependencies.flume]
version = "0.12"
features = ["async"]
default-features = false

[dependencies.futures-util]
version = "0.3"
default-features = false

[dependencies.image]
version = "0.25"
features = [
    "png",
    "rayon",
]
default-features = false

[dependencies.kittage]
version = "0.4.0"
features = [
    "crossterm-tokio",
    "image-crate",
    "log",
]

[dependencies.lazy_static]
version = "1.5.0"

[dependencies.log]
version = "0.4"

[dependencies.md-5]
version = "0.11"

[dependencies.memmap2]
version = "0"

[dependencies.mimalloc]
version = "0.1"

[dependencies.mupdf]
version = "0.6.0"
features = [
    "svg",
    "system-fonts",
    "img",
    "html",
    "epub",
]
default-features = false

[dependencies.nix]
version = "0.31"
features = ["signal"]

[dependencies.rayon]
version = "1"
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "signal",
    "io-util",
]

[profile.production]
lto = "fat"
inherits = "release"
