# 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 = "2024"
rust-version = "1.91"
name = "blazen-llm"
version = "0.5.2"
authors = ["Zach Handley <zachhandley@gmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "LLM provider abstraction layer for the Blazen workflow engine"
readme = false
license = "MPL-2.0"
repository = "https://github.com/ZachHandley/Blazen"
resolver = "2"

[features]
candle-audio = []
candle-embed = ["dep:blazen-embed-candle"]
candle-llm = ["dep:blazen-llm-candle"]
content-detect = ["dep:infer"]
default = ["content-detect"]
diffusion = ["dep:blazen-image-diffusion"]
embed = ["dep:blazen-embed"]
llamacpp = ["dep:blazen-llm-llamacpp"]
mistralrs = ["dep:blazen-llm-mistralrs"]
piper = ["dep:blazen-audio-piper"]
pyo3-serde = [
    "dep:pythonize",
    "dep:pyo3",
]
reqwest = ["dep:reqwest"]
tiktoken = ["dep:tiktoken-rs"]
tsify = [
    "dep:tsify-next",
    "dep:wasm-bindgen",
]
whispercpp = ["dep:blazen-audio-whispercpp"]

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

[[test]]
name = "exit_tool_tests"
path = "tests/exit_tool_tests.rs"

[[test]]
name = "tool_result_structured"
path = "tests/tool_result_structured.rs"

[dependencies.async-trait]
version = "0.1"

[dependencies.base64]
version = "0.22"

[dependencies.blazen-audio-piper]
version = "0.5.2"
optional = true

[dependencies.blazen-audio-whispercpp]
version = "0.5.2"
optional = true

[dependencies.blazen-embed]
version = "0.5.2"
optional = true

[dependencies.blazen-embed-candle]
version = "0.5.2"
optional = true

[dependencies.blazen-events]
version = "0.5.2"

[dependencies.blazen-image-diffusion]
version = "0.5.2"
optional = true

[dependencies.blazen-llm-candle]
version = "0.5.2"
optional = true

[dependencies.blazen-llm-llamacpp]
version = "0.5.2"
optional = true

[dependencies.blazen-llm-mistralrs]
version = "0.5.2"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"
features = ["serde"]

[dependencies.futures-core]
version = "0.3"

[dependencies.futures-util]
version = "0.3"

[dependencies.infer]
version = "0.16"
optional = true
default-features = false

[dependencies.pyo3]
version = "0.28"
optional = true

[dependencies.pythonize]
version = "0.28"
optional = true

[dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
    "query",
    "rustls",
]
optional = true
default-features = false

[dependencies.schemars]
version = "1"

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tiktoken-rs]
version = "0.9"
optional = true

[dependencies.tokio]
version = "1"
features = [
    "sync",
    "macros",
]
default-features = false

[dependencies.tokio-util]
version = "0.7"
features = ["io"]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.tsify-next]
version = "0.5"
features = [
    "js",
    "json",
]
optional = true

[dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
]

[dependencies.wasm-bindgen]
version = "=0.2.118"
optional = true

[dev-dependencies.tempfile]
version = "3"

[build-dependencies.serde]
version = "1"
features = [
    "derive",
    "derive",
]

[build-dependencies.serde_json]
version = "1"

[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.getrandom]
version = "0.2"
features = ["js"]

[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.js-sys]
version = "=0.3.95"

[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.uuid]
version = "1"
features = [
    "v4",
    "serde",
    "js",
]

[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.wasm-bindgen]
version = "=0.2.118"

[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.wasm-bindgen-futures]
version = "=0.4.68"

[target.'cfg(all(target_arch = "wasm32", not(target_os = "wasi")))'.dependencies.web-sys]
version = "=0.3.95"
features = [
    "Request",
    "RequestInit",
    "Response",
    "Headers",
    "Window",
    "ReadableStream",
    "ReadableStreamDefaultReader",
]

[target.'cfg(not(any(target_os = "wasi", target_arch = "wasm32")))'.dependencies.tokio]
version = "1"
features = [
    "rt",
    "time",
    "fs",
    "io-util",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.web-time]
version = "1"

[lints.clippy]
all = "warn"
pedantic = "warn"

[lints.rust]
dead_code = "warn"
unsafe_code = "warn"
