Skip to content

armgit / ente

Public Imported from GitHub
0

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

single source reference for ort

laurenspriem5f24f335af7a
diff --git a/rust/Cargo.toml b/rust/Cargo.toml
index 06e57b0b16..d6de2d9a89 100644
--- a/rust/Cargo.toml
+++ b/rust/Cargo.toml
@@ -29,6 +29,10 @@ ente-image = { path = "crates/image" }
ente-photos = { path = "crates/photos" }
ente-rs = { path = "apps/cli" }
ente-test-support = { path = "crates/test-support" }
+# Single workspace-wide ORT pin. Member crates inherit this source and add
+# their own feature sets; the [patch.crates-io] section below keeps transitive
+# ORT users (notably transcribe-rs) on the same revision.
+ort = { git = "https://github.com/pykeio/ort.git", rev = "31c8f1443bb579bfddb82705288347697e468fb3", default-features = false }
serde = { version = "1.0.228", features = ["derive"] }
thiserror = "2.0.18"
uniffi = { version = "0.31.0" }
@@ -38,4 +42,3 @@ wasm-bindgen = "0.2.125"
# revision as the workspace's direct ORT dependencies.
[patch.crates-io]
ort = { git = "https://github.com/pykeio/ort.git", rev = "31c8f1443bb579bfddb82705288347697e468fb3" }
-ort-sys = { git = "https://github.com/pykeio/ort.git", rev = "31c8f1443bb579bfddb82705288347697e468fb3" }
diff --git a/rust/crates/ensu/Cargo.toml b/rust/crates/ensu/Cargo.toml
index 8e70edf501..0b463d9455 100644
--- a/rust/crates/ensu/Cargo.toml
+++ b/rust/crates/ensu/Cargo.toml
@@ -43,7 +43,7 @@ llama-cpp-2 = { version = "=0.1.144", default-features = false, features = ["mtm
llama-cpp-2 = { version = "=0.1.144", features = ["mtmd"] }
[target.'cfg(target_os = "android")'.dependencies]
-ort = { git = "https://github.com/pykeio/ort.git", rev = "31c8f1443bb579bfddb82705288347697e468fb3", default-features = false, features = ["load-dynamic"], optional = true }
+ort = { workspace = true, features = ["load-dynamic"], optional = true }
[features]
default = ["sqlite"]
diff --git a/rust/crates/photos/Cargo.toml b/rust/crates/photos/Cargo.toml
index f59fa61706..b27f9a09d8 100644
--- a/rust/crates/photos/Cargo.toml
+++ b/rust/crates/photos/Cargo.toml
@@ -23,10 +23,12 @@ html-escape = "0.2.13"
plsfix = "0.1.8"
thiserror.workspace = true
-# Pin ORT to the workspace-wide upstream revision. The crates.io patch in the
-# workspace manifest also keeps transitive ORT users on this same commit.
+# ORT source and revision are pinned once in the workspace manifest; only the
+# per-target feature sets are declared here.
[target.'cfg(target_os = "ios")'.dependencies]
-ort = { git = "https://github.com/pykeio/ort.git", rev = "31c8f1443bb579bfddb82705288347697e468fb3", default-features = false, features = [
+ort = { workspace = true, features = [
+ # "std" is implied by "load-dynamic" on the other targets, but iOS links
+ # ORT statically, so it must be enabled explicitly here.
"std",
"ndarray",
"half",
@@ -38,7 +40,7 @@ ort = { git = "https://github.com/pykeio/ort.git", rev = "31c8f1443bb579bfddb827
] }
[target.'cfg(not(target_os = "ios"))'.dependencies]
-ort = { git = "https://github.com/pykeio/ort.git", rev = "31c8f1443bb579bfddb82705288347697e468fb3", default-features = false, features = [
+ort = { workspace = true, features = [
"ndarray",
"half",
"load-dynamic",