[package]
edition = "2021"
name = "llama-cpp-4"
version = "0.2.42"
authors = ["Eugene Hauptmann"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "llama.cpp bindings for Rust"
readme = "README.md"
keywords = [
"llama",
"llm",
"ggml",
"gguf",
"inference",
]
categories = [
"api-bindings",
"science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/eugenehp/llama-cpp-rs"
[package.metadata.docs.rs]
all-features = false
features = [
"mtmd",
"ggml",
]
[features]
blas = ["llama-cpp-sys-4/blas"]
cuda = ["llama-cpp-sys-4/cuda"]
default = [
"openmp",
"mtmd",
"dynamic-link",
]
dynamic-link = ["llama-cpp-sys-4/dynamic-link"]
ggml = []
hip = ["llama-cpp-sys-4/hip"]
metal = ["llama-cpp-sys-4/metal"]
mtmd = ["llama-cpp-sys-4/mtmd"]
native = ["llama-cpp-sys-4/native"]
opencl = ["llama-cpp-sys-4/opencl"]
openmp = ["llama-cpp-sys-4/openmp"]
prebuilt = ["llama-cpp-sys-4/prebuilt"]
q1 = ["llama-cpp-sys-4/q1"]
rpc = ["llama-cpp-sys-4/rpc"]
vulkan = ["llama-cpp-sys-4/vulkan"]
webgpu = ["llama-cpp-sys-4/webgpu"]
[lib]
name = "llama_cpp_4"
path = "src/lib.rs"
[[test]]
name = "test_ggml"
path = "tests/test_ggml.rs"
[[test]]
name = "test_lib"
path = "tests/test_lib.rs"
[[test]]
name = "test_model"
path = "tests/test_model.rs"
[[test]]
name = "test_q1"
path = "tests/test_q1.rs"
[[test]]
name = "test_sampler"
path = "tests/test_sampler.rs"
[dependencies.enumflags2]
version = "0.7.12"
[dependencies.llama-cpp-sys-4]
version = "0.2.42"
[dependencies.thiserror]
version = "2.0.18"
[dependencies.tracing]
version = "0.1"
[dev-dependencies.encoding_rs]
version = "0.8.35"
[lints.clippy.pedantic]
level = "warn"
priority = 0
[lints.rust.missing_debug_implementations]
level = "warn"
priority = 0
[lints.rust.missing_docs]
level = "warn"
priority = 0