Implement local storage for todos example in Wasm

This commit is contained in:
Héctor Ramón Jiménez 2020-02-06 05:56:23 +01:00
parent 679d758627
commit 36e617ae70
2 changed files with 30 additions and 3 deletions

View file

@ -14,6 +14,10 @@ serde_json = "1.0"
async-std = "1.0"
directories = "2.0"
[target.'cfg(target_arch = "wasm32")'.dependencies]
web-sys = { version = "0.3", features = ["Window", "Storage"] }
wasm-timer = "0.2"
[package.metadata.deb]
assets = [
["target/release/todos", "usr/bin/iced-todos", "755"],