# 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 = "2021"
rust-version = "1.65"
name = "async-openai-alt"
version = "0.26.2"
authors = [
    "TabbyML",
    "Himanshu Neema",
]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Rust library for OpenAI"
homepage = "https://github.com/TabbyML/async-openai"
readme = "README.md"
keywords = [
    "openai",
    "async",
    "openapi",
    "ai",
]
categories = [
    "api-bindings",
    "web-programming",
    "asynchronous",
]
license = "MIT"
repository = "https://github.com/TabbyML/async-openai"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

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

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

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

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

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

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

[dependencies.async-convert]
version = "1.0.0"

[dependencies.backoff]
version = "0.4.0"
features = ["tokio"]

[dependencies.base64]
version = "0.22.1"

[dependencies.bytes]
version = "1.6.0"

[dependencies.derive_builder]
version = "0.20.0"

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

[dependencies.futures]
version = "0.3.30"

[dependencies.rand]
version = "0.8.5"

[dependencies.reqwest]
version = "0.12.4"
features = [
    "json",
    "stream",
    "multipart",
]
default-features = false

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

[dependencies.secrecy]
version = "0.8.0"
features = ["serde"]

[dependencies.serde]
version = "1.0.203"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0.117"

[dependencies.thiserror]
version = "1.0.61"

[dependencies.tokio]
version = "1.38.0"
features = [
    "fs",
    "macros",
]

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

[dependencies.tokio-tungstenite]
version = "0.24.0"
optional = true
default-features = false

[dependencies.tokio-util]
version = "0.7.11"
features = [
    "codec",
    "io-util",
]

[dependencies.tracing]
version = "0.1.40"

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

[features]
default = ["rustls"]
native-tls = ["reqwest/native-tls"]
native-tls-vendored = ["reqwest/native-tls-vendored"]
realtime = ["dep:tokio-tungstenite"]
rustls = ["reqwest/rustls-tls-native-roots"]
rustls-webpki-roots = ["reqwest/rustls-tls-webpki-roots"]