Merge pull request #3 from dollisgame/reduce-dependencies
Minimise bevy feature dependencies and add bevy_ui feature.
This commit is contained in:
parent
558423f15d
commit
3280318dd1
@ -13,7 +13,9 @@ categories = ["game-engines", "rendering"]
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
bevy = { version = "0.8", default-features = false, features = [
|
bevy = { version = "0.8", default-features = false, features = [
|
||||||
"bevy_asset",
|
"bevy_asset",
|
||||||
"render",
|
"bevy_render",
|
||||||
|
"bevy_pbr",
|
||||||
|
"bevy_core_pipeline",
|
||||||
] }
|
] }
|
||||||
thiserror = "1.0"
|
thiserror = "1.0"
|
||||||
|
|
||||||
@ -23,6 +25,10 @@ bevy = { version = "0.8", default-features = false, features = [
|
|||||||
"x11",
|
"x11",
|
||||||
] }
|
] }
|
||||||
|
|
||||||
|
[features]
|
||||||
|
default = ["bevy_ui"]
|
||||||
|
bevy_ui = ["bevy/bevy_ui"]
|
||||||
|
|
||||||
[[example]]
|
[[example]]
|
||||||
name = "shapes"
|
name = "shapes"
|
||||||
path = "examples/shapes.rs"
|
path = "examples/shapes.rs"
|
@ -236,6 +236,7 @@ impl Plugin for OutlinePlugin {
|
|||||||
OUTLINE_PASS_NODE_NAME,
|
OUTLINE_PASS_NODE_NAME,
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
#[cfg(feature = "bevy_ui")]
|
||||||
draw_3d_graph
|
draw_3d_graph
|
||||||
.add_node_edge(
|
.add_node_edge(
|
||||||
OUTLINE_PASS_NODE_NAME,
|
OUTLINE_PASS_NODE_NAME,
|
||||||
|
Loading…
Reference in New Issue
Block a user