diff --git a/Cargo.toml b/Cargo.toml index 86818af83e90f..393c77501680c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -63,6 +63,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" 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 9887fe1eb3f6f..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.70" +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 ad7370dcff03e..1771ee04293d9 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.70" +workspace = true features = ["HtmlCanvasElement"] [features] diff --git a/video/external/Cargo.toml b/video/external/Cargo.toml index e4334c155f664..8c2cd45300b6a 100644 --- a/video/external/Cargo.toml +++ b/video/external/Cargo.toml @@ -27,7 +27,7 @@ sha2 = { version = "0.10.8", optional = true } js-sys = { workspace = true, optional = true } wasm-bindgen = { workspace = true, optional = true } [dependencies.web-sys] -version = "0.3.70" +workspace = true optional = true features = [ "CodecState", "DomException", "DomRectReadOnly", "EncodedVideoChunk", diff --git a/web/Cargo.toml b/web/Cargo.toml index 769ad60cf2d3a..d5837b5b7382a 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.70" +workspace = true features = [ "AddEventListenerOptions", "AudioBuffer", "AudioBufferSourceNode", "AudioContext", "AudioDestinationNode", "AudioNode", "AudioParam", "Blob", "BlobPropertyBag",