[package]
edition = "2024"
rust-version = "1.88"
name = "ciclostile"
version = "0.0.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fill .docx templates: replace text, insert images and tables, and keep everything else untouched"
readme = "README.md"
keywords = [
"docx",
"word",
"ooxml",
"template",
"office",
]
categories = [
"text-processing",
"template-engine",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/M4SS-Code/ciclostile"
[lib]
name = "ciclostile"
path = "src/lib.rs"
[[example]]
name = "fill_template"
path = "examples/fill_template.rs"
[[test]]
name = "api"
path = "tests/api.rs"
[[test]]
name = "clone"
path = "tests/clone.rs"
[[test]]
name = "fields"
path = "tests/fields.rs"
[[test]]
name = "image"
path = "tests/image.rs"
[[test]]
name = "open"
path = "tests/open.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[[test]]
name = "table"
path = "tests/table.rs"
[[test]]
name = "text"
path = "tests/text.rs"
[dependencies.bytes]
version = "1"
[dependencies.img-parts]
version = "0.4.2"
[dependencies.miniz_oxide]
version = "0.9"
[dependencies.quick-xml]
version = "0.42"
[dependencies.rawzip]
version = "0.5.2"
[dependencies.thiserror]
version = "2"
[dev-dependencies.flate2]
version = "1"
[dev-dependencies.zip]
version = "9"
features = ["deflate-flate2"]
default-features = false
[lints.clippy]
await_holding_refcell_ref = "deny"
clone_on_ref_ptr = "warn"
map_unwrap_or = "warn"
module_name_repetitions = "allow"
needless_lifetimes = "warn"
needless_raw_string_hashes = "warn"
redundant_closure_for_method_calls = "warn"
semicolon_if_nothing_returned = "warn"
str_to_string = "warn"
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unreachable_pub = "deny"
unsafe_code = "deny"