tkach 0.5.0

Provider-independent Rust agent runtime — streaming, reasoning summaries, prompt caching, and per-call approval gating.
Documentation
# 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.86.0"
name = "tkach"
version = "0.5.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provider-independent Rust agent runtime — streaming, reasoning summaries, prompt caching, and per-call approval gating."
documentation = "https://docs.rs/tkach"
readme = "README.md"
keywords = [
    "agent",
    "ai",
    "llm",
    "anthropic",
    "openai",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/kuchmenko/tkach"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bytes]
version = "1"

[dependencies.chrono]
version = "0.4"
features = [
    "clock",
    "serde",
]
default-features = false

[dependencies.eventsource-stream]
version = "0.2"

[dependencies.futures]
version = "0.3"

[dependencies.glob]
version = "0.3"

[dependencies.regex]
version = "1"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]

[dependencies.tokio-stream]
version = "0.1"

[dependencies.tokio-util]
version = "0.7"

[dependencies.tracing]
version = "0.1"

[dependencies.walkdir]
version = "2"

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

[dev-dependencies.tokio-test]
version = "0.4"

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

[dev-dependencies.wiremock]
version = "0.6"

[lints.clippy]
cognitive_complexity = "warn"
too_many_lines = "warn"