diff options
author | 2024-07-05 02:34:39 +0200 | |
---|---|---|
committer | 2024-07-05 02:34:39 +0200 | |
commit | 978327f9e7f68d3e5bc280faa0617487d8eabc57 (patch) | |
tree | e0ea35f42d41568a792b0b22eb119226908cb6a7 /src | |
parent | e50aa03edc858d561992d8ca441aa063f273eeac (diff) | |
parent | c9e0ed7ca4a7fce23450b9aeba6eb79244832521 (diff) | |
download | iced-978327f9e7f68d3e5bc280faa0617487d8eabc57.tar.gz iced-978327f9e7f68d3e5bc280faa0617487d8eabc57.tar.bz2 iced-978327f9e7f68d3e5bc280faa0617487d8eabc57.zip |
Merge pull request #2493 from iced-rs/hide-subscription-internals
Hide `Subscription` internals
Diffstat (limited to '')
-rw-r--r-- | src/advanced.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 10 |
2 files changed, 3 insertions, 9 deletions
diff --git a/src/advanced.rs b/src/advanced.rs index 8d06e805..b817bbf9 100644 --- a/src/advanced.rs +++ b/src/advanced.rs @@ -14,6 +14,6 @@ pub use crate::renderer::graphics; pub mod subscription { //! Write your own subscriptions. pub use crate::runtime::futures::subscription::{ - EventStream, Hasher, Recipe, + from_recipe, into_recipes, EventStream, Hasher, Recipe, }; } @@ -175,6 +175,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; @@ -202,6 +203,7 @@ pub use crate::core::{ Theme, Transformation, Vector, }; pub use crate::runtime::{exit, Task}; +pub use iced_futures::Subscription; pub mod clipboard { //! Access the clipboard. @@ -255,13 +257,6 @@ pub mod mouse { }; } -pub mod subscription { - //! Listen to external events in your application. - pub use iced_futures::subscription::{ - channel, run, run_with_id, unfold, Subscription, - }; -} - #[cfg(feature = "system")] pub mod system { //! Retrieve system information. @@ -314,7 +309,6 @@ pub use executor::Executor; pub use font::Font; pub use renderer::Renderer; pub use settings::Settings; -pub use subscription::Subscription; #[doc(inline)] pub use application::application; |