Implement OffscreenCanvas support
This commit is contained in:
parent
68ec5a52d3
commit
6c78268502
2 changed files with 124 additions and 28 deletions
15
Cargo.toml
15
Cargo.toml
|
|
@ -51,12 +51,21 @@ foreign-types = "0.3.0"
|
|||
objc = "0.2.7"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
js-sys = "0.3.55"
|
||||
wasm-bindgen = "0.2.78"
|
||||
js-sys = "0.3.63"
|
||||
wasm-bindgen = "0.2.86"
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
|
||||
version = "0.3.55"
|
||||
features = ["CanvasRenderingContext2d", "Document", "Element", "HtmlCanvasElement", "ImageData", "Window"]
|
||||
features = [
|
||||
"CanvasRenderingContext2d",
|
||||
"Document",
|
||||
"Element",
|
||||
"HtmlCanvasElement",
|
||||
"ImageData",
|
||||
"OffscreenCanvas",
|
||||
"OffscreenCanvasRenderingContext2d",
|
||||
"Window",
|
||||
]
|
||||
|
||||
[target.'cfg(target_os = "redox")'.dependencies]
|
||||
redox_syscall = "0.3"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue