diff options
author | 2024-09-05 15:08:08 +0200 | |
---|---|---|
committer | 2024-09-05 15:08:31 +0200 | |
commit | 9426418adbaac40f584fe16b623521a3a21a1a4c (patch) | |
tree | 10d578347aaa88e81bfe30da7b5c66623b3fe5d9 /widget/src/lazy/helpers.rs | |
parent | eada3b8bf298c8436f30a5bc81032bed303d1e1e (diff) | |
download | iced-9426418adbaac40f584fe16b623521a3a21a1a4c.tar.gz iced-9426418adbaac40f584fe16b623521a3a21a1a4c.tar.bz2 iced-9426418adbaac40f584fe16b623521a3a21a1a4c.zip |
Deprecate the `component` widget
Diffstat (limited to 'widget/src/lazy/helpers.rs')
-rw-r--r-- | widget/src/lazy/helpers.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/widget/src/lazy/helpers.rs b/widget/src/lazy/helpers.rs index 862b251e..52e690ff 100644 --- a/widget/src/lazy/helpers.rs +++ b/widget/src/lazy/helpers.rs @@ -3,6 +3,7 @@ use crate::lazy::component; use std::hash::Hash; +#[allow(deprecated)] pub use crate::lazy::{Component, Lazy, Responsive}; /// Creates a new [`Lazy`] widget with the given data `Dependency` and a @@ -22,6 +23,12 @@ where /// Turns an implementor of [`Component`] into an [`Element`] that can be /// embedded in any application. #[cfg(feature = "lazy")] +#[deprecated( + since = "0.13.0", + note = "components introduce encapsulated state and hamper the use of a single source of truth. \ + Instead, leverage the Elm Architecture directly, or implement a custom widget" +)] +#[allow(deprecated)] pub fn component<'a, C, Message, Theme, Renderer>( component: C, ) -> Element<'a, Message, Theme, Renderer> |