chore: prefer workspace dependencies in order to avoid duplicate crates (#28281)

This commit is contained in:
Dimitris Apostolou 2025-02-26 16:55:47 +02:00 committed by GitHub
parent 9f877ac5bd
commit cdf6ea32c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
26 changed files with 232 additions and 128 deletions

View file

@ -14,18 +14,15 @@ description = "OffscreenCanvas implementation for Deno"
path = "lib.rs"
[dependencies]
bytemuck = "1.17.1"
bytemuck.workspace = true
deno_core.workspace = true
deno_error.workspace = true
image = { version = "0.25.4", default-features = false, features = ["png", "jpeg", "bmp", "ico" # NOTE: Temporarily not supported due to build size concerns
# https://github.com/denoland/deno/pull/25517#issuecomment-2626044644
# "webp", "gif"
] }
image = { workspace = true, features = ["png", "jpeg", "bmp", "ico"] }
# NOTE: The qcms is a color space conversion crate which parses ICC profiles that used in Gecko,
# however it supports only 8-bit color depth currently.
# https://searchfox.org/mozilla-central/rev/f09e3f9603a08b5b51bf504846091579bc2ff531/gfx/qcms/src/transform.rs#130-137
# It seems to be failed to build for aarch64-unknown-linux-gnu with pkg-config.
# https://github.com/kornelski/rust-lcms2-sys/blob/b8e9c3efcf266b88600318fb519c073b9ebb61b7/README.md#L26
lcms2 = { version = "6.1.0", features = ["static"] }
num-traits = { version = "0.2.19" }
lcms2 = { workspace = true, features = ["static"] }
num-traits.workspace = true
thiserror.workspace = true