[package] name = "fastembed" version = "5.13.4" edition = "2021" description = "Library for generating vector embeddings, reranking locally." license = "Apache-2.0" authors = [ "Anush008 ", "Josh Niemelä ", "GrisiaEvy ", "George MacKerron ", "Timon Vonk ", "Luya Wang ", "Tri ", "Denny Wong ", "Alex Rozgo ", ] documentation = "https://docs.rs/fastembed" repository = "https://github.com/Anush008/fastembed-rs" homepage = "https://crates.io/crates/fastembed" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] anyhow = { version = "1" } hf-hub = { version = "0.5.0", default-features = false, optional = true } image = { version = "0.25.10", optional = true } ndarray = { version = "0.17.2", default-features = false } ort = { version = "=2.0.0-rc.12", default-features = false, features = [ "ndarray", "std", "api-24" ] } safetensors = { version = "0.7.0" } serde_json = { version = "1" } serde = { version = "1", features = ["derive"] } tokenizers = { version = "0.22.2", default-features = false, features = ["onig"] } candle-nn = { version = "0.10.2", optional = true } candle-core = { version = "0.10.2", optional = true } intel-mkl-src = { version = "0.8.1", optional = true } accelerate-src = { version = "0.3.2", optional = true } [features] default = ["ort-download-binaries-native-tls", "hf-hub-native-tls", "image-models"] hf-hub = ["dep:hf-hub", "hf-hub?/ureq"] hf-hub-native-tls = ["hf-hub", "hf-hub?/native-tls"] hf-hub-rustls-tls = ["hf-hub", "hf-hub?/rustls-tls"] ort-download-binaries = ["ort-download-binaries-native-tls"] ort-download-binaries-native-tls = ["ort/download-binaries", "ort/tls-native"] ort-download-binaries-rustls-tls = ["ort/download-binaries", "ort/tls-rustls"] ort-load-dynamic = ["ort/load-dynamic"] qwen3 = ["dep:candle-core", "dep:candle-nn", "dep:image", "hf-hub"] nomic-v2-moe = ["dep:candle-core", "dep:candle-nn", "hf-hub"] image-models = ["dep:image"] mkl = ["qwen3", "nomic-v2-moe", "dep:intel-mkl-src", "candle-nn/mkl", "candle-core/mkl"] accelerate = ["qwen3", "nomic-v2-moe", "dep:accelerate-src", "candle-core/accelerate", "candle-nn/accelerate"] directml = ["ort/directml"] cuda = ["qwen3", "nomic-v2-moe", "candle-core/cuda", "candle-nn/cuda"] cudnn = ["qwen3", "nomic-v2-moe", "candle-core/cudnn", "candle-nn/cudnn", "cuda"] metal = ["qwen3", "nomic-v2-moe", "candle-core/metal", "candle-nn/metal"] # This feature does not change any code, but is used to limit tests if # the user does not have `optimum-cli` or even python installed. optimum-cli = [] # For compatibility recommend using hf-hub-native-tls online = ["hf-hub-native-tls"]