Remove generic Hasher and Event from subscription::Recipe

This commit is contained in:
Héctor Ramón Jiménez 2023-03-05 04:15:10 +01:00
parent 5fed065dc3
commit f4cf488e0b
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
20 changed files with 341 additions and 406 deletions

View file

@ -7,3 +7,8 @@ pub use crate::core::svg;
pub use crate::core::text::{self, Text};
pub use crate::core::widget::{self, Widget};
pub use crate::core::{Clipboard, Shell};
pub mod subscription {
//! Write your own subscriptions.
pub use crate::native::futures::subscription::{EventStream, Recipe};
}

View file

@ -193,7 +193,6 @@ pub use crate::core::{
Rectangle, Size, Vector,
};
pub use crate::native::Command;
pub use native::subscription;
pub mod clipboard {
//! Access the clipboard.
@ -233,6 +232,13 @@ pub mod mouse {
pub use crate::core::mouse::{Button, Event, Interaction, ScrollDelta};
}
pub mod subscription {
//! Listen to external events in your application.
pub use iced_futures::subscription::{
events, events_with, run, run_with_id, unfold, Subscription,
};
}
#[cfg(feature = "system")]
pub mod system {
//! Retrieve system information.