-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
89 lines (85 loc) · 3.03 KB
/
Copy pathCargo.toml
File metadata and controls
89 lines (85 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
[package]
name = "mdbook-plotly"
version = "0.3.0"
authors = ["TickPoints <tickpoints@outlook.com>"]
edition = "2024"
keywords = ["markdown", "mdbook"]
description = "A mdbook preprocessor that renders plot code blocks (e.g., ```plot) into interactive or static charts during book build."
license = "MIT"
repository = "https://github.com/TickPoints/mdbook-plotly"
readme = "README.md"
[dependencies]
anyhow = "1.0"
clap = { version = "4.5", features = ["cargo"] }
chrono = { version = "0.4", optional = true }
env_logger = "0.11"
fasteval = { version = "0.2", features = ["unsafe-vars"]}
log = "0.4"
mdbook-preprocessor = "0.5"
serde = "1.0"
serde_json = "1.0"
toml = { version = "0.9", features = ["parse", "serde"] }
pulldown-cmark = { version = "0.13", default-features = false }
pulldown-cmark-to-cmark = { version = "22.0", default-features = false }
rayon = { version = "1.11", optional = true }
plotly = "0.14"
json5 = "1.3"
rand = { version = "0.10", optional = true }
# TUI feature dependencies (optional, only compiled with `--features tui`).
ratatui = { version = "0.30.2", optional = true }
crossterm = { version = "0.29.0", optional = true }
tachyonfx = { version = "0.25.1", optional = true }
tui-big-text = { version = "0.8.8", optional = true }
arboard = { version = "3.6.1", optional = true }
unicode-width = { version = "0.2.2", optional = true }
ureq = { version = "3.3.0", optional = true }
semver = { version = "1.0.28", optional = true }
toml_edit = { version = "0.25.13", optional = true }
directories = { version = "6.0.0", optional = true }
sha2 = { version = "0.11.0", optional = true }
self-replace = { version = "1.5.0", optional = true }
tempfile = { version = "3.27.0", optional = true }
thiserror = { version = "2.0.19", optional = true }
sys-locale = { version = "0.3.2", optional = true }
supports-color = { version = "3.0.2", optional = true }
[features]
default = ["sync", "map-parser-extensions", "default-handlers"]
sync = ["dep:rayon"]
# Full (TUI) edition: interactive self-update, book.toml editor, and plot
# generator. Enabled with `--features tui`; see docs/RELEASE.md for how
# the two variants are packaged and named.
tui = [
"dep:ratatui",
"dep:crossterm",
"dep:tachyonfx",
"dep:tui-big-text",
"dep:arboard",
"dep:unicode-width",
"dep:ureq",
"dep:semver",
"dep:toml_edit",
"dep:directories",
"dep:sha2",
"dep:self-replace",
"dep:tempfile",
"dep:thiserror",
"dep:sys-locale",
"dep:supports-color",
]
default-handlers = ["plotly-html-handler"]
full-handlers = ["plotly-svg-handler", "plotly-html-handler"]
map-parser-extensions = ["dep:chrono", "dep:rand"]
plotly-backed = [
# If you have firefox, you need to use this feature to enable the plotly backend.
# "plotly/static_export_geckodriver"
# If you have chrome, you need to use this feature to enable the plotly backend.
# "plotly/static_export_chromedriver"
]
plotly-svg-handler = ["plotly-backed"]
plotly-html-handler = []
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true