@@ -29,7 +29,11 @@ gpu_tests = []
29
29
30
30
# Enable world inspector in examples, via bevy-inspector-egui.
31
31
# 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 = []
33
37
34
38
[dependencies ]
35
39
bytemuck = { version = " 1" , features = [" derive" ] }
@@ -46,11 +50,6 @@ thiserror = "1.0"
46
50
naga = " 0.19"
47
51
naga_oil = { version = " 0.13" , default-features = false , features = [" test_shader" ] }
48
52
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
-
54
53
[dependencies .bevy ]
55
54
version = " 0.13"
56
55
default-features = false
@@ -63,6 +62,9 @@ all-features = true
63
62
# Same versions as Bevy 0.13 (bevy_render)
64
63
wgpu = " 0.19.1"
65
64
65
+ # For world inspector; required if "examples_world_inspector" is used.
66
+ bevy-inspector-egui = " 0.23"
67
+
66
68
# For procedural texture generation in examples
67
69
noise = " 0.8"
68
70
0 commit comments