# 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"
version = "0.1.133"
authors = ["Zach Handley <zachhandley@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Blazen - A Rust-native AI workflow engine with event-driven orchestration"
readme = "README.md"
license = "AGPL-3.0-or-later"
repository = "https://github.com/ZachHandley/Blazen"
resolver = "2"

[features]
all = [
    "llm",
    "persist",
    "pipeline",
    "prompts",
    "telemetry",
]
default = ["llm"]
llm = ["blazen-llm"]
local-all = [
    "local-embeddings",
    "local-llm",
    "local-image",
    "local-audio",
]
local-audio = [
    "blazen-llm/whispercpp",
    "blazen-llm/piper",
    "blazen-llm/candle-audio",
]
local-embeddings = [
    "blazen-llm/fastembed",
    "blazen-llm/candle-embed",
]
local-image = ["blazen-llm/diffusion"]
local-llm = [
    "blazen-llm/mistralrs",
    "blazen-llm/llamacpp",
    "blazen-llm/candle-llm",
]
persist = [
    "blazen-persist",
    "blazen-core/persist",
]
pipeline = ["blazen-pipeline"]
prompts = ["blazen-prompts"]
telemetry = [
    "blazen-telemetry",
    "blazen-core/telemetry",
]

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

[[example]]
name = "basic_workflow"
path = "examples/basic_workflow.rs"

[[example]]
name = "branching_workflow"
path = "examples/branching_workflow.rs"

[[example]]
name = "llm_rag_workflow"
path = "examples/llm_rag_workflow.rs"

[[example]]
name = "streaming_workflow"
path = "examples/streaming_workflow.rs"

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

[dependencies.blazen-core]
version = "0.1.133"

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

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

[dependencies.blazen-macros]
version = "0.1.133"

[dependencies.blazen-persist]
version = "0.1.133"
optional = true

[dependencies.blazen-pipeline]
version = "0.1.133"
optional = true

[dependencies.blazen-prompts]
version = "0.1.133"
optional = true

[dependencies.blazen-telemetry]
version = "0.1.133"
optional = true

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

[dependencies.serde_json]
version = "1"

[dev-dependencies.anyhow]
version = "1"

[dev-dependencies.dotenvy]
version = "0.15"

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "full",
    "test-util",
]

[dev-dependencies.tokio-stream]
version = "0.1"
features = ["sync"]

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

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