[package]
edition = "2021"
name = "chatdelta"
version = "0.8.2"
authors = ["ChatDelta Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A unified Rust library for connecting to multiple AI APIs with streaming, conversations, and parallel execution"
homepage = "https://github.com/ChatDelta/chatdelta-rs"
documentation = "https://docs.rs/chatdelta"
readme = "README.md"
keywords = [
"ai",
"openai",
"claude",
"api",
"streaming",
]
categories = [
"api-bindings",
"web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/ChatDelta/chatdelta-rs"
[features]
default = []
experimental = [
"orchestration",
"prompt-optimization",
]
metrics-export = [
"prometheus",
"opentelemetry",
]
mock = []
orchestration = []
prompt-optimization = []
[lib]
name = "chatdelta"
path = "src/lib.rs"
[[example]]
name = "chat_session"
path = "examples/chat_session.rs"
[[example]]
name = "custom_endpoints"
path = "examples/custom_endpoints.rs"
[[example]]
name = "metadata_and_tokens"
path = "examples/metadata_and_tokens.rs"
[[example]]
name = "orchestration_demo"
path = "examples/orchestration_demo.rs"
[[example]]
name = "retry_strategies"
path = "examples/retry_strategies.rs"
[[example]]
name = "test_providers"
path = "examples/test_providers.rs"
[[test]]
name = "streaming_tests"
path = "tests/streaming_tests.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.bytes]
version = "1.5"
[dependencies.futures]
version = "0.3"
[dependencies.moka]
version = "0.12"
features = ["future"]
[dependencies.once_cell]
version = "1.19"
[dependencies.opentelemetry]
version = "0.21"
optional = true
[dependencies.opentelemetry-prometheus]
version = "0.14"
optional = true
[dependencies.opentelemetry_sdk]
version = "0.21"
optional = true
[dependencies.pin-project-lite]
version = "0.2"
[dependencies.prometheus]
version = "0.13"
optional = true
[dependencies.rand]
version = "0.8"
[dependencies.reqwest]
version = "0.11"
features = [
"json",
"rustls-tls",
"stream",
]
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.tokio]
version = "1"
features = ["full"]
[dependencies.tokio-stream]
version = "0.1"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
]