behest 0.5.8

A Rust-native cloud agent runtime with typed tools, pluggable memory, queues, and observability.
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.88"
name = "behest"
version = "0.5.8"
authors = [
    "zhenyi <434836402@qq.com>",
    "Jiaxiang Hu <1849625991@qq.com>",
]
build = false
include = [
    "src/**",
    "Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A Rust-native cloud agent runtime with typed tools, pluggable memory, queues, and observability."
homepage = "https://github.com/lazhenyi/behest"
documentation = "https://docs.rs/behest"
readme = "README.md"
keywords = [
    "agent",
    "llm",
    "tool-calling",
    "runtime",
    "ai",
]
categories = [
    "asynchronous",
    "api-bindings",
    "development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/lazhenyi/behest"

[package.metadata.docs.rs]
rustdoc-args = [
    "--cfg",
    "docsrs",
]
features = [
    "openai",
    "anthropic",
    "redis",
    "redis-cluster",
    "nats",
    "sqlx-postgres",
    "mongodb",
    "surrealdb",
    "otel",
    "rag-all",
    "queue-all",
    "object_store",
]

[features]
anthropic = ["dep:behest-adapter-anthropic"]
default = ["tls-rustls"]
full = [
    "openai",
    "anthropic",
    "redis",
    "redis-cluster",
    "nats",
    "sqlx-postgres",
    "mongodb",
    "surrealdb",
    "otel",
    "rag-all",
    "queue-all",
    "object_store",
]
mongodb = [
    "behest-store/mongodb",
    "dep:mongodb",
]
nats = ["dep:async-nats"]
object_store = ["behest-store/object_store"]
openai = ["dep:behest-adapter-openai"]
otel = [
    "dep:opentelemetry",
    "dep:opentelemetry_sdk",
    "dep:opentelemetry-otlp",
    "dep:tracing-opentelemetry",
]
qdrant = ["behest-store/qdrant"]
queue = []
queue-all = [
    "queue",
    "nats",
    "redis",
]
rag = []
rag-all = [
    "rag",
    "qdrant",
    "tantivy",
]
redis = [
    "behest-store/redis",
    "dep:redis",
    "redis/aio",
    "redis/tokio-comp",
    "redis/connection-manager",
    "redis/streams",
]
redis-cluster = [
    "redis",
    "behest-store/redis-cluster",
    "redis/cluster-async",
]
sqlx = [
    "behest-store/sqlx",
    "dep:sqlx",
    "sqlx/runtime-tokio",
    "sqlx/chrono",
    "sqlx/uuid",
    "sqlx/json",
    "sqlx/macros",
    "sqlx/migrate",
]
sqlx-mysql = [
    "sqlx",
    "behest-store/sqlx-mysql",
    "sqlx/mysql",
]
sqlx-postgres = [
    "sqlx",
    "behest-store/sqlx-postgres",
    "sqlx/postgres",
]
sqlx-sqlite = [
    "sqlx",
    "behest-store/sqlx-sqlite",
    "sqlx/sqlite",
]
storage-all = [
    "redis",
    "sqlx-postgres",
    "sqlx-mysql",
    "sqlx-sqlite",
    "mongodb",
    "surrealdb",
]
surrealdb = [
    "behest-store/surrealdb",
    "dep:surrealdb",
    "dep:surrealdb-types",
]
tantivy = []
tls-native = [
    "behest-store/tls-native",
    "behest-adapter-openai?/tls-native",
    "behest-adapter-anthropic?/tls-native",
    "redis?/tokio-native-tls-comp",
    "sqlx?/tls-native-tls",
]
tls-rustls = [
    "behest-store/tls-rustls",
    "behest-adapter-openai?/tls-rustls",
    "behest-adapter-anthropic?/tls-rustls",
    "redis?/tokio-rustls-comp",
    "sqlx?/tls-rustls",
]

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

[dependencies.async-nats]
version = "0.49"
optional = true

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

[dependencies.behest-adapter-anthropic]
version = "0.5.8"
optional = true
default-features = false

[dependencies.behest-adapter-openai]
version = "0.5.8"
optional = true
default-features = false

[dependencies.behest-core]
version = "0.5.8"

[dependencies.behest-provider]
version = "0.5.8"

[dependencies.behest-store]
version = "0.5.8"
default-features = false

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

[dependencies.config]
version = "0.15"
features = [
    "toml",
    "json",
    "yaml",
]
default-features = false

[dependencies.dotenvy]
version = "0.15"

[dependencies.futures-util]
version = "0.3"
features = ["std"]
default-features = false

[dependencies.indexmap]
version = "2"
features = ["serde"]

[dependencies.jsonschema]
version = "0.46"

[dependencies.mongodb]
version = "3.7"
optional = true

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

[dependencies.opentelemetry-otlp]
version = "0.32"
features = ["grpc-tonic"]
optional = true

[dependencies.opentelemetry_sdk]
version = "0.32"
features = ["rt-tokio"]
optional = true

[dependencies.redis]
version = "1.3"
optional = true
default-features = false

[dependencies.schemars]
version = "1.2"
features = ["derive"]

[dependencies.secrecy]
version = "0.10"

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

[dependencies.serde_json]
version = "1.0"
features = [
    "preserve_order",
    "raw_value",
]

[dependencies.sqlx]
version = "0.9"
optional = true
default-features = false

[dependencies.surrealdb]
version = "3.1"
optional = true

[dependencies.surrealdb-types]
version = "3.1"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.52"
features = [
    "rt",
    "rt-multi-thread",
    "macros",
    "sync",
    "time",
    "signal",
    "fs",
]
default-features = false

[dependencies.toml]
version = "1.1"
features = ["parse"]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.33"
optional = true

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "std",
    "fmt",
    "json",
    "env-filter",
    "registry",
]
default-features = false

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

[dev-dependencies.insta]
version = "1"
features = ["json"]

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

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

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

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

[dev-dependencies.tracing-test]
version = "0.2"

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

[lints.clippy]
expect_used = "deny"
unwrap_used = "deny"

[lints.rust]
unsafe_code = "forbid"

[lints.rust.missing_docs]
level = "deny"
priority = 10

[lints.rust.unreachable_pub]
level = "deny"
priority = 10