[package]
edition = "2024"
name = "trusty-embedder"
version = "0.1.5"
authors = ["Bob Matsuoka <bob@matsuoka.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared embedding abstraction + fastembed-backed implementation for trusty-* projects"
homepage = "https://github.com/bobmatnyc/trusty-common"
readme = "README.md"
keywords = [
"embeddings",
"vector",
"fastembed",
"mcp",
"ml",
]
categories = ["science"]
license = "Elastic-2.0"
repository = "https://github.com/bobmatnyc/trusty-common"
resolver = "2"
[features]
bundled-ort = ["fastembed/ort-download-binaries-native-tls"]
coreml = []
cuda = [
"fastembed/cuda",
"fastembed/ort-load-dynamic",
"ort/cuda",
"ort/load-dynamic",
]
default = ["bundled-ort"]
load-dynamic = [
"fastembed/ort-load-dynamic",
"ort/load-dynamic",
]
test-support = []
[lib]
name = "trusty_embedder"
crate-type = ["rlib"]
path = "src/lib.rs"
[dependencies.anyhow]
version = "1"
[dependencies.async-trait]
version = "0.1"
[dependencies.fastembed]
version = "5"
features = ["hf-hub-native-tls"]
default-features = false
[dependencies.lru]
version = "0.12"
[dependencies.ort]
version = "=2.0.0-rc.12"
features = [
"std",
"api-24",
]
default-features = false
[dependencies.parking_lot]
version = "0.12"
[dependencies.tokio]
version = "1"
features = [
"io-util",
"io-std",
"net",
"macros",
"rt",
"sync",
"rt",
"sync",
"macros",
]
[dependencies.tracing]
version = "0.1"
[target.'cfg(target_os = "macos")'.dependencies.ort]
version = "=2.0.0-rc.12"
features = [
"coreml",
"std",
"api-24",
]
default-features = false