Skip to content

Commit a29c22a

Browse files
committed
Android: Fix build with unstable-wgpu-26 feature enabled
Fixes #9452
1 parent ea0e3c1 commit a29c22a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

api/rs/slint/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,12 @@ backend-android-activity-05 = [
201201
## ```toml
202202
## slint = { version = "~1.13", features = ["unstable-wgpu-26"] }
203203
## ```
204-
unstable-wgpu-26 = ["i-slint-core/unstable-wgpu-26", "i-slint-backend-selector/unstable-wgpu-26", "dep:wgpu-26"]
204+
unstable-wgpu-26 = [
205+
"i-slint-core/unstable-wgpu-26",
206+
"i-slint-backend-selector/unstable-wgpu-26",
207+
"i-slint-backend-android-activity?/unstable-wgpu-26",
208+
"dep:wgpu-26",
209+
]
205210

206211
## APIs guarded with this feature are *NOT* subject to the usual Slint API stability guarantees, because winit releases new major
207212
## versions more frequently than Slint. This feature as well as the APIs changed or removed in future minor releases of Slint, likely to be replaced

internal/backends/android-activity/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ game-activity = ["android-activity-06?/game-activity", "android-activity-05?/gam
2020
native-activity = ["android-activity-06?/native-activity", "android-activity-05?/native-activity"]
2121
aa-06 = ["android-activity-06", "ndk-09"]
2222
aa-05 = ["android-activity-05", "ndk-08"]
23+
unstable-wgpu-26 = ["i-slint-renderer-skia/unstable-wgpu-26"]
2324

2425
[target.'cfg(target_os = "android")'.dependencies]
2526
i-slint-renderer-skia = { workspace = true }

0 commit comments

Comments
 (0)