# 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 = "brainwires-agents"
version = "0.4.0"
authors = ["Brainwires"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Agent orchestration, coordination, and lifecycle management for the Brainwires Agent Framework"
homepage = "https://github.com/Brainwires/brainwires-framework"
documentation = "https://docs.rs/brainwires-agents"
readme = "README.md"
keywords = [
    "ai-agents",
    "multi-agent",
    "task-orchestration",
    "llm",
    "autonomous",
]
categories = ["development-tools"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/Brainwires/brainwires-framework"
resolver = "2"

[features]
default = ["native"]
eval = [
    "dep:thiserror",
    "dep:futures",
]
native = [
    "dep:git2",
    "dep:libc",
    "brainwires-core/native",
    "brainwires-tool-system/native",
]
otel = ["dep:opentelemetry"]
reasoning = ["dep:regex"]
seal = ["dep:regex"]
seal-feedback = [
    "seal",
    "dep:brainwires-permissions",
]
seal-knowledge = [
    "seal",
    "dep:brainwires-cognition",
    "brainwires-cognition/knowledge",
]
seal-mdap = [
    "seal",
    "dep:brainwires-mdap",
]
wasm = [
    "brainwires-core/wasm",
    "brainwires-tool-system/wasm",
]

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

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

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

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

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

[dependencies.anyhow]
version = "1"

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

[dependencies.brainwires-cognition]
version = "0.4.0"
optional = true
default-features = false

[dependencies.brainwires-core]
version = "0.4.0"

[dependencies.brainwires-mdap]
version = "0.4.0"
optional = true

[dependencies.brainwires-permissions]
version = "0.4.0"
optional = true

[dependencies.brainwires-tool-system]
version = "0.4.0"

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

[dependencies.futures]
version = "0.3"
optional = true

[dependencies.git2]
version = "0.20"
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.libc]
version = "0.2"
optional = true

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

[dependencies.petgraph]
version = "0.7"

[dependencies.regex]
version = "1"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "2"
optional = true

[dependencies.tokio]
version = "1.43"
features = [
    "full",
    "sync",
    "time",
    "rt",
    "macros",
]

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.brainwires-cognition]
version = "0.4.0"
features = [
    "knowledge",
    "prompting",
]
default-features = false

[dev-dependencies.brainwires-permissions]
version = "0.4.0"

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

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

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

[dev-dependencies.tracing-subscriber]
version = "0.3"
