From 65d2770df3f395749bc7170442a440a03bb0a93d Mon Sep 17 00:00:00 2001 From: haex Date: Sun, 2 Nov 2025 15:02:45 +0100 Subject: [PATCH] Fix Android build by unconditionally importing ts_rs::TS When cargo clippy removed the unused trash import, the cfg attribute accidentally applied to the ts_rs::TS import below it, making it conditional for Android. This caused the Android build to fail with "cannot find derive macro TS in this scope". Moved the TS import out of the cfg block to make it available for all platforms including Android. --- src-tauri/src/database/mod.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src-tauri/src/database/mod.rs b/src-tauri/src/database/mod.rs index ef1b4c1..70b5a7b 100644 --- a/src-tauri/src/database/mod.rs +++ b/src-tauri/src/database/mod.rs @@ -20,7 +20,6 @@ use std::time::UNIX_EPOCH; use std::{fs, sync::Arc}; use tauri::{path::BaseDirectory, AppHandle, Manager, State}; use tauri_plugin_fs::FsExt; -#[cfg(not(target_os = "android"))] use ts_rs::TS; pub struct DbConnection(pub Arc>>);