-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
104 lines (94 loc) · 3.01 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
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
94
95
96
97
98
99
100
101
102
103
104
[package]
name = "transit"
version = "0.1.0"
authors = ["Al McElrath <[email protected]>"]
edition = "2021"
[features]
default = ["edit", "editor", "bin", "rust", "janet"]
# Editable graph.
edit = []
# Editor library (egui).
editor = ["edit", "serde", "dep:egui", "dep:tracing"]
# Editor binary.
bin = [
"editor",
"dep:tracing-subscriber",
"dep:eframe",
"dep:font-kit",
"dep:rfd",
"dep:notify-debouncer-mini",
"dep:directories",
]
serde = [
"dep:ron",
"dep:serde",
"eframe/persistence",
"relative-path/serde",
"emath/serde",
]
rust = [
"dep:bevy_app",
"dep:bevy_asset",
"dep:bevy_core",
"dep:bevy_ecs",
"dep:bevy_reflect",
# "dep:bevy_eventlistener",
"dep:tree-sitter",
"dep:tree-sitter-rust",
]
janet = ["dep:janetrs"]
[lib]
[[bin]]
name = "transit"
required-features = ["bin"]
test = false
[[example]]
name = "text"
required-features = ["edit", "serde"]
[dependencies]
petgraph = { version = "0.6", features = ["serde-1"] }
nohash-hasher = "0.2.0"
thiserror = "1"
heck = "0.5.0"
# eframe = { path = "./eframe-dynamic", package = "eframe-dynamic" }
egui = { version = "0.28", default-features = false, optional = true }
# Used for serialization of graphs when editor is not enabled.
emath = { version = "0.28", optional = true }
eframe = { version = "0.28", default-features = false, features = [
"wgpu",
"x11",
"persistence",
], optional = true }
tracing = { version = "0.1", default-features = false, features = [
"std",
], optional = true }
tracing-subscriber = { version = "0.3", optional = true }
font-kit = { version = "0.13.0", optional = true }
rfd = { version = "0.14", optional = true }
serde = { version = "1", features = ["derive"], optional = true }
notify-debouncer-mini = { version = "0.4.1", optional = true }
# TODO
relative-path = { version = "1.9.2", optional = true }
ron = { version = "0.8.1", optional = true }
directories = { version = "5.0.1", optional = true }
# Rust/Bevy
bevy_app = { path = "../clone/bevy/crates/bevy_app", version = "0.14", optional = true }
bevy_asset = { path = "../clone/bevy/crates/bevy_asset", version = "0.14", optional = true }
bevy_core = { path = "../clone/bevy/crates/bevy_core", version = "0.14", optional = true }
bevy_ecs = { path = "../clone/bevy/crates/bevy_ecs", version = "0.14", optional = true }
bevy_reflect = { path = "../clone/bevy/crates/bevy_reflect", version = "0.14", optional = true }
# bevy_eventlistener = { version = "0.8.0", optional = true }
tree-sitter-rust = { version = "0.21.2", optional = true }
tree-sitter = { version = "0.22.6", optional = true }
# Janet
#janetrs = { version = "0.7.0", features = ["system", "link-system"] }
janetrs = { path = "../clone/janetrs", version = "0.7", features = [
"link-system",
], optional = true }
[dev-dependencies]
inquire = "0.7.5"
# https://doc.rust-lang.org/cargo/reference/profiles.html
[profile.dev]
opt-level = 1
[profile.dev.package."*"]
opt-level = 3