[package]
edition = "2024"
name = "mdbook-plotly"
version = "0.3.0"
authors = ["TickPoints <tickpoints@outlook.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A mdbook preprocessor that renders plot code blocks (e.g., ```plot) into interactive or static charts during book build."
readme = "README.md"
keywords = [
"markdown",
"mdbook",
]
license = "MIT"
repository = "https://github.com/TickPoints/mdbook-plotly"
[features]
default = [
"sync",
"map-parser-extensions",
"default-handlers",
]
default-handlers = ["plotly-html-handler"]
full-handlers = [
"plotly-svg-handler",
"plotly-html-handler",
]
map-parser-extensions = [
"dep:chrono",
"dep:rand",
]
plotly-backed = []
plotly-html-handler = []
plotly-svg-handler = ["plotly-backed"]
sync = ["dep:rayon"]
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",
]
[lib]
name = "mdbook_plotly"
path = "src/lib.rs"
[[bin]]
name = "mdbook-plotly"
path = "src/main.rs"
[[test]]
name = "test_book_toml"
path = "tests/test_book_toml.rs"
[[test]]
name = "test_code_handler"
path = "tests/test_code_handler.rs"
[[test]]
name = "test_code_map"
path = "tests/test_code_map.rs"
[[test]]
name = "test_code_type"
path = "tests/test_code_type.rs"
[[test]]
name = "test_github"
path = "tests/test_github.rs"
[[test]]
name = "test_locale"
path = "tests/test_locale.rs"
[[test]]
name = "test_plot_schema"
path = "tests/test_plot_schema.rs"
[[test]]
name = "test_plotgen"
path = "tests/test_plotgen.rs"
[[test]]
name = "test_preprocessor_config"
path = "tests/test_preprocessor_config.rs"
[[test]]
name = "test_preprocessor_handlers"
path = "tests/test_preprocessor_handlers.rs"
[[test]]
name = "test_tui_visual"
path = "tests/test_tui_visual.rs"
[[test]]
name = "test_update"
path = "tests/test_update.rs"
[dependencies.anyhow]
version = "1.0"
[dependencies.arboard]
version = "3.6.1"
optional = true
[dependencies.chrono]
version = "0.4"
optional = true
[dependencies.clap]
version = "4.5"
features = ["cargo"]
[dependencies.crossterm]
version = "0.29.0"
optional = true
[dependencies.directories]
version = "6.0.0"
optional = true
[dependencies.env_logger]
version = "0.11"
[dependencies.fasteval]
version = "0.2"
features = ["unsafe-vars"]
[dependencies.json5]
version = "1.3"
[dependencies.log]
version = "0.4"
[dependencies.mdbook-preprocessor]
version = "0.5"
[dependencies.plotly]
version = "0.14"
[dependencies.pulldown-cmark]
version = "0.13"
default-features = false
[dependencies.pulldown-cmark-to-cmark]
version = "22.0"
default-features = false
[dependencies.rand]
version = "0.10"
optional = true
[dependencies.ratatui]
version = "0.30.2"
optional = true
[dependencies.rayon]
version = "1.11"
optional = true
[dependencies.self-replace]
version = "1.5.0"
optional = true
[dependencies.semver]
version = "1.0.28"
optional = true
[dependencies.serde]
version = "1.0"
[dependencies.serde_json]
version = "1.0"
[dependencies.sha2]
version = "0.11.0"
optional = true
[dependencies.supports-color]
version = "3.0.2"
optional = true
[dependencies.sys-locale]
version = "0.3.2"
optional = true
[dependencies.tachyonfx]
version = "0.25.1"
optional = true
[dependencies.tempfile]
version = "3.27.0"
optional = true
[dependencies.thiserror]
version = "2.0.19"
optional = true
[dependencies.toml]
version = "0.9"
features = [
"parse",
"serde",
]
[dependencies.toml_edit]
version = "0.25.13"
optional = true
[dependencies.tui-big-text]
version = "0.8.8"
optional = true
[dependencies.unicode-width]
version = "0.2.2"
optional = true
[dependencies.ureq]
version = "3.3.0"
optional = true
[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true