Implement stdweb backend for web platform
This commit is contained in:
parent
1596cc5d9e
commit
bb285984da
10 changed files with 355 additions and 906 deletions
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" }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue