# 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 = "justpdf-formats"
version = "0.1.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Extended format support for justpdf - XPS, EPUB, SVG, Office, CBZ"
homepage = "https://github.com/kihyun1998/justpdf"
readme = "README.md"
keywords = [
    "pdf",
    "epub",
    "svg",
    "xps",
    "docx",
]
categories = ["parser-implementations"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kihyun1998/justpdf"

[features]
all = [
    "xps",
    "epub",
    "svg",
    "office",
    "cbz",
    "plaintext",
    "mobi",
    "fb2",
]
cbz = ["zip"]
default = []
epub = [
    "zip",
    "roxmltree",
]
fb2 = ["roxmltree"]
mobi = []
office = [
    "zip",
    "roxmltree",
]
plaintext = []
svg = ["roxmltree"]
xps = [
    "zip",
    "roxmltree",
]

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

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

[dependencies.justpdf-core]
version = "0.1.2"

[dependencies.justpdf-render]
version = "0.1.2"

[dependencies.roxmltree]
version = "0.20"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.zip]
version = "2"
features = ["deflate"]
optional = true
default-features = false
