Skip to content

Commit

Permalink
chore: Make web-sys a workspace-level dependency
Browse files Browse the repository at this point in the history
Thereby deduplicating the version number of it.
  • Loading branch information
torokati44 committed Aug 22, 2024
1 parent 2e41b8b commit d40c036
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ flate2 = "1.0.31"
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"
Expand Down
2 changes: 1 addition & 1 deletion render/canvas/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion render/webgl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion render/wgpu/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ workspace = true

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

[features]
Expand Down
2 changes: 1 addition & 1 deletion video/external/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d40c036

Please sign in to comment.