[package] name = "darkroom-android" version.workspace = true edition.workspace = true rust-version.workspace = true license.workspace = true # A cdylib, not a bin: Android loads the app as a shared library and calls # `android_main` through android-activity's glue. Nothing execs a binary, so # there is no `main` to provide. [lib] name = "darkroom" crate-type = ["cdylib"] [dependencies] # 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 # For `account::set_data_dir`: only the platform entry point knows where Android # lets this app keep files, and it must be set before any store is opened. dr-sync.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" [features] # Mirrors darkroom-desktop: the CPU readback path is gone since S1 landed # zero-copy. It mattered more here than on desktop — the same wrong path with # far less memory bandwidth to absorb it (ARCH §6.1) — but it is untested on a # device, since S1 was verified on desktop only. default = []