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
10
Cargo.toml
10
Cargo.toml
|
@ -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"
|
||||
path = "examples/shapes.rs"
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue