loopctl 0.1.0

A trait-based framework for building agent loops with pluggable LLM clients, tools, and memory
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.85"
name = "loopctl"
version = "0.1.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A trait-based framework for building agent loops with pluggable LLM clients, tools, and memory"
homepage = "https://github.com/dch-labs/loopctl"
documentation = "https://docs.rs/loopctl"
readme = "README.md"
keywords = [
    "agent",
    "framework",
    "llm",
    "loop",
]
categories = [
    "api-bindings",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dch-labs/loopctl"

[features]
anthropic = ["providers"]
deepseek = [
    "providers",
    "openai",
]
default = []
gemini = ["providers"]
grok = [
    "providers",
    "openai",
]
hooks = []
ollama = [
    "providers",
    "openai",
]
openai = ["providers"]
providers = [
    "dep:reqwest",
    "dep:async-stream",
]
testing = []
tool_health = []
tool_shield = ["tool_health"]
zai = [
    "providers",
    "anthropic",
]

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

[[example]]
name = "chat"
path = "examples/chat.rs"
required-features = [
    "testing",
    "providers",
]

[[example]]
name = "echo-tool-cli"
path = "examples/echo-tool-cli.rs"
required-features = ["testing"]

[[example]]
name = "hello-cli"
path = "examples/hello-cli.rs"
required-features = ["testing"]

[[example]]
name = "repl-cli"
path = "examples/repl-cli.rs"
required-features = ["testing"]

[dependencies.async-stream]
version = "0.3"
optional = true

[dependencies.futures]
version = "0.3"

[dependencies.parking_lot]
version = "0.12"

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

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_repr]
version = "0.1"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1.52.3"
features = [
    "sync",
    "macros",
    "time",
]

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

[dependencies.tracing]
version = "0.1"

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

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

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
]

[lints.clippy]
arithmetic_side_effects = "deny"
clone_on_ref_ptr = "deny"
expect_used = "deny"
indexing_slicing = "deny"
let_underscore_must_use = "deny"
match_same_arms = "deny"
panic = "deny"
redundant_clone = "deny"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_used = "deny"

[lints.clippy.pedantic]
level = "warn"
priority = -1