# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
name = "llama-core"
version = "0.32.20"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "The core library of LlamaEdge"
documentation = "https://llamaedge.github.io/LlamaEdge/llama_core/index.html"
readme = "README.md"
categories = [
    "wasm",
    "science",
]
license = "Apache-2.0"
repository = "https://github.com/LlamaEdge/LlamaEdge"

[package.metadata.cargo-machete]
ignored = ["wasi-logger"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
full = [
    "logging",
    "search",
    "rag",
    "whisper",
    "index",
]
index = ["endpoints/index"]
logging = [
    "wasi-logger",
    "log",
    "endpoints/logging",
]
rag = [
    "endpoints/rag",
    "qdrant",
]
search = []
whisper = ["endpoints/whisper"]

[lib]
name = "llama_core"
path = "src/lib.rs"

[dependencies.base64]
version = "=0.22.1"

[dependencies.bitflags]
version = "2.0"

[dependencies.chat-prompts]
version = "^0.34"

[dependencies.either]
version = "1.12.0"

[dependencies.endpoints]
version = "^0.34"

[dependencies.futures]
version = "0.3.6"
features = [
    "async-await",
    "std",
]
default-features = false

[dependencies.log]
version = "0.4.21"
features = [
    "std",
    "kv",
    "kv_serde",
]
optional = true

[dependencies.once_cell]
version = "1.18"

[dependencies.qdrant]
version = "0.2.1"
optional = true
package = "qdrant_rest_client"

[dependencies.regex]
version = "1"

[dependencies.reqwest]
version = "0.11"
features = [
    "json",
    "stream",
    "rustls-tls",
]
default-features = false

[dependencies.serde]
version = "1.0"
features = ["derive"]

[dependencies.serde_json]
version = "1.0"

[dependencies.text-splitter]
version = "^0.7"
features = [
    "tiktoken-rs",
    "markdown",
]

[dependencies.thiserror]
version = "1"

[dependencies.tiktoken-rs]
version = "^0.5"

[dependencies.tokio]
version = "^1.36"
features = [
    "sync",
    "macros",
    "io-util",
    "fs",
    "net",
    "rt",
    "time",
]

[dependencies.uuid]
version = "1.4"
features = [
    "v4",
    "fast-rng",
    "macro-diagnostics",
]

[dependencies.walkdir]
version = "2.5.0"

[dependencies.wasi-logger]
version = "0.1.2"
features = ["kv"]
optional = true

[dependencies.wasmedge-wasi-nn]
version = "0.8.0"

[dependencies.wasmedge_stable_diffusion]
version = "=0.3.2"
