-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
61 lines (50 loc) · 1.6 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[package]
name = "docx-template"
version = "0.1.0"
edition = "2021"
resolver = "2"
rust-version = "1.74.1" # cargo msrv find
authors = ["Igor Strebz"]
categories = ["template-engine"]
description = "Replace {placeholders} and manage content inside DOCX files"
keywords = ["docx", "template", "word", "openxml"]
license = "MIT"
repository = "https://github.com/xamgore/docx-template"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[example]]
name = "image-replacement"
[[example]]
name = "insert-table"
required-features = ["serde", "docx-rs"]
[[example]]
name = "table-markup"
required-features = ["serde"]
[[example]]
name = "template"
required-features = ["serde"]
[[test]]
name = "xml-with-placeholders"
[features]
default = ["serde"]
docx-rs = ["dep:docx-rs", "dep:xml-rs"]
docx-rust = ["dep:docx-rust", "dep:hard-xml"]
serde = ["dep:serde", "dep:serde_json"]
[dependencies]
aho-corasick = "1.1.3"
docx-rs = { version = "0.4.18-rc19", optional = true }
docx-rust = { version = "0.1.8", optional = true }
hard-xml = { version = "1.36.0", optional = true }
quick-xml = "0.36.2"
serde = { version = "1.0.210", features = ["derive"], optional = true }
serde_json = { version = "1.0.128", features = ["preserve_order"], optional = true }
thiserror = "1.0.64"
xml-rs = { version = "0.8.4", optional = true }
zip = { version = "~2.2.0", default-features = false, features = ["deflate"] }
[dev-dependencies]
indoc = "2.0.5"
insta = "1.40.0"
serde_with = "3.11.0"
chrono = { version = "0.4.38", features = ["serde"] }
[profile.dev.package]
insta.opt-level = 3
similar.opt-level = 3