π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use Rust workspace path dependencies
Manav Rathie58769c8b92b
diff --git a/rust/Cargo.toml b/rust/Cargo.tomlindex 2f5404d23a..8b03dfe417 100644--- a/rust/Cargo.toml+++ b/rust/Cargo.toml@@ -24,3 +24,15 @@ members = ["crates/photos","e2e",]++[workspace.dependencies]+ensu-db = { path = "crates/ensu/db" }+ensu-sync = { path = "crates/ensu/sync" }+ensu-transcription = { path = "crates/ensu/transcription" }+ente-accounts = { path = "crates/accounts" }+ente-contacts = { path = "crates/contacts" }+ente-core = { path = "crates/core" }+ente-rs = { path = "apps/cli" }+ente_image = { path = "crates/image" }+ente_photos = { path = "crates/photos" }+inference_rs = { path = "crates/ensu/inference" }diff --git a/rust/apps/cli/Cargo.toml b/rust/apps/cli/Cargo.tomlindex a75a2e6a77..802cae942a 100644--- a/rust/apps/cli/Cargo.toml+++ b/rust/apps/cli/Cargo.toml@@ -10,8 +10,8 @@ license = "AGPL-3.0-only"[dependencies]# CLIclap = { version = "4.5", features = ["derive", "env"] }-ente-core = { path = "../../crates/core", features = ["srp"] }-ente-accounts = { path = "../../crates/accounts" }+ente-accounts.workspace = true+ente-core = { workspace = true, features = ["srp"] }serde = { version = "1.0", features = ["derive"] }serde_json = "1.0"diff --git a/rust/apps/ensu/src-tauri/Cargo.toml b/rust/apps/ensu/src-tauri/Cargo.tomlindex 1504827146..c124b02869 100644--- a/rust/apps/ensu/src-tauri/Cargo.toml+++ b/rust/apps/ensu/src-tauri/Cargo.toml@@ -10,10 +10,10 @@ tauri-build = { version = "1.5.0", features = [] }tauri = { version = "1.5.0", features = [ "dialog-save", "dialog-open", "path-all", "fs-all", "shell-open", "process-relaunch"] }serde = { version = "1", features = ["derive"] }serde_json = "1"-ente-core = { path = "../../../crates/core", features = ["srp"] }-ensu-db = { path = "../../../crates/ensu/db" }-ensu-sync = { path = "../../../crates/ensu/sync" }-inference_rs = { path = "../../../crates/ensu/inference" }+ensu-db.workspace = true+ensu-sync.workspace = true+ente-core = { workspace = true, features = ["srp"] }+inference_rs.workspace = trueuuid = { version = "1", features = ["v4"] }keyring = { version = "3", default-features = false, features = ["apple-native", "windows-native", "linux-native-sync-persistent", "crypto-rust"] }diff --git a/rust/bindings/ffi/crypto/Cargo.toml b/rust/bindings/ffi/crypto/Cargo.tomlindex 26ae7327ee..4b4206d454 100644--- a/rust/bindings/ffi/crypto/Cargo.toml+++ b/rust/bindings/ffi/crypto/Cargo.toml@@ -6,4 +6,4 @@ edition = "2024"crate-type = ["staticlib"][dependencies]-ente-core = { path = "../../../crates/core" }+ente-core.workspace = truediff --git a/rust/bindings/frb/ente-rust/Cargo.toml b/rust/bindings/frb/ente-rust/Cargo.tomlindex 1339ce04b7..c6d62f9908 100644--- a/rust/bindings/frb/ente-rust/Cargo.toml+++ b/rust/bindings/frb/ente-rust/Cargo.toml@@ -7,8 +7,8 @@ crate-type = ["cdylib", "staticlib"][dependencies]flutter_rust_bridge = "=2.12.0"-ente-core = { path = "../../../crates/core" }-ente-contacts = { path = "../../../crates/contacts" }+ente-contacts.workspace = true+ente-core.workspace = true[features]default = []diff --git a/rust/bindings/frb/photos/Cargo.toml b/rust/bindings/frb/photos/Cargo.tomlindex 9e01d93290..e4accdaa72 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_photos = { path = "../../../crates/photos" }-ente_image = { path = "../../../crates/image" }+ente_image.workspace = true+ente_photos.workspace = true[lints.rust]unexpected_cfgs = { level = "warn", check-cfg = ['cfg(frb_expand)'] }diff --git a/rust/bindings/uniffi/core/Cargo.toml b/rust/bindings/uniffi/core/Cargo.tomlindex 0d675d773f..596988b9c4 100644--- a/rust/bindings/uniffi/core/Cargo.toml+++ b/rust/bindings/uniffi/core/Cargo.toml@@ -10,7 +10,7 @@ base64 = "0.22"once_cell = "1.19"thiserror = "1.0"uniffi = "0.31.0"-ente-core = { path = "../../../crates/core", features = ["srp"] }+ente-core = { workspace = true, features = ["srp"] }[build-dependencies]uniffi = { version = "0.31.0", features = ["build"] }diff --git a/rust/bindings/uniffi/ensu/db/Cargo.toml b/rust/bindings/uniffi/ensu/db/Cargo.tomlindex d436e0acdf..bd8dadf4bb 100644--- a/rust/bindings/uniffi/ensu/db/Cargo.toml+++ b/rust/bindings/uniffi/ensu/db/Cargo.toml@@ -6,7 +6,7 @@ edition = "2024"crate-type = ["staticlib", "cdylib"][dependencies]-ensu-db = { path = "../../../../crates/ensu/db" }+ensu-db.workspace = trueserde = { version = "1", features = ["derive"] }thiserror = "2"uniffi = { version = "0.31.0" }diff --git a/rust/bindings/uniffi/ensu/inference/Cargo.toml b/rust/bindings/uniffi/ensu/inference/Cargo.tomlindex 257bba5ddb..2204e57f6b 100644--- a/rust/bindings/uniffi/ensu/inference/Cargo.toml+++ b/rust/bindings/uniffi/ensu/inference/Cargo.toml@@ -6,7 +6,7 @@ edition = "2024"crate-type = ["staticlib", "cdylib"][dependencies]-inference_rs = { path = "../../../../crates/ensu/inference" }+inference_rs.workspace = trueserde = { version = "1", features = ["derive"] }thiserror = "1"uniffi = { version = "0.31.0" }diff --git a/rust/bindings/uniffi/ensu/sync/Cargo.toml b/rust/bindings/uniffi/ensu/sync/Cargo.tomlindex 7f594d9319..eb85c1d414 100644--- a/rust/bindings/uniffi/ensu/sync/Cargo.toml+++ b/rust/bindings/uniffi/ensu/sync/Cargo.toml@@ -6,7 +6,7 @@ edition = "2024"crate-type = ["staticlib", "cdylib"][dependencies]-ensu-sync = { path = "../../../../crates/ensu/sync" }+ensu-sync.workspace = trueserde = { version = "1", features = ["derive"] }thiserror = "2"uniffi = { version = "0.31.0" }diff --git a/rust/bindings/uniffi/ensu/transcription/Cargo.toml b/rust/bindings/uniffi/ensu/transcription/Cargo.tomlindex 2c68598735..825f2f85e7 100644--- a/rust/bindings/uniffi/ensu/transcription/Cargo.toml+++ b/rust/bindings/uniffi/ensu/transcription/Cargo.toml@@ -6,6 +6,6 @@ edition = "2024"crate-type = ["staticlib", "cdylib"][dependencies]-ensu-transcription = { path = "../../../../crates/ensu/transcription" }+ensu-transcription.workspace = truethiserror = "2"uniffi = { version = "0.31.0" }diff --git a/rust/bindings/wasm/ente-wasm/Cargo.toml b/rust/bindings/wasm/ente-wasm/Cargo.tomlindex b02bf18d65..2d943db4e7 100644--- a/rust/bindings/wasm/ente-wasm/Cargo.toml+++ b/rust/bindings/wasm/ente-wasm/Cargo.toml@@ -6,8 +6,8 @@ edition = "2024"crate-type = ["cdylib"][dependencies]-ente-contacts = { path = "../../../crates/contacts" }-ente-core = { path = "../../../crates/core", features = ["srp"] }+ente-contacts.workspace = true+ente-core = { workspace = true, features = ["srp"] }md-5 = "0.11"js-sys = "0.3"serde = { version = "1", features = ["derive"] }diff --git a/rust/crates/accounts/Cargo.toml b/rust/crates/accounts/Cargo.tomlindex 8717821bae..bd8dbd7846 100644--- a/rust/crates/accounts/Cargo.toml+++ b/rust/crates/accounts/Cargo.toml@@ -3,7 +3,7 @@ name = "ente-accounts"edition = "2024"[dependencies]-ente-core = { path = "../core", features = ["srp"] }+ente-core = { workspace = true, features = ["srp"] }serde = { version = "1", features = ["derive"] }serde_json = "1"thiserror = "2"diff --git a/rust/crates/contacts/Cargo.toml b/rust/crates/contacts/Cargo.tomlindex 82f17fac07..5622a14141 100644--- a/rust/crates/contacts/Cargo.toml+++ b/rust/crates/contacts/Cargo.toml@@ -3,7 +3,7 @@ name = "ente-contacts"edition = "2024"[dependencies]-ente-core = { path = "../core", features = ["srp"] }+ente-core = { workspace = true, features = ["srp"] }serde = { version = "1", features = ["derive"] }serde_json = "1"thiserror = "2"@@ -14,7 +14,7 @@ uuid = { version = "1", features = ["v4", "js"] }[dev-dependencies]tokio = { version = "1", features = ["macros", "rt-multi-thread"] }mockito = "1.6"-ente-rs = { path = "../../apps/cli" }+ente-rs.workspace = truezeroize = { version = "1.8", features = ["derive"] }reqwest = { version = "0.12", features = ["json", "rustls-tls-native-roots"] }base64 = "0.22"diff --git a/rust/crates/ensu/db/Cargo.toml b/rust/crates/ensu/db/Cargo.tomlindex 604c4ae930..976cfec70e 100644--- a/rust/crates/ensu/db/Cargo.toml+++ b/rust/crates/ensu/db/Cargo.toml@@ -3,8 +3,8 @@ name = "ensu-db"edition = "2024"[dependencies]-ente-core = { path = "../../core" }-ente_image = { path = "../../image" }+ente-core.workspace = true+ente_image.workspace = truerusqlite = { version = "0.38", features = ["bundled"], optional = true }serde = { version = "1", features = ["derive"] }serde_json = "1"diff --git a/rust/crates/ensu/sync/Cargo.toml b/rust/crates/ensu/sync/Cargo.tomlindex 5e65efd2e0..a788a3f1b8 100644--- a/rust/crates/ensu/sync/Cargo.toml+++ b/rust/crates/ensu/sync/Cargo.toml@@ -3,8 +3,8 @@ name = "ensu-sync"edition = "2024"[dependencies]-ensu-db = { path = "../db" }-ente-core = { path = "../../core" }+ensu-db.workspace = true+ente-core.workspace = truereqwest = { version = "0.12", default-features = false, features = ["json", "blocking", "http2", "charset", "system-proxy", "rustls-tls-native-roots"] }serde = { version = "1", features = ["derive"] }serde_json = "1"diff --git a/rust/crates/photos/Cargo.toml b/rust/crates/photos/Cargo.tomlindex f3cec3d81d..af1010aeee 100644--- a/rust/crates/photos/Cargo.toml+++ b/rust/crates/photos/Cargo.toml@@ -3,7 +3,7 @@ name = "ente_photos"edition = "2024"[dependencies]-ente_image = { path = "../image" }+ente_image.workspace = truequick-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.diff --git a/rust/e2e/Cargo.toml b/rust/e2e/Cargo.tomlindex 1a720c4971..8ab26e02e8 100644--- a/rust/e2e/Cargo.toml+++ b/rust/e2e/Cargo.toml@@ -3,10 +3,10 @@ name = "ente-e2e"edition = "2024"[dependencies]-ente-rs = { path = "../apps/cli" }-ente-accounts = { path = "../crates/accounts" }-ente-contacts = { path = "../crates/contacts" }-ente-core = { path = "../crates/core", features = ["srp"] }+ente-accounts.workspace = true+ente-contacts.workspace = true+ente-core = { workspace = true, features = ["srp"] }+ente-rs.workspace = truetokio = { version = "1", features = ["macros", "rt-multi-thread", "sync", "time"] }reqwest = { version = "0.12", features = ["json", "rustls-tls-native-roots"] }zeroize = { version = "1.8", features = ["derive"] }