mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
34 lines
658 B
TOML
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"]
|