-
Notifications
You must be signed in to change notification settings - Fork 50
/
Cargo.toml
156 lines (133 loc) · 4.45 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
[package]
name = "space_editor"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
keywords.workspace = true
categories.workspace = true
exclude = ["/assets", "/examples"]
description = "Prefab editor for bevy game engine. Make levels/object templates with intuitive UI"
readme = "README.md"
homepage = "https://github.com/rewin123/space_editor"
repository = "https://github.com/rewin123/space_editor"
default-run = "space_editor"
[workspace]
members = [
"game",
"crates/*",
"external/editor_as_plugin",
"workspace-hakari"
]
resolver = "2"
[[bin]]
name = "game_app"
path = "game/src/main.rs"
[[bin]]
name = "plugin_test"
path = "external/editor_as_plugin/src/main.rs"
[workspace.package]
version = "0.6.0"
edition = "2021"
license = "MIT OR Apache-2.0"
authors = ["rewin <rewin1996@gmail.com>", "Julia Naomi <jnboeira@outlook.com>"]
keywords = ["gamedev", "editor", "bevy"]
categories = ["game-development"]
repository = "https://github.com/rewin123/space_editor"
homepage = "https://github.com/rewin123/space_editor"
[workspace.dependencies]
bevy = "0.14.2"
# Editor Crates
space_prefab = { version = "0.6.0", path = "crates/prefab" }
space_shared = { version = "0.6.0", path = "crates/shared" }
space_undo = { version = "0.6.0", path = "crates/undo" }
space_persistence = { version = "0.6.0", path = "crates/persistence"}
space_editor_core = { version = "0.6.0", path = "crates/editor_core", features = ["persistence_editor"] }
space_editor_ui = { version = "0.6.0", path = "crates/editor_ui", features = ["persistence_editor"] }
space_editor_tabs = { version = "0.6.0", path = "crates/editor_tabs" }
# Crates inner libraries
anyhow = "1.0"
bevy_asset_loader = "0.21"
bevy_debug_grid = "0.6"
bevy_egui = "0.29"
bevy-inspector-egui = { version = "0.25", features = [
"bevy_pbr",
"highlight_changes",
] }
bevy_mod_billboard = { version = "0.7.0" }
bevy_mod_picking = { version = "0.20.1", default-features = false, features = ["backend_raycast", "selection",] }
bevy_panorbit_camera = { version = "0.19", default-features = false }
bevy-scene-hook = {git = "https://github.com/stargazing-dino/bevy-scene-hook.git", branch= "update-14.0"}
convert_case = "0.6"
egui_dock = "0.13"
egui_extras = { version = "0.28.1", features = ["all_loaders"] }
egui_file = "0.18"
transform-gizmo-egui = "0.3.0"
transform-gizmo-bevy = "0.3.0"
egui-toast = "0.14.0"
image = {version = "0.25.1", feature = ["png"] }
pretty-type-name = "1"
rand = "*"
ron = "0.8"
serde = "1"
# Community Modules
game_app = { version = "0.1.0", path = "game" }
[dependencies]
bevy.workspace = true
space_editor_ui.workspace = true
space_prefab.workspace = true
game_app.workspace = true
# Modules for external crates
workspace-hakari = { version = "0.1", path = "workspace-hakari" }
[target.'cfg(target_os = "linux")'.dependencies]
backtrace-on-stack-overflow = {version = "0.3", optional = true}
# For versions 1.74+
[workspace.lints.rust]
future-incompatible = "warn"
nonstandard_style = "deny"
non_local_definitions = { level = "allow", priority = 2 }
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(tarpaulin_include)'] }
[workspace.lints.clippy]
nursery = { level = "deny", priority = -1 }
all = { level = "deny", priority = -1 }
# Restricted
get_unwrap = { level = "deny", priority = -1 }
manual_while_let_some = { level = "deny", priority = -1 }
panicking_unwrap = { level = "deny", priority = -1 }
unnecessary_unwrap = { level = "deny", priority = -1 }
unnecessary_literal_unwrap = { level = "deny", priority = -1 }
unwrap_in_result = { level = "deny", priority = -1 }
# Bevy Related
cognitive_complexity = { level = "allow", priority = 2 }
needless_pass_by_ref_mut = { level = "allow", priority = 2 }
significant_drop_in_scrutinee = { level = "allow", priority = 2 }
significant_drop_tightening = { level = "allow", priority = 2 }
too_many_arguments = { level = "allow", priority = 2 }
[lints]
workspace = true
[profile.dev]
opt-level = 1
overflow-checks = false
incremental = true # works well when target/ is stored
[profile.dev.package."*"]
opt-level = 3
[profile.release-fast]
inherits = "release"
debug = 0
strip = "debuginfo"
lto = false
incremental = false
[profile.retail]
inherits = "release"
lto = true
[profile.release-lto]
inherits = "release"
lto = "thin"
[features]
backtrace = ["backtrace-on-stack-overflow"]
persistence_editor = []
no_event_registration = ["space_prefab/no_event_registration"]
default = [
"persistence_editor",
"space_prefab/editor",
]