mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 06:10:07 -04:00
Implement stdweb backend for web platform
This commit is contained in:
13
Cargo.toml
13
Cargo.toml
@@ -13,6 +13,10 @@ categories = ["gui"]
|
||||
[package.metadata.docs.rs]
|
||||
features = ["serde"]
|
||||
|
||||
[features]
|
||||
use_web-sys = ["web-sys", "wasm-bindgen", "instant/wasm-bindgen"]
|
||||
use_stdweb = ["stdweb", "instant/stdweb"]
|
||||
|
||||
[dependencies]
|
||||
instant = "0.1"
|
||||
lazy_static = "1"
|
||||
@@ -20,9 +24,6 @@ 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"
|
||||
@@ -102,9 +103,9 @@ features = [
|
||||
version = "0.2.45"
|
||||
optional = true
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
stdweb = { path = "../stdweb", optional = true }
|
||||
instant = { version = "0.1", features = ["wasm-bindgen"] }
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies.stdweb]
|
||||
version = "0.4.17"
|
||||
optional = true
|
||||
|
||||
[patch.crates-io]
|
||||
stdweb = { path = "../stdweb" }
|
||||
|
||||
Reference in New Issue
Block a user