Skip to content

Commit

Permalink
Fix broken imports, specify required features for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vladbat00 committed Jan 7, 2024
1 parent 07c38fe commit 407611b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,22 @@ default_fonts = ["egui/default_fonts"]
render = ["bevy/bevy_render"]
serde = ["egui/serde"]

[[example]]
name = "render_to_image_widget"
required-features = ["render"]
[[example]]
name = "side_panel"
required-features = ["render"]
[[example]]
name = "simple"
required-features = ["render"]
[[example]]
name = "two_windows"
required-features = ["render"]
[[example]]
name = "ui"
required-features = ["render"]

[dependencies]
bevy = { version = "0.12", default-features = false, features = [
"bevy_asset",
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ pub mod egui_node;

pub use egui;

use crate::systems::*;
#[cfg(feature = "render")]
use crate::{
egui_node::{EguiPipeline, EGUI_SHADER_HANDLE},
render_systems::{EguiTransforms, ExtractedEguiManagedTextures},
systems::*,
};
#[cfg(all(
feature = "manage_clipboard",
Expand Down

0 comments on commit 407611b

Please sign in to comment.