Skip to content

armgit / ente

Public Imported from GitHub
0

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

1.9 KB
Raw Blame
[package]
name = "ente-ml"
edition.workspace = true

[features]
default = []
ml-assets = []
usearch = ["dep:usearch"]

[dependencies]
ente-assets.workspace = true
ente-image.workspace = true
fast_image_resize = { workspace = true, features = ["rayon"] }
half = "2.1.0"
html-escape = "0.3.0"
image.workspace = true
imageproc = "0.27.0"
log.workspace = true
nalgebra = "0.35.0"
once_cell = "1.20.2"
plsfix = "0.1.8"
rayon = "1.12.0"
regex.workspace = true
thiserror.workspace = true
usearch = { version = "=2.26.5", optional = true }

# Cargokit sets ORT_LIB_PATH to Ente's verified iOS archive.
[target.'cfg(target_os = "ios")'.dependencies]
ort = { workspace = true, features = [
    "std",
    "ndarray",
    "half",
    "coreml",
    "api-31",
] }

[target.'cfg(target_os = "android")'.dependencies]
ash = { version = "0.38.0", default-features = false, features = ["loaded"] }
ort = { workspace = true, features = [
    "ndarray",
    "half",
    "api-31",
    "load-dynamic",
    "copy-dylibs",
    "webgpu",
    "xnnpack",
] }

[target.'cfg(target_os = "macos")'.dependencies]
ort = { workspace = true, features = [
    "ndarray",
    "half",
    "coreml",
    "api-31",
    "load-dynamic",
    "copy-dylibs",
] }

[target.'cfg(any(target_os = "linux", target_os = "windows"))'.dependencies]
ort = { workspace = true, features = [
    "ndarray",
    "half",
    "api-31",
    "load-dynamic",
    "copy-dylibs",
    "webgpu",
] }

[target.'cfg(not(any(target_os = "ios", target_os = "android", target_os = "macos", target_os = "linux", target_os = "windows")))'.dependencies]
ort = { workspace = true, features = [
    "ndarray",
    "half",
    "api-31",
    "load-dynamic",
    "copy-dylibs",
] }

[dev-dependencies]
anyhow.workspace = true
flate2.workspace = true
serde.workspace = true
serde_json.workspace = true
tar.workspace = true
tempfile.workspace = true
tokio = { workspace = true, features = ["macros", "rt"] }
url.workspace = true

[lints]
workspace = true