Cargo Features

[dependencies]
llama-cpp-2 = { version = "0.1.92", default-features = false, features = ["cuda", "metal", "dynamic-link", "vulkan", "native", "openmp", "sampler", "android-shared-stdcxx"] }
default = android-shared-stdcxx, openmp

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

cuda

Enables cuda of llama-cpp-sys-2

metal

Enables metal of llama-cpp-sys-2

Enables dynamic-link of llama-cpp-sys-2

vulkan

Enables vulkan of llama-cpp-sys-2

native

Enables native of llama-cpp-sys-2

openmp default

Enables openmp of llama-cpp-sys-2

sampler
android-shared-stdcxx default

Only has an impact on Android.

Enables shared-stdcxx of llama-cpp-sys-2