[package]
edition = "2021"
name = "lightweight-pdf"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Lightweight, dependency-minimal Rust PDF generation for recurring business documents"
readme = false
license = "MIT"
repository = "https://github.com/casoon/lightweight-pdf"
[package.metadata.wasm-pack.profile.release]
wasm-opt = false
[features]
compress = ["lightweight-pdf-writer/compress"]
default = [
"default-fonts",
"compress",
]
default-fonts = []
hyphenation = ["lightweight-pdf-layout/hyphenation"]
pdf-a = ["lightweight-pdf-writer/pdf-a"]
png = ["dep:png"]
schemars = ["lightweight-pdf-core/schemars"]
serde = [
"dep:serde",
"lightweight-pdf-core/serde",
]
tagged-pdf = [
"pdf-a",
"lightweight-pdf-writer/tagged-pdf",
]
wasm = [
"dep:wasm-bindgen",
"dep:serde-wasm-bindgen",
"serde",
]
wasm-size-probe = []
zugferd = [
"pdf-a",
"lightweight-pdf-writer/zugferd",
]
[lib]
name = "lightweight_pdf"
crate-type = [
"rlib",
"cdylib",
]
path = "src/lib.rs"
[[example]]
name = "invoice"
path = "examples/invoice.rs"
[[example]]
name = "report"
path = "examples/report.rs"
[[test]]
name = "business_polish_phase6"
path = "tests/business_polish_phase6.rs"
[[test]]
name = "custom_font_registry"
path = "tests/custom_font_registry.rs"
[[test]]
name = "fonts_phase4"
path = "tests/fonts_phase4.rs"
[[test]]
name = "images_phase5"
path = "tests/images_phase5.rs"
[[test]]
name = "layout_phase1"
path = "tests/layout_phase1.rs"
[[test]]
name = "pagination_phase2"
path = "tests/pagination_phase2.rs"
[[test]]
name = "serde_json"
path = "tests/serde_json.rs"
required-features = ["serde"]
[[test]]
name = "snapshots"
path = "tests/snapshots.rs"
[[test]]
name = "spike"
path = "tests/spike.rs"
[[test]]
name = "table_phase3"
path = "tests/table_phase3.rs"
[[test]]
name = "tagged_pdf"
path = "tests/tagged_pdf.rs"
required-features = [
"tagged-pdf",
"png",
]
[[test]]
name = "template"
path = "tests/template.rs"
required-features = ["serde"]
[[test]]
name = "v2_features"
path = "tests/v2_features.rs"
[dependencies.lightweight-pdf-core]
version = "0.3.0"
[dependencies.lightweight-pdf-fonts]
version = "0.3.0"
[dependencies.lightweight-pdf-layout]
version = "0.3.0"
[dependencies.lightweight-pdf-writer]
version = "0.3.0"
default-features = false
[dependencies.png]
version = "0.18.1"
optional = true
default-features = false
[dependencies.serde]
version = "1.0.229"
features = ["derive"]
optional = true
[dependencies.serde-wasm-bindgen]
version = "0.6.5"
optional = true
[dependencies.wasm-bindgen]
version = "0.2.127"
optional = true
[dev-dependencies]