chore: Make web-sys a workspace-level dependency

Thereby deduplicating the version number of it.
This commit is contained in:
TÖRÖK Attila 2024-07-18 04:21:33 +02:00
parent 8ad1c1069c
commit e468047ec5
5 changed files with 5 additions and 4 deletions

View File

@ -64,6 +64,7 @@ flate2 = "1.0.33"
futures = "0.3.30"
image = { version = "0.25.2", default-features = false }
js-sys = "0.3.70"
web-sys = "0.3.70"
log = "0.4"
num-derive = "0.4.2"
num-traits = "0.2.19"

View File

@ -19,7 +19,7 @@ ruffle_render = { path = "..", features = ["web"] }
swf = { path = "../../swf" }
[dependencies.web-sys]
version = "0.3.69"
workspace = true
features = [
"CanvasGradient", "CanvasPattern", "CanvasRenderingContext2d", "CanvasWindingRule", "CssStyleDeclaration",
"Document", "DomMatrix", "Element", "HtmlCanvasElement", "ImageData", "Navigator", "Path2d", "SvgMatrix",

View File

@ -21,7 +21,7 @@ swf = { path = "../../swf" }
thiserror = { workspace = true }
[dependencies.web-sys]
version = "0.3.70"
workspace = true
features = [
"HtmlCanvasElement", "OesVertexArrayObject", "WebGl2RenderingContext", "WebGlBuffer", "WebglDebugRendererInfo",
"WebGlFramebuffer", "WebGlProgram", "WebGlRenderbuffer", "WebGlRenderingContext", "WebGlShader", "WebGlTexture",

View File

@ -33,7 +33,7 @@ workspace = true
# wasm
[target.'cfg(target_family = "wasm")'.dependencies.web-sys]
version = "0.3.70"
workspace = true
features = ["HtmlCanvasElement"]
[features]

View File

@ -66,7 +66,7 @@ path = "../core"
features = ["audio", "mp3", "nellymoser", "default_compatibility_rules", "default_font", "serde"]
[dependencies.web-sys]
version = "0.3.70"
workspace = true
features = [
"AddEventListenerOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioContext",
"AudioDestinationNode", "AudioNode", "AudioParam", "Blob", "BlobPropertyBag",