openai-oxide 0.10.1

Idiomatic Rust client for the OpenAI API — 1:1 parity with the official Python SDK
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 = "openai-oxide"
version = "0.10.1"
build = false
exclude = [
    ".solo/",
    ".githooks/",
    "docs/",
    "CLAUDE.md",
    "Makefile",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Idiomatic Rust client for the OpenAI API — 1:1 parity with the official Python SDK"
homepage = "https://github.com/fortunto2/openai-oxide"
documentation = "https://fortunto2.github.io/openai-oxide/"
readme = "README.md"
keywords = [
    "openai",
    "gpt",
    "ai",
    "llm",
    "chatgpt",
]
categories = [
    "api-bindings",
    "asynchronous",
    "wasm",
    "web-programming::http-client",
]
license = "MIT"
repository = "https://github.com/fortunto2/openai-oxide"

[features]
audio = []
batches = []
beta = []
chat = []
default = [
    "chat",
    "responses",
    "embeddings",
    "images",
    "audio",
    "files",
    "fine-tuning",
    "models",
    "moderations",
    "batches",
    "uploads",
    "beta",
]
embeddings = []
files = []
fine-tuning = []
full = [
    "chat",
    "responses",
    "embeddings",
    "images",
    "audio",
    "files",
    "fine-tuning",
    "models",
    "moderations",
    "batches",
    "uploads",
    "beta",
]
images = ["base64"]
live-tests = []
macros = ["dep:openai-oxide-macros"]
models = []
moderations = []
reqwest-012 = ["dep:reqwest012"]
responses = []
simd = ["dep:simd-json"]
structured = ["dep:schemars"]
uploads = []
webhooks = [
    "dep:hmac",
    "dep:sha2",
    "base64",
]
websocket = ["dep:tokio-tungstenite"]
websocket-wasm = [
    "dep:gloo-net",
    "dep:web-sys",
]

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

[[bin]]
name = "test_ser"
path = "src/bin/test_ser.rs"

[[example]]
name = "benchmark"
path = "examples/benchmark.rs"
required-features = ["responses"]

[[example]]
name = "chat"
path = "examples/chat.rs"
required-features = ["chat"]

[[example]]
name = "chat_stream"
path = "examples/chat_stream.rs"
required-features = ["chat"]

[[example]]
name = "integration_test"
path = "examples/integration_test.rs"
required-features = [
    "websocket",
    "responses",
]

[[example]]
name = "live_features_test"
path = "examples/live_features_test.rs"
required-features = [
    "structured",
    "chat",
    "responses",
]

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

[[example]]
name = "responses_api"
path = "examples/responses_api.rs"
required-features = ["responses"]

[[example]]
name = "structured_output"
path = "examples/structured_output.rs"
required-features = ["chat"]

[[example]]
name = "tool_calling"
path = "examples/tool_calling.rs"
required-features = ["chat"]

[[example]]
name = "websocket"
path = "examples/websocket.rs"
required-features = [
    "websocket",
    "responses",
]

[[example]]
name = "ws_stress"
path = "examples/ws_stress.rs"
required-features = [
    "websocket",
    "responses",
]

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

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

[dependencies.base64]
version = "0.22"
optional = true

[dependencies.bytes]
version = "1"

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

[dependencies.futures-util]
version = "0.3"

[dependencies.hmac]
version = "0.12"
optional = true

[dependencies.openai-oxide-macros]
version = "0.1.0"
optional = true

[dependencies.pin-project-lite]
version = "0.2"

[dependencies.schemars]
version = "0.8"
optional = true

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"
optional = true

[dependencies.simd-json]
version = "0.17"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio-tungstenite]
version = "0.26"
features = ["rustls-tls-native-roots"]
optional = true

[dependencies.tracing]
version = "0.1"

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

[dev-dependencies.openapiv3]
version = "2"

[dev-dependencies.serde_yaml]
version = "0.9"

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

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest]
version = "0.13"
features = [
    "rustls-no-provider",
    "json",
    "stream",
    "multipart",
    "gzip",
    "http2",
    "query",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.reqwest012]
version = ">=0.12, <0.13"
features = [
    "rustls-tls-no-provider",
    "json",
    "stream",
    "multipart",
    "gzip",
    "http2",
]
optional = true
default-features = false
package = "reqwest"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rustls]
version = "0.23"
features = [
    "ring",
    "std",
    "tls12",
]
default-features = false

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.tokio]
version = "1"
features = ["full"]

[target.'cfg(target_arch = "wasm32")'.dependencies.gloo-net]
version = "0.6"
features = ["websocket"]
optional = true

[target.'cfg(target_arch = "wasm32")'.dependencies.gloo-timers]
version = "0.3"
features = ["futures"]

[target.'cfg(target_arch = "wasm32")'.dependencies.reqwest]
version = "0.13"
features = [
    "json",
    "stream",
]
default-features = false

[target.'cfg(target_arch = "wasm32")'.dependencies.tokio]
version = "1"
features = [
    "rt",
    "macros",
    "sync",
]

[target.'cfg(target_arch = "wasm32")'.dependencies.wasm-bindgen-futures]
version = "0.4"

[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3"
optional = true