Skip to content

Commit

Permalink
Janitor: Update the image crate
Browse files Browse the repository at this point in the history
Note: this could be a breaking change if someone did

```
image = { version = "0.24", features = [...] }
```

To enable more features decoder of the image to support more file format
in slint
  • Loading branch information
ogoffart committed Mar 26, 2024
1 parent 6808324 commit 66b3ec0
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ css-color-parser2 = { version = "1.0.1" }
fontdb = { version = "0.16.0", default-features = false }
fontdue = { version = "0.8.0" }
glutin = { version = "0.31.1", default-features = false }
image = { version = "0.25", default-features = false, features = [ "png", "jpeg" ] }
itertools = { version = "0.12" }
resvg = { version= "0.40.0", default-features = false, features = ["text"] }
send_wrapper = { version = "0.6.0" }
Expand Down
2 changes: 1 addition & 1 deletion api/cpp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ i-slint-core = { workspace = true, features = ["ffi"] }
slint-interpreter = { workspace = true, features = ["ffi", "compat-1-2"], optional = true }
raw-window-handle = { version = "0.5", optional = true }
# Enable image-rs' default features to make all image formats to C++ users
image = { version = "0.24.0", optional = true }
image = { workspace = true, optional = true, features = ["default"] }

esp-backtrace = { version = "0.11.0", features = ["panic-handler", "println"], optional = true }
esp-println = { version = "0.9.0", default-features = false, features = ["uart"], optional = true }
Expand Down
2 changes: 1 addition & 1 deletion examples/imagefilter/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ name = "imagefilter"

[dependencies]
slint = { path = "../../../api/rs/slint" }
image = { version = "0.24.0", default-features = false, features = [ "png" ] }
image = { workspace = true }

[build-dependencies]
slint-build = { path = "../../../api/rs/build" }
Expand Down
1 change: 0 additions & 1 deletion internal/backends/testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,3 @@ default = []
[dependencies]
i-slint-core = { workspace = true, features = ["default"] }
vtable = { workspace = true }
image = { version = "0.24.0", default-features = false, features = ["png", "jpeg"] }
2 changes: 1 addition & 1 deletion internal/compiler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ url = "2.2.1"
linked_hash_set = "0.1.4"

# for processing and embedding the rendered image (texture)
image = { version = "0.24", optional = true }
image = { workspace = true, optional = true, features = ["default"] }
resvg = { workspace = true, optional = true }
# font embedding
fontdue = { workspace = true, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion internal/core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ unicode-script = { version = "0.5.3", optional = true }
integer-sqrt = { version = "0.1.5" }
bytemuck = { workspace = true, optional = true, features = ["derive"] }

image = { version = "0.24.0", optional = true, default-features = false, features = [ "png", "jpeg" ] }
image = { workspace = true, optional = true, default-features = false }
clru = { version = "0.6.0", optional = true }

resvg = { workspace = true, optional = true }
Expand Down
2 changes: 1 addition & 1 deletion tests/screenshots/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name = "test-driver-screenshot"
slint = { workspace = true, features = ["std", "compat-1-2"] }
i-slint-core = { workspace = true, features = ["default", "software-renderer", "software-renderer-rotation"] }
i-slint-backend-testing = { workspace = true, features = ["default"] }
image = { version = "0.24.0", default-features = false, features = ["png", "jpeg"] }
image = { workspace = true }
crossterm = "0.27"

[build-dependencies]
Expand Down
2 changes: 1 addition & 1 deletion tools/lsp/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ lsp-server = "0.7"
once_cell = "1.9.0"

# Enable image-rs' default features to make all image formats available for the preview
image = { version = "0.24.0", optional = true }
image = { workspace = true, optional = true, features = ["default"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
console_error_panic_hook = "0.1.5"
Expand Down
2 changes: 1 addition & 1 deletion tools/viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ env_logger = "0.10.0"
itertools = { workspace = true }

# Enable image-rs' default features to make all image formats available for preview
image = { version = "0.24.0" }
image = { workspace = true, features = ["default"] }

[[bin]]
name = "slint-viewer"
Expand Down

0 comments on commit 66b3ec0

Please sign in to comment.