Cargo Features

[dependencies]
fastembed = { version = "5.4.0", default-features = false, features = ["hf-hub", "hf-hub-native-tls", "hf-hub-rustls-tls", "ort-download-binaries", "ort-load-dynamic", "image-models", "optimum-cli", "online"] }
default = hf-hub-native-tls, image-models, ort-download-binaries

These default features are set whenever fastembed is added without default-features = false somewhere in the dependency tree.

hf-hub hf-hub-native-tls hf-hub-rustls-tls?

Enables ureq of hf-hub

Affects common::load_tokenizer_hf_hub, common::pull_from_hf

hf-hub-native-tls default online? = hf-hub

Enables native-tls of optional hf-hub

hf-hub-rustls-tls = hf-hub

Enables rustls-tls of optional hf-hub

ort-download-binaries default

Enables download-binaries of ort

ort-load-dynamic

Enables load-dynamic of ort

image-models default = image
optimum-cli

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.

online = hf-hub-native-tls

For compatibility recommend using hf-hub-native-tls

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

image image-models