diff --git a/src/entity.rs b/src/entity.rs index 207c4b8..d3a9579 100644 --- a/src/entity.rs +++ b/src/entity.rs @@ -1,4 +1,5 @@ //! Custom Bevy ECS bundle for shapes. +#![expect(deprecated)] use bevy::prelude::*; use lyon_tessellation::{self as tess}; @@ -6,6 +7,7 @@ use lyon_tessellation::{self as tess}; use crate::{geometry::Geometry, plugin::COLOR_MATERIAL_HANDLE}; /// A Bevy `Bundle` to represent a shape. +#[deprecated(since = "0.14.0", note = "please use the `Shape` component instead.")] #[allow(missing_docs)] #[derive(Bundle, Clone)] pub struct ShapeBundle { diff --git a/src/lib.rs b/src/lib.rs index 1d99b22..326adae 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -42,7 +42,7 @@ pub mod prelude { pub use crate::{ draw::{Fill, Stroke}, - entity::{Shape, ShapeBundle}, + entity::Shape, geometry::{Geometry, GeometryBuilder}, path::{PathBuilder, ShapePath}, plugin::ShapePlugin,