forked from westrik/mdpdf
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCargo.toml
More file actions
81 lines (67 loc) · 1.39 KB
/
Cargo.toml
File metadata and controls
81 lines (67 loc) · 1.39 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
[package]
name = "mdpdf"
version = "0.1.4"
edition = "2024"
include = ["src/**/*","fonts/*","README.md","LICENSE"]
license = "MIT"
keywords = ["pdf", "markdown", "node.js"]
description = "Convert Markdown to PDF using a self-contained binary"
repository = "http://github.com/westrik/mdpdf"
[lib]
crate-type = ["cdylib","rlib"]
[[bin]]
name = "mdpdf"
path = "src/main.rs"
required-features = ["cli"]
[features]
default = []
fuzz = []
cli = []
node = ["napi","napi-derive","napi-build"]
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = true
[dependencies]
typst = "0.13.0"
typst-pdf = "0.13.0"
pulldown-cmark = "0.13"
serde_json = "1.0"
anyhow = "1.0"
comemo = "0.4"
once_cell = "1.19"
image = "0.24"
base64 = "0.21"
url = "2.5"
tempfile = "3.8"
html-escape = "0.2"
html_parser = "0.7"
[dependencies.napi]
version = "3.1"
default-features = false
features = ["napi9", "async"]
optional = true
[dependencies.napi-derive]
version = "3.1"
optional = true
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.reqwest]
version = "0.11"
features = ["json"]
[dependencies.tokio]
version = "1.0"
default-features = false
features = ["rt-multi-thread","macros","fs"]
[dependencies.clap]
version = "4.0"
features = ["derive"]
[build-dependencies.napi-build]
version = "2.2"
optional = true
[dev-dependencies.napi]
version = "3.1"
features = ["napi9", "async"]