Skip to content

armgit / ente

Public Imported from GitHub
0

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

Hoist serde_json to the workspace

Manav Rathi31ad01cf11aa
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 584110964b..81d80ebf46 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -33,6 +33,7 @@ ente-rs = { path = "apps/cli" }
ente-test-support = { path = "crates/test-support" }
ort = { git = "https://github.com/pykeio/ort.git", rev = "31c8f1443bb579bfddb82705288347697e468fb3", default-features = false }
serde = { version = "1.0.228", features = ["derive"] }
+serde_json = "1.0.149"
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 be7cf49b07..60be262150 100644
--- a/rust/apps/cli/Cargo.toml
+++ b/rust/apps/cli/Cargo.toml
@@ -25,7 +25,7 @@ ente-accounts.workspace = true
ente-core = { workspace = true, features = ["srp"] }
ente-paste.workspace = true
serde.workspace = true
-serde_json = "1.0"
+serde_json.workspace = true
# Async runtime and networking
tokio = { version = "1.41", features = ["full"] }
diff --git a/rust/apps/ensu/src-tauri/Cargo.toml b/rust/apps/ensu/src-tauri/Cargo.toml
index 17e059b985..691fc54962 100644
--- a/rust/apps/ensu/src-tauri/Cargo.toml
+++ b/rust/apps/ensu/src-tauri/Cargo.toml
@@ -14,7 +14,7 @@ tauri-plugin-opener = "2.5.4"
tauri-plugin-process = "2.3.1"
tauri-plugin-updater = "2.10.1"
serde.workspace = true
-serde_json = "1"
+serde_json.workspace = true
ente-ensu.workspace = true
ente-core.workspace = true
uuid = { version = "1", features = ["v4"] }
diff --git a/rust/crates/accounts/Cargo.toml b/rust/crates/accounts/Cargo.toml
index 1d3d490029..e2c313fc85 100644
--- a/rust/crates/accounts/Cargo.toml
+++ b/rust/crates/accounts/Cargo.toml
@@ -5,7 +5,7 @@ edition = "2024"
[dependencies]
ente-core = { workspace = true, features = ["srp"] }
serde.workspace = true
-serde_json = "1"
+serde_json.workspace = true
thiserror.workspace = true
base64 = "0.22"
uuid = { version = "1.11", features = ["js", "serde", "v4"] }
diff --git a/rust/crates/contacts/Cargo.toml b/rust/crates/contacts/Cargo.toml
index dd2b128c8d..fdfac11575 100644
--- a/rust/crates/contacts/Cargo.toml
+++ b/rust/crates/contacts/Cargo.toml
@@ -5,7 +5,7 @@ edition = "2024"
[dependencies]
ente-core = { workspace = true, features = ["srp"] }
serde.workspace = true
-serde_json = "1"
+serde_json.workspace = true
thiserror.workspace = true
md-5 = "0.11"
sha2 = "0.11"
diff --git a/rust/crates/core/Cargo.toml b/rust/crates/core/Cargo.toml
index dbe513e366..255e32b3f1 100644
--- a/rust/crates/core/Cargo.toml
+++ b/rust/crates/core/Cargo.toml
@@ -5,7 +5,7 @@ edition = "2024"
[dependencies]
reqwest = { version = "0.12", default-features = false, features = ["http2", "charset", "system-proxy", "json", "rustls-tls-native-roots", "rustls-tls-webpki-roots"] }
serde.workspace = true
-serde_json = "1"
+serde_json.workspace = true
thiserror.workspace = true
# Pure Rust Cryptography
diff --git a/rust/crates/ensu/Cargo.toml b/rust/crates/ensu/Cargo.toml
index 72eb5a797a..a9de0e6d57 100644
--- a/rust/crates/ensu/Cargo.toml
+++ b/rust/crates/ensu/Cargo.toml
@@ -14,7 +14,7 @@ rubato = { version = "0.16", optional = true }
rusqlite = { version = "0.38", features = ["bundled"], optional = true }
self_cell = "1"
serde.workspace = true
-serde_json = "1"
+serde_json.workspace = true
tar = { version = "0.4", optional = true }
thiserror.workspace = true
tokio = { version = "1", features = ["rt", "time"] }
diff --git a/rust/crates/paste/Cargo.toml b/rust/crates/paste/Cargo.toml
index f53a3898a8..31597a47b2 100644
--- a/rust/crates/paste/Cargo.toml
+++ b/rust/crates/paste/Cargo.toml
@@ -10,5 +10,5 @@ url = "2.5.8"
[dev-dependencies]
mockito = "1.6"
-serde_json = "1"
+serde_json.workspace = true
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
diff --git a/rust/crates/photos/Cargo.toml b/rust/crates/photos/Cargo.toml
index 2245a483ea..5e2937fc50 100644
--- a/rust/crates/photos/Cargo.toml
+++ b/rust/crates/photos/Cargo.toml
@@ -59,7 +59,7 @@ anyhow = "1"
flate2 = "1.1"
reqwest = { version = "0.12", default-features = false, features = ["blocking", "rustls-tls-webpki-roots"] }
serde = { version = "1", features = ["derive"] }
-serde_json = "1"
+serde_json.workspace = true
sha2 = "0.10"
tar = "0.4"
tempfile = "3.12"
diff --git a/rust/e2e/Cargo.toml b/rust/e2e/Cargo.toml
index 7d39f5322a..e4abe86c47 100644
--- a/rust/e2e/Cargo.toml
+++ b/rust/e2e/Cargo.toml
@@ -22,5 +22,5 @@ uuid = { version = "1.11", features = ["v4"] }
base64 = "0.22"
hmac = "0.13"
serde.workspace = true
-serde_json = "1"
+serde_json.workspace = true
sha1 = "0.11"