Depend on slint directly in the Android app

android_main takes an AndroidApp and calls slint::android::init, both of
which come from slint itself rather than from dr-ui. The backend feature
still arrives through dr-ui's target-specific dependency. anyhow was unused.

Assisted-by: LLM
This commit is contained in:
2026-08-09 21:12:56 +02:00
parent 8ad5c86ff9
commit 2a7a319d6c
2 changed files with 5 additions and 2 deletions
Generated
+1 -1
View File
@@ -1158,9 +1158,9 @@ name = "darkroom-android"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"android_logger", "android_logger",
"anyhow",
"dr-ui", "dr-ui",
"log", "log",
"slint",
] ]
[[package]] [[package]]
+4 -1
View File
@@ -16,7 +16,10 @@ crate-type = ["cdylib"]
# No backend feature to select: dr-ui picks its Slint backend from the target, # No backend feature to select: dr-ui picks its Slint backend from the target,
# so building for aarch64-linux-android gets android-activity automatically. # so building for aarch64-linux-android gets android-activity automatically.
dr-ui.workspace = true dr-ui.workspace = true
anyhow.workspace = true # Directly, not just through dr-ui: `android_main` takes an `AndroidApp` and
# calls `slint::android::init`, both of which come from this crate. The backend
# feature comes from dr-ui's target-specific dependency.
slint.workspace = true
log.workspace = true log.workspace = true
android_logger = "0.15" android_logger = "0.15"