Skip to content

Commit f397c51

Browse files
committed
Remove bevy-inspector-egui from deps
1 parent a275b07 commit f397c51

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Cargo.toml

+8-6
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ gpu_tests = []
2929

3030
# Enable world inspector in examples, via bevy-inspector-egui.
3131
# This has no effect on the crate itself, only affects examples.
32-
examples_world_inspector = [ "dep:bevy-inspector-egui" ]
32+
# Unfortunately cargo doesn't allow example-only features.
33+
# We don't force a dependency on the bevy-inspector-egui crate because:
34+
# 1. dev-dependencies cannot be optional
35+
# 2. there's a bunch of duplicate deps and dodgy licenses pulled
36+
examples_world_inspector = []
3337

3438
[dependencies]
3539
bytemuck = { version = "1", features = ["derive"] }
@@ -46,11 +50,6 @@ thiserror = "1.0"
4650
naga = "0.19"
4751
naga_oil = { version = "0.13", default-features = false, features = ["test_shader"] }
4852

49-
# For world inspector in examples only.
50-
# Unfortunately cargo doesn't support features for examples, so it's "promoted" here
51-
# as a crate feature. But this has no influence on the actual crate.
52-
bevy-inspector-egui = { version = "0.23", optional = true }
53-
5453
[dependencies.bevy]
5554
version = "0.13"
5655
default-features = false
@@ -63,6 +62,9 @@ all-features = true
6362
# Same versions as Bevy 0.13 (bevy_render)
6463
wgpu = "0.19.1"
6564

65+
# For world inspector; required if "examples_world_inspector" is used.
66+
bevy-inspector-egui = "0.23"
67+
6668
# For procedural texture generation in examples
6769
noise = "0.8"
6870

0 commit comments

Comments
 (0)