From 54ffbbf043e5f064f554d82a22d71699a1c75f0c Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 11 Feb 2025 00:55:59 +0100 Subject: Export `sipper` types in `task` module --- src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 849b51e9..e4649938 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -519,7 +519,9 @@ pub use Length::{Fill, FillPortion, Shrink}; pub mod task { //! Create runtime tasks. - pub use crate::runtime::task::{Handle, Task}; + pub use crate::runtime::task::{ + sipper, stream, Handle, Never, Sipper, Straw, Task, + }; } pub mod clipboard { -- cgit From f37d068af52700570f863960c3432df85a244a7c Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 11 Feb 2025 01:27:51 +0100 Subject: Rewrite `websocket` example using `sipper` --- src/lib.rs | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index e4649938..79992a3e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -478,7 +478,6 @@ use iced_winit::core; use iced_winit::runtime; pub use iced_futures::futures; -pub use iced_futures::stream; #[cfg(feature = "highlighter")] pub use iced_highlighter as highlighter; -- cgit From 9f21eae1528fa414adbfb987ce4c851fa58326fe Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 11 Feb 2025 02:34:10 +0100 Subject: Introduce `Task::map_with` --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 79992a3e..e4649938 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -478,6 +478,7 @@ use iced_winit::core; use iced_winit::runtime; pub use iced_futures::futures; +pub use iced_futures::stream; #[cfg(feature = "highlighter")] pub use iced_highlighter as highlighter; -- cgit From 0c528be2ea74f9aae1d4ac80b282ba9c16674649 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 11 Feb 2025 03:39:42 +0100 Subject: Introduce `with` helper and use `sipper` in `gallery` example --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index e4649938..ce4a1e9d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -505,7 +505,7 @@ pub use crate::core::gradient; pub use crate::core::padding; pub use crate::core::theme; pub use crate::core::{ - never, Alignment, Animation, Background, Border, Color, ContentFit, + never, with, Alignment, Animation, Background, Border, Color, ContentFit, Degrees, Gradient, Length, Padding, Pixels, Point, Radians, Rectangle, Rotation, Settings, Shadow, Size, Theme, Transformation, Vector, }; -- cgit From eab723866e1dc94ebd6d7c5c0c3ef191c80bcf59 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 11 Feb 2025 10:36:45 +0100 Subject: Replace `with` function with `Function` trait --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index ce4a1e9d..441826d6 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -505,9 +505,9 @@ pub use crate::core::gradient; pub use crate::core::padding; pub use crate::core::theme; pub use crate::core::{ - never, with, Alignment, Animation, Background, Border, Color, ContentFit, - Degrees, Gradient, Length, Padding, Pixels, Point, Radians, Rectangle, - Rotation, Settings, Shadow, Size, Theme, Transformation, Vector, + never, Alignment, Animation, Background, Border, Color, ContentFit, + Degrees, Function, Gradient, Length, Padding, Pixels, Point, Radians, + Rectangle, Rotation, Settings, Shadow, Size, Theme, Transformation, Vector, }; pub use crate::runtime::exit; pub use iced_futures::Subscription; -- cgit