summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector@hecrj.dev>2023-11-29 14:26:44 +0100
committerLibravatar GitHub <noreply@github.com>2023-11-29 14:26:44 +0100
commit7f8b17604a31e00becc43130ec516c1a53552c88 (patch)
treeb7cbc5ba003d61416d7959a6a704839b53822660 /src
parent7e7d65a23d864e4662c43028a41244ca30cac540 (diff)
parenta761448858521d11dc646e2ef5217e9e06628932 (diff)
downloadiced-7f8b17604a31e00becc43130ec516c1a53552c88.tar.gz
iced-7f8b17604a31e00becc43130ec516c1a53552c88.tar.bz2
iced-7f8b17604a31e00becc43130ec516c1a53552c88.zip
Merge pull request #2150 from iced-rs/feature/command-run
`Stream` support for `Command`
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib.rs b/src/lib.rs
index f9f3952c..47766e6f 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -190,7 +190,6 @@ pub use crate::core::{
color, Alignment, Background, BorderRadius, Color, ContentFit, Degrees,
Gradient, Length, Padding, Pixels, Point, Radians, Rectangle, Size, Vector,
};
-pub use crate::runtime::Command;
pub mod clipboard {
//! Access the clipboard.
@@ -239,6 +238,11 @@ pub mod mouse {
};
}
+pub mod command {
+ //! Run asynchronous actions.
+ pub use crate::runtime::command::{channel, Command};
+}
+
pub mod subscription {
//! Listen to external events in your application.
pub use iced_futures::subscription::{
@@ -287,6 +291,7 @@ pub mod widget {
}
pub use application::Application;
+pub use command::Command;
pub use error::Error;
pub use event::Event;
pub use executor::Executor;