-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
68 lines (55 loc) · 1.97 KB
/
Cargo.toml
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
[package]
name = "svgdx"
version = "0.16.0"
description = "create SVG diagrams easily"
authors = ["Ben Bass <[email protected]>"]
repository = "https://github.com/codedstructure/svgdx"
keywords = ["svg", "diagrams"]
license = "MIT"
edition = "2021"
default-run = "svgdx"
[features]
default = ["cli", "server"]
cli = ["shlex", "notify", "notify-debouncer-mini", "clap", "tempfile"]
server = ["axum", "clap", "hyper", "serde", "serde_derive", "tokio", "webbrowser"]
[dependencies]
quick-xml = "0.37.2"
itertools = "0.14.0"
rand = { version = "0.8.5", default-features = false }
rand_pcg = "0.3.1"
tempfile = { version = "3.9.0", optional = true }
shlex = { version = "1.3.0", optional = true }
notify = { version = "7.0.0", optional = true }
notify-debouncer-mini = { version = "0.5.0", optional = true }
clap = { version = "4.5.17", features = ["derive"], optional = true }
axum = { version = "0.7", optional = true }
hyper = { version = "1.3", optional = true }
serde = { version = "1.0", optional = true }
serde_derive = { version = "1.0", optional = true }
tokio = { version = "1.40", features = ["macros", "rt-multi-thread", "fs"], optional = true }
webbrowser = { version = "1.0.3", features = ["hardened", "disable-wsl"], optional = true }
[lib]
crate-type = ["cdylib", "rlib"]
[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen = "0.2"
[dev-dependencies]
assertables = "9.5.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']