mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
142 lines
3.3 KiB
TOML
142 lines
3.3 KiB
TOML
[package]
|
|
name = "yew"
|
|
version = "0.13.1"
|
|
edition = "2018"
|
|
authors = [
|
|
"Denis Kolodin <deniskolodin@gmail.com>",
|
|
"Justin Starry <justin@yew.rs>",
|
|
]
|
|
repository = "https://github.com/yewstack/yew"
|
|
homepage = "https://github.com/yewstack/yew"
|
|
documentation = "https://docs.rs/yew/"
|
|
license = "MIT/Apache-2.0"
|
|
readme = "README.md"
|
|
keywords = ["web", "asmjs", "webasm", "javascript"]
|
|
categories = ["gui", "web-programming"]
|
|
description = "A framework for making client-side single-page apps"
|
|
|
|
[badges]
|
|
travis-ci = { repository = "yewstack/yew" }
|
|
|
|
[dependencies]
|
|
anyhow = "1"
|
|
anymap = "0.12"
|
|
bincode = { version = "~1.2.1", optional = true }
|
|
cfg-if = "0.1"
|
|
cfg-match = "0.2"
|
|
console_error_panic_hook = { version = "0.1", optional = true }
|
|
futures = { version = "0.3", optional = true }
|
|
gloo = { version = "0.2", optional = true }
|
|
http = "0.2"
|
|
indexmap = "1.0.2"
|
|
js-sys = { version = "0.3", optional = true }
|
|
log = "0.4"
|
|
proc-macro-hack = "0.5"
|
|
proc-macro-nested = "0.1"
|
|
rmp-serde = { version = "0.14.0", optional = true }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_cbor = { version = "0.11.1", optional = true }
|
|
serde_json = "1.0"
|
|
serde_yaml = { version = "0.8.3", optional = true }
|
|
slab = "0.4"
|
|
stdweb = { version = "0.4.20", optional = true }
|
|
thiserror = "1"
|
|
toml = { version = "0.5", optional = true }
|
|
wasm-bindgen = { version = "0.2.59", optional = true }
|
|
wasm-bindgen-futures = { version = "0.4", optional = true }
|
|
yew-macro = { version = "0.13.0", path = "crates/macro" }
|
|
|
|
[dependencies.web-sys]
|
|
version = "0.3"
|
|
optional = true
|
|
features = [
|
|
"AbortController",
|
|
"AbortSignal",
|
|
"BinaryType",
|
|
"Blob",
|
|
"BlobPropertyBag",
|
|
"console",
|
|
"DedicatedWorkerGlobalScope",
|
|
"Document",
|
|
"DomTokenList",
|
|
"DragEvent",
|
|
"Element",
|
|
"Event",
|
|
"EventTarget",
|
|
"File",
|
|
"FileList",
|
|
"FileReader",
|
|
"FocusEvent",
|
|
"Headers",
|
|
"HtmlElement",
|
|
"HtmlInputElement",
|
|
"HtmlSelectElement",
|
|
"HtmlTextAreaElement",
|
|
"KeyboardEvent",
|
|
"Location",
|
|
"MessageEvent",
|
|
"MouseEvent",
|
|
"Node",
|
|
"ObserverCallback",
|
|
"PointerEvent",
|
|
"ReferrerPolicy",
|
|
"Request",
|
|
"RequestCache",
|
|
"RequestCredentials",
|
|
"RequestInit",
|
|
"RequestMode",
|
|
"RequestRedirect",
|
|
"Response",
|
|
"Storage",
|
|
"Text",
|
|
"TouchEvent",
|
|
"UiEvent",
|
|
"Url",
|
|
"WebSocket",
|
|
"WheelEvent",
|
|
"Window",
|
|
"Worker",
|
|
"WorkerGlobalScope",
|
|
"WorkerOptions",
|
|
]
|
|
|
|
# Changes here must be reflected in `build.rs`
|
|
[target.'cfg(all(target_arch = "wasm32", not(target_os="wasi"), not(cargo_web)))'.dependencies]
|
|
wasm-bindgen = "0.2.59"
|
|
|
|
# Changes here must be reflected in `build.rs`
|
|
[target.'cfg(all(target_arch = "wasm32", not(target_os="wasi"), not(cargo_web)))'.dev-dependencies]
|
|
wasm-bindgen-test = "0.3.4"
|
|
base64 = "0.11.0"
|
|
ssri = "5.0.0"
|
|
|
|
[target.'cfg(target_os = "emscripten")'.dependencies]
|
|
ryu = "1.0.2" # 1.0.1 breaks emscripten
|
|
|
|
[dev-dependencies]
|
|
serde_derive = "1"
|
|
trybuild = "1.0"
|
|
rustversion = "1.0"
|
|
rmp-serde = "0.14.0"
|
|
bincode = "~1.2.1"
|
|
|
|
[features]
|
|
default = ["services", "agent"]
|
|
std_web = ["stdweb"]
|
|
web_sys = ["console_error_panic_hook", "futures", "gloo", "js-sys", "web-sys", "wasm-bindgen", "wasm-bindgen-futures"]
|
|
doc_test = []
|
|
wasm_test = []
|
|
services = []
|
|
agent = ["bincode"]
|
|
yaml = ["serde_yaml"]
|
|
msgpack = ["rmp-serde"]
|
|
cbor = ["serde_cbor"]
|
|
|
|
[package.metadata.docs.rs]
|
|
features = ["web_sys", "agent", "services", "yaml", "cbor", "toml", "msgpack", "doc_test"]
|
|
|
|
[workspace]
|
|
members = [
|
|
"crates/macro",
|
|
]
|