-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
72 lines (59 loc) · 2.05 KB
/
Cargo.toml
File metadata and controls
72 lines (59 loc) · 2.05 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
[package]
name = "svgdx"
version = "0.28.0"
description = "create SVG diagrams easily"
authors = ["Ben Bass <benbass@codedstructure.net>"]
repository = "https://github.com/codedstructure/svgdx"
keywords = ["svg", "diagrams"]
license = "MIT"
edition = "2024"
default-run = "svgdx"
exclude = ["/examples", "/docs"]
rust-version = "1.85"
[features]
default = ["cli", "server"]
cli = ["shlex", "notify", "notify-debouncer-mini", "clap", "tempfile"]
server = ["axum", "clap", "hyper", "json", "tokio", "open"]
json = ["serde", "serde_derive", "serde_json"]
[dependencies]
quick-xml = "0.39.0"
rand = { version = "0.9", default-features = false }
rand_pcg = "0.9"
tempfile = { version = "3.9.0", optional = true }
shlex = { version = "1.3.0", optional = true }
notify = { version = "8.0.0", optional = true }
notify-debouncer-mini = { version = "0.7.0", optional = true }
clap = { version = "4.5.17", features = ["derive"], optional = true }
axum = { version = "0.8", optional = true }
hyper = { version = "1.3", optional = true }
serde = { version = "1.0", optional = true }
serde_derive = { version = "1.0", optional = true }
serde_json = { version = "1.0", optional = true }
tokio = { version = "1.44", features = ["macros", "rt-multi-thread", "fs"], optional = true }
open = { version = "5.3.2", optional = true }
[lib]
crate-type = ["cdylib", "rlib"]
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
[dev-dependencies]
assertables = "9.5.0"
itertools = "0.14.0"
[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]
assert_cmd = "2.0.12"
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3"
[[bin]]
name = "svgdx-server"
path = "src/bin/svgdx_server.rs"
required-features = ["server"]
[[bin]]
name = "svgdx"
path = "src/bin/svgdx.rs"
required-features = ["cli"]
[profile.release]
lto = true
opt-level = 's'
# wasm-pack docs imply that `profiling` profile should include debug info,
# but it doesn't seem to. (Useful e.g. for minimizing size with `twiggy`)
[package.metadata.wasm-pack.profile.profiling]
wasm-opt = ['-g', '-O']