fastembed 5.9.0

Library for generating vector embeddings, reranking locally.
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "fastembed"
version = "5.9.0"
authors = [
    "Anush008 <anushshetty90@gmail.com>",
    "Josh Niemelä <josh@jniemela.dk>",
    "GrisiaEvy <a115020115@gmail.com>",
    "George MacKerron <georgemackerron@neon.tech>",
    "Timon Vonk <mail@timonv.nl>",
    "Luya Wang <luya.wang@qq.com>",
    "Tri <tri@triandco.com>",
    "Denny Wong <denwong47@hotmail.com>",
    "Alex Rozgo <alex.rozgo@gmail.com>",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Library for generating vector embeddings, reranking locally."
homepage = "https://crates.io/crates/fastembed"
documentation = "https://docs.rs/fastembed"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/Anush008/fastembed-rs"

[features]
accelerate = [
    "qwen3",
    "dep:accelerate-src",
    "candle-core/accelerate",
    "candle-nn/accelerate",
]
cuda = [
    "qwen3",
    "candle-core/cuda",
    "candle-nn/cuda",
]
cudnn = [
    "qwen3",
    "candle-core/cudnn",
    "candle-nn/cudnn",
    "cuda",
]
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",
]
image-models = ["image"]
metal = [
    "qwen3",
    "candle-core/metal",
    "candle-nn/metal",
]
mkl = [
    "qwen3",
    "dep:intel-mkl-src",
    "candle-nn/mkl",
    "candle-core/mkl",
]
online = ["hf-hub-native-tls"]
optimum-cli = []
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",
    "hf-hub",
]

[lib]
name = "fastembed"
path = "src/lib.rs"

[[test]]
name = "bgem3_comparison"
path = "tests/bgem3_comparison.rs"

[[test]]
name = "image-embeddings"
path = "tests/image-embeddings.rs"

[[test]]
name = "optimum_cli_export"
path = "tests/optimum_cli_export.rs"

[[test]]
name = "qwen3"
path = "tests/qwen3.rs"

[[test]]
name = "text-embeddings"
path = "tests/text-embeddings.rs"

[dependencies.accelerate-src]
version = "0.3.2"
optional = true

[dependencies.anyhow]
version = "1"

[dependencies.candle-core]
version = "0.9.1"
optional = true

[dependencies.candle-nn]
version = "0.9.1"
optional = true

[dependencies.hf-hub]
version = "0.4.1"
optional = true
default-features = false

[dependencies.image]
version = "0.25.2"
optional = true

[dependencies.intel-mkl-src]
version = "0.8.1"
optional = true

[dependencies.ndarray]
version = "0.17"
default-features = false

[dependencies.ort]
version = "=2.0.0-rc.11"
features = [
    "ndarray",
    "std",
]
default-features = false

[dependencies.safetensors]
version = "0.7"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.tokenizers]
version = "0.22.0"
features = ["onig"]
default-features = false