Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
102 lines (93 loc) · 3.03 KB
/
Copy pathCargo.toml
File metadata and controls
102 lines (93 loc) · 3.03 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
[package]
name = "ironpress"
version = "1.7.0"
edition = "2024"
rust-version = "1.88"
description = "Pure Rust HTML/CSS/Markdown to PDF converter with layout engine, LaTeX math, tables, images, custom fonts, and streaming output. No browser, no system dependencies."
license = "MIT"
repository = "https://github.com/gastongouron/ironpress"
documentation = "https://docs.rs/ironpress"
readme = "README.md"
keywords = ["pdf", "html", "css", "markdown", "converter"]
categories = ["text-processing", "encoding", "template-engine"]
exclude = [
".github/",
".claude/",
"target/",
"docs/",
"bindings/",
"font-packs/",
"dist/",
"tests/parity/",
"scripts/",
]
[workspace]
resolver = "3"
members = ["bindings/c", "bindings/python", "bindings/ruby/ext/ironpress"]
[patch.crates-io]
ironpress = { path = "." }
[lib]
crate-type = ["cdylib", "rlib"]
[[bin]]
name = "ironpress"
path = "src/bin/cli.rs"
[features]
default = []
async = ["tokio"]
remote = ["bogon", "core-net", "ureq", "url"]
wasm = ["wasm-bindgen", "js-sys", "getrandom/wasm_js"]
[dependencies]
cssparser-color = "0.5"
cssparser = "0.37"
html5ever = "0.40"
lightningcss = { version = "=1.0.0-alpha.72", default-features = false }
# lightningcss alpha.72 declares `parcel_selectors = "0.28.3"`, which also
# admits later patch releases even if one moves to an incompatible cssparser
# (0.28.3 did exactly that against alpha.71). Keep the transitive selector API
# on the version alpha.72 was built against.
parcel_selectors = "=0.28.3"
image = { version = "0.25", default-features = false, features = ["jpeg", "png"] }
png_decoder = { package = "png", version = "0.18" }
pulldown-cmark = "0.13"
fontdb = "0.24"
flate2 = "1"
lru = "0.19"
resvg = "0.48"
harfrust = "0.14"
sha2 = "0.11"
skrifa = "0.48"
subsetter = "=0.2.6"
thiserror = "2"
tokio = { version = "1.23.1", features = ["fs", "rt"], optional = true }
bogon = { version = "0.3", optional = true }
core-net = { version = "0.1", optional = true }
# The custom resolver lives in ureq's `unversioned` API. Pin the exact release
# so a compatible-looking minor update cannot change that private contract.
ureq = { version = "=3.4.2", optional = true }
url = { version = "2.5", optional = true }
wasm-bindgen = { version = "0.2", optional = true }
js-sys = { version = "0.3", optional = true }
language-tags = "0.3.2"
# lightningcss alpha.72 still uses getrandom 0.3 on wasm32. This direct edge
# enables wasm_js for that shared dependency graph; 0.4 would leave 0.3 unconfigured.
getrandom = { version = "0.3", optional = true }
unicode-bidi = "0.3.18"
unicode-linebreak = "0.1.5"
unicode-segmentation = "1.13.2"
[dev-dependencies]
tokio = { version = "1.23.1", features = ["macros", "rt-multi-thread"] }
proptest = "1"
criterion = { version = "0.8", features = ["html_reports"] }
serde_json = "1"
# Visual parity harness (tests/feature_parity.rs) deps.
serde = { version = "1", features = ["derive"] }
rayon = "1"
fs2 = "0.4.3"
tempfile = "3"
[[bench]]
name = "conversion"
harness = false
[profile.bench]
opt-level = 3
lto = "fat"
codegen-units = 1