Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

mob split

Manav Rathi6f4f086f4b86
diff --git a/mobile/apps/photos/flutter_rust_bridge.yaml b/mobile/apps/photos/flutter_rust_bridge.yaml
index fde31a2f2b..948e816559 100644
--- a/mobile/apps/photos/flutter_rust_bridge.yaml
+++ b/mobile/apps/photos/flutter_rust_bridge.yaml
@@ -5,4 +5,4 @@ dart_output: lib/src/rust
dart_preamble: |
// ignore_for_file: require_trailing_commas
-web: false
\ No newline at end of file
+web: false
diff --git a/mobile/apps/photos/pubspec.yaml b/mobile/apps/photos/pubspec.yaml
index be260fe01a..581874850e 100644
--- a/mobile/apps/photos/pubspec.yaml
+++ b/mobile/apps/photos/pubspec.yaml
@@ -60,6 +60,8 @@ dependencies:
path: plugins/ente_feature_flag
ente_qr_ui:
path: ../../packages/qr
+ ente_rust:
+ path: ../../packages/rust
equatable: ^2.0.5
event_bus: ^2.0.0
exif_reader:
diff --git a/mobile/apps/photos/rust/Cargo.toml b/mobile/apps/photos/rust/Cargo.toml
index 87abbb5c51..b37d6f7f10 100644
--- a/mobile/apps/photos/rust/Cargo.toml
+++ b/mobile/apps/photos/rust/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "rust_lib_photos"
-version = "0.1.0"
-edition = "2021"
+version = "0.0.1"
+edition = "2024"
[lib]
crate-type = ["cdylib", "staticlib"]
@@ -9,7 +9,6 @@ crate-type = ["cdylib", "staticlib"]
[dependencies]
flutter_rust_bridge = "=2.11.1"
usearch = "2.21.3"
-ente-core = { path = "../../../../rust/core" }
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(frb_expand)'] }
diff --git a/mobile/apps/photos/rust/src/api/mod.rs b/mobile/apps/photos/rust/src/api/mod.rs
index 8d2e90eb29..48c07eb9a0 100644
--- a/mobile/apps/photos/rust/src/api/mod.rs
+++ b/mobile/apps/photos/rust/src/api/mod.rs
@@ -1,3 +1,2 @@
pub mod simple;
-pub mod urls;
pub mod usearch_api;
diff --git a/mobile/apps/photos/rust/src/api/urls.rs b/mobile/apps/photos/rust/src/api/urls.rs
deleted file mode 100644
index 00e4acd55f..0000000000
--- a/mobile/apps/photos/rust/src/api/urls.rs
+++ /dev/null
@@ -1,6 +0,0 @@
-use flutter_rust_bridge::frb;
-
-#[frb(sync)]
-pub fn file_download_url(api_base_url: String, file_id: i64) -> String {
- ente_core::urls::file_download_url(&api_base_url, file_id)
-}