From 2a7a319d6ce58ca8bbf206ec2b5fdbe8a3e30481 Mon Sep 17 00:00:00 2001 From: Duncan Tourolle Date: Sun, 9 Aug 2026 21:12:26 +0200 Subject: [PATCH] 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 --- Cargo.lock | 2 +- apps/darkroom-android/Cargo.toml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 367bd76..a8fb8c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1158,9 +1158,9 @@ name = "darkroom-android" version = "0.1.0" dependencies = [ "android_logger", - "anyhow", "dr-ui", "log", + "slint", ] [[package]] diff --git a/apps/darkroom-android/Cargo.toml b/apps/darkroom-android/Cargo.toml index 21a94be..14b6f47 100644 --- a/apps/darkroom-android/Cargo.toml +++ b/apps/darkroom-android/Cargo.toml @@ -16,7 +16,10 @@ crate-type = ["cdylib"] # No backend feature to select: dr-ui picks its Slint backend from the target, # so building for aarch64-linux-android gets android-activity automatically. 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 android_logger = "0.15"