# 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 = "2021"
rust-version = "1.87.0"
name = "iepub"
version = "1.3.1"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "epub、mobi电子书读写"
readme = "README.md"
keywords = [
    "epub",
    "mobi",
    "azw",
    "ebook",
]
license = "MIT"
repository = "https://github.com/inkroom/iepub"

[features]
cache = [
    "dep:serde",
    "dep:serde_json",
]
cover = [
    "dep:ab_glyph",
    "dep:image",
    "dep:imageproc",
]
no_nav = []

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

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

[dependencies.ab_glyph]
version = "0.2.32"
optional = true

[dependencies.anyhow]
version = "1.0.100"

[dependencies.iepub-derive]
version = "1.3.1"

[dependencies.image]
version = "0.25.9"
features = ["jpeg"]
optional = true
default-features = false

[dependencies.imageproc]
version = "0.26.0"
optional = true

[dependencies.md-5]
version = "0.10.6"
optional = true

[dependencies.quick-xml]
version = "0.39.0"

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

[dependencies.serde_json]
version = "1.0.149"
optional = true

[dependencies.zip]
version = "7.2.0"

[dev-dependencies.reqwest]
version = "0.13.1"
features = ["blocking"]
