-
Notifications
You must be signed in to change notification settings - Fork 96
Expand file tree
/
Copy pathCargo.toml
More file actions
93 lines (85 loc) · 2.41 KB
/
Copy pathCargo.toml
File metadata and controls
93 lines (85 loc) · 2.41 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
90
91
92
93
[package]
name = "mermaid-rs-renderer"
version = "0.3.1"
edition = "2024"
description = "Fast Mermaid diagram renderer in pure Rust - 23 diagram types, 100-1400x faster than mermaid-cli"
license = "MIT"
readme = "README.md"
repository = "https://github.com/1jehuang/mermaid-rs-renderer"
homepage = "https://github.com/1jehuang/mermaid-rs-renderer"
keywords = ["mermaid", "diagram", "svg", "renderer", "cli"]
categories = ["command-line-utilities", "visualization"]
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/",
".cargo/",
"package.json",
"package-lock.json",
"Cargo.toml.orig",
"*.orig",
"*.bak",
"*~",
".DS_Store",
"*.png",
"*.html",
]
[features]
default = ["cli", "png"]
# CLI support (adds clap dependency)
cli = ["dep:clap"]
# PNG output support (adds resvg/usvg dependencies)
png = ["dep:resvg", "dep:usvg"]
# Criterion microbenchmarks (kept behind a feature so normal builds and
# `cargo test --all-targets` skip the criterion dependency stack)
benchmark = ["dep:criterion"]
[dependencies]
anyhow = "1.0"
clap = { version = "4.6.1", features = ["derive"], optional = true }
regex = "1.12"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
json5 = "1.3"
thiserror = "2.0"
once_cell = "1.21.4"
fontdb = "0.23"
ttf-parser = "0.25"
resvg = { version = "0.47.0", optional = true }
usvg = { version = "0.47.0", optional = true }
criterion = { version = "0.8", optional = true, default-features = false, features = ["cargo_bench_support"] }
[profile.release]
lto = true
codegen-units = 1
# Faster optimized iteration profile: thin LTO and parallel codegen compile
# much faster than the fat-LTO release profile. Published releases keep
# [profile.release].
[profile.release-fast]
inherits = "release"
lto = "thin"
codegen-units = 16
# Full debug info is rarely needed and inflates the ~100MB-per-binary
# integration test link step; line tables keep usable backtraces.
[profile.dev]
debug = "line-tables-only"
[profile.test]
debug = "line-tables-only"
[[bench]]
name = "renderer"
harness = false
required-features = ["benchmark"]
[[bin]]
name = "mmdr"
path = "src/main.rs"
required-features = ["cli"]