# 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.76"
name = "oaapi"
version = "0.2.0"
authors = ["Mochineko <t.o.e.4315@gmail.com>"]
description = "An unofficial Rust client for the OpenAI API."
documentation = "https://docs.rs/oaapi"
readme = "README.md"
keywords = [
    "oepnai",
    "rest",
    "api",
    "client",
    "machine-learning",
]
categories = [
    "api-bindings",
    "science",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/mochi-neko/oaapi"

[package.metadata.docs.rs]
all-features = true

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

[dependencies.bytes]
version = "1.5.*"

[dependencies.futures-core]
version = "0.3.*"

[dependencies.pin-project]
version = "1.1.*"

[dependencies.reqwest]
version = "0.11.*"
features = [
    "multipart",
    "json",
    "stream",
]

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

[dependencies.serde_json]
version = "1.0.*"

[dependencies.subtp]
version = "0.2.*"
optional = true

[dependencies.thiserror]
version = "1.0.*"

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

[dev-dependencies.base64]
version = "0.21.7"

[dev-dependencies.clap]
version = "4.4.18"
features = ["derive"]

[dev-dependencies.ctrlc]
version = "3.4.2"

[dev-dependencies.tokio]
version = "1.35.1"
features = [
    "macros",
    "rt-multi-thread",
    "fs",
]

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

[features]
audio = ["dep:subtp"]
chat = []
default = []
full = [
    "audio",
    "chat",
]
