yew/examples/futures/Cargo.toml
2020-03-05 00:08:37 +08:00

34 lines
658 B
TOML

[package]
name = "futures"
version = "0.1.0"
authors = ["Henry Zimmerman <zimhen7@gmail.com>"]
edition = "2018"
description = "web_sys fetching and futures demonstration"
license = "MIT/Apache"
repository = "https://github.com/yewstack/yew"
[lib]
crate-type = ["cdylib", "rlib"]
[dependencies]
yew = { path = "../.." }
wasm-bindgen-futures = "0.4.3"
[dependencies.web-sys]
version = "0.3.35"
features = [
'Headers',
'Request',
'RequestInit',
'RequestMode',
'Response',
'Window',
]
[target.'cfg(all(target_arch = "wasm32", not(cargo_web)))'.dependencies]
wasm-bindgen = "0.2.59"
[features]
std_web = ["yew/std_web"]
web_sys = ["yew/web_sys"]