mirror of
https://github.com/bevyengine/bevy
synced 2025-01-12 21:29:03 +00:00
2fbb4c68ae
# Objective As we start to migrate to `bevy_color` in earnest (#12056), we should make it visible to Bevy users, and usable in examples. ## Solution 1. Add a prelude to `bevy_color`: I've only excluded the rarely used `ColorRange` type and the testing-focused color distance module. I definitely think that some color spaces are less useful than others to end users, but at the same time the types used there are very unlikely to conflict with user-facing types. 2. Add `bevy_color` to `bevy_internal` as an optional crate. 3. Re-export `bevy_color`'s prelude as part of `bevy::prelude`. --------- Co-authored-by: Alice Cecile <alice.i.cecil@gmail.com>
64 lines
1.5 KiB
Rust
64 lines
1.5 KiB
Rust
#[doc(hidden)]
|
|
pub use crate::{
|
|
app::prelude::*, core::prelude::*, ecs::prelude::*, hierarchy::prelude::*, input::prelude::*,
|
|
log::prelude::*, math::prelude::*, reflect::prelude::*, time::prelude::*,
|
|
transform::prelude::*, utils::prelude::*, window::prelude::*, DefaultPlugins, MinimalPlugins,
|
|
};
|
|
|
|
pub use bevy_derive::{bevy_main, Deref, DerefMut};
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_asset")]
|
|
pub use crate::asset::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_audio")]
|
|
pub use crate::audio::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_animation")]
|
|
pub use crate::animation::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_color")]
|
|
pub use crate::color::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_core_pipeline")]
|
|
pub use crate::core_pipeline::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_pbr")]
|
|
pub use crate::pbr::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_render")]
|
|
pub use crate::render::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_scene")]
|
|
pub use crate::scene::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_sprite")]
|
|
pub use crate::sprite::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_text")]
|
|
pub use crate::text::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_ui")]
|
|
pub use crate::ui::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_dynamic_plugin")]
|
|
pub use crate::dynamic_plugin::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_gizmos")]
|
|
pub use crate::gizmos::prelude::*;
|
|
|
|
#[doc(hidden)]
|
|
#[cfg(feature = "bevy_gilrs")]
|
|
pub use crate::gilrs::*;
|