π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix android build and needs_sync migration
Prateek Sunalb8f2198683a0
diff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.ktindex 64d4fec163..119c826d8c 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeDialogs.kt@@ -9,7 +9,6 @@ import androidx.compose.foundation.layout.fillMaxWidthimport androidx.compose.foundation.layout.heightimport androidx.compose.foundation.layout.heightInimport androidx.compose.foundation.layout.padding-import androidx.compose.foundation.layout.weightimport androidx.compose.foundation.rememberScrollStateimport androidx.compose.foundation.shape.RoundedCornerShapeimport androidx.compose.foundation.verticalScrolldiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.ktindex bc4dcc34f6..73f24cb99c 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeNavigation.kt@@ -1,6 +1,9 @@+@file:OptIn(ExperimentalAnimationApi::class)+package io.ente.ensuimport androidx.compose.animation.AnimatedContentTransitionScope+import androidx.compose.animation.ExperimentalAnimationApiimport androidx.compose.animation.fadeInimport androidx.compose.animation.fadeOutimport androidx.compose.animation.slideInHorizontallydiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeTopBars.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeTopBars.ktindex 20dfb067b4..bddd4d1e7e 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeTopBars.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/HomeTopBars.kt@@ -1,3 +1,5 @@+@file:OptIn(ExperimentalMaterial3Api::class)+package io.ente.ensuimport androidx.compose.foundation.layout.PaddingValues@@ -13,6 +15,7 @@ import androidx.compose.material3.Textimport androidx.compose.material3.TextButtonimport androidx.compose.material3.TopAppBarimport androidx.compose.material3.CenterAlignedTopAppBar+import androidx.compose.material3.ExperimentalMaterial3Apiimport androidx.compose.material3.TopAppBarDefaultsimport androidx.compose.runtime.Composableimport androidx.compose.ui.Alignmentdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.ktindex d256a180ba..bc407d264e 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatInputBar.kt@@ -1,6 +1,6 @@package io.ente.ensu.chat-import androidx.compose.foundation.ExperimentalLayoutApi+import androidx.compose.foundation.layout.ExperimentalLayoutApiimport androidx.compose.foundation.backgroundimport androidx.compose.foundation.focusableimport androidx.compose.foundation.layout.Arrangement@@ -17,7 +17,6 @@ import androidx.compose.foundation.layout.heightInimport androidx.compose.foundation.layout.paddingimport androidx.compose.foundation.layout.sizeimport androidx.compose.foundation.layout.width-import androidx.compose.foundation.layout.weightimport androidx.compose.foundation.rememberScrollStateimport androidx.compose.foundation.shape.CircleShapeimport androidx.compose.foundation.shape.RoundedCornerShapediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.ktindex 7dc6a325f9..affe37bbdf 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatMessages.kt@@ -7,6 +7,7 @@ import androidx.compose.foundation.backgroundimport androidx.compose.foundation.gestures.detectTapGesturesimport androidx.compose.foundation.gestures.scrollByimport androidx.compose.foundation.isSystemInDarkTheme+import androidx.compose.foundation.shape.RoundedCornerShapeimport androidx.compose.foundation.layout.Arrangementimport androidx.compose.foundation.layout.Boximport androidx.compose.foundation.layout.Column@@ -23,7 +24,6 @@ import androidx.compose.foundation.layout.paddingimport androidx.compose.foundation.layout.sizeimport androidx.compose.foundation.layout.widthimport androidx.compose.foundation.layout.wrapContentSize-import androidx.compose.foundation.layout.weightimport androidx.compose.foundation.lazy.LazyColumnimport androidx.compose.foundation.lazy.itemsimport androidx.compose.foundation.lazy.rememberLazyListStatediff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.ktindex 84569e6ac6..39e947dfc3 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatOverlays.kt@@ -10,7 +10,6 @@ import androidx.compose.foundation.layout.fillMaxWidthimport androidx.compose.foundation.layout.heightimport androidx.compose.foundation.layout.paddingimport androidx.compose.foundation.layout.size-import androidx.compose.foundation.layout.weightimport androidx.compose.foundation.shape.CircleShapeimport androidx.compose.foundation.shape.RoundedCornerShapeimport androidx.compose.material3.AlertDialogdiff --git a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.kt b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.ktindex 2aeab128bf..81b8f640bd 100644--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/chat/ChatView.kt@@ -16,7 +16,6 @@ import androidx.compose.foundation.layout.fillMaxWidthimport androidx.compose.foundation.layout.imePaddingimport androidx.compose.foundation.layout.navigationBarsPaddingimport androidx.compose.foundation.layout.padding-import androidx.compose.foundation.layout.weightimport androidx.compose.runtime.Composableimport androidx.compose.runtime.LaunchedEffectimport androidx.compose.runtime.derivedStateOf@@ -26,6 +25,7 @@ import androidx.compose.runtime.rememberimport androidx.compose.runtime.setValueimport androidx.compose.ui.Modifierimport androidx.compose.ui.platform.LocalFocusManager+import androidx.compose.ui.unit.dpimport io.ente.ensu.designsystem.EnsuColorimport io.ente.ensu.designsystem.EnsuSpacingimport io.ente.ensu.domain.model.Attachmentdiff --git a/mobile/native/android/apps/ensu/data/src/main/java/io/ente/ensu/data/logging/FileLogRepository.kt b/mobile/native/android/apps/ensu/data/src/main/java/io/ente/ensu/data/logging/FileLogRepository.ktindex fb29bcfedb..1ea9c5d378 100644--- a/mobile/native/android/apps/ensu/data/src/main/java/io/ente/ensu/data/logging/FileLogRepository.kt+++ b/mobile/native/android/apps/ensu/data/src/main/java/io/ente/ensu/data/logging/FileLogRepository.kt@@ -24,6 +24,7 @@ import java.io.FileOutputStreamimport java.text.SimpleDateFormatimport java.util.Dateimport java.util.Locale+import java.util.UUIDimport java.util.zip.ZipEntryimport java.util.zip.ZipOutputStreamdiff --git a/rust/llmchat/db/src/attachments_db.rs b/rust/llmchat/db/src/attachments_db.rsindex 8bbaa2d31f..1e3c939f32 100644--- a/rust/llmchat/db/src/attachments_db.rs+++ b/rust/llmchat/db/src/attachments_db.rs@@ -2,9 +2,9 @@ use std::sync::Arc;use uuid::Uuid;+use crate::Result;use crate::backend::{Backend, RowExt, Value};use crate::traits::{Clock, SystemClock};-use crate::{Result};#[derive(Debug, Clone, Copy, PartialEq, Eq)]pub enum UploadState {@@ -126,7 +126,11 @@ impl<B: Backend> AttachmentsDb<B> {.unwrap_or(Value::Null);self.backend.execute("UPDATE attachments SET remote_id = ?, updated_at = ? WHERE attachment_id = ?",- &[value, Value::Integer(now), Value::Text(attachment_id.to_string())],+ &[+ value,+ Value::Integer(now),+ Value::Text(attachment_id.to_string()),+ ],)?;Ok(())}@@ -282,10 +286,7 @@ impl<B: Backend> AttachmentsDb<B> {#[cfg(feature = "sqlite")]impl AttachmentsDb<crate::backend::sqlite::SqliteBackend> {- pub fn open_sqlite(- path: impl AsRef<std::path::Path>,- clock: Arc<dyn Clock>,- ) -> Result<Self> {+ pub fn open_sqlite(path: impl AsRef<std::path::Path>, clock: Arc<dyn Clock>) -> Result<Self> {let backend = crate::backend::sqlite::SqliteBackend::open(path)?;Self::new(backend, clock)}diff --git a/rust/llmchat/db/src/attachments_migrations.rs b/rust/llmchat/db/src/attachments_migrations.rsindex 49227ea004..764f49f560 100644--- a/rust/llmchat/db/src/attachments_migrations.rs+++ b/rust/llmchat/db/src/attachments_migrations.rs@@ -1,6 +1,6 @@-use crate::{Backend, Error, Result};-use crate::backend::RowExt;use crate::attachments_schema;+use crate::backend::RowExt;+use crate::{Backend, Error, Result};pub const LATEST_VERSION: i64 = 2;@@ -34,8 +34,8 @@ fn user_version<B: Backend>(backend: &B) -> Result<i64> {#[cfg(all(test, feature = "sqlite"))]mod tests {use super::*;- use crate::backend::{BackendTx, RowExt, Value};use crate::backend::sqlite::SqliteBackend;+ use crate::backend::{BackendTx, RowExt, Value};#[test]fn creates_schema_and_indexes() {diff --git a/rust/llmchat/db/src/backend/sqlite.rs b/rust/llmchat/db/src/backend/sqlite.rsindex 20b1ac96dc..7cafca7abe 100644--- a/rust/llmchat/db/src/backend/sqlite.rs+++ b/rust/llmchat/db/src/backend/sqlite.rs@@ -1,8 +1,8 @@use std::path::Path;use std::sync::{Mutex, MutexGuard};-use rusqlite::{Connection, params_from_iter};use rusqlite::types::Value as SqlValue;+use rusqlite::{Connection, params_from_iter};use crate::{Backend, BackendTx, Error, Result, Row, Value};@@ -77,7 +77,8 @@ impl SqliteConn for Connection {impl<'a> SqliteConn for SqliteTransaction<'a> {fn execute_sql(&self, sql: &str, params: &[SqlValue]) -> rusqlite::Result<usize> {- self.guard.execute(sql, params_from_iter(params.iter().cloned()))+ self.guard+ .execute(sql, params_from_iter(params.iter().cloned()))}fn prepare_sql<'b>(&'b self, sql: &str) -> rusqlite::Result<rusqlite::Statement<'b>> {diff --git a/rust/llmchat/db/src/db.rs b/rust/llmchat/db/src/db.rsindex 314ed8d8a1..fc34a157b8 100644--- a/rust/llmchat/db/src/db.rs+++ b/rust/llmchat/db/src/db.rs@@ -35,12 +35,7 @@ impl<B: Backend> ChatDb<B> {}pub fn new_with_defaults(backend: B, key: Vec<u8>) -> Result<Self> {- Self::new(- backend,- key,- Arc::new(SystemClock),- Arc::new(RandomUuidGen),- )+ Self::new(backend, key, Arc::new(SystemClock), Arc::new(RandomUuidGen))}pub fn create_session(&self, title: &str) -> Result<Session> {@@ -315,11 +310,17 @@ impl<B: Backend> ChatDb<B> {self.backend.transaction(|tx| {tx.execute("UPDATE messages SET deleted_at = ? WHERE session_uuid = ? AND deleted_at IS NULL",- &[Value::Integer(deleted_at), Value::Text(session_uuid.to_string())],+ &[+ Value::Integer(deleted_at),+ Value::Text(session_uuid.to_string()),+ ],)?;tx.execute("UPDATE sessions SET deleted_at = ?, needs_sync = 0 WHERE session_uuid = ?",- &[Value::Integer(deleted_at), Value::Text(session_uuid.to_string())],+ &[+ Value::Integer(deleted_at),+ Value::Text(session_uuid.to_string()),+ ],)?;Ok(())})@@ -384,7 +385,10 @@ impl<B: Backend> ChatDb<B> {pub fn apply_message_tombstone(&self, message_uuid: Uuid, deleted_at: i64) -> Result<()> {self.backend.execute("UPDATE messages SET deleted_at = ? WHERE message_uuid = ?",- &[Value::Integer(deleted_at), Value::Text(message_uuid.to_string())],+ &[+ Value::Integer(deleted_at),+ Value::Text(message_uuid.to_string()),+ ],)?;Ok(())}@@ -610,16 +614,16 @@ fn parse_stored_attachments(raw: Option<String>) -> Result<Vec<StoredAttachment>#[cfg(all(test, feature = "sqlite"))]mod tests {use std::collections::VecDeque;- use std::sync::{Arc, Mutex};use std::sync::atomic::{AtomicI64, Ordering};+ use std::sync::{Arc, Mutex};use uuid::Uuid;use super::*;- use crate::backend::{BackendTx, RowExt, Value};use crate::backend::sqlite::SqliteBackend;+ use crate::backend::{BackendTx, RowExt, Value};use crate::crypto::KEY_BYTES;- use crate::models::{AttachmentMeta, AttachmentKind};+ use crate::models::{AttachmentKind, AttachmentMeta};#[derive(Debug)]struct StepClock {diff --git a/rust/llmchat/db/src/error.rs b/rust/llmchat/db/src/error.rsindex 15604244e6..5f9b65762c 100644--- a/rust/llmchat/db/src/error.rs+++ b/rust/llmchat/db/src/error.rs@@ -27,7 +27,6 @@ pub enum Error {#[error("{entity:?} not found: {id}")]NotFound { entity: EntityType, id: uuid::Uuid },-#[error(transparent)]Crypto(#[from] ente_core::crypto::CryptoError),diff --git a/rust/llmchat/db/src/lib.rs b/rust/llmchat/db/src/lib.rsindex d3cbb61ae3..09ba43bd32 100644--- a/rust/llmchat/db/src/lib.rs+++ b/rust/llmchat/db/src/lib.rs@@ -1,26 +1,24 @@#![forbid(unsafe_code)]-pub mod backend;-pub mod crypto;-pub mod db;pub mod attachments_db;pub mod attachments_migrations;pub mod attachments_schema;+pub mod backend;+pub mod crypto;+pub mod db;pub mod error;+pub mod llmchat;pub mod migrations;pub mod models;pub mod schema;pub mod traits;-pub mod llmchat;+pub use crate::attachments_db::{AttachmentUploadRow, AttachmentsDb, UploadState};pub use crate::backend::{Backend, BackendTx, Row, Value};pub use crate::db::ChatDb;-pub use crate::attachments_db::{AttachmentsDb, AttachmentUploadRow, UploadState};-pub use crate::llmchat::LlmChatDb;pub use crate::error::{Error, Result};-pub use crate::models::{- AttachmentKind, AttachmentMeta, EntityType, Message, Sender, Session,-};+pub use crate::llmchat::LlmChatDb;+pub use crate::models::{AttachmentKind, AttachmentMeta, EntityType, Message, Sender, Session};pub use crate::traits::{AttachmentStore, Clock, FileMetaStore, FsAttachmentStore, MetaStore, RandomUuidGen,SystemClock, UuidGen,diff --git a/rust/llmchat/db/src/llmchat.rs b/rust/llmchat/db/src/llmchat.rsindex 406a59f9e8..966c0b65dc 100644--- a/rust/llmchat/db/src/llmchat.rs+++ b/rust/llmchat/db/src/llmchat.rs@@ -2,11 +2,11 @@ use std::sync::Arc;use uuid::Uuid;+use crate::Result;use crate::attachments_db::{AttachmentUploadRow, AttachmentsDb, UploadState};use crate::db::ChatDb;use crate::models::{AttachmentMeta, EntityType, Message, Session};use crate::traits::{Clock, UuidGen};-use crate::Result;/// High-level DB that ties together the main chat DB and the attachments upload-state DB.pub struct LlmChatDb<B: crate::Backend> {@@ -37,7 +37,9 @@ impl<B: crate::Backend> LlmChatDb<B> {pub fn delete_session(&self, uuid: Uuid) -> Result<()> {// Best-effort cleanup in attachments DB. If this fails, still delete session.- let _ = self.attachments.delete_attachment_tracking_for_session(uuid);+ let _ = self+ .attachments+ .delete_attachment_tracking_for_session(uuid);self.chat.delete_session(uuid)}@@ -49,9 +51,9 @@ impl<B: crate::Backend> LlmChatDb<B> {parent: Option<Uuid>,attachments: Vec<AttachmentMeta>,) -> Result<Message> {- let message = self- .chat- .insert_message(session_uuid, sender, text, parent, attachments.clone())?;+ let message =+ self.chat+ .insert_message(session_uuid, sender, text, parent, attachments.clone())?;for attachment in attachments {self.attachments.upsert_pending_attachment(@@ -78,7 +80,9 @@ impl<B: crate::Backend> LlmChatDb<B> {}pub fn delete_message(&self, uuid: Uuid) -> Result<()> {- let _ = self.attachments.delete_attachment_tracking_for_message(uuid);+ let _ = self+ .attachments+ .delete_attachment_tracking_for_message(uuid);self.chat.delete_message(uuid)}@@ -94,8 +98,13 @@ impl<B: crate::Backend> LlmChatDb<B> {.upsert_pending_attachment(attachment_id, session_uuid, message_uuid, size)}- pub fn set_attachment_upload_state(&self, attachment_id: &str, state: UploadState) -> Result<()> {- self.attachments.set_attachment_upload_state(attachment_id, state)+ pub fn set_attachment_upload_state(+ &self,+ attachment_id: &str,+ state: UploadState,+ ) -> Result<()> {+ self.attachments+ .set_attachment_upload_state(attachment_id, state)}pub fn mark_attachment_uploaded(&self, attachment_id: &str) -> Result<()> {@@ -106,14 +115,16 @@ impl<B: crate::Backend> LlmChatDb<B> {&self,session_uuid: Uuid,) -> Result<Vec<AttachmentUploadRow>> {- self.attachments.get_pending_uploads_for_session(session_uuid)+ self.attachments+ .get_pending_uploads_for_session(session_uuid)}pub fn get_pending_uploads_for_message(&self,message_uuid: Uuid,) -> Result<Vec<AttachmentUploadRow>> {- self.attachments.get_pending_uploads_for_message(message_uuid)+ self.attachments+ .get_pending_uploads_for_message(message_uuid)}pub fn delete_attachment_tracking_for_message(&self, message_uuid: Uuid) -> Result<()> {diff --git a/rust/llmchat/db/src/migrations.rs b/rust/llmchat/db/src/migrations.rsindex 3c2cafbfde..32b2054829 100644--- a/rust/llmchat/db/src/migrations.rs+++ b/rust/llmchat/db/src/migrations.rs@@ -1,16 +1,16 @@-use crate::{Backend, Error, Result};-use crate::backend::RowExt;+use crate::backend::{RowExt, Value};use crate::schema;+use crate::{Backend, Error, Result};pub const LATEST_VERSION: i64 = 2;pub fn migrate<B: Backend>(backend: &B) -> Result<()> {let version = user_version(backend)?;+ let mut updated = false;match version {0 => {backend.execute_batch(schema::CREATE_ALL)?;- backend.execute("PRAGMA user_version = 2;", &[])?;- Ok(())+ updated = true;}1 => {backend.execute(@@ -21,14 +21,71 @@ pub fn migrate<B: Backend>(backend: &B) -> Result<()> {"UPDATE messages SET needs_sync = 0 WHERE session_uuid IN (SELECT session_uuid FROM sessions WHERE needs_sync = 0);",&[],)?;- backend.execute("PRAGMA user_version = 2;", &[])?;- Ok(())+ updated = true;+ }+ LATEST_VERSION => {}+ other => {+ return Err(Error::Migration(format!(+ "unsupported schema version {other}"+ )));}- LATEST_VERSION => Ok(()),- other => Err(Error::Migration(format!(- "unsupported schema version {other}"- ))),}++ if ensure_needs_sync_columns(backend)? {+ updated = true;+ }++ if updated {+ backend.execute("PRAGMA user_version = 2;", &[])?;+ }++ Ok(())+}++fn ensure_needs_sync_columns<B: Backend>(backend: &B) -> Result<bool> {+ if !table_exists(backend, "sessions")? || !table_exists(backend, "messages")? {+ return Ok(false);+ }++ let mut updated = false;+ if !column_exists(backend, "sessions", "needs_sync")? {+ backend.execute(+ "ALTER TABLE sessions ADD COLUMN needs_sync INTEGER NOT NULL DEFAULT 1 CHECK(needs_sync IN (0,1));",+ &[],+ )?;+ updated = true;+ }++ if !column_exists(backend, "messages", "needs_sync")? {+ backend.execute(+ "ALTER TABLE messages ADD COLUMN needs_sync INTEGER NOT NULL DEFAULT 1 CHECK(needs_sync IN (0,1));",+ &[],+ )?;+ backend.execute(+ "UPDATE messages SET needs_sync = 0 WHERE session_uuid IN (SELECT session_uuid FROM sessions WHERE needs_sync = 0);",+ &[],+ )?;+ updated = true;+ }++ Ok(updated)+}++fn column_exists<B: Backend>(backend: &B, table: &str, column: &str) -> Result<bool> {+ let rows = backend.query(&format!("PRAGMA table_info({table});"), &[])?;+ Ok(rows.iter().any(|row| match row.get(1) {+ Some(Value::Text(name)) => name == column,+ _ => false,+ }))+}++fn table_exists<B: Backend>(backend: &B, table: &str) -> Result<bool> {+ Ok(backend+ .query_row(+ "SELECT name FROM sqlite_master WHERE type = 'table' AND name = ?",+ &[Value::Text(table.to_string())],+ )?+ .is_some())}fn user_version<B: Backend>(backend: &B) -> Result<i64> {@@ -41,8 +98,8 @@ fn user_version<B: Backend>(backend: &B) -> Result<i64> {#[cfg(all(test, feature = "sqlite"))]mod tests {use super::*;- use crate::backend::{BackendTx, RowExt, Value};use crate::backend::sqlite::SqliteBackend;+ use crate::backend::{BackendTx, RowExt, Value};#[test]fn creates_schema_and_indexes() {diff --git a/rust/llmchat/uniffi/llmchat_sync_uniffi/Cargo.lock b/rust/llmchat/uniffi/llmchat_sync_uniffi/Cargo.lockindex 491d4b1205..e92288dabf 100644--- a/rust/llmchat/uniffi/llmchat_sync_uniffi/Cargo.lock+++ b/rust/llmchat/uniffi/llmchat_sync_uniffi/Cargo.lock@@ -957,6 +957,7 @@ dependencies = ["sha2","thiserror","uuid",+ "zeroize",][[package]]