stakai 0.3.60

A provider-agnostic Rust SDK for AI completions with streaming support - Built by Stakpak
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"
name = "stakai"
version = "0.3.60"
authors = ["Stakpak <engineering@stakpak.dev>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A provider-agnostic Rust SDK for AI completions with streaming support - Built by Stakpak"
homepage = "https://stakpak.dev"
documentation = "https://docs.rs/stakai"
readme = "README.md"
keywords = [
    "ai",
    "llm",
    "openai",
    "anthropic",
    "sdk",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "Apache-2.0"
repository = "https://github.com/stakpak/agent"
resolver = "2"

[features]
bedrock = [
    "dep:aws-sdk-bedrockruntime",
    "dep:aws-config",
    "dep:aws-smithy-types",
]
default = ["openai"]
network-tests = []
openai = []
tracing = [
    "dep:tracing",
    "dep:tracing-opentelemetry",
]

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

[[bin]]
name = "stakai"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.aws-config]
version = "1.5"
features = [
    "behavior-version-latest",
    "rt-tokio",
    "default-https-client",
    "sso",
]
optional = true
default-features = false

[dependencies.aws-sdk-bedrockruntime]
version = "1.100"
features = [
    "behavior-version-latest",
    "rt-tokio",
    "default-https-client",
]
optional = true
default-features = false

[dependencies.aws-smithy-types]
version = "1.2"
optional = true

[dependencies.bytes]
version = "1"

[dependencies.dirs]
version = "5"

[dependencies.futures]
version = "0.3.31"

[dependencies.pin-project]
version = "1"

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

[dependencies.reqwest-eventsource]
version = "0.6"

[dependencies.rustls]
version = "0.23.29"

[dependencies.rustls-platform-verifier]
version = "0.5"

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

[dependencies.serde_json]
version = "1.0.133"

[dependencies.thiserror]
version = "2.0.12"

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

[dependencies.tracing]
version = "0.1"
optional = true

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

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

[dev-dependencies.anyhow]
version = "1.0.98"

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

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

[lints.clippy]
string_slice = "deny"