[package]
edition = "2024"
rust-version = "1.88"
name = "harumi"
version = "0.2.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Overlay searchable CJK text on PDFs, extract text, merge/split pages — pure Rust, zero C dependencies"
homepage = "https://github.com/kent-tokyo/harumi"
documentation = "https://docs.rs/harumi"
readme = "README.md"
keywords = [
"pdf",
"cjk",
"japanese",
"ocr",
"font",
]
categories = [
"encoding",
"text-processing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/kent-tokyo/harumi"
[features]
default = []
draw = []
image = [
"dep:image",
"draw",
]
ocr = []
[lib]
name = "harumi"
path = "src/lib.rs"
[[example]]
name = "japanese_ocr"
path = "examples/japanese_ocr.rs"
[[example]]
name = "smoke_pdf"
path = "examples/smoke_pdf.rs"
[[test]]
name = "document_new"
path = "tests/document_new.rs"
[[test]]
name = "draw_smoke"
path = "tests/draw_smoke.rs"
[[test]]
name = "e2e_noto_jp"
path = "tests/e2e_noto_jp.rs"
[[test]]
name = "extract_text"
path = "tests/extract_text.rs"
[[test]]
name = "helpers"
path = "tests/helpers.rs"
[[test]]
name = "integration"
path = "tests/integration.rs"
[[test]]
name = "metadata"
path = "tests/metadata.rs"
[[test]]
name = "page_ops"
path = "tests/page_ops.rs"
[[test]]
name = "smoke"
path = "tests/smoke.rs"
[dependencies.allsorts]
version = "0.17"
[dependencies.image]
version = "0.25"
features = [
"jpeg",
"png",
]
optional = true
default-features = false
[dependencies.lopdf]
version = "0.40"
[dependencies.thiserror]
version = "2"
[dependencies.ttf-parser]
version = "0.25"
[dev-dependencies.lopdf]
version = "0.40"