[package]
edition = "2021"
rust-version = "1.93.1"
name = "rhwp"
version = "0.9.1"
build = "build.rs"
include = [
"/Cargo.toml",
"/Cargo.lock",
"/build.rs",
"/src/**",
"/LICENSE",
"/README.md",
"/README_EN.md",
"/THIRD_PARTY_LICENSES.md",
"/llms.txt",
"/saved/blank2010.hwp",
"/assets/fonts/enclosed-pua-metrics.json",
"/assets/fonts/LatinModernMath-VariableOutline-subset.otf",
"/assets/fonts/MANIFEST-RHWP-LMM-VariableOutline.txt",
"/assets/fonts/licenses/**",
"/assets/font-rules/font_rule_registry_v2.json",
"/data/font-metrics/nimbus-roman/**",
"/mydocs/manual/agent_knowledge_map.md",
"/mydocs/manual/agent_troubleshooting_guide.md",
"/mydocs/manual/gym_optional_tool.md",
"/mydocs/manual/recipes/01_fill_form_and_submit.md",
"/mydocs/manual/recipes/02_table_csv_roundtrip.md",
"/mydocs/manual/recipes/03_redact_before_sharing.md",
"/mydocs/manual/recipes/04_safety_check_untrusted_doc.md",
"/mydocs/manual/recipes/05_mail_merge_batch_fill.md",
"/mydocs/manual/recipes/06_visual_regression_before_after.md",
"/mydocs/tech/agent_roadmap/atlas_r1_r200.md",
"/packaging/crates-io/README_PACKAGE.md",
"/packaging/crates-io/examples/pdf_isolation_host.rs",
]
publish = ["crates-io"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "HWP/HWPX document engine for Rust applications, WebAssembly, and CLI automation"
readme = "packaging/crates-io/README_PACKAGE.md"
license = "MIT"
repository = "https://github.com/edwardkim/rhwp"
[package.metadata.docs.rs]
targets = [
"x86_64-unknown-linux-gnu",
"wasm32-unknown-unknown",
]
[features]
default = [
"console_error_panic_hook",
"pdf-import",
"pdf-jbig2",
"pdf-jpeg2000",
"pdf-icc",
"wasm-api",
]
dev-tools = []
native-skia = [
"dep:skia-safe",
"dep:icy_sixel",
]
native-skia-d3d = [
"native-skia",
"skia-safe/d3d",
"dep:windows",
]
native-skia-gl = [
"native-skia",
"skia-safe/gl",
]
native-skia-metal = [
"native-skia",
"skia-safe/ganesh",
"skia-safe/metal",
]
pdf-icc = [
"pdf-import",
"pdf_oxide/icc-qcms",
]
pdf-import = [
"dep:pdf_oxide",
"pdf_oxide/legacy-crypto",
"dep:office_oxide",
"dep:tiny-skia",
]
pdf-jbig2 = [
"pdf-import",
"pdf_oxide/jbig2",
]
pdf-jpeg2000 = [
"pdf-import",
"pdf_oxide/jpeg2000",
]
subsecond-dev = ["dep:subsecond"]
wasm-api = []
[lib]
name = "rhwp"
crate-type = [
"rlib",
"cdylib",
]
path = "src/lib.rs"
[[bin]]
name = "rhwp"
path = "src/main.rs"
required-features = ["wasm-api"]
[[bin]]
name = "rhwp-q"
path = "src/bin/rhwp-q/main.rs"
[[bin]]
name = "rhwp-agent"
path = "src/bin/rhwp-agent/main.rs"
[[bin]]
name = "font-metric-gen"
path = "src/tools/font_metric_gen.rs"
required-features = ["dev-tools"]
[[example]]
name = "pdf_isolation_host"
path = "packaging/crates-io/examples/pdf_isolation_host.rs"
required-features = ["pdf-import"]
[dependencies.aes]
version = "0.9"
[dependencies.argon2]
version = "0.6"
features = ["alloc"]
default-features = false
[dependencies.base64]
version = "0.23"
[dependencies.blake3]
version = "1"
[dependencies.byteorder]
version = "1.5"
[dependencies.cbc]
version = "0.2"
[dependencies.cfb]
version = "0.16"
[dependencies.chacha20poly1305]
version = "0.11"
features = ["alloc"]
default-features = false
[dependencies.chrono]
version = "0.4"
[dependencies.cipher]
version = "0.5"
[dependencies.codepage]
version = "0.1.2"
[dependencies.console_error_panic_hook]
version = "0.1"
optional = true
[dependencies.crc32fast]
version = "1"
[dependencies.des]
version = "0.9"
[dependencies.ed25519-dalek]
version = "3"
[dependencies.embedded-io]
version = "0.7.1"
[dependencies.encoding_rs]
version = "0.8.35"
[dependencies.flate2]
version = "1.0"
[dependencies.getrandom]
version = "0.4"
features = ["wasm_js"]
[dependencies.hmac]
version = "0.13"
[dependencies.image]
version = "0.25"
features = [
"bmp",
"gif",
"jpeg",
"png",
"tiff",
]
default-features = false
[dependencies.jpeg-encoder]
version = "=0.7.1-rhwp.1"
package = "rhwp-jpeg-encoder"
[dependencies.ml-dsa]
version = "0.1"
features = ["alloc"]
default-features = false
[dependencies.ml-kem]
version = "0.3"
[dependencies.office_oxide]
version = "=0.1.9"
optional = true
default-features = false
[dependencies.paste]
version = "1.0.15"
[dependencies.pbkdf2]
version = "0.13"
[dependencies.pcx]
version = "0.2"
[dependencies.pdf_oxide]
version = "=0.3.78-rhwp.2"
optional = true
default-features = false
package = "rhwp-pdf-import-backend"
[dependencies.quick-xml]
version = "0.42"
[dependencies.rand_core]
version = "0.10"
[dependencies.resvg]
version = "0.47"
features = [
"text",
"raster-images",
]
default-features = false
[dependencies.rhwp-codec-resource]
version = "=0.1.1"
[dependencies.rhwp-contracts]
version = "0.1.0"
[dependencies.rhwp-ooxml-chart]
version = "0.1.1"
[dependencies.rhwp-password-crypto]
version = "0.1.0"
[dependencies.roxmltree]
version = "0.21"
[dependencies.rustybuzz]
version = "0.20"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = ["raw_value"]
[dependencies.sha1]
version = "0.11"
[dependencies.sha2]
version = "0.11"
[dependencies.snafu]
version = "0.9.0"
[dependencies.strum]
version = "0.28.0"
features = ["derive"]
default-features = false
[dependencies.subsecond]
version = "=0.7.10"
optional = true
[dependencies.svgtypes]
version = "0.16"
[dependencies.tiny-skia]
version = "0.12"
features = [
"std",
"simd",
]
optional = true
default-features = false
[dependencies.ttf-parser]
version = "0.25"
[dependencies.unicode-bidi]
version = "0.3.18"
[dependencies.unicode-bidi-mirroring]
version = "0.4.0"
[dependencies.unicode-properties]
version = "0.1.4"
features = ["general-category"]
default-features = false
[dependencies.unicode-segmentation]
version = "1.12.0"
[dependencies.unicode-width]
version = "0.2.2"
[dependencies.wasm-bindgen]
version = "0.2"
[dependencies.zeroize]
version = "1"
[dependencies.zip]
version = "9.0"
features = ["deflate"]
default-features = false
[dependencies.zune-print]
version = "=0.5.15-rhwp.1"
features = ["std"]
default-features = false
package = "rhwp-zune-jpeg"
[dev-dependencies.log]
version = "0.4"
[dev-dependencies.proptest]
version = "1.6"
[dev-dependencies.sha2]
version = "0.11"
[dev-dependencies.wasm-bindgen-test]
version = "0.3"
[dev-dependencies.zip]
version = "9.0"
features = ["deflate"]
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.icy_sixel]
version = "=0.7.0"
optional = true
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.pdf-writer]
version = "0.12"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.read-fonts]
version = "0.47"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.skera]
version = "0.10"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.skia-safe]
version = "0.157.0"
features = [
"binary-cache",
"embed-icudtl",
"pdf",
"textlayout",
]
optional = true
default-features = false
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.svg2pdf]
version = "=0.13.0-rhwp.1"
package = "rhwp-svg2pdf"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ureq]
version = "3.3.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.usvg]
version = "0.45"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wuff]
version = "0.2.9"
[target.'cfg(target_arch = "wasm32")'.dependencies.js-sys]
version = "0.3"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
features = [
"CanvasRenderingContext2d",
"Path2d",
"CanvasWindingRule",
"DomMatrix",
"CanvasGradient",
"CanvasPattern",
"DomMatrix",
"DomMatrixReadOnly",
"CanvasGradient",
"CanvasPattern",
"HtmlCanvasElement",
"HtmlImageElement",
"ImageData",
"TextMetrics",
"Document",
"Window",
"console",
]
[target.'cfg(target_os = "windows")'.dependencies.windows]
version = "=0.62.2"
features = [
"Win32_Foundation",
"Win32_Graphics_Direct3D",
"Win32_Graphics_Direct3D12",
"Win32_Graphics_Dxgi",
"Win32_Graphics_Dxgi_Common",
]
optional = true
default-features = false
[target."cfg(unix)".dependencies.libc]
version = "0.2"
[lints.clippy]
assign_op_pattern = "allow"
blocks_in_conditions = "allow"
bool_comparison = "allow"
clone_on_copy = "allow"
cognitive_complexity = "allow"
collapsible_else_if = "allow"
collapsible_if = "allow"
collapsible_match = "allow"
derivable_impls = "allow"
enum_variant_names = "allow"
explicit_into_iter_loop = "allow"
field_reassign_with_default = "allow"
filter_map_identity = "allow"
if_same_then_else = "allow"
implicit_saturating_sub = "allow"
iter_cloned_collect = "allow"
large_enum_variant = "warn"
manual_clamp = "allow"
manual_div_ceil = "allow"
manual_is_ascii_check = "allow"
manual_pattern_char_comparison = "allow"
manual_range_contains = "allow"
manual_rem_euclid = "allow"
manual_repeat_n = "allow"
manual_saturating_arithmetic = "allow"
manual_strip = "allow"
match_like_matches_macro = "allow"
needless_borrow = "allow"
needless_borrows_for_generic_args = "allow"
needless_lifetimes = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
new_without_default = "allow"
nonminimal_bool = "allow"
option_map_or_none = "allow"
ptr_arg = "allow"
redundant_closure = "allow"
redundant_pattern_matching = "allow"
repeat_vec_with_capacity = "allow"
same_item_push = "allow"
should_implement_trait = "allow"
single_match = "allow"
too_many_arguments = "allow"
type_complexity = "allow"
unnecessary_cast = "allow"
unnecessary_filter_map = "allow"
unnecessary_map_or = "allow"
unused_enumerate_index = "allow"
useless_conversion = "allow"
useless_format = "allow"
vec_init_then_push = "allow"
[lints.rust]
dead_code = "allow"
unused_assignments = "allow"
unused_imports = "allow"
unused_macros = "allow"
unused_mut = "allow"
unused_variables = "allow"
[lints.rust.unexpected_cfgs]
level = "allow"
priority = 0
check-cfg = ['cfg(feature, values("tracing", "svg"))']
[profile.dev]
debug = 1
[profile.release]
lto = true
codegen-units = 1
strip = "debuginfo"
[profile.release-test]
lto = false
codegen-units = 16
inherits = "release"