Merge remote-tracking branch 'blm/web-sys' into stdweb-eventloop-2

This commit is contained in:
Héctor Ramón Jiménez 2019-06-24 18:31:56 +02:00
commit eea9530f38
13 changed files with 1050 additions and 18 deletions

View file

@ -20,6 +20,9 @@ libc = "0.2"
log = "0.4"
serde = { version = "1", optional = true, features = ["serde_derive"] }
[features]
web_sys = ["web-sys", "wasm-bindgen"]
[dev-dependencies]
image = "0.21"
env_logger = "0.5"
@ -74,9 +77,34 @@ percent-encoding = "1.0"
[target.'cfg(any(target_os = "linux", target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "windows"))'.dependencies.parking_lot]
version = "0.8"
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.22"
optional = true
features = [
'console',
'Document',
'DomRect',
'Element',
'Event',
'EventTarget',
'FocusEvent',
'HtmlCanvasElement',
'HtmlElement',
'KeyboardEvent',
'MouseEvent',
'Node',
'PointerEvent',
'Window',
'WheelEvent'
]
[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen]
version = "0.2.45"
optional = true
[target.'cfg(target_arch = "wasm32")'.dependencies]
stdweb = { path = "../stdweb", optional = true }
instant = { version = "0.1", features = ["stdweb"] }
instant = { version = "0.1", features = ["wasm-bindgen"] }
[patch.crates-io]
stdweb = { path = "../stdweb" }