From b5b17ed4d800c03beb3ad535d1069a7784e8dc1d Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 19 Jan 2020 10:17:08 +0100 Subject: Create `iced_futures` and wire everything up --- futures/Cargo.toml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 futures/Cargo.toml (limited to 'futures/Cargo.toml') diff --git a/futures/Cargo.toml b/futures/Cargo.toml new file mode 100644 index 00000000..fe0d378c --- /dev/null +++ b/futures/Cargo.toml @@ -0,0 +1,23 @@ +[package] +name = "iced_futures" +version = "0.1.0-alpha" +authors = ["Héctor Ramón Jiménez "] +edition = "2018" +description = "Commands, subscriptions, and runtimes for Iced" +license = "MIT" +repository = "https://github.com/hecrj/iced" +documentation = "https://docs.rs/iced_futures" +keywords = ["gui", "ui", "graphics", "interface", "futures"] +categories = ["gui"] + +[dependencies] +log = "0.4" + +[dependencies.futures] +version = "0.3" +features = ["thread-pool"] + +[dependencies.tokio] +version = "0.2" +optional = true +features = ["rt-core"] -- cgit From 35760ac68f06e783e64e9048aff0fff6df1c09cf Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sun, 19 Jan 2020 11:08:47 +0100 Subject: Make `thread-pool` optional in `iced_futures` --- futures/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'futures/Cargo.toml') diff --git a/futures/Cargo.toml b/futures/Cargo.toml index fe0d378c..5b303e01 100644 --- a/futures/Cargo.toml +++ b/futures/Cargo.toml @@ -10,12 +10,14 @@ documentation = "https://docs.rs/iced_futures" keywords = ["gui", "ui", "graphics", "interface", "futures"] categories = ["gui"] +[features] +thread-pool = ["futures/thread-pool"] + [dependencies] log = "0.4" [dependencies.futures] version = "0.3" -features = ["thread-pool"] [dependencies.tokio] version = "0.2" -- cgit From 90690702e1e4abab804ec91e8ff4183824bec436 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 20 Jan 2020 04:47:36 +0100 Subject: Add `Application::Executor` associated type --- futures/Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'futures/Cargo.toml') diff --git a/futures/Cargo.toml b/futures/Cargo.toml index 5b303e01..13c2d6b7 100644 --- a/futures/Cargo.toml +++ b/futures/Cargo.toml @@ -23,3 +23,7 @@ version = "0.3" version = "0.2" optional = true features = ["rt-core"] + +[dependencies.async-std] +version = "1.0" +optional = true -- cgit From 04086a90c9e933ebfb42de378054e1115b33529d Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 20 Jan 2020 05:43:09 +0100 Subject: Implement `WasmBindgen` executor and reorganize --- futures/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'futures/Cargo.toml') diff --git a/futures/Cargo.toml b/futures/Cargo.toml index 13c2d6b7..91860e1e 100644 --- a/futures/Cargo.toml +++ b/futures/Cargo.toml @@ -27,3 +27,6 @@ features = ["rt-core"] [dependencies.async-std] version = "1.0" optional = true + +[target.'cfg(target_arch = "wasm32")'.dependencies] +wasm-bindgen-futures = "0.4" -- cgit