Allow todos example to compile to wasm32

This commit is contained in:
Héctor Ramón Jiménez 2020-02-06 03:06:39 +01:00
parent 57aed1d5c6
commit e8316b2087
2 changed files with 22 additions and 1 deletions

View file

@ -8,9 +8,11 @@ publish = false
[dependencies]
iced = { path = "../.." }
iced_futures = { path = "../../futures", features = ["async-std"] }
async-std = "1.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
async-std = "1.0"
directories = "2.0"
[package.metadata.deb]