Merge pull request #3 from dollisgame/reduce-dependencies

Minimise bevy feature dependencies and add bevy_ui feature.
This commit is contained in:
Robin KAY 2022-08-22 00:37:34 +01:00
parent 558423f15d
commit 3280318dd1
2 changed files with 9 additions and 2 deletions

View File

@ -13,7 +13,9 @@ categories = ["game-engines", "rendering"]
[dependencies]
bevy = { version = "0.8", default-features = false, features = [
"bevy_asset",
"render",
"bevy_render",
"bevy_pbr",
"bevy_core_pipeline",
] }
thiserror = "1.0"
@ -23,6 +25,10 @@ bevy = { version = "0.8", default-features = false, features = [
"x11",
] }
[features]
default = ["bevy_ui"]
bevy_ui = ["bevy/bevy_ui"]
[[example]]
name = "shapes"
path = "examples/shapes.rs"

View File

@ -236,6 +236,7 @@ impl Plugin for OutlinePlugin {
OUTLINE_PASS_NODE_NAME,
)
.unwrap();
#[cfg(feature = "bevy_ui")]
draw_3d_graph
.add_node_edge(
OUTLINE_PASS_NODE_NAME,