Skip to content

Commit

Permalink
render: Export specific items outside of prelude (#473)
Browse files Browse the repository at this point in the history
It's a preference of some people to not use prelude modules at all in
order to make their imports more explicit. Currently, items like
`Camera3dComponent` are only exported in a prelude module, making an
explicit import look like

`use bevy::prelude::Camera3dComponent`

which feels a bit hackish. This change doesn't remove such components
from the prelude, but just re-exports them at the crate's
(`bevy_render` in this case) root.
  • Loading branch information
lberrymage authored Sep 11, 2020
1 parent e7d2545 commit 3bc5e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_render/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pub mod batch;
pub mod camera;
pub mod color;
pub mod draw;
pub mod entity;
pub mod mesh;
pub mod pass;
pub mod pipeline;
Expand All @@ -10,7 +11,6 @@ pub mod renderer;
pub mod shader;
pub mod texture;

mod entity;
pub use once_cell;

pub mod prelude {
Expand Down

0 comments on commit 3bc5e4c

Please sign in to comment.