summaryrefslogtreecommitdiffstats
path: root/examples/pure/todos/Cargo.toml
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-12 17:21:28 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-02-12 17:21:28 +0700
commitbd22cc0bc0f7551d29cf2acd22520f4a906f253c (patch)
treefae6435d0e1500204fca73fa7872fb99a41b6eb4 /examples/pure/todos/Cargo.toml
parente3108494e5886c34312184292ec05dddeb8bf3ca (diff)
downloadiced-bd22cc0bc0f7551d29cf2acd22520f4a906f253c.tar.gz
iced-bd22cc0bc0f7551d29cf2acd22520f4a906f253c.tar.bz2
iced-bd22cc0bc0f7551d29cf2acd22520f4a906f253c.zip
Implement pure version of `todos` example :tada:
The `Widget` trait in `iced_pure` needed to change a bit to make the implementation of `Element::map` possible. Specifically, the `children` method has been split into `diff` and `children_state`.
Diffstat (limited to '')
-rw-r--r--examples/pure/todos/Cargo.toml19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/pure/todos/Cargo.toml b/examples/pure/todos/Cargo.toml
new file mode 100644
index 00000000..fa14ff6a
--- /dev/null
+++ b/examples/pure/todos/Cargo.toml
@@ -0,0 +1,19 @@
+[package]
+name = "pure_todos"
+version = "0.1.0"
+authors = ["Héctor Ramón Jiménez <hector0193@gmail.com>"]
+edition = "2021"
+publish = false
+
+[dependencies]
+iced = { path = "../../..", features = ["async-std", "debug", "pure"] }
+serde = { version = "1.0", features = ["derive"] }
+serde_json = "1.0"
+
+[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
+async-std = "1.0"
+directories-next = "2.0"
+
+[target.'cfg(target_arch = "wasm32")'.dependencies]
+web-sys = { version = "0.3", features = ["Window", "Storage"] }
+wasm-timer = "0.2"