[package]
edition = "2021"
name = "llama-cpp-2"
version = "0.1.133"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "llama.cpp bindings for Rust"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/utilityai/llama-cpp-rs"
[package.metadata.docs.rs]
features = ["sampler"]
[features]
android-shared-stdcxx = ["llama-cpp-sys-2/shared-stdcxx"]
cuda = ["llama-cpp-sys-2/cuda"]
cuda-no-vmm = [
"cuda",
"llama-cpp-sys-2/cuda-no-vmm",
]
default = [
"openmp",
"android-shared-stdcxx",
]
dynamic-link = ["llama-cpp-sys-2/dynamic-link"]
metal = ["llama-cpp-sys-2/metal"]
mtmd = ["llama-cpp-sys-2/mtmd"]
openmp = ["llama-cpp-sys-2/openmp"]
sampler = []
system-ggml = ["llama-cpp-sys-2/system-ggml"]
vulkan = ["llama-cpp-sys-2/vulkan"]
[lib]
name = "llama_cpp_2"
path = "src/lib.rs"
[dependencies.encoding_rs]
version = "0.8.35"
[dependencies.enumflags2]
version = "0.7.12"
[dependencies.llama-cpp-sys-2]
version = "0.1.133"
[dependencies.thiserror]
version = "1"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-core]
version = "0.1"
[dev-dependencies.encoding_rs]
version = "0.8.35"
[dev-dependencies.hf-hub]
version = "0.4.3"
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["json"]
[target.'cfg(all(target_os = "macos", any(target_arch = "aarch64", target_arch = "arm64")))'.dependencies.llama-cpp-sys-2]
version = "0.1.133"
features = ["metal"]
[lints.clippy.pedantic]
level = "warn"
priority = 0
[lints.rust.missing_debug_implementations]
level = "warn"
priority = 0
[lints.rust.missing_docs]
level = "warn"
priority = 0