Skip to content

armgit / ente

Public Imported from GitHub
0

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

Rename ente_image and ente_photos crates to use hyphens

Manav Rathid8a79dc62c1f
diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index e797cbb1fd..e62c346bbf 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -2270,7 +2270,7 @@ name = "ensu-db"
version = "0.0.0"
dependencies = [
"ente-core",
- "ente_image",
+ "ente-image",
"rusqlite",
"serde",
"serde_json",
@@ -2398,6 +2398,39 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "ente-image"
+version = "0.0.0"
+dependencies = [
+ "fast_image_resize",
+ "heic_decoder",
+ "image",
+ "kamadak-exif",
+ "thiserror 2.0.18",
+ "tiff 0.10.3",
+]
+
+[[package]]
+name = "ente-photos"
+version = "0.0.0"
+dependencies = [
+ "ente-image",
+ "fast_image_resize",
+ "half",
+ "html-escape",
+ "image",
+ "imageproc",
+ "nalgebra 0.33.3",
+ "once_cell",
+ "ort 2.0.0-rc.4",
+ "plsfix",
+ "quick-xml 0.37.5",
+ "regex",
+ "tempfile",
+ "thiserror 2.0.18",
+ "usearch",
+]
+
[[package]]
name = "ente-rs"
version = "0.0.1"
@@ -2468,45 +2501,12 @@ dependencies = [
"ente-core",
]
-[[package]]
-name = "ente_image"
-version = "0.0.0"
-dependencies = [
- "fast_image_resize",
- "heic_decoder",
- "image",
- "kamadak-exif",
- "thiserror 2.0.18",
- "tiff 0.10.3",
-]
-
-[[package]]
-name = "ente_photos"
-version = "0.0.0"
-dependencies = [
- "ente_image",
- "fast_image_resize",
- "half",
- "html-escape",
- "image",
- "imageproc",
- "nalgebra 0.33.3",
- "once_cell",
- "ort 2.0.0-rc.4",
- "plsfix",
- "quick-xml 0.37.5",
- "regex",
- "tempfile",
- "thiserror 2.0.18",
- "usearch",
-]
-
[[package]]
name = "ente_photos_rust"
version = "0.0.0"
dependencies = [
- "ente_image",
- "ente_photos",
+ "ente-image",
+ "ente-photos",
"flutter_rust_bridge",
]
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 5df7aa68c2..31a61532f2 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -30,9 +30,9 @@ ensu-transcription = { path = "crates/ensu/transcription" }
ente-accounts = { path = "crates/accounts" }
ente-contacts = { path = "crates/contacts" }
ente-core = { path = "crates/core" }
+ente-image = { path = "crates/image" }
+ente-photos = { path = "crates/photos" }
ente-rs = { path = "apps/cli" }
ente-test-support = { path = "crates/test-support" }
-ente_image = { path = "crates/image" }
-ente_photos = { path = "crates/photos" }
inference_rs = { path = "crates/ensu/inference" }
wasm-bindgen = "0.2.125"
diff --git a/rust/bindings/frb/photos/Cargo.toml b/rust/bindings/frb/photos/Cargo.toml
index e4accdaa72..e22dc35a1b 100644
--- a/rust/bindings/frb/photos/Cargo.toml
+++ b/rust/bindings/frb/photos/Cargo.toml
@@ -7,8 +7,8 @@ crate-type = ["cdylib", "staticlib"]
[dependencies]
flutter_rust_bridge = "=2.12.0"
-ente_image.workspace = true
-ente_photos.workspace = true
+ente-image.workspace = true
+ente-photos.workspace = true
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(frb_expand)'] }
diff --git a/rust/crates/ensu/db/Cargo.toml b/rust/crates/ensu/db/Cargo.toml
index 9eada44041..b5e1bbfe68 100644
--- a/rust/crates/ensu/db/Cargo.toml
+++ b/rust/crates/ensu/db/Cargo.toml
@@ -4,7 +4,7 @@ edition = "2024"
[dependencies]
ente-core.workspace = true
-ente_image.workspace = true
+ente-image.workspace = true
rusqlite = { version = "0.38", features = ["bundled"], optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
diff --git a/rust/crates/image/Cargo.toml b/rust/crates/image/Cargo.toml
index 4e5e403ba0..5125574593 100644
--- a/rust/crates/image/Cargo.toml
+++ b/rust/crates/image/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "ente_image"
+name = "ente-image"
edition = "2024"
[dependencies]
diff --git a/rust/crates/photos/Cargo.toml b/rust/crates/photos/Cargo.toml
index 22ff7095d0..a89aef09c5 100644
--- a/rust/crates/photos/Cargo.toml
+++ b/rust/crates/photos/Cargo.toml
@@ -1,9 +1,9 @@
[package]
-name = "ente_photos"
+name = "ente-photos"
edition = "2024"
[dependencies]
-ente_image.workspace = true
+ente-image.workspace = true
quick-xml = "0.37"
# The FRB photos bridge calls the SimSIMD symbol exported by usearch 2.21.x.
# Newer usearch releases switched that implementation to numkong symbols.