-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCargo.toml
More file actions
68 lines (59 loc) · 1.83 KB
/
Copy pathCargo.toml
File metadata and controls
68 lines (59 loc) · 1.83 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
[package]
name = "markdown2pdf"
version = "1.5.1"
edition = "2024"
rust-version = "1.85"
authors = ["Ismael Sh <me@theiskaa.com>"]
description = "Create PDF with Markdown files (a md to pdf transpiler)"
readme = "README.md"
license = "MIT"
keywords = ["md", "markdown", "pdf", "markdown-to-pdf", "markdown2pdf"]
repository = "https://github.com/theiskaa/markdown2pdf"
build = "build.rs"
[lib]
name = "markdown2pdf"
path = "src/lib/lib.rs"
[[bin]]
name = "markdown2pdf"
path = "src/bin/main.rs"
[features]
default = []
fetch = ["dep:reqwest", "reqwest/rustls"]
svg = ["dep:resvg"]
[dependencies]
log = "0.4"
toml = "1.1"
serde = { version = "1", features = ["derive"] }
clap = { version = "4.6", features = ["derive"] }
reqwest = { version = "0.13", features = [
"blocking",
], default-features = false, optional = true }
printpdf = { version = "0.9", default-features = false, features = [
"png",
"jpeg",
] }
phf = "0.13"
# Foundation crates for the in-tree renderer (src/lib/render/).
ttf-parser = "0.25"
rustybuzz = "0.20"
unicode-linebreak = "0.1"
# default `variable-fonts` only subsets CFF2-variable; we don't use it.
subsetter = { version = "0.2", default-features = false }
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
hyphenation = { version = "0.8", default-features = false, features = ["embed_en-us"] }
lopdf = { version = "0.44", default-features = false }
resvg = { version = "0.47", default-features = false, optional = true }
[build-dependencies]
phf_codegen = "0.13"
serde_json = "1"
[dev-dependencies]
lopdf = { version = "0.44", default-features = false }
image = { version = "0.25", default-features = false, features = ["png", "jpeg"] }
[profile.release]
lto = "thin"
codegen-units = 1
strip = true
# The profile that 'dist' will build with
[profile.dist]
inherits = "release"
lto = "thin"