Skip to content

armgit / ente

Public Imported from GitHub
0

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

Remove unused Rust dependencies

Manav Rathid77f89da95b9
diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index cf2e030e38..a2a096fe12 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -1863,7 +1863,6 @@ name = "db"
version = "0.0.0"
dependencies = [
"ensu-db",
- "serde",
"thiserror 2.0.18",
"uniffi",
"uuid",
@@ -2358,7 +2357,6 @@ dependencies = [
"rusqlite",
"serde",
"serde_json",
- "tempfile",
"thiserror 2.0.18",
"uuid",
"zeroize",
@@ -2443,19 +2441,15 @@ dependencies = [
name = "ente-contacts"
version = "0.0.0"
dependencies = [
- "base64 0.22.1",
"ente-core",
- "ente-rs",
"md-5 0.11.0",
"mockito",
- "reqwest 0.12.28",
"serde",
"serde_json",
"sha2 0.11.0",
"thiserror 2.0.18",
"tokio",
"uuid",
- "zeroize",
]
[[package]]
@@ -2466,7 +2460,6 @@ dependencies = [
"base64 0.22.1",
"bip39",
"blake2b_simd",
- "chacha20",
"crypto_secretstream",
"getrandom 0.2.17",
"hex",
@@ -2581,7 +2574,6 @@ dependencies = [
"image",
"imageproc",
"nalgebra 0.33.3",
- "ndarray 0.16.1",
"once_cell",
"ort 2.0.0-rc.4",
"plsfix",
@@ -4653,7 +4645,6 @@ dependencies = [
"self_cell",
"serde",
"serde_json",
- "thiserror 1.0.69",
"tokio",
]
@@ -5577,21 +5568,6 @@ dependencies = [
"rawpointer",
]
-[[package]]
-name = "ndarray"
-version = "0.16.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "882ed72dce9365842bf196bdeedf5055305f11fc8c03dee7bb0194a6cad34841"
-dependencies = [
- "matrixmultiply",
- "num-complex",
- "num-integer",
- "num-traits",
- "portable-atomic",
- "portable-atomic-util",
- "rawpointer",
-]
-
[[package]]
name = "ndarray"
version = "0.17.2"
@@ -8309,7 +8285,6 @@ name = "sync"
version = "0.0.0"
dependencies = [
"ensu-sync",
- "serde",
"thiserror 2.0.18",
"uniffi",
]
diff --git a/rust/bindings/uniffi/ensu/db/Cargo.toml b/rust/bindings/uniffi/ensu/db/Cargo.toml
index bd8dadf4bb..0b8edc33dd 100644
--- a/rust/bindings/uniffi/ensu/db/Cargo.toml
+++ b/rust/bindings/uniffi/ensu/db/Cargo.toml
@@ -7,7 +7,6 @@ crate-type = ["staticlib", "cdylib"]
[dependencies]
ensu-db.workspace = true
-serde = { version = "1", features = ["derive"] }
thiserror = "2"
uniffi = { version = "0.31.0" }
uuid = { version = "1" }
diff --git a/rust/bindings/uniffi/ensu/sync/Cargo.toml b/rust/bindings/uniffi/ensu/sync/Cargo.toml
index eb85c1d414..a640568dcf 100644
--- a/rust/bindings/uniffi/ensu/sync/Cargo.toml
+++ b/rust/bindings/uniffi/ensu/sync/Cargo.toml
@@ -7,7 +7,6 @@ crate-type = ["staticlib", "cdylib"]
[dependencies]
ensu-sync.workspace = true
-serde = { version = "1", features = ["derive"] }
thiserror = "2"
uniffi = { version = "0.31.0" }
diff --git a/rust/crates/contacts/Cargo.toml b/rust/crates/contacts/Cargo.toml
index 5622a14141..f2af6b2740 100644
--- a/rust/crates/contacts/Cargo.toml
+++ b/rust/crates/contacts/Cargo.toml
@@ -14,7 +14,3 @@ uuid = { version = "1", features = ["v4", "js"] }
[dev-dependencies]
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
mockito = "1.6"
-ente-rs.workspace = true
-zeroize = { version = "1.8", features = ["derive"] }
-reqwest = { version = "0.12", features = ["json", "rustls-tls-native-roots"] }
-base64 = "0.22"
diff --git a/rust/crates/core/Cargo.toml b/rust/crates/core/Cargo.toml
index 93f5f79937..c2a429a5cd 100644
--- a/rust/crates/core/Cargo.toml
+++ b/rust/crates/core/Cargo.toml
@@ -42,7 +42,6 @@ bip39 = { version = "2", default-features = false, features = ["std"] }
zeroize = { version = "1.8", features = ["derive"] }
[dev-dependencies]
-chacha20 = "0.9.1"
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
mockito = "1.6"
diff --git a/rust/crates/ensu/db/Cargo.toml b/rust/crates/ensu/db/Cargo.toml
index 976cfec70e..9eada44041 100644
--- a/rust/crates/ensu/db/Cargo.toml
+++ b/rust/crates/ensu/db/Cargo.toml
@@ -12,9 +12,6 @@ thiserror = "2"
uuid = { version = "1", features = ["v4", "rng-getrandom"] }
zeroize = { version = "1.8", features = ["derive"] }
-[dev-dependencies]
-tempfile = "3"
-
[features]
default = ["sqlite"]
sqlite = ["dep:rusqlite"]
diff --git a/rust/crates/ensu/inference/Cargo.toml b/rust/crates/ensu/inference/Cargo.toml
index 7abc0ace21..bca406a58b 100644
--- a/rust/crates/ensu/inference/Cargo.toml
+++ b/rust/crates/ensu/inference/Cargo.toml
@@ -10,7 +10,6 @@ self_cell = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["rt", "time"] }
-thiserror = "1"
# llama-cpp-2's default features are "openmp" and "android-shared-stdcxx".
#
diff --git a/rust/crates/photos/Cargo.toml b/rust/crates/photos/Cargo.toml
index af1010aeee..22ff7095d0 100644
--- a/rust/crates/photos/Cargo.toml
+++ b/rust/crates/photos/Cargo.toml
@@ -12,7 +12,6 @@ fast_image_resize = { version = "5.5.0", features = ["image", "rayon"] }
image = { version = "0.25.5", default-features = true }
imageproc = "0.25.0"
nalgebra = "0.33.2"
-ndarray = "0.16.1"
half = "2.1"
once_cell = "1.20.2"
regex = "1.11.1"