summaryrefslogtreecommitdiffstats
path: root/examples/events
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--examples/events/Cargo.toml10
-rw-r--r--examples/events/src/main.rs (renamed from examples/events.rs)5
2 files changed, 13 insertions, 2 deletions
diff --git a/examples/events/Cargo.toml b/examples/events/Cargo.toml
new file mode 100644
index 00000000..f883075f
--- /dev/null
+++ b/examples/events/Cargo.toml
@@ -0,0 +1,10 @@
+[package]
+name = "events"
+version = "0.1.0"
+authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
+edition = "2018"
+publish = false
+
+[dependencies]
+iced = { path = "../.." }
+iced_native = { path = "../../native" }
diff --git a/examples/events.rs b/examples/events/src/main.rs
index 74542171..0c9dca05 100644
--- a/examples/events.rs
+++ b/examples/events/src/main.rs
@@ -1,6 +1,6 @@
use iced::{
- Align, Application, Checkbox, Column, Command, Container, Element, Length,
- Settings, Subscription, Text,
+ executor, Align, Application, Checkbox, Column, Command, Container,
+ Element, Length, Settings, Subscription, Text,
};
pub fn main() {
@@ -20,6 +20,7 @@ enum Message {
}
impl Application for Events {
+ type Executor = executor::Default;
type Message = Message;
fn new() -> (Events, Command<Message>) {