-
Notifications
You must be signed in to change notification settings - Fork 3
/
Cargo.toml
63 lines (59 loc) · 2.03 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
62
63
[package]
authors.workspace = true
categories.workspace = true
description.workspace = true
documentation.workspace = true
edition.workspace = true
homepage.workspace = true
license.workspace = true
name = "tpnote-lib"
readme = "README.md"
repository.workspace = true
rust-version.workspace = true
version = "0.35.1"
[features]
default = ["renderer", "viewer", "lang-detection"]
lang-detection = ["dep:lingua"]
renderer = ["dep:pulldown-cmark", "dep:rst_parser", "dep:rst_renderer", "dep:latex2mathml", "dep:syntect", "dep:mdka", "dep:htmlproc"]
viewer = []
[dependencies]
htmlproc = { version = "0.3.1", features = ["omit_attr"], optional = true }
html-escape = "0.2.13"
latex2mathml = { version = "0.2.3", optional = true }
lazy_static.workspace = true
lingua = { version = "1.6.2", optional = true }
log.workspace = true
mdka = { version = "1.2.9", optional = true }
parking_lot.workspace = true
# Plain text renderer.
parse-hyperlinks = "0.27.2"
parse-hyperlinks-extras = "0.27.2"
#parse-hyperlinks-extras = { path = "../../parse-hyperlinks/parse-hyperlinks-extras" }
#parse-hyperlinks = { path = "../../parse-hyperlinks/parse-hyperlinks" }
percent-encoding = "2.3.1"
# Markdown renderer.
pulldown-cmark = { version = "0.11.0", default-features = false, features = ["simd", "html"], optional = true }
# ReStructuredText renderer.
rst_parser = { version = "0.4.0", optional = true }
# ReStructuredText renderer.
rst_renderer = { version = "0.4.0", optional = true }
sanitize-filename-reader-friendly.workspace = true
self_cell = "1.0.4"
serde_json = "1.0.120"
serde.workspace = true
serde_yaml.workspace = true
substring = "1.4.5"
syntect = { version = "5.2.0", optional = true }
tera.workspace = true
thiserror.workspace = true
toml.workspace = true
[target.'cfg(windows)'.dependencies]
win32job = "2.0.0"
windows-sys = { version = "0.52.0", features = [
#"Win32_Foundation",
#"Win32_Security",
#"Win32_System_Threading",
#"Win32_UI_WindowsAndMessaging",
"Win32_Globalization",
"Win32_System_SystemServices",
] }