[package]
edition = "2024"
rust-version = "1.88"
name = "offgrid"
version = "0.2.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embeddable offline AI core: safe Rust API over llama.cpp"
readme = "README.md"
keywords = [
"llm",
"llama",
"gguf",
"embeddings",
"offline",
]
categories = [
"science",
"api-bindings",
]
license = "MIT"
repository = "https://github.com/Pinta365/offgrid"
[features]
cuda = ["offgrid-sys/cuda"]
default = ["vulkan"]
dynamic-backends = [
"offgrid-sys/dynamic-backends",
"dep:libc",
"dep:windows-sys",
]
vulkan = ["offgrid-sys/vulkan"]
[lib]
name = "offgrid"
path = "src/lib.rs"
[[example]]
name = "chat"
path = "examples/chat.rs"
[[example]]
name = "media_turns"
path = "examples/media_turns.rs"
[[example]]
name = "tools"
path = "examples/tools.rs"
[[test]]
name = "audio"
path = "tests/audio.rs"
[[test]]
name = "models"
path = "tests/models.rs"
[[test]]
name = "structured"
path = "tests/structured.rs"
[[test]]
name = "tools"
path = "tests/tools.rs"
[[test]]
name = "vision"
path = "tests/vision.rs"
[dependencies.log]
version = "0.4"
[dependencies.minijinja]
version = "2"
features = [
"loop_controls",
"preserve_order",
"json",
"fuel",
]
[dependencies.minijinja-contrib]
version = "2"
features = ["pycompat"]
[dependencies.offgrid-sys]
version = "0.2.1"
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = ["preserve_order"]
[dependencies.thiserror]
version = "2"
[dev-dependencies.jsonschema]
version = "0.58.6"
[target."cfg(unix)".dependencies.libc]
version = "0.2"
optional = true
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_LibraryLoader",
]
optional = true