Skip to content

armgit / ente

Public Imported from GitHub
0

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

Hoist thiserror and uniffi to workspace dependencies

Manav Rathia8ed01d1f3d4
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 6353b134d4..730a7ec6f8 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -30,4 +30,6 @@ ente-image = { path = "crates/image" }
ente-photos = { path = "crates/photos" }
ente-rs = { path = "apps/cli" }
ente-test-support = { path = "crates/test-support" }
+thiserror = "2.0.18"
+uniffi = { version = "0.31.0" }
wasm-bindgen = "0.2.125"
diff --git a/rust/apps/cli/Cargo.toml b/rust/apps/cli/Cargo.toml
index 166b34adfe..e301214f4c 100644
--- a/rust/apps/cli/Cargo.toml
+++ b/rust/apps/cli/Cargo.toml
@@ -35,7 +35,7 @@ zeroize = { version = "1.8", features = ["derive"] }
rusqlite = { version = "0.38", features = ["bundled", "serde_json"] }
# Utilities
-thiserror = "2.0"
+thiserror.workspace = true
log = "0.4"
env_logger = "0.11"
dirs = "5.0"
diff --git a/rust/bindings/uniffi/cast/Cargo.toml b/rust/bindings/uniffi/cast/Cargo.toml
index f4cf65119b..554358550c 100644
--- a/rust/bindings/uniffi/cast/Cargo.toml
+++ b/rust/bindings/uniffi/cast/Cargo.toml
@@ -8,5 +8,5 @@ crate-type = ["staticlib", "cdylib"]
[dependencies]
ente-core.workspace = true
-thiserror = "2"
-uniffi = { version = "0.31.0" }
+thiserror.workspace = true
+uniffi.workspace = true
diff --git a/rust/bindings/uniffi/ensu/Cargo.toml b/rust/bindings/uniffi/ensu/Cargo.toml
index f7dff6173e..3b023de0d2 100644
--- a/rust/bindings/uniffi/ensu/Cargo.toml
+++ b/rust/bindings/uniffi/ensu/Cargo.toml
@@ -8,6 +8,6 @@ crate-type = ["staticlib", "cdylib"]
[dependencies]
ente-ensu = { workspace = true, features = ["transcription"] }
-thiserror = "2"
-uniffi = { version = "0.31.0" }
+thiserror.workspace = true
+uniffi.workspace = true
uuid = { version = "1" }
diff --git a/rust/crates/accounts/Cargo.toml b/rust/crates/accounts/Cargo.toml
index bd8dbd7846..0faf66b10b 100644
--- a/rust/crates/accounts/Cargo.toml
+++ b/rust/crates/accounts/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2024"
ente-core = { workspace = true, features = ["srp"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
-thiserror = "2"
+thiserror.workspace = true
base64 = "0.22"
futures-timer = "3"
uuid = { version = "1.11", features = ["js", "serde", "v4"] }
diff --git a/rust/crates/contacts/Cargo.toml b/rust/crates/contacts/Cargo.toml
index f2af6b2740..917c6ba12d 100644
--- a/rust/crates/contacts/Cargo.toml
+++ b/rust/crates/contacts/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2024"
ente-core = { workspace = true, features = ["srp"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
-thiserror = "2"
+thiserror.workspace = true
md-5 = "0.11"
sha2 = "0.11"
uuid = { version = "1", features = ["v4", "js"] }
diff --git a/rust/crates/core/Cargo.toml b/rust/crates/core/Cargo.toml
index 512b72e5b3..4e64878bb7 100644
--- a/rust/crates/core/Cargo.toml
+++ b/rust/crates/core/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2024"
reqwest = { version = "0.12", default-features = false, features = ["http2", "charset", "system-proxy", "json", "rustls-tls-native-roots", "rustls-tls-webpki-roots"] }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
-thiserror = "2"
+thiserror.workspace = true
# Pure Rust Cryptography
xsalsa20poly1305 = "0.9"
diff --git a/rust/crates/ensu/Cargo.toml b/rust/crates/ensu/Cargo.toml
index fa6bf314c8..fd88d3a04a 100644
--- a/rust/crates/ensu/Cargo.toml
+++ b/rust/crates/ensu/Cargo.toml
@@ -16,7 +16,7 @@ self_cell = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tar = { version = "0.4", optional = true }
-thiserror = "2"
+thiserror.workspace = true
tokio = { version = "1", features = ["rt", "time"] }
transcribe-rs = { version = "0.3.11", default-features = false, features = ["onnx", "vad-silero"], optional = true }
uuid = { version = "1", features = ["v4", "rng-getrandom"] }
diff --git a/rust/crates/image/Cargo.toml b/rust/crates/image/Cargo.toml
index 5125574593..87560caf13 100644
--- a/rust/crates/image/Cargo.toml
+++ b/rust/crates/image/Cargo.toml
@@ -9,5 +9,5 @@ kamadak-exif = "0.6.1"
ente_heic = { package = "heic_decoder", git = "https://github.com/ente/heic-decoder.git", rev = "34f09f38ff25cb84d5fff14c8b9d3ff908b4c679", features = [
"image-integration",
] }
-thiserror = "2.0.11"
+thiserror.workspace = true
tiff = "0.10.3"
diff --git a/rust/crates/photos/Cargo.toml b/rust/crates/photos/Cargo.toml
index a89aef09c5..3cdc912849 100644
--- a/rust/crates/photos/Cargo.toml
+++ b/rust/crates/photos/Cargo.toml
@@ -17,7 +17,7 @@ once_cell = "1.20.2"
regex = "1.11.1"
html-escape = "0.2.13"
plsfix = "0.1.8"
-thiserror = "2.0.11"
+thiserror.workspace = true
# Photos stays on ORT rc.4 while Ensu transcription uses rc.12. Cargo cannot
# resolve both prereleases from crates.io in one workspace, so Photos pins rc.4