ofd-core 0.2.0

OFD (Open Fixed-layout Document, GB/T 33190-2016) parsing, validation and rendering library
Documentation
[package]
name = "ofd-core"
version = "0.2.0"
edition = "2024"
rust-version = "1.93"
license = "MIT"
description = "OFD (Open Fixed-layout Document, GB/T 33190-2016) parsing, validation and rendering library"
repository = "https://github.com/ofd-utility/ofd-utility"
homepage = "https://github.com/ofd-utility/ofd-utility"
documentation = "https://docs.rs/ofd-core"
readme = "README.md"
keywords = ["ofd", "document", "parser", "render", "gbt33190"]
categories = ["parser-implementations", "rendering", "encoding"]

[dependencies]
quick-xml = { version = "0.36", features = ["serialize", "overlapped-lists"] }
serde = { version = "1", features = ["derive"] }
zip = { version = "2", default-features = false, features = ["deflate"] }
thiserror = "2"
# 渲染(OFD → 图片):tiny-skia 负责 2D 光栅化,image 负责图片编解码,
# ttf-parser 解析内嵌字型轮廓以绘制文字。
tiny-skia = "0.11"
ttf-parser = "0.25"
image = { version = "0.25", default-features = false, features = [
    "png",
    "jpeg",
    "bmp",
    "tiff",
    "gif",
    "webp",
] }
fontdb = "0.23"

[dev-dependencies]
# 仅用于测试中对基础类型做 serde 序列化/反序列化往返校验。
serde_json = "1"
# 渲染集成测试中生成内嵌位图(PNG)夹具。
image = { version = "0.25", default-features = false, features = ["png"] }