189 lines
3.4 KiB
TOML
189 lines
3.4 KiB
TOML
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
|
|
#
|
|
# When uploading crates to the registry Cargo will automatically
|
|
# "normalize" Cargo.toml files for maximal compatibility
|
|
# with all versions of Cargo and also rewrite `path` dependencies
|
|
# to registry (e.g., crates.io) dependencies.
|
|
#
|
|
# If you are reading this file be aware that the original Cargo.toml
|
|
# will likely look very different (and much more reasonable).
|
|
# See Cargo.toml.orig for the original contents.
|
|
|
|
[package]
|
|
edition = "2024"
|
|
name = "mermaid-rs-renderer"
|
|
version = "0.3.1"
|
|
build = false
|
|
exclude = [
|
|
"node_modules/",
|
|
"comparison/",
|
|
"tmp/",
|
|
"docs/benchmarks/",
|
|
"docs/comparisons/",
|
|
"docs/comparison_sources/",
|
|
"docs/conformance-report/",
|
|
"docs/diagrams/",
|
|
"docs/examples/",
|
|
"docs/layout-compare-report/",
|
|
"docs/*.html",
|
|
"docs/*.json",
|
|
"docs/*.md",
|
|
"scripts/",
|
|
".github/",
|
|
"package.json",
|
|
"package-lock.json",
|
|
"Cargo.toml.orig",
|
|
"*.orig",
|
|
"*.bak",
|
|
"*~",
|
|
".DS_Store",
|
|
"*.png",
|
|
"*.html",
|
|
]
|
|
autolib = false
|
|
autobins = false
|
|
autoexamples = false
|
|
autotests = false
|
|
autobenches = false
|
|
description = "Fast Mermaid diagram renderer in pure Rust - 23 diagram types, 100-1400x faster than mermaid-cli"
|
|
homepage = "https://github.com/1jehuang/mermaid-rs-renderer"
|
|
readme = "README.md"
|
|
keywords = [
|
|
"mermaid",
|
|
"diagram",
|
|
"svg",
|
|
"renderer",
|
|
"cli",
|
|
]
|
|
categories = [
|
|
"command-line-utilities",
|
|
"visualization",
|
|
]
|
|
license = "MIT"
|
|
repository = "https://github.com/1jehuang/mermaid-rs-renderer"
|
|
|
|
[features]
|
|
cli = ["dep:clap"]
|
|
default = [
|
|
"cli",
|
|
"png",
|
|
]
|
|
png = [
|
|
"dep:resvg",
|
|
"dep:usvg",
|
|
]
|
|
|
|
[lib]
|
|
name = "mermaid_rs_renderer"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "mmdr"
|
|
path = "src/main.rs"
|
|
required-features = ["cli"]
|
|
|
|
[[example]]
|
|
name = "flowchart_visual_report"
|
|
path = "examples/flowchart_visual_report.rs"
|
|
|
|
[[example]]
|
|
name = "port_quality"
|
|
path = "examples/port_quality.rs"
|
|
|
|
[[test]]
|
|
name = "aspect_fold_suite"
|
|
path = "tests/aspect_fold_suite.rs"
|
|
|
|
[[test]]
|
|
name = "cli_suite"
|
|
path = "tests/cli_suite.rs"
|
|
|
|
[[test]]
|
|
name = "correctness_suite"
|
|
path = "tests/correctness_suite.rs"
|
|
|
|
[[test]]
|
|
name = "determinism_suite"
|
|
path = "tests/determinism_suite.rs"
|
|
|
|
[[test]]
|
|
name = "invariant_suite"
|
|
path = "tests/invariant_suite.rs"
|
|
|
|
[[test]]
|
|
name = "layout_suite"
|
|
path = "tests/layout_suite.rs"
|
|
|
|
[[test]]
|
|
name = "output_shape_suite"
|
|
path = "tests/output_shape_suite.rs"
|
|
|
|
[[test]]
|
|
name = "parse_errors"
|
|
path = "tests/parse_errors.rs"
|
|
|
|
[[test]]
|
|
name = "robustness_suite"
|
|
path = "tests/robustness_suite.rs"
|
|
|
|
[[test]]
|
|
name = "semantic_suite"
|
|
path = "tests/semantic_suite.rs"
|
|
|
|
[[test]]
|
|
name = "visual_issue_suite"
|
|
path = "tests/visual_issue_suite.rs"
|
|
|
|
[[bench]]
|
|
name = "renderer"
|
|
path = "benches/renderer.rs"
|
|
harness = false
|
|
|
|
[dependencies.anyhow]
|
|
version = "1.0"
|
|
|
|
[dependencies.clap]
|
|
version = "4.6.1"
|
|
features = ["derive"]
|
|
optional = true
|
|
|
|
[dependencies.fontdb]
|
|
version = "0.23"
|
|
|
|
[dependencies.json5]
|
|
version = "1.3"
|
|
|
|
[dependencies.once_cell]
|
|
version = "1.21.4"
|
|
|
|
[dependencies.regex]
|
|
version = "1.12"
|
|
|
|
[dependencies.resvg]
|
|
version = "0.47.0"
|
|
optional = true
|
|
|
|
[dependencies.serde]
|
|
version = "1.0"
|
|
features = ["derive"]
|
|
|
|
[dependencies.serde_json]
|
|
version = "1.0"
|
|
|
|
[dependencies.thiserror]
|
|
version = "2.0"
|
|
|
|
[dependencies.ttf-parser]
|
|
version = "0.25"
|
|
|
|
[dependencies.usvg]
|
|
version = "0.47.0"
|
|
optional = true
|
|
|
|
[dev-dependencies.criterion]
|
|
version = "0.8"
|
|
|
|
[profile.release]
|
|
lto = true
|
|
codegen-units = 1
|