From 816e327e77c133e9deb2e68ca2c2eaf21fc607d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=96R=C3=96K=20Attila?= Date: Thu, 18 Jul 2024 04:21:33 +0200 Subject: [PATCH] chore: Make web-sys a workspace-level dependency Thereby deduplicating the version number of it. --- Cargo.toml | 1 + render/canvas/Cargo.toml | 2 +- render/webgl/Cargo.toml | 2 +- render/wgpu/Cargo.toml | 2 +- video/external/Cargo.toml | 2 +- web/Cargo.toml | 2 +- 6 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 17cc75a1fe745..c3d5dfa733a52 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,6 +63,7 @@ flate2 = "1.0.30" futures = "0.3.30" image = { version = "0.25.1", default-features = false } js-sys = "0.3.69" +web-sys = "0.3.69" log = "0.4" num-derive = "0.4.2" num-traits = "0.2.19" diff --git a/render/canvas/Cargo.toml b/render/canvas/Cargo.toml index 15a228225b2db..3f3877ad1d339 100644 --- a/render/canvas/Cargo.toml +++ b/render/canvas/Cargo.toml @@ -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", diff --git a/render/webgl/Cargo.toml b/render/webgl/Cargo.toml index edc3999074f38..0bcb12f834f1f 100644 --- a/render/webgl/Cargo.toml +++ b/render/webgl/Cargo.toml @@ -21,7 +21,7 @@ swf = { path = "../../swf" } thiserror = { workspace = true } [dependencies.web-sys] -version = "0.3.69" +workspace = true features = [ "HtmlCanvasElement", "OesVertexArrayObject", "WebGl2RenderingContext", "WebGlBuffer", "WebglDebugRendererInfo", "WebGlFramebuffer", "WebGlProgram", "WebGlRenderbuffer", "WebGlRenderingContext", "WebGlShader", "WebGlTexture", diff --git a/render/wgpu/Cargo.toml b/render/wgpu/Cargo.toml index 6b681416af9ca..75038178907f8 100644 --- a/render/wgpu/Cargo.toml +++ b/render/wgpu/Cargo.toml @@ -33,7 +33,7 @@ workspace = true # wasm [target.'cfg(target_family = "wasm")'.dependencies.web-sys] -version = "0.3.69" +workspace = true features = ["HtmlCanvasElement"] [features] diff --git a/video/external/Cargo.toml b/video/external/Cargo.toml index 4353077634d82..b17381c1d7ad1 100644 --- a/video/external/Cargo.toml +++ b/video/external/Cargo.toml @@ -26,7 +26,7 @@ bzip2 = { version = "0.4.4", features = ["static"], optional = true } js-sys = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } [dependencies.web-sys] -version = "0.3.69" +workspace = true optional = true features = [ "CodecState", "DomException", "DomRectReadOnly", "EncodedVideoChunk", diff --git a/web/Cargo.toml b/web/Cargo.toml index 5797d59b1867b..4c1a66f0f88a5 100644 --- a/web/Cargo.toml +++ b/web/Cargo.toml @@ -66,7 +66,7 @@ path = "../core" features = ["audio", "mp3", "nellymoser", "default_compatibility_rules", "default_font", "serde"] [dependencies.web-sys] -version = "0.3.69" +workspace = true features = [ "AddEventListenerOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioContext", "AudioDestinationNode", "AudioNode", "AudioParam", "Blob", "BlobPropertyBag",