yew/yewtil/Cargo.toml
Justin Starry f9a783c2ca
Upstream yewtil crate (#1119)
* Upstream yewtil crate

* cargo fmt

* cargo clippy

* cargo fmt
2020-04-25 17:01:50 +08:00

68 lines
1.6 KiB
TOML

[package]
name = "yewtil"
version = "0.2.0"
authors = ["Henry Zimmerman <zimhen7@gmail.com>"]
edition = "2018"
description = "Utility crate for Yew"
license = "MIT/Apache-2.0"
repository = "https://github.com/yewstack/yewtil"
readme = "Readme.md"
[features]
default = ["stable"] # Only stable is included by default.
all = ["stable", "experimental"]
# Broad features
## All features MUST be stable or experimental
stable = ["neq", "pure", "history", "mrc_irc", "effect", "future"]
experimental = ["dsl", "lrc", "with_callback", "fetch" ]
# Some pointers are stable, some experimental.
# This makes sure you get all the pointers
ptr = ["lrc", "mrc_irc"]
# Misc features
neq = []
pure = ["neq", "yewtil-macro"]
with_callback = []
history = []
dsl = []
effect = []
fetch = ["serde", "serde_json", "neq", "future"]
future = ["wasm-bindgen-futures", "wasm-bindgen", "stdweb", "futures", "web-sys"]
# Ptr features
lrc = []
mrc_irc = []
[dependencies]
futures = {version = "0.3.1", optional = true}
log = "0.4.8"
serde = {version= "1.0.102", optional = true}
serde_json = { version = "1.0.41", optional = true }
wasm-bindgen = {version = "0.2.51", features=["serde-serialize"], optional = true}
wasm-bindgen-futures = {version = "0.4.3", optional = true}
yew = { path = "../yew" }
yewtil-macro = { path = "../yewtil-macro", optional = true }
[dependencies.stdweb]
version = "0.4.20"
optional = true
features = [
"futures-support",
"experimental_features_which_may_break_on_minor_version_bumps",
]
[dependencies.web-sys]
version = "0.3.31"
optional = true
features = [
'Headers',
'Request',
'RequestInit',
'RequestMode',
'Response',
'Window',
'Location',
'Storage',
]