[package]
edition = "2021"
rust-version = "1.85"
name = "rwml"
version = "0.1.0"
authors = ["Hyunjo Jung <mrjung0987@seoultech.ac.kr>"]
build = false
exclude = [
".github/",
"rwml-fonts/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Native Rust toolkit for Microsoft Word — read, write, edit, and render legacy .doc (Word 97-2003, [MS-DOC]) and modern .docx (OOXML): one document model, package-preserving edits, field evaluation, Markdown/HTML export, PDF preview"
homepage = "https://github.com/HyunjoJung/rwml"
documentation = "https://docs.rs/rwml"
readme = "README.md"
keywords = [
"doc",
"docx",
"msword",
"ole2",
"parser",
]
categories = [
"parser-implementations",
"text-processing",
]
license = "MIT"
repository = "https://github.com/HyunjoJung/rwml"
[features]
bundled-fonts = [
"render",
"dep:rwml-fonts",
]
default = ["docx"]
docx = [
"dep:zip",
"dep:quick-xml",
"dep:flate2",
]
render = [
"dep:krilla",
"dep:parley",
]
[lib]
name = "rwml"
crate-type = [
"rlib",
"cdylib",
]
path = "src/lib.rs"
[[bin]]
name = "rwml"
path = "src/bin/rwml.rs"
required-features = ["docx"]
[[example]]
name = "convert"
path = "examples/convert.rs"
[[example]]
name = "diagnose"
path = "examples/diagnose.rs"
[[example]]
name = "extract"
path = "examples/extract.rs"
[[example]]
name = "report"
path = "examples/report.rs"
required-features = ["docx"]
[[example]]
name = "robustness"
path = "examples/robustness.rs"
[[example]]
name = "roundtrip"
path = "examples/roundtrip.rs"
required-features = ["docx"]
[[example]]
name = "to_docx"
path = "examples/to_docx.rs"
required-features = ["docx"]
[[example]]
name = "to_pdf"
path = "examples/to_pdf.rs"
required-features = ["render"]
[[example]]
name = "validate_edit"
path = "examples/validate_edit.rs"
required-features = ["docx"]
[[test]]
name = "authoring"
path = "tests/authoring.rs"
[[test]]
name = "bundled_fonts"
path = "tests/bundled_fonts.rs"
[[test]]
name = "cli"
path = "tests/cli.rs"
[[test]]
name = "comments"
path = "tests/comments.rs"
[[test]]
name = "edit"
path = "tests/edit.rs"
[[test]]
name = "fields"
path = "tests/fields.rs"
[[test]]
name = "header_footer"
path = "tests/header_footer.rs"
[[test]]
name = "layout_pages"
path = "tests/layout_pages.rs"
[[test]]
name = "metadata"
path = "tests/metadata.rs"
[[test]]
name = "noteref_numbering"
path = "tests/noteref_numbering.rs"
[[test]]
name = "public_corpus"
path = "tests/public_corpus.rs"
[[test]]
name = "ref_numeric_picture"
path = "tests/ref_numeric_picture.rs"
[[test]]
name = "report"
path = "tests/report.rs"
[[test]]
name = "revisions"
path = "tests/revisions.rs"
[[test]]
name = "shapes"
path = "tests/shapes.rs"
[[test]]
name = "style_inheritance"
path = "tests/style_inheritance.rs"
[[test]]
name = "wasm"
path = "tests/wasm.rs"
[[test]]
name = "wasm_demo"
path = "tests/wasm_demo.rs"
[dependencies.cfb]
version = "0.10"
[dependencies.encoding_rs]
version = "0.8"
[dependencies.flate2]
version = "1.0"
optional = true
[dependencies.krilla]
version = "0.8"
optional = true
[dependencies.parley]
version = "0.10"
optional = true
[dependencies.quick-xml]
version = "0.36"
optional = true
[dependencies.rwml-fonts]
version = "0.1.0"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.zip]
version = "2.2"
features = ["deflate"]
optional = true
default-features = false
[dev-dependencies.rwml-fonts]
version = "0.1.0"
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2"