# 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"
name = "dxpdf"
version = "0.2.11"
build = false
exclude = [
    "test-cases/",
    "test-files/",
    "scripts/",
    "VISUAL_COMPARISON.md",
    "BENCHMARKS.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A fast DOCX-to-PDF converter powered by Skia"
homepage = "https://nerdy.pro"
documentation = "https://docs.rs/dxpdf"
readme = "README.md"
keywords = [
    "docx",
    "pdf",
    "converter",
    "word",
    "ooxml",
]
categories = [
    "command-line-utilities",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/nerdy-pro/dxpdf"

[features]
default = ["subset-fonts"]
python = ["pyo3"]
subset-fonts = ["dep:fontcull"]

[lib]
name = "dxpdf"
crate-type = [
    "rlib",
    "cdylib",
]
path = "src/lib.rs"

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

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

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

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

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

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

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

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

[[bench]]
name = "convert_bench"
path = "benches/convert_bench.rs"
harness = false

[[bench]]
name = "parse_bench"
path = "benches/parse_bench.rs"
harness = false

[dependencies.bitflags]
version = "2"

[dependencies.clap]
version = "4"
features = ["derive"]

[dependencies.env_logger]
version = "0.11"

[dependencies.fontcull]
version = "2"
optional = true

[dependencies.log]
version = "0.4"

[dependencies.pyo3]
version = "0.24"
features = ["extension-module"]
optional = true

[dependencies.quick-xml]
version = "0.39"
features = ["serialize"]

[dependencies.rustybuzz]
version = "0.20.1"

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

[dependencies.skia-safe]
version = "0.93"

[dependencies.thiserror]
version = "2"

[dependencies.unicode-normalization]
version = "0.1.25"

[dependencies.unicode-properties]
version = "0.1.4"

[dependencies.unicode-segmentation]
version = "1.13.2"

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

[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]

[dev-dependencies.lopdf]
version = "0.40"
default-features = false

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