chore: Make web-sys a workspace-level dependency
Thereby deduplicating the version number of it.
This commit is contained in:
parent
8ad1c1069c
commit
e468047ec5
|
@ -64,6 +64,7 @@ flate2 = "1.0.33"
|
||||||
futures = "0.3.30"
|
futures = "0.3.30"
|
||||||
image = { version = "0.25.2", default-features = false }
|
image = { version = "0.25.2", default-features = false }
|
||||||
js-sys = "0.3.70"
|
js-sys = "0.3.70"
|
||||||
|
web-sys = "0.3.70"
|
||||||
log = "0.4"
|
log = "0.4"
|
||||||
num-derive = "0.4.2"
|
num-derive = "0.4.2"
|
||||||
num-traits = "0.2.19"
|
num-traits = "0.2.19"
|
||||||
|
|
|
@ -19,7 +19,7 @@ ruffle_render = { path = "..", features = ["web"] }
|
||||||
swf = { path = "../../swf" }
|
swf = { path = "../../swf" }
|
||||||
|
|
||||||
[dependencies.web-sys]
|
[dependencies.web-sys]
|
||||||
version = "0.3.69"
|
workspace = true
|
||||||
features = [
|
features = [
|
||||||
"CanvasGradient", "CanvasPattern", "CanvasRenderingContext2d", "CanvasWindingRule", "CssStyleDeclaration",
|
"CanvasGradient", "CanvasPattern", "CanvasRenderingContext2d", "CanvasWindingRule", "CssStyleDeclaration",
|
||||||
"Document", "DomMatrix", "Element", "HtmlCanvasElement", "ImageData", "Navigator", "Path2d", "SvgMatrix",
|
"Document", "DomMatrix", "Element", "HtmlCanvasElement", "ImageData", "Navigator", "Path2d", "SvgMatrix",
|
||||||
|
|
|
@ -21,7 +21,7 @@ swf = { path = "../../swf" }
|
||||||
thiserror = { workspace = true }
|
thiserror = { workspace = true }
|
||||||
|
|
||||||
[dependencies.web-sys]
|
[dependencies.web-sys]
|
||||||
version = "0.3.70"
|
workspace = true
|
||||||
features = [
|
features = [
|
||||||
"HtmlCanvasElement", "OesVertexArrayObject", "WebGl2RenderingContext", "WebGlBuffer", "WebglDebugRendererInfo",
|
"HtmlCanvasElement", "OesVertexArrayObject", "WebGl2RenderingContext", "WebGlBuffer", "WebglDebugRendererInfo",
|
||||||
"WebGlFramebuffer", "WebGlProgram", "WebGlRenderbuffer", "WebGlRenderingContext", "WebGlShader", "WebGlTexture",
|
"WebGlFramebuffer", "WebGlProgram", "WebGlRenderbuffer", "WebGlRenderingContext", "WebGlShader", "WebGlTexture",
|
||||||
|
|
|
@ -33,7 +33,7 @@ workspace = true
|
||||||
|
|
||||||
# wasm
|
# wasm
|
||||||
[target.'cfg(target_family = "wasm")'.dependencies.web-sys]
|
[target.'cfg(target_family = "wasm")'.dependencies.web-sys]
|
||||||
version = "0.3.70"
|
workspace = true
|
||||||
features = ["HtmlCanvasElement"]
|
features = ["HtmlCanvasElement"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|
|
@ -66,7 +66,7 @@ path = "../core"
|
||||||
features = ["audio", "mp3", "nellymoser", "default_compatibility_rules", "default_font", "serde"]
|
features = ["audio", "mp3", "nellymoser", "default_compatibility_rules", "default_font", "serde"]
|
||||||
|
|
||||||
[dependencies.web-sys]
|
[dependencies.web-sys]
|
||||||
version = "0.3.70"
|
workspace = true
|
||||||
features = [
|
features = [
|
||||||
"AddEventListenerOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioContext",
|
"AddEventListenerOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioContext",
|
||||||
"AudioDestinationNode", "AudioNode", "AudioParam", "Blob", "BlobPropertyBag",
|
"AudioDestinationNode", "AudioNode", "AudioParam", "Blob", "BlobPropertyBag",
|
||||||
|
|
Loading…
Reference in New Issue