# 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 = "lopdf-table"
version = "0.4.0"
authors = ["Oscar Rainford"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A composable table drawing library for PDFs built on lopdf"
readme = "README.md"
keywords = [
    "pdf",
    "table",
    "lopdf",
    "document",
    "generation",
]
categories = [
    "graphics",
    "text-processing",
]
license = "MIT"
repository = "https://github.com/fourbs-group/lopdf-table"

[features]
default = ["ttf-parser"]
ttf-parser = ["dep:ttf-parser"]

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

[[bin]]
name = "lopdf-table"
path = "src/main.rs"

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

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

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

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

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

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

[dependencies.lopdf]
version = "0.39"
features = ["embed_image"]

[dependencies.thiserror]
version = "2.0"

[dependencies.tracing]
version = "0.1"

[dependencies.ttf-parser]
version = "0.25"
optional = true

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

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
